Searched refs:arr (Results 1 - 22 of 22) sorted by relevance

/frameworks/base/docs/html/
H A 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) {
45 arr = arr || [];
47 for (var i = 0; i < arr.length; i++) {
48 set[arr[
[all...]
/frameworks/data-binding/integration-tests/TestApp/app/src/androidTestApi7/java/android/databinding/testapp/
H A DGenericAdapterTest.java35 String[] arr = { "Hello", "World" };
36 List<String> list = Arrays.asList(arr);
38 getBinder().setArr(arr);
/frameworks/data-binding/extensions/library/src/main/java/android/databinding/
H A DViewDataBinding.java600 protected static <T> T getFromArray(T[] arr, int index) { argument
601 if (arr == null || index < 0 || index >= arr.length) {
604 return arr[index];
608 protected static <T> void setTo(T[] arr, int index, T value) { argument
609 if (arr == null || index < 0 || index >= arr.length) {
612 arr[index] = value;
616 protected static boolean getFromArray(boolean[] arr, int index) { argument
617 if (arr
624 setTo(boolean[] arr, int index, boolean value) argument
632 getFromArray(byte[] arr, int index) argument
640 setTo(byte[] arr, int index, byte value) argument
648 getFromArray(short[] arr, int index) argument
656 setTo(short[] arr, int index, short value) argument
664 getFromArray(char[] arr, int index) argument
672 setTo(char[] arr, int index, char value) argument
680 getFromArray(int[] arr, int index) argument
688 setTo(int[] arr, int index, int value) argument
696 getFromArray(long[] arr, int index) argument
704 setTo(long[] arr, int index, long value) argument
712 getFromArray(float[] arr, int index) argument
720 setTo(float[] arr, int index, float value) argument
728 getFromArray(double[] arr, int index) argument
736 setTo(double[] arr, int index, double value) argument
[all...]
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/exif/
H A DExifTag.java482 Short[] arr = (Short[]) obj;
483 int[] fin = new int[arr.length];
484 for (int i = 0; i < arr.length; i++) {
485 fin[i] = (arr[i] == null) ? 0 : arr[i].shortValue() & 0x0ffff;
490 Integer[] arr = (Integer[]) obj;
491 int[] fin = new int[arr.length];
492 for (int i = 0; i < arr.length; i++) {
493 fin[i] = (arr[i] == null) ? 0 : arr[
[all...]
/frameworks/base/core/java/android/hardware/camera2/marshal/impl/
H A DMarshalQueryableString.java47 byte[] arr = value.getBytes(UTF8_CHARSET);
49 buffer.put(arr);
55 byte[] arr = value.getBytes(UTF8_CHARSET);
57 return arr.length + 1; // metadata strings are NUL-terminated
/frameworks/base/keystore/java/android/security/keystore/
H A DArrayUtils.java58 public static byte[] subarray(byte[] arr, int offset, int len) { argument
62 if ((offset == 0) && (len == arr.length)) {
63 return arr;
66 System.arraycopy(arr, offset, result, 0, len);
/frameworks/base/services/core/jni/
H A Dcom_android_server_ConsumerIrService.cpp89 jint *arr = freqsOut.get(); local
90 if (arr == NULL) {
95 arr[i*2] = ranges[i].min;
96 arr[i*2+1] = ranges[i].max;
/frameworks/base/core/java/com/android/internal/util/
H A DBitwiseInputStream.java97 byte[] arr = new byte[bytes];
100 arr[i] = (byte)(read(increment) << (8 - increment));
102 return arr;
H A DBitwiseOutputStream.java110 * @param arr the byte array containing data to be written
112 public void writeByteArray(int bits, byte[] arr) throws AccessException { argument
113 for (int i = 0; i < arr.length; i++) {
116 write(increment, (byte)(arr[i] >>> (8 - increment)));
/frameworks/base/core/java/android/hardware/camera2/utils/
H A DArrayUtils.java149 int[] arr = new int[list.size()];
152 arr[i] = elem;
156 return arr;
/frameworks/native/vulkan/libvulkan/
H A Dapi.cpp66 const auto& arr = implicit_layers_; local
67 if (arr.result != VK_SUCCESS)
68 return arr.result;
71 if (!arr.count)
74 names_ = AllocateNameArray(arr.count + count);
79 for (uint32_t i = 0; i < arr.count; i++)
82 name_count_ = arr.count;
126 auto& arr = implicit_layers_; local
127 std::sort(arr.elements, arr
216 auto& arr = implicit_layers_; local
268 const auto& arr = implicit_layers_; local
275 const auto& arr = implicit_layers_; local
[all...]
/frameworks/base/opengl/java/android/opengl/
H A DEGLLogWrapper.java479 private void arg(String name, int[] arr) { argument
480 if (arr == null) {
483 arg(name, toString(arr.length, arr, 0));
487 private void arg(String name, Object[] arr) { argument
488 if (arr == null) {
491 arg(name, toString(arr.length, arr, 0));
495 private String toString(int n, int[] arr, int offset) { argument
498 int arrLen = arr
513 toString(int n, Object[] arr, int offset) argument
[all...]
H A DGLLogWrapper.java118 private void arg(String name, int n, int[] arr, int offset) { argument
119 arg(name, toString(n, FORMAT_INT, arr, offset));
122 private void arg(String name, int n, short[] arr, int offset) { argument
123 arg(name, toString(n, arr, offset));
126 private void arg(String name, int n, float[] arr, int offset) { argument
127 arg(name, toString(n, arr, offset));
144 private String toString(int n, int format, int[] arr, int offset) { argument
147 int arrLen = arr.length;
154 formattedAppend(buf, arr[index], format);
162 private String toString(int n, short[] arr, in argument
180 toString(int n, float[] arr, int offset) argument
[all...]
/frameworks/base/packages/WAPPushManager/tests/src/com/android/smspush/unitTests/
H A DWapPushTest.java837 protected int encodeUint32(int uint32Val, byte[] arr, int start) { argument
849 if (arr == null) return encodeLen;
859 arr[start + i] = (byte) (val & 0xFF);
865 protected int encodeShortInt(int sintVal, byte[] arr, int start) { argument
870 arr[start] = (byte) (sintVal | 0x80);
878 protected void createRandomWspHeader(byte[] arr, Random rd, int headerStart, argument
885 Log.d(LOG_TAG, "random arr length:" + arr.length);
891 int len = arr.length;
927 arr[inde
1087 createRandomWspHeaderStrAppId(byte[] arr, Random rd, int headerStart, boolean randomStr) argument
[all...]
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/
H A DAndroidCamera2AgentImpl.java1407 private static float[] rotate(float[] arr, int times) { argument
1409 times = times % arr.length + arr.length;
1412 float[] res = new float[arr.length];
1413 for (int offset = 0; offset < arr.length; ++offset) {
1414 res[offset] = arr[(times + offset) % arr.length];
/frameworks/base/wifi/java/android/net/wifi/
H A DWifiEnterpriseConfig.java976 * @param arr array of strings
981 private int getStringIndex(String arr[], String toBeFound, int defaultIndex) { argument
983 for (int i = 0; i < arr.length; i++) {
984 if (toBeFound.equals(arr[i])) return i;
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
H A DRationalTest.java480 byte[] arr = serialize(obj);
481 T serialized = deserialize(arr, klass);
/frameworks/base/core/tests/coretests/src/android/database/
H A DDatabaseGeneralTest.java326 String[] arr = new String[1];
327 arr[0] = chinese;
328 mDatabase.execSQL("INSERT INTO guess (numi,numf,str) VALUES (-32768,-1.0,?)", arr);
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/
H A DCameraTestUtils.java765 public static <T> void assertArrayNotEmpty(T arr, String message) { argument
766 assertTrue(message, arr != null && Array.getLength(arr) > 0);
/frameworks/support/v17/tests/src/android/support/v17/leanback/widget/
H A DGridWidgetTest.java249 ArrayList<View> arr = rows.get(rowLocation);
250 View[] views = arr.toArray(new View[arr.size()]);
/frameworks/base/core/java/android/view/
H A DView.java4897 TypedArray arr = mContext.obtainStyledAttributes(com.android.internal.R.styleable.View);
4899 initializeFadingEdgeInternal(arr);
4901 arr.recycle();
5037 TypedArray arr = mContext.obtainStyledAttributes(com.android.internal.R.styleable.View);
5039 initializeScrollbarsInternal(arr);
5042 arr.recycle();
/frameworks/data-binding/prebuilds/1.0-rc0/
H A Ddatabinding-studio-bundle.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/databinding/ android/databinding/Bindable.class Bindable. ...

Completed in 771 milliseconds