Home
last modified time | relevance | path

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

12

/frameworks/base/docs/html/
Djd_tag_helpers.js2 var arr = arguments[0] || [];
4 arr = arr.concat(arguments[i]);
6 return arr;
38 offset += r.arr.length;
44 function setFromArray(arr) { argument
45 arr = arr || [];
47 for (var i = 0; i < arr.length; i++) {
48 set[arr[i]] = true;
87 {map:ABOUT_BY_TAG,arr:ABOUT_RESOURCES}, property
88 {map:DESIGN_BY_TAG,arr:DESIGN_RESOURCES}, property
[all …]
/frameworks/data-binding/extensions/library/src/main/java/android/databinding/
DViewDataBinding.java600 protected static <T> T getFromArray(T[] arr, int index) { in getFromArray() argument
601 if (arr == null || index < 0 || index >= arr.length) { in getFromArray()
604 return arr[index]; in getFromArray()
608 protected static <T> void setTo(T[] arr, int index, T value) { in setTo() argument
609 if (arr == null || index < 0 || index >= arr.length) { in setTo()
612 arr[index] = value; in setTo()
616 protected static boolean getFromArray(boolean[] arr, int index) { in getFromArray() argument
617 if (arr == null || index < 0 || index >= arr.length) { in getFromArray()
620 return arr[index]; in getFromArray()
624 protected static void setTo(boolean[] arr, int index, boolean value) { in setTo() argument
[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.cpp66 const auto& arr = implicit_layers_; in Parse() local
67 if (arr.result != VK_SUCCESS) in Parse()
68 return arr.result; in Parse()
71 if (!arr.count) in Parse()
74 names_ = AllocateNameArray(arr.count + count); in Parse()
79 for (uint32_t i = 0; i < arr.count; i++) in Parse()
82 name_count_ = arr.count; in Parse()
126 auto& arr = implicit_layers_; in AddImplicitLayers() local
127 std::sort(arr.elements, arr.elements + arr.count, in AddImplicitLayers()
186 auto& arr = implicit_layers_; in AddImplicitLayer() local
[all …]
/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/java/tests/RsTest/src/com/android/rs/test/
Dsmall_struct.rs20 small_struct arr[ARRAY_LEN];
37 _RS_ASSERT_EQU((*v).arr[idx].i, gIntStart + y * gDimX + x + idx);
38 _RS_ASSERT_EQU((*v).arr[idx].l, gLongStart + y * gDimX + x + idx);
63 output.arr[idx].i = gIntStart + y * gDimX + x + idx;
64 output.arr[idx].l = gLongStart + y * gDimX + x + idx;
/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 …]
DGLLogWrapper.java118 private void arg(String name, int n, int[] arr, int offset) { in arg() argument
119 arg(name, toString(n, FORMAT_INT, arr, offset)); in arg()
122 private void arg(String name, int n, short[] arr, int offset) { in arg() argument
123 arg(name, toString(n, arr, offset)); in arg()
126 private void arg(String name, int n, float[] arr, int offset) { in arg() argument
127 arg(name, toString(n, arr, offset)); in arg()
144 private String toString(int n, int format, int[] arr, int offset) { in toString() argument
147 int arrLen = arr.length; in toString()
154 formattedAppend(buf, arr[index], format); in toString()
162 private String toString(int n, short[] arr, int offset) { in toString() argument
[all …]
/frameworks/base/tools/layoutlib/bridge/tests/res/testApp/MyApplication/build/intermediates/classes/debug/com/android/layoutlib/test/myapplication/
DArraysCheckWidget.class ... , int, int) CharSequence chars CharSequence[] arr$ int len$ int i$ int i int ...
/frameworks/base/keystore/java/android/security/keystore/
DArrayUtils.java58 public static byte[] subarray(byte[] arr, int offset, int len) { in subarray() argument
62 if ((offset == 0) && (len == arr.length)) { in subarray()
63 return arr; in subarray()
66 System.arraycopy(arr, offset, result, 0, len); in subarray()
/frameworks/base/core/java/android/hardware/camera2/marshal/impl/
DMarshalQueryableString.java47 byte[] arr = value.getBytes(UTF8_CHARSET); in marshal()
49 buffer.put(arr); in marshal()
55 byte[] arr = value.getBytes(UTF8_CHARSET); in calculateMarshalSize()
57 return arr.length + 1; // metadata strings are NUL-terminated in calculateMarshalSize()
/frameworks/base/services/core/jni/
Dcom_android_server_ConsumerIrService.cpp89 jint *arr = freqsOut.get(); in halGetCarrierFrequencies() local
90 if (arr == NULL) { in halGetCarrierFrequencies()
95 arr[i*2] = ranges[i].min; in halGetCarrierFrequencies()
96 arr[i*2+1] = ranges[i].max; in halGetCarrierFrequencies()
/frameworks/data-binding/integration-tests/TestApp/app/src/androidTestApi7/java/android/databinding/testapp/
DGenericAdapterTest.java35 String[] arr = { "Hello", "World" }; in testGenericArgs() local
36 List<String> list = Arrays.asList(arr); in testGenericArgs()
38 getBinder().setArr(arr); in testGenericArgs()
/frameworks/base/core/java/com/android/internal/util/
DBitwiseInputStream.java97 byte[] arr = new byte[bytes]; in readByteArray()
100 arr[i] = (byte)(read(increment) << (8 - increment)); in readByteArray()
102 return arr; in readByteArray()
DBitwiseOutputStream.java112 public void writeByteArray(int bits, byte[] arr) throws AccessException { in writeByteArray() argument
113 for (int i = 0; i < arr.length; i++) { in writeByteArray()
116 write(increment, (byte)(arr[i] >>> (8 - increment))); in writeByteArray()
/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/core/java/android/database/
DDatabaseUtils.java403 byte [] arr = getCollationKeyInBytes(name); in getCollationKey()
405 return new String(arr, 0, getKeyLen(arr), "ISO8859_1"); in getCollationKey()
417 byte[] arr = getCollationKeyInBytes(name); in getHexCollationKey()
418 char[] keys = encodeHex(arr); in getHexCollationKey()
419 return new String(keys, 0, getKeyLen(arr) * 2); in getHexCollationKey()
444 private static int getKeyLen(byte[] arr) { in getKeyLen() argument
445 if (arr[arr.length - 1] != 0) { in getKeyLen()
446 return arr.length; in getKeyLen()
449 return arr.length-1; in getKeyLen()
/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/ex/camera2/portability/src/com/android/ex/camera2/portability/
DAndroidCamera2AgentImpl.java1407 private static float[] rotate(float[] arr, int times) { in rotate() argument
1409 times = times % arr.length + arr.length; in rotate()
1412 float[] res = new float[arr.length]; in rotate()
1413 for (int offset = 0; offset < arr.length; ++offset) { in rotate()
1414 res[offset] = arr[(times + offset) % arr.length]; in rotate()
/frameworks/data-binding/integration-tests/App With Spaces/gradle/wrapper/
Dgradle-wrapper.jar ... .File file java.io.File[] arr$ int len$ int i$ java.io ...
/frameworks/base/wifi/java/android/net/wifi/
DWifiEnterpriseConfig.java981 private int getStringIndex(String arr[], String toBeFound, int defaultIndex) { in getStringIndex() argument
983 for (int i = 0; i < arr.length; i++) { in getStringIndex()
984 if (toBeFound.equals(arr[i])) return i; in getStringIndex()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
DRationalTest.java480 byte[] arr = serialize(obj); in serializeRoundTrip()
481 T serialized = deserialize(arr, klass); in serializeRoundTrip()
/frameworks/base/core/tests/coretests/src/android/database/
DDatabaseGeneralTest.java326 String[] arr = new String[1]; in testCopyString() local
327 arr[0] = chinese; in testCopyString()
328 mDatabase.execSQL("INSERT INTO guess (numi,numf,str) VALUES (-32768,-1.0,?)", arr); in testCopyString()

12