summaryrefslogtreecommitdiff
path: root/libs/androidfw/FileStream.cpp
diff options
context:
space:
mode:
author Eric Biggers <ebiggers@google.com> 2022-07-29 17:57:51 +0000
committer William Escande <wescande@google.com> 2023-02-09 18:55:39 -0800
commit96abd9452d4591256353ccd2ec670e61d908e310 (patch)
tree96bbcd0441f6dc8e31af2ef0f149700aec28033d /libs/androidfw/FileStream.cpp
parentc97d692350d6ec2aa7464282af544b988cce95f9 (diff)
ArrayUtils: rename concatElements() to concat()
concatElements() was probably named as it is to be like addElement() and removeElement(). However, that doesn't really make sense because the parameters of concatElements() are only arrays, not array elements. Rename it to concat(), as that is just as clear and follows the example of Guava's ObjectArrays.concat(). And I'd like to add a variant that operates on byte arrays, and would like to call it concat(). Also clean up the tests a bit. Test: atest com.android.internal.util.ArrayUtilsTest BYPASS_INCLUSIVE_LANGUAGE_REASON=existing code in SettingsBackupAgent Change-Id: I21e958d3d7b3366ec724e757ac4ccc50b36abee1 Merged-In: I21e958d3d7b3366ec724e757ac4ccc50b36abee1 (cherry picked from commit 1174b2fd681164499fb12082743e391e4c99994c)
Diffstat (limited to 'libs/androidfw/FileStream.cpp')
0 files changed, 0 insertions, 0 deletions