Searched defs:arr (Results 1 - 19 of 19) sorted by relevance

/frameworks/base/core/java/com/android/internal/util/
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/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.cpp74 jint *arr = freqsOut.get(); local
75 if (arr == NULL) {
79 arr[i*2] = static_cast<jint>(ranges[i].min);
80 arr[i*2+1] = static_cast<jint>(ranges[i].max);
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
H A DRadioConfig.java283 private static ArrayList<Integer> primitiveArrayToArrayList(int[] arr) { argument
284 ArrayList<Integer> arrayList = new ArrayList<>(arr.length);
285 for (int i : arr) {
H A DRIL.java5124 public static ArrayList<Byte> primitiveArrayToArrayList(byte[] arr) { argument
5125 ArrayList<Byte> arrayList = new ArrayList<>(arr.length);
5126 for (byte b : arr) {
5133 public static ArrayList<Integer> primitiveArrayToArrayList(int[] arr) { argument
5134 ArrayList<Integer> arrayList = new ArrayList<>(arr.length);
5135 for (int i : arr) {
/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/services/core/java/com/android/server/display/
H A DBrightnessMappingStrategy.java278 * This assumes that {@code arr} is sorted. If all values in {@code arr} are greater
279 * than val, then it will return the length of arr as the insertion point.
281 private static int findInsertionPoint(float[] arr, float val) { argument
282 for (int i = 0; i < arr.length; i++) {
283 if (val <= arr[i]) {
287 return arr.length;
/frameworks/base/core/java/com/android/internal/util/function/pooled/
H A DPooledLambdaImpl.java373 private String commaSeparateFirstN(@Nullable Object[] arr, int n) { argument
374 if (arr == null) return "";
375 return TextUtils.join(",", Arrays.copyOf(arr, n));
/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/base/core/java/android/database/
H A DDatabaseUtils.java403 byte [] arr = getCollationKeyInBytes(name);
405 return new String(arr, 0, getKeyLen(arr), "ISO8859_1");
417 byte[] arr = getCollationKeyInBytes(name);
418 char[] keys = encodeHex(arr);
419 return new String(keys, 0, getKeyLen(arr) * 2);
444 private static int getKeyLen(byte[] arr) { argument
445 if (arr[arr.length - 1] != 0) {
446 return arr
[all...]
/frameworks/base/wifi/java/android/net/wifi/
H A DWifiEnterpriseConfig.java1038 * @param arr array of strings
1043 private int getStringIndex(String arr[], String toBeFound, int defaultIndex) { argument
1045 for (int i = 0; i < arr.length; i++) {
1046 if (toBeFound.equals(arr[i])) return i;
/frameworks/data-binding/extensions/library/src/main/java/android/databinding/
H A DViewDataBinding.java670 protected static <T> T getFromArray(T[] arr, int index) { argument
671 if (arr == null || index < 0 || index >= arr.length) {
674 return arr[index];
678 protected static <T> void setTo(T[] arr, int index, T value) { argument
679 if (arr == null || index < 0 || index >= arr.length) {
682 arr[index] = value;
686 protected static boolean getFromArray(boolean[] arr, int index) { argument
687 if (arr
694 setTo(boolean[] arr, int index, boolean value) argument
702 getFromArray(byte[] arr, int index) argument
710 setTo(byte[] arr, int index, byte value) argument
718 getFromArray(short[] arr, int index) argument
726 setTo(short[] arr, int index, short value) argument
734 getFromArray(char[] arr, int index) argument
742 setTo(char[] arr, int index, char value) argument
750 getFromArray(int[] arr, int index) argument
758 setTo(int[] arr, int index, int value) argument
766 getFromArray(long[] arr, int index) argument
774 setTo(long[] arr, int index, long value) argument
782 getFromArray(float[] arr, int index) argument
790 setTo(float[] arr, int index, float value) argument
798 getFromArray(double[] arr, int index) argument
806 setTo(double[] arr, int index, double value) 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/core/java/android/hardware/radio/
H A DRadioManager.java257 private static Set<Integer> arrayToSet(int[] arr) { argument
258 return Arrays.stream(arr).boxed().collect(Collectors.toSet());
/frameworks/base/media/jni/
H A Dandroid_mtp_MtpDatabase.cpp1289 jlong* arr = env->GetLongArrayElements(mLongBuffer, 0); local
1290 result->setFormRange(0, arr[1], 1);
1291 result->mCurrentValue.u.u8 = (uint8_t) arr[0];
1292 env->ReleaseLongArrayElements(mLongBuffer, arr, 0);
1297 jlong* arr = env->GetLongArrayElements(mLongBuffer, 0); local
1299 result->mCurrentValue.u.u32 = (uint32_t) arr[0];
1300 env->ReleaseLongArrayElements(mLongBuffer, arr, 0);
/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/native/vulkan/libvulkan/
H A Dapi.cpp71 const auto& arr = implicit_layers_; local
72 if (arr.result != VK_SUCCESS)
73 return arr.result;
76 if (!arr.count)
79 names_ = AllocateNameArray(arr.count + count);
84 for (uint32_t i = 0; i < arr.count; i++)
87 name_count_ = arr.count;
135 auto& arr = implicit_layers_; local
136 std::sort(arr.elements, arr
239 auto& arr = implicit_layers_; local
291 const auto& arr = implicit_layers_; local
298 const auto& arr = implicit_layers_; local
[all...]
/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 401 milliseconds