Home
last modified time | relevance | path

Searched refs:arr (Results 1 – 25 of 67) sorted by relevance

123

/frameworks/av/media/mtp/tests/MtpFuzzer/
Dmtp_data_packet_fuzzer.cpp95 uint16_t arr[size]; in process() local
97 arr[idx] = mFdp.ConsumeIntegral<uint16_t>(); in process()
99 mtpDataPacket.putAUInt16(arr, size); in process()
107 uint32_t arr[size]; in process() local
109 arr[idx] = mFdp.ConsumeIntegral<uint32_t>(); in process()
111 mtpDataPacket.putAUInt32(arr, size); in process()
119 uint64_t arr[size]; in process() local
121 arr[idx] = mFdp.ConsumeIntegral<uint64_t>(); in process()
123 mtpDataPacket.putAUInt64(arr, size); in process()
131 int64_t arr[size]; in process() local
[all …]
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/exif/
DExifTag.java482 Short[] arr = (Short[]) obj; in setValue() local
483 int[] fin = new int[arr.length]; in setValue()
484 for (int i = 0; i < arr.length; i++) { in setValue()
485 fin[i] = (arr[i] == null) ? 0 : arr[i].shortValue() & 0x0ffff; in setValue()
490 Integer[] arr = (Integer[]) obj; in setValue() local
491 int[] fin = new int[arr.length]; in setValue()
492 for (int i = 0; i < arr.length; i++) { in setValue()
493 fin[i] = (arr[i] == null) ? 0 : arr[i].intValue(); in setValue()
498 Long[] arr = (Long[]) obj; in setValue() local
499 long[] fin = new long[arr.length]; in setValue()
[all …]
/frameworks/base/core/java/android/hardware/camera2/marshal/impl/
DMarshalQueryableArray.java52 public void fillArray(Object arr, int size, ByteBuffer buffer); in fillArray() argument
57 public void fillArray(Object arr, int size, ByteBuffer buffer) { in getPrimitiveArrayFiller()
58 IntBuffer ib = buffer.asIntBuffer().get(int[].class.cast(arr), 0, size); in getPrimitiveArrayFiller()
66 public void fillArray(Object arr, int size, ByteBuffer buffer) { in getPrimitiveArrayFiller()
68 buffer.asFloatBuffer().get(float[].class.cast(arr), 0, size); in getPrimitiveArrayFiller()
75 public void fillArray(Object arr, int size, ByteBuffer buffer) { in getPrimitiveArrayFiller()
77 buffer.asLongBuffer().get(long[].class.cast(arr), 0, size); in getPrimitiveArrayFiller()
84 public void fillArray(Object arr, int size, ByteBuffer buffer) { in getPrimitiveArrayFiller()
86 buffer.asDoubleBuffer().get(double[].class.cast(arr), 0, size); in getPrimitiveArrayFiller()
93 public void fillArray(Object arr, int size, ByteBuffer buffer) { in getPrimitiveArrayFiller()
[all …]
DMarshalQueryableString.java49 byte[] arr = value.getBytes(PreloadHolder.UTF8_CHARSET); in marshal()
51 buffer.put(arr); in marshal()
57 byte[] arr = value.getBytes(PreloadHolder.UTF8_CHARSET); in calculateMarshalSize()
59 return arr.length + 1; // metadata strings are NUL-terminated in calculateMarshalSize()
/frameworks/native/vulkan/libvulkan/
Dapi.cpp77 const auto& arr = implicit_layers_; in Parse() local
78 if (arr.result != VK_SUCCESS) in Parse()
79 return arr.result; in Parse()
82 if (!arr.count) in Parse()
85 names_ = AllocateNameArray(arr.count + count); in Parse()
90 for (uint32_t i = 0; i < arr.count; i++) in Parse()
93 name_count_ = arr.count; in Parse()
141 auto& arr = implicit_layers_; in AddImplicitLayers() local
142 std::sort(arr.elements, arr.elements + arr.count, in AddImplicitLayers()
224 auto& arr = implicit_layers_; in AddImplicitLayer() local
[all …]
/frameworks/base/core/jni/
Dcore_jni_converters.h24 jobjectArray arr = env->NewObjectArray(list.size(), clazz, nullptr); in toJavaArray() local
25 LOG_ALWAYS_FATAL_IF(arr == nullptr); in toJavaArray()
29 env->SetObjectArrayElement(arr, i, javaObj.get()); in toJavaArray()
31 return arr; in toJavaArray()
/frameworks/native/libs/binder/ndk/include_cpp/android/
Dbinder_parcel_utils.h115 std::array<T, N>* arr = static_cast<std::array<T, N>*>(arrayData);
116 *outBuffer = arr->data();
126 std::optional<std::array<T, N>>* arr = static_cast<std::optional<std::array<T, N>>*>(arrayData);
128 *arr = std::nullopt;
136 arr->emplace();
137 *outBuffer = (*arr)->data();
155 std::optional<std::array<T, N>>* arr = static_cast<std::optional<std::array<T, N>>*>(arrayData);
158 *arr = std::nullopt;
166 arr->emplace();
484 const std::array<T, N>* arr = static_cast<const std::array<T, N>*>(arrData);
[all …]
/frameworks/base/services/core/java/com/android/server/broadcastradio/hal1/
DConvert.java49 String[][] arr = new String[len][2]; in stringMapToNative() local
53 arr[i][0] = entry.getKey(); in stringMapToNative()
54 arr[i][1] = entry.getValue(); in stringMapToNative()
59 return arr; in stringMapToNative()
/frameworks/base/packages/WAPPushManager/tests/src/com/android/smspush/unitTests/
DWapPushTest.java841 protected int encodeUint32(int uint32Val, byte[] arr, int start) { in encodeUint32() argument
853 if (arr == null) return encodeLen; in encodeUint32()
863 arr[start + i] = (byte) (val & 0xFF); in encodeUint32()
869 protected int encodeShortInt(int sintVal, byte[] arr, int start) { in encodeShortInt() argument
874 arr[start] = (byte) (sintVal | 0x80); in encodeShortInt()
882 protected void createRandomWspHeader(byte[] arr, Random rd, int headerStart, in createRandomWspHeader() argument
889 Log.d(LOG_TAG, "random arr length:" + arr.length); in createRandomWspHeader()
895 int len = arr.length; in createRandomWspHeader()
931 arr[index] = (byte) (0x80 | rd.nextInt(128)); in createRandomWspHeader()
932 } while (arr[index] == (byte) 0xaf); in createRandomWspHeader()
[all …]
/frameworks/base/opengl/java/android/opengl/
DEGLLogWrapper.java479 private void arg(String name, int[] arr) { in arg() argument
480 if (arr == null) { in arg()
483 arg(name, toString(arr.length, arr, 0)); in arg()
487 private void arg(String name, Object[] arr) { in arg() argument
488 if (arr == null) { in arg()
491 arg(name, toString(arr.length, arr, 0)); in arg()
495 private String toString(int n, int[] arr, int offset) { in toString() argument
498 int arrLen = arr.length; in toString()
505 buf.append(arr[index]); in toString()
513 private String toString(int n, Object[] arr, int offset) { in toString() argument
[all …]
/frameworks/base/services/core/jni/
Dcom_android_server_ConsumerIrService.cpp74 jint *arr = freqsOut.get(); in halGetCarrierFrequencies() local
75 if (arr == NULL) { in halGetCarrierFrequencies()
79 arr[i*2] = static_cast<jint>(ranges[i].min); in halGetCarrierFrequencies()
80 arr[i*2+1] = static_cast<jint>(ranges[i].max); in halGetCarrierFrequencies()
/frameworks/base/media/jni/
Dandroid_media_tv_Tuner.h167 void getSectionEvent(const jobjectArray& arr, const int size, const DemuxFilterEvent& event);
168 void getMediaEvent(const jobjectArray& arr, const int size, const DemuxFilterEvent& event);
169 void getPesEvent(const jobjectArray& arr, const int size, const DemuxFilterEvent& event);
170 void getTsRecordEvent(const jobjectArray& arr, const int size, const DemuxFilterEvent& event);
171 void getMmtpRecordEvent(const jobjectArray& arr, const int size, const DemuxFilterEvent& event);
172 void getDownloadEvent(const jobjectArray& arr, const int size, const DemuxFilterEvent& event);
173 void getIpPayloadEvent(const jobjectArray& arr, const int size, const DemuxFilterEvent& event);
174 void getTemiEvent(const jobjectArray& arr, const int size, const DemuxFilterEvent& event);
175 void getScramblingStatusEvent(const jobjectArray& arr, const int size,
177 void getIpCidChangeEvent(const jobjectArray& arr, const int size,
[all …]
/frameworks/base/packages/EasterEgg/src/com/android/egg/quares/
DQuare.kt111 val arr = ArrayList<Int>() in <lambda>() constant
122 arr.add(len) in <lambda>()
125 if (len > 0) arr.add(len) in <lambda>()
126 else if (arr.size == 0) arr.add(0) in <lambda>()
127 return arr.toIntArray() in <lambda>()
/frameworks/base/keystore/java/android/security/keystore/
DArrayUtils.java96 public static byte[] subarray(byte[] arr, int offset, int len) { in subarray() argument
100 if ((offset == 0) && (len == arr.length)) { in subarray()
101 return arr; in subarray()
104 System.arraycopy(arr, offset, result, 0, len); in subarray()
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/
Dsmall_struct_2.rscript39 small_struct_2 arr[ARRAY_LEN];
56 _RS_ASSERT_EQU((*v).arr[idx].i, gIntStart + y * gDimX + x + idx);
57 _RS_ASSERT_EQU((*v).arr[idx].l, gLongStart + y * gDimX + x + idx);
82 output.arr[idx].i = gIntStart + y * gDimX + x + idx;
83 output.arr[idx].l = gLongStart + y * gDimX + x + idx;
Dsmall_struct.rscript39 small_struct arr[ARRAY_LEN];
56 _RS_ASSERT_EQU((*v).arr[idx].i, gIntStart + y * gDimX + x + idx);
57 _RS_ASSERT_EQU((*v).arr[idx].l, gLongStart + y * gDimX + x + idx);
82 output.arr[idx].i = gIntStart + y * gDimX + x + idx;
83 output.arr[idx].l = gLongStart + y * gDimX + x + idx;
/frameworks/base/core/java/com/android/internal/util/
DBitwiseInputStream.java104 byte[] arr = new byte[bytes]; in readByteArray()
107 arr[i] = (byte)(read(increment) << (8 - increment)); in readByteArray()
109 return arr; in readByteArray()
DBitwiseOutputStream.java119 public void writeByteArray(int bits, byte[] arr) throws AccessException { in writeByteArray() argument
120 for (int i = 0; i < arr.length; i++) { in writeByteArray()
123 write(increment, (byte)(arr[i] >>> (8 - increment))); in writeByteArray()
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/recents/view/
DAppTransitionAnimationSpecsFuture.java60 AppTransitionAnimationSpec[] arr = new AppTransitionAnimationSpec[specs.size()];
62 arr[i] = specs.get(i).toAppTransitionAnimationSpec();
64 return arr;
/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/
Dsmall_struct_2.rscript41 small_struct_2 arr[ARRAY_LEN];
58 _RS_ASSERT_EQU((*v).arr[idx].i, gIntStart + y * gDimX + x + idx);
59 _RS_ASSERT_EQU((*v).arr[idx].l, gLongStart + y * gDimX + x + idx);
84 output.arr[idx].i = gIntStart + y * gDimX + x + idx;
85 output.arr[idx].l = gLongStart + y * gDimX + x + idx;
Dsmall_struct.rscript41 small_struct arr[ARRAY_LEN];
58 _RS_ASSERT_EQU((*v).arr[idx].i, gIntStart + y * gDimX + x + idx);
59 _RS_ASSERT_EQU((*v).arr[idx].l, gLongStart + y * gDimX + x + idx);
84 output.arr[idx].i = gIntStart + y * gDimX + x + idx;
85 output.arr[idx].l = gLongStart + y * gDimX + x + idx;
/frameworks/base/core/java/android/hardware/camera2/utils/
DArrayUtils.java149 int[] arr = new int[list.size()]; in toIntArray() local
152 arr[i] = elem; in toIntArray()
156 return arr; in toIntArray()
/frameworks/base/services/tests/VpnTests/java/com/android/server/
DVpnTestBase.java94 protected List<Integer> toList(int[] arr) { in toList() argument
95 return Arrays.stream(arr).boxed().collect(Collectors.toList()); in toList()
/frameworks/compile/slang/tests/F_multidim_array/
Dmultidim_array.rscript4 int arr[2][2];
Dstderr.txt.expect1 multidim_array.rscript:4:5: error: multidimensional arrays cannot be exported: 'arr'

123