/frameworks/base/telephony/common/com/android/internal/telephony/util/ |
D | ArrayUtils.java | 40 public static <T> T[] appendElement(Class<T> kind, @Nullable T[] array, T element) { in appendElement() 55 public static <T> T[] appendElement(Class<T> kind, @Nullable T[] array, T element, in appendElement() 133 public static boolean contains(@Nullable char[] array, char value) { in contains() 153 public static boolean contains(@Nullable int[] array, int value) { in contains() 166 public static boolean contains(@Nullable long[] array, long value) { in contains() 179 public static <T> boolean contains(@Nullable T[] array, T value) { in contains() 187 public static <T> int indexOf(@Nullable T[] array, T value) { in indexOf() 198 public static boolean isEmpty(@Nullable Collection<?> array) { in isEmpty() 212 public static <T> boolean isEmpty(@Nullable T[] array) { in isEmpty() 219 public static boolean isEmpty(@Nullable int[] array) { in isEmpty() [all …]
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/ |
D | ByteArrayHelpers.java | 40 public static byte[] toByteArray(byte[] array) { in toByteArray() 50 public static byte[] toByteArray(short[] array) { in toByteArray() 60 public static byte[] toByteArray(char[] array) { in toByteArray() 69 public static byte[] toByteArray(int[] array) { in toByteArray() 78 public static byte[] toByteArray(long[] array) { in toByteArray() 87 public static byte[] toByteArray(float[] array) { in toByteArray() 96 public static byte[] toByteArray(double[] array) { in toByteArray() 111 public static <T> byte[] toByteArray(T array) { in toByteArray() 213 private static <T> byte[] toByteArray(T array, int sizeOfTBits) { in toByteArray()
|
/frameworks/base/core/tests/utiltests/src/android/util/ |
D | MemoryIntArrayTest.java | 56 MemoryIntArray array = null; in testSize() local 67 MemoryIntArray array = null; in testGetSet() local 85 MemoryIntArray array = null; in testWritable() local 96 MemoryIntArray array = null; in testClose() local 138 MemoryIntArray array = null; in testInteractOnceClosed() local 181 MemoryIntArray array = null; in testInteractPutOfBounds() local 219 MemoryIntArray array = null; in testOverMaxSize() local 264 MemoryIntArray array = new MemoryIntArray(1); in testAshmemSizeMatchesMemoryIntArraySize() local
|
/frameworks/base/core/tests/coretests/src/com/android/internal/util/ |
D | DumpUtilsTest.java | 195 SparseArray<String> array = new SparseArray<>(); in testDumpSparseArray_empty() local 206 SparseArray<String> array = new SparseArray<>(); in testDumpSparseArray_oneElement() local 220 SparseArray<String> array = new SparseArray<>(); in testDumpSparseArray_oneNullElement() local 234 SparseArray<String> array = new SparseArray<>(); in testDumpSparseArray_multipleElements() local 252 SparseArray<String> array = new SparseArray<>(); in testDumpSparseArray_keyDumperOnly() local 273 SparseArray<String> array = new SparseArray<>(); in testDumpSparseArray_valueDumperOnly() local 295 SparseArray<String> array = new SparseArray<>(); in testDumpSparseArray_keyAndValueDumpers() local 319 SparseArray<String> array = new SparseArray<>(); in testDumpSparseArrayValues() local
|
/frameworks/native/opengl/tools/glgen/stubs/gles11/ |
D | common.cpp | 47 getPointer(JNIEnv *_env, jobject buffer, jarray *array, jint *remaining, jint *offset) in getPointer() 69 static void* Get(JNIEnv* _env, jbyteArray array, jboolean* is_copy) { in Get() 75 static void* Get(JNIEnv* _env, jbooleanArray array, jboolean* is_copy) { in Get() 81 static void* Get(JNIEnv* _env, jcharArray array, jboolean* is_copy) { in Get() 87 static void* Get(JNIEnv* _env, jshortArray array, jboolean* is_copy) { in Get() 93 static void* Get(JNIEnv* _env, jintArray array, jboolean* is_copy) { in Get() 99 static void* Get(JNIEnv* _env, jlongArray array, jboolean* is_copy) { in Get() 105 static void* Get(JNIEnv* _env, jfloatArray array, jboolean* is_copy) { in Get() 111 static void* Get(JNIEnv* _env, jdoubleArray array, jboolean* is_copy) { in Get() 118 getArrayPointer(JNIEnv *_env, JTYPEARRAY array, jboolean* is_copy) { in getArrayPointer() [all …]
|
/frameworks/base/core/java/com/android/internal/util/ |
D | GrowingArrayUtils.java | 45 public static <T> T[] append(T[] array, int currentSize, T element) { in append() 63 public static int[] append(int[] array, int currentSize, int element) { in append() 78 public static long[] append(long[] array, int currentSize, long element) { in append() 93 public static boolean[] append(boolean[] array, int currentSize, boolean element) { in append() 108 public static float[] append(float[] array, int currentSize, float element) { in append() 131 public static <T> T[] insert(T[] array, int currentSize, int index, T element) { in insert() 152 public static int[] insert(int[] array, int currentSize, int index, int element) { in insert() 171 public static long[] insert(long[] array, int currentSize, int index, long element) { in insert() 190 public static boolean[] insert(boolean[] array, int currentSize, int index, boolean element) { in insert()
|
D | ArrayUtils.java | 189 public static boolean isEmpty(@Nullable Collection<?> array) { in isEmpty() 204 public static <T> boolean isEmpty(@Nullable T[] array) { in isEmpty() 211 public static boolean isEmpty(@Nullable int[] array) { in isEmpty() 218 public static boolean isEmpty(@Nullable long[] array) { in isEmpty() 225 public static boolean isEmpty(@Nullable byte[] array) { in isEmpty() 232 public static boolean isEmpty(@Nullable boolean[] array) { in isEmpty() 239 public static int size(@Nullable Object[] array) { in size() 264 public static <T> boolean contains(@Nullable T[] array, T value) { in contains() 273 public static <T> int indexOf(@Nullable T[] array, T value) { in indexOf() 284 public static <T> boolean containsAll(@Nullable T[] array, T[] check) { in containsAll() [all …]
|
D | QuickSelect.java | 50 private static int selectImpl(@NonNull int[] array, int left, int right, int k) { in selectImpl() 66 private static int selectImpl(@NonNull long[] array, int left, int right, int k) { in selectImpl() 82 private static <T> int selectImpl(@NonNull T[] array, int left, int right, int k, in selectImpl() 114 private static int partition(@NonNull int[] array, int left, int right, int pivotIndex) { in partition() 128 private static int partition(@NonNull long[] array, int left, int right, int pivotIndex) { in partition() 142 private static <T> int partition(@NonNull T[] array, int left, int right, int pivotIndex, in partition() 163 private static void swap(@NonNull int[] array, int left, int right) { in swap() 169 private static void swap(@NonNull long[] array, int left, int right) { in swap() 175 private static <T> void swap(@NonNull T[] array, int left, int right) { in swap() 212 public static int select(@NonNull int[] array, int start, int length, int k) { in select() [all …]
|
D | HexDump.java | 29 public static String dumpHexString(@Nullable byte[] array) { in dumpHexString() 34 public static String dumpHexString(@Nullable byte[] array, int offset, int length) in dumpHexString() 107 public static String toHexString(byte[] array) in toHexString() 113 public static String toHexString(byte[] array, boolean upperCase) in toHexString() 119 public static String toHexString(byte[] array, int offset, int length) in toHexString() 124 public static String toHexString(byte[] array, int offset, int length, boolean upperCase) in toHexString()
|
/frameworks/base/core/jni/ |
D | android_opengl_GLES10Ext.cpp | 73 getPointer(JNIEnv *_env, jobject buffer, jarray *array, jint *remaining, jint *offset) in getPointer() 95 static void* Get(JNIEnv* _env, jbyteArray array, jboolean* is_copy) { in Get() 101 static void* Get(JNIEnv* _env, jbooleanArray array, jboolean* is_copy) { in Get() 107 static void* Get(JNIEnv* _env, jcharArray array, jboolean* is_copy) { in Get() 113 static void* Get(JNIEnv* _env, jshortArray array, jboolean* is_copy) { in Get() 119 static void* Get(JNIEnv* _env, jintArray array, jboolean* is_copy) { in Get() 125 static void* Get(JNIEnv* _env, jlongArray array, jboolean* is_copy) { in Get() 131 static void* Get(JNIEnv* _env, jfloatArray array, jboolean* is_copy) { in Get() 137 static void* Get(JNIEnv* _env, jdoubleArray array, jboolean* is_copy) { in Get() 144 getArrayPointer(JNIEnv *_env, JTYPEARRAY array, jboolean* is_copy) { in getArrayPointer() [all …]
|
/frameworks/base/core/java/android/os/ |
D | HwBlob.java | 112 public native final void copyToBoolArray(long offset, boolean[] array, int size); in copyToBoolArray() 123 public native final void copyToInt8Array(long offset, byte[] array, int size); in copyToInt8Array() 134 public native final void copyToInt16Array(long offset, short[] array, int size); in copyToInt16Array() 145 public native final void copyToInt32Array(long offset, int[] array, int size); in copyToInt32Array() 156 public native final void copyToInt64Array(long offset, long[] array, int size); in copyToInt64Array() 167 public native final void copyToFloatArray(long offset, float[] array, int size); in copyToFloatArray() 178 public native final void copyToDoubleArray(long offset, double[] array, int size); in copyToDoubleArray() 345 public static Boolean[] wrapArray(@NonNull boolean[] array) { in wrapArray() 360 public static Long[] wrapArray(@NonNull long[] array) { in wrapArray() 375 public static Byte[] wrapArray(@NonNull byte[] array) { in wrapArray() [all …]
|
D | HwParcel.java | 238 short[] array = new short[n]; in writeInt16Vector() local 252 int[] array = new int[n]; in writeInt32Vector() local 266 long[] array = new long[n]; in writeInt64Vector() local 280 float[] array = new float[n]; in writeFloatVector() local 294 double[] array = new double[n]; in writeDoubleVector() local 495 Boolean[] array = HwBlob.wrapArray(readBoolVectorAsArray()); in readBoolVector() local 506 Byte[] array = HwBlob.wrapArray(readInt8VectorAsArray()); in readInt8Vector() local 517 Short[] array = HwBlob.wrapArray(readInt16VectorAsArray()); in readInt16Vector() local 528 Integer[] array = HwBlob.wrapArray(readInt32VectorAsArray()); in readInt32Vector() local 539 Long[] array = HwBlob.wrapArray(readInt64VectorAsArray()); in readInt64Vector() local [all …]
|
/frameworks/base/services/core/java/com/android/server/biometrics/ |
D | HardwareAuthTokenUtils.java | 47 writeInt(flipIfNativelyLittle(hat.authenticatorType), array, 25 /* offset */); in toByteArray() local 50 writeLong(flipIfNativelyLittle(hat.timestamp.milliSeconds), array, 29 /* offset */); in toByteArray() local 58 public static HardwareAuthToken toHardwareAuthToken(byte[] array) { in toHardwareAuthToken() 121 private static long getLong(byte[] array, int offset) { in getLong() 130 private static int getInt(byte[] array, int offset) { in getInt()
|
/frameworks/base/graphics/java/android/graphics/ |
D | ColorMatrixColorFilter.java | 52 public ColorMatrixColorFilter(@NonNull float[] array) { in ColorMatrixColorFilter() 112 public void setColorMatrixArray(@Nullable float[] array) { in setColorMatrixArray() 130 private static native long nativeColorMatrixFilter(float[] array); in nativeColorMatrixFilter() 132 private static native void nativeSetColorMatrix(long colorMatrixColorFilter, float[] array); in nativeSetColorMatrix()
|
/frameworks/base/libs/androidfw/tests/data/appaslib/ |
D | R.h | 35 struct array { struct 36 enum : uint32_t { 53 struct array { struct 54 enum : uint32_t {
|
/frameworks/base/keystore/java/android/security/keystore/ |
D | ArrayUtils.java | 29 public static String[] nullToEmpty(String[] array) { in nullToEmpty() 33 public static String[] cloneIfNotEmpty(String[] array) { in cloneIfNotEmpty() 41 public static int[] cloneIfNotEmpty(int[] array) { in cloneIfNotEmpty() 45 public static byte[] cloneIfNotEmpty(byte[] array) { in cloneIfNotEmpty() 127 public static void forEach(int[] array, Consumer<Integer> consumer) { in forEach()
|
/frameworks/base/core/java/android/hardware/camera2/utils/ |
D | HashCodeHelpers.java | 37 public static int hashCode(int... array) { in hashCode() 67 public static int hashCode(float... array) { in hashCode() 90 public static <T> int hashCodeGeneric(T... array) { in hashCodeGeneric()
|
D | ArrayUtils.java | 34 public static <T> int getArrayIndex(T[] array, T needle) { in getArrayIndex() 51 public static int getArrayIndex(int[] array, int needle) { in getArrayIndex() 166 public static boolean contains(int[] array, int elem) { in contains() 177 public static <T> boolean contains(T[] array, T elem) { in contains()
|
/frameworks/base/core/tests/coretests/src/android/util/ |
D | LongSparseLongArrayTest.java | 42 final LongSparseLongArray array = new LongSparseLongArray(5); in testSimplePut() local 56 final LongSparseLongArray array = new LongSparseLongArray(5); in testSimplePutBackwards() local 70 final LongSparseLongArray array = new LongSparseLongArray(5); in testMiddleInsert() local 90 final LongSparseLongArray array = new LongSparseLongArray(r.nextInt(128)); in testFuzz() local
|
/frameworks/av/media/libstagefright/ |
D | ACodecBufferChannel.cpp | 62 const std::shared_ptr<const std::vector<const BufferInfo>> &array, in findClientBuffer() 70 const std::shared_ptr<const std::vector<const BufferInfo>> &array, in findBufferId() 100 std::shared_ptr<const std::vector<const BufferInfo>> array( in queueInputBuffer() local 141 std::shared_ptr<const std::vector<const BufferInfo>> array( in queueSecureInputBuffer() local 355 std::shared_ptr<const std::vector<const BufferInfo>> array( in attachEncryptedBuffer() local 476 std::shared_ptr<const std::vector<const BufferInfo>> array( in renderOutputBuffer() local 498 std::shared_ptr<const std::vector<const BufferInfo>> array( in discardBuffer() local 519 void ACodecBufferChannel::getInputBufferArray(Vector<sp<MediaCodecBuffer>> *array) { in getInputBufferArray() 528 void ACodecBufferChannel::getOutputBufferArray(Vector<sp<MediaCodecBuffer>> *array) { in getOutputBufferArray() 565 void ACodecBufferChannel::setInputBufferArray(const std::vector<BufferAndId> &array) { in setInputBufferArray() [all …]
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
D | AdaptiveIconDrawable.java | 249 final ChildDrawable[] array = state.mChildren; in inflate() local 453 final ChildDrawable[] array = state.mChildren; in applyTheme() local 653 final ChildDrawable[] array = mLayerState.mChildren; in setHotspot() local 664 final ChildDrawable[] array = mLayerState.mChildren; in setHotspotBounds() local 691 final ChildDrawable[] array = mLayerState.mChildren; in setVisible() local 705 final ChildDrawable[] array = mLayerState.mChildren; in setDither() local 726 final ChildDrawable[] array = mLayerState.mChildren; in setColorFilter() local 737 final ChildDrawable[] array = mLayerState.mChildren; in setTintList() local 749 final ChildDrawable[] array = mLayerState.mChildren; in setTintBlendMode() local 772 final ChildDrawable[] array = mLayerState.mChildren; in setAutoMirrored() local [all …]
|
/frameworks/base/core/java/com/android/internal/app/procstats/ |
D | SparseMappingTable.java | 132 long[] array = list.get(whichArray); in getOrAddKey() local 196 final long[] array = mParent.mLongs.get(getArrayFromKey(key)); in getValue() local 230 final long[] array = mParent.mLongs.get(getArrayFromKey(key)); in getValueForId() local 282 final long[] array = mParent.mLongs.get(getArrayFromKey(key)); in setValue() local 506 final long[] array = mLongs.get(i); in writeToParcel() local 527 final long[] array = new long[size]; in readFromParcel() local 555 final long[] array = mLongs.get(i); in dumpInternalState() local 572 private static void writeCompactedLongArray(Parcel out, long[] array, int num) { in writeCompactedLongArray() 593 private static void readCompactedLongArray(Parcel in, long[] array, int num) { in readCompactedLongArray()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tileimpl/ |
D | TilesStatesTextTest.kt | 42 val array = mContext.resources.getStringArray(resId) in <lambda>() constant 50 val array = mContext.resources.getStringArray(R.array.tile_states_default) in <lambda>() constant
|
/frameworks/base/tests/ActivityTests/src/com/google/android/test/activity/ |
D | ArrayMapTests.java | 121 private static boolean compareMaps(HashMap map, ArrayMap array) { in compareMaps() 211 private static boolean compareSets(HashSet set, ArraySet array) { in compareSets() 246 private static boolean validateArrayMap(ArrayMap array) { in validateArrayMap() 300 private static void dump(Map map, ArrayMap array) { in dump() 312 private static void dump(Set set, ArraySet array) { in dump()
|
/frameworks/base/packages/Shell/tests/src/com/android/shell/ |
D | BugreportProgressServiceTest.java | 93 private static <T> List<T> list(T... array) { in list() 97 private static <T> T[] array(T... array) { in array() method in BugreportProgressServiceTest
|