Home
last modified time | relevance | path

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

123

/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/ruby/tests/
Drepeated_field_test.rb133 check_self_modifying_method(m.repeated_string, reference_arr) do |arr|
134 arr[1]
136 check_self_modifying_method(m.repeated_string, reference_arr) do |arr|
137 arr[-2]
139 check_self_modifying_method(m.repeated_string, reference_arr) do |arr|
140 arr[20]
142 check_self_modifying_method(m.repeated_string, reference_arr) do |arr|
143 arr[1, 2]
145 check_self_modifying_method(m.repeated_string, reference_arr) do |arr|
146 arr[0..2]
[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/native/vulkan/libvulkan/
Dapi.cpp74 const auto& arr = implicit_layers_; in Parse() local
75 if (arr.result != VK_SUCCESS) in Parse()
76 return arr.result; in Parse()
79 if (!arr.count) in Parse()
82 names_ = AllocateNameArray(arr.count + count); in Parse()
87 for (uint32_t i = 0; i < arr.count; i++) in Parse()
90 name_count_ = arr.count; in Parse()
138 auto& arr = implicit_layers_; in AddImplicitLayers() local
139 std::sort(arr.elements, arr.elements + arr.count, in AddImplicitLayers()
212 auto& arr = implicit_layers_; in AddImplicitLayer() local
[all …]
/frameworks/base/services/core/java/com/android/server/broadcastradio/hal1/
DConvert.java47 String[][] arr = new String[len][2]; in stringMapToNative() local
51 arr[i][0] = entry.getKey(); in stringMapToNative()
52 arr[i][1] = entry.getValue(); in stringMapToNative()
57 return arr; in stringMapToNative()
/frameworks/base/packages/WAPPushManager/tests/src/com/android/smspush/unitTests/
DWapPushTest.java837 protected int encodeUint32(int uint32Val, byte[] arr, int start) { in encodeUint32() argument
849 if (arr == null) return encodeLen; in encodeUint32()
859 arr[start + i] = (byte) (val & 0xFF); in encodeUint32()
865 protected int encodeShortInt(int sintVal, byte[] arr, int start) { in encodeShortInt() argument
870 arr[start] = (byte) (sintVal | 0x80); in encodeShortInt()
878 protected void createRandomWspHeader(byte[] arr, Random rd, int headerStart, in createRandomWspHeader() argument
885 Log.d(LOG_TAG, "random arr length:" + arr.length); in createRandomWspHeader()
891 int len = arr.length; in createRandomWspHeader()
927 arr[index] = (byte) (0x80 | rd.nextInt(128)); in createRandomWspHeader()
928 } while (arr[index] == (byte) 0xaf); in createRandomWspHeader()
[all …]
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/
Dsmall_struct_2.rs39 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.rs39 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/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/
Dsmall_struct_2.rs41 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.rs41 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/net/util/
DKeepaliveUtils.java66 final String[] arr = row.split(","); in getSupportedKeepalives() local
67 if (arr.length != 2) { in getSupportedKeepalives()
74 transport = Integer.parseInt(arr[0]); in getSupportedKeepalives()
75 supported = Integer.parseInt(arr[1]); in getSupportedKeepalives()
/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/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/core/java/android/hardware/camera2/marshal/impl/
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/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/core/java/com/android/internal/util/
DBitwiseInputStream.java103 byte[] arr = new byte[bytes]; in readByteArray()
106 arr[i] = (byte)(read(increment) << (8 - increment)); in readByteArray()
108 return arr; in readByteArray()
DBitwiseOutputStream.java118 public void writeByteArray(int bits, byte[] arr) throws AccessException { in writeByteArray() argument
119 for (int i = 0; i < arr.length; i++) { in writeByteArray()
122 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/opt/gamesdk/third_party/protobuf-3.0.0/ruby/src/main/java/com/google/protobuf/jruby/
DRubyRepeatedField.java95 RubyArray arr = ary.convertToArray(); in initialize() local
96 for (int i = 0; i < arr.size(); i++) { in initialize()
97 this.storage.add(arr.eltInternal(i)); in initialize()
193 RubyArray arr = (RubyArray) list; in replace() local
194 checkArrayElementType(context, arr); in replace()
195 this.storage = arr; in replace()
391 private void checkArrayElementType(ThreadContext context, RubyArray arr) { in checkArrayElementType() argument
392 for (int i = 0; i < arr.getLength(); i++) { in checkArrayElementType()
393 Utils.checkType(context, fieldType, arr.eltInternal(i), (RubyModule) typeClass); in checkArrayElementType()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/ruby/lib/google/protobuf/
Drepeated_field.rb116 arr = self.to_a
117 result = arr.send(method_name, *args)
118 self.replace(arr)
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/js/
Dproto3_test.js52 function bytesCompare(arr, expected) { argument
53 if (goog.isString(arr)) {
54 arr = goog.crypt.base64.decodeStringToUint8Array(arr);
56 if (arr.length != expected.length) {
59 for (var i = 0; i < arr.length; i++) {
60 if (arr[i] != expected[i]) {
Dmap.js59 jspb.Map = function(arr, opt_valueCtor) { argument
61 this.arr_ = arr;
137 jspb.Map.arrayIterator_ = function(arr) { argument
141 if (idx < arr.length) {
142 return { done: false, value: arr[idx++] };
/frameworks/compile/slang/tests/F_multidim_array/
Dmultidim_array.rs4 int arr[2][2];
Dstderr.txt.expect1 multidim_array.rs:4:5: error: multidimensional arrays cannot be exported: 'arr'
/frameworks/compile/slang/tests/F_const_array_arg/
Dconst_array_arg.rs4 void foo(float arr[3]) {
/frameworks/base/core/java/android/database/
DDatabaseUtils.java495 byte [] arr = getCollationKeyInBytes(name); in getCollationKey()
497 return new String(arr, 0, getKeyLen(arr), "ISO8859_1"); in getCollationKey()
509 byte[] arr = getCollationKeyInBytes(name); in getHexCollationKey()
510 char[] keys = encodeHex(arr); in getHexCollationKey()
511 return new String(keys, 0, getKeyLen(arr) * 2); in getHexCollationKey()
536 private static int getKeyLen(byte[] arr) { in getKeyLen() argument
537 if (arr[arr.length - 1] != 0) { in getKeyLen()
538 return arr.length; in getKeyLen()
541 return arr.length-1; in getKeyLen()

123