Searched defs:array (Results 1 - 25 of 38) sorted by path

12

/packages/apps/Bluetooth/jni/
H A Dcom_android_bluetooth_gatt.cpp428 void fillGattDbElementArray(JNIEnv* env, jobject* array, argument
486 env->CallBooleanMethod(*array, arrayAdd, element.get());
496 ScopedLocalRef<jobject> array(
502 jobject arrayPtr = array.get();
506 array.get());
583 ScopedLocalRef<jobject> array(
588 jobject arrayPtr = array.get();
593 server_if, array.get());
1101 warn("gattClientWriteCharacteristicNative() ignoring NULL array");
1128 warn("gattClientWriteDescriptorNative() ignoring NULL array");
1654 jbyte* array = env->GetByteArrayElements(val, 0); local
[all...]
/packages/apps/Calendar/src/com/android/calendar/month/
H A DMonthWeekEventsView.java229 * This provides a reference to a float array which allows for easy size
233 float[] array; field in class:MonthWeekEventsView.FloatRef
236 array = new float[size];
240 if (newSize >= array.length) {
242 array = Arrays.copyOf(array, newSize + 16 * 7);
781 lines.array[count++] = x;
782 lines.array[count++] = y;
783 lines.array[count++] = x + EVENT_SQUARE_WIDTH;
784 lines.array[coun
[all...]
/packages/apps/Calendar/tests/src/com/android/calendar/alerts/
H A DAlertServiceTest.java281 private <T> boolean nullContents(T[] array) { argument
282 for (T item : array) {
/packages/apps/DeskClock/src/com/android/deskclock/
H A DUtils.java99 public static int indexOf(Object[] array, Object item) { argument
100 for (int i = 0; i < array.length; i++) {
101 if (array[i].equals(item)) {
/packages/apps/DeskClock/src/com/android/deskclock/settings/
H A DSimpleMenuPreference.java62 private static void restoreOriginalOrder(CharSequence[] array, argument
64 final CharSequence item = array[0];
65 System.arraycopy(array, 1, array, 0, lastSelectedOriginalPosition);
66 array[lastSelectedOriginalPosition] = item;
69 private static void swapSelectedToFront(CharSequence[] array, int position) { argument
70 final CharSequence item = array[position];
71 System.arraycopy(array, 0, array, 1, position);
72 array[
75 setSelectedPosition(CharSequence[] array, int lastSelectedOriginalPosition, int position) argument
[all...]
/packages/apps/Dialer/java/com/android/voicemail/impl/configui/
H A DConfigOverrideFragment.java158 private static String toCsv(String[] array) { argument
159 if (array == null) {
163 for (String element : array) {
/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/
H A DSortDocumentUiTest.java237 private static String[] reverse(String[] array) { argument
238 String[] ret = new String[array.length];
240 for (int i = 0; i < array.length; ++i) {
241 ret[ret.length - i - 1] = array[i];
/packages/apps/Email/tests/src/com/android/email/
H A DTestUtils.java42 /** Shortcut to create byte array */
43 public static byte[] b(int... array) { argument
44 if (array == null) {
47 byte[] ret = new byte[array.length];
49 ret[i] = (byte) array[i];
/packages/apps/Gallery/src/com/android/camera/
H A DUtil.java243 public static <T> int indexOf(T [] array, T s) { argument
244 for (int i = 0; i < array.length; i++) {
245 if (array[i].equals(s)) {
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
H A DUtils.java123 public static void swap(int[] array, int i, int j) { argument
124 int temp = array[i];
125 array[i] = array[j];
126 array[j] = temp;
/packages/apps/Gallery2/src/com/android/gallery3d/data/
H A DLocalAlbumSet.java202 // Circular shift the array range from a[i] to a[j] (inclusive). That is,
204 private static <T> void circularShiftRight(T[] array, int i, int j) { argument
205 T temp = array[j];
207 array[k] = array[k - 1];
209 array[i] = temp;
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/crop/
H A DCropMath.java30 * Gets a float array of the 2D coordinates representing a rectangles
32 * The order of the corners in the float array is:
39 * @return the float array of corners (8 floats)
67 * Takes an array of 2D coordinates representing corners and returns the
70 * @param array array of 2D coordinates
73 public static RectF trapToRect(float[] array) { argument
76 for (int i = 1; i < array.length; i += 2) {
77 float x = array[i - 1];
78 float y = array[
96 getEdgePoints(RectF imageBound, float[] array) argument
[all...]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
H A DImageFilterCurves.java44 public void populateArray(int[] array, int curveIndex) { argument
51 array[i] = (int) (curve[i] * 255);
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
H A DSlotView.java231 private static int[] expandIntArray(int array[], int capacity) { argument
232 while (array.length < capacity) {
233 array = new int[array.length * 2];
235 return array;
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/task/
H A DDeleteNonRequiredAppsTaskTest.java164 private <T> Set<T> setFromArray(T... array) { argument
165 if (array == null) {
168 return new HashSet<>(Arrays.asList(array));
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/task/nonrequiredapps/
H A DOverlayPackagesProviderTest.java237 verifyEmptyIntersection(R.array.required_apps_managed_device,
238 R.array.disallowed_apps_managed_device);
243 verifyEmptyIntersection(R.array.required_apps_managed_user,
244 R.array.disallowed_apps_managed_user);
249 verifyEmptyIntersection(R.array.required_apps_managed_profile,
250 R.array.disallowed_apps_managed_profile);
255 verifyEmptyIntersection(R.array.vendor_required_apps_managed_device,
256 R.array.vendor_disallowed_apps_managed_device);
261 verifyEmptyIntersection(R.array.vendor_required_apps_managed_user,
262 R.array
373 setFromArray(T... array) argument
[all...]
/packages/apps/Messaging/build/gcheckstyle/
H A Dgoogle-style-checker_deploy.jarMETA-INF/ META-INF/MANIFEST.MF build-data.properties com/ com/google/ com/google/ ...
/packages/apps/Messaging/src/android/support/v7/mms/pdu/
H A DEncodedStringValue.java209 * @return the array of encoded strings computed by splitting this encoded
272 public static EncodedStringValue[] encodeStrings(String[] array) { argument
273 int count = array.length;
277 encodedArray[i] = new EncodedStringValue(array[i]);
/packages/apps/Messaging/src/com/android/messaging/mmslib/pdu/
H A DEncodedStringValue.java224 * @return the array of encoded strings computed by splitting this encoded
287 public static EncodedStringValue[] encodeStrings(String[] array) { argument
288 int count = array.length;
292 encodedArray[i] = new EncodedStringValue(array[i]);
H A DPduPersister.java724 final long msgId, final int type, final EncodedStringValue[] array) {
727 for (final EncodedStringValue addr : array) {
1057 final long msgId, final int type, final EncodedStringValue[] array) {
1063 persistAddress(msgId, type, array);
1147 EncodedStringValue[] array = null;
1151 array = new EncodedStringValue[1];
1152 array[0] = v;
1155 array = headers.getEncodedStringValues(addrType);
1158 if (array != null) {
1160 updateAddress(msgId, addrType, array);
723 persistAddress( final long msgId, final int type, final EncodedStringValue[] array) argument
1056 updateAddress( final long msgId, final int type, final EncodedStringValue[] array) argument
[all...]
/packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/utils/
H A DArrayUtils.java27 * Checks that value is present as at least one of the elements of the array.
28 * @param array the array to check in
30 * @return true if the value is present in the array
32 public static <T> boolean contains(T[] array, T value) { argument
33 return indexOf(array, value) != -1;
37 * Return first index of {@code value} in {@code array}, or {@code -1} if
40 public static <T> int indexOf(T[] array, T value) { argument
41 if (array == null) return -1;
42 for (int i = 0; i < array
[all...]
/packages/apps/TV/libs/
H A Dexoplayer.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/google/android/ com/google/android/exoplayer/ ...
H A Dexoplayer_v2.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/google/android/ com/google/android/exoplayer2/ ...
/packages/apps/UnifiedEmail/src/org/apache/commons/io/input/
H A DCharSequenceReader.java87 * Read the sepcified number of characters into the array.
89 * @param array The array to store the characters in
90 * @param offset The starting position in the array to store
95 public int read(char[] array, int offset, int length) { argument
99 if (array == null) {
100 throw new NullPointerException("Character array is missing");
102 if (length < 0 || (offset + length) > array.length) {
103 throw new IndexOutOfBoundsException("Array Size=" + array.length +
112 array[offse
[all...]
/packages/inputmethods/LatinIME/common/src/com/android/inputmethod/latin/common/
H A DCollectionUtils.java37 * Converts a sub-range of the given array to an ArrayList of the appropriate type.
38 * @param array Array to be converted.
44 public static <E> ArrayList<E> arrayAsList(@Nonnull final E[] array, final int start, argument
46 if (start < 0 || start > end || end > array.length) {
48 + " with array.length: " + array.length);
53 list.add(array[i]);

Completed in 1069 milliseconds

12