Searched defs:array (Results 1 - 25 of 38) sorted by last modified time

12

/packages/services/Telecomm/libs/
H A Dguava.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/google/common/ com/google/common/util/ ...
/packages/services/Car/service/src/com/android/car/
H A DCarAudioService.java1238 private void fillExtRoutingPositionLocked(int[] array, String extSource) { argument
1253 array[index] |= (0x1 << bitPosInInt);
H A DCarVolumeControllerFactory.java691 private void dumpVolumes(PrintWriter writer, SparseArray<Integer> array) { argument
692 for (int i = 0; i < array.size(); i++) {
693 writer.println("0x" + Integer.toHexString(array.keyAt(i)) + ":" + array.valueAt(i));
/packages/services/Car/vehicle-hal-support-lib/src/com/android/car/vehiclehal/
H A DUtils.java32 SparseArrayEntry(SparseArray<U> array, int index) { argument
33 key = array.keyAt(index);
34 value = array.valueAt(index);
41 SparseArrayIterator(SparseArray<T> array) { argument
42 mArray = array;
/packages/services/BuiltInPrintService/jni/lib/
H A DwprintJNI.c217 // fill in first cell of end num with 0 so array has a valid number
1226 * array to complete the job
1251 jobjectArray array; local
1254 array = (jobjectArray) fileArray;
1255 len = (*env)->GetArrayLength(env, array);
1271 jstring page = (jstring) (*env)->GetObjectArrayElement(env, array, pageIndex);
1289 jstring page = (jstring) (*env)->GetObjectArrayElement(env, array, index);
1337 jstring page = (jstring) (*env)->GetObjectArrayElement(env, array, index);
/packages/providers/ContactsProvider/src/com/android/providers/contacts/util/
H A DHex.java19 * Basic hex operations: from byte array to string and vice versa.
54 * Quickly converts a byte array to a hexadecimal string representation.
56 * @param array byte array, possibly zero-terminated.
58 public static String encodeHex(byte[] array, boolean zeroTerminated) { argument
59 char[] cArray = new char[array.length * 2];
62 for (int i = 0; i < array.length; i++) {
63 int index = array[i] & 0xFF;
64 if (zeroTerminated && index == 0 && i == array.length-1) {
76 * Quickly converts a hexadecimal string to a byte array
[all...]
/packages/providers/ContactsProvider/test_common/src/com/android/providers/contacts/testutil/
H A DCommonDatabaseUtils.java67 private static void fillArray(Cursor cursor, String[] array) { argument
68 for (int i = 0; i < array.length; i++) {
69 array[i] = cursor.getString(i);
98 * Returns an array of values extracted from a {@link ContentValues}, based on the order of
100 * @param values {@link ContentValues} object containing the values to convert into an array
101 * @param projection array of column names
103 * @return array of values, in the correct order as defined by the projection
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/
H A DUserDictionaryToolsList.java648 * @param array The array list of the words
650 protected void compareTo(ArrayList<WnnWord> array) { argument
651 mSortData = new WnnWord[array.size()];
652 array.toArray(mSortData);
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
H A DMoreKeySpec.java36 * The more key specification object. The more keys are an array of {@link MoreKeySpec}.
179 * Split the text containing multiple key specifications separated by commas into an array of
183 * Note that an empty key specification will be eliminated from the result array.
186 * @return an array of key specification text. Null if the specified <code>text</code> is empty
236 private static String[] filterOutEmptyString(@Nullable final String[] array) { argument
237 if (array == null) {
241 for (int i = 0; i < array.length; i++) {
242 final String entry = array[i];
245 out = CollectionUtils.arrayAsList(array, 0, i);
252 return array;
[all...]
/packages/inputmethods/LatinIME/native/jni/src/utils/
H A Dint_array_view.h21 #include <array>
31 * Helper class used to provide a read-only view of a given range of integer array. This class
32 * does not take ownership of the underlying integer array but is designed to be a lightweight
62 AK_FORCE_INLINE static IntArrayView fromArray(const std::array<int, N> &array) { argument
63 return IntArrayView(array.data(), array.size());
113 void copyToArray(std::array<int, N> *const buffer, const size_t offset) const {
170 using WordIdArray = std::array<int, size>;
H A Djni_data_utils.h34 static void jintarrayToVector(JNIEnv *env, jintArray array, std::vector<int> *const outVector) { argument
35 if (!array) {
39 const jsize arrayLength = env->GetArrayLength(array);
41 env->GetIntArrayRegion(array, 0 /* start */, arrayLength, outVector->data());
130 static void putBooleanToArray(JNIEnv *env, jbooleanArray array, const int index, argument
132 env->SetBooleanArrayRegion(array, index, 1 /* len */, &value);
135 static void putIntToArray(JNIEnv *env, jintArray array, const int index, const int value) { argument
136 env->SetIntArrayRegion(array, index, 1 /* len */, &value);
139 static void putFloatToArray(JNIEnv *env, jfloatArray array, const int index, argument
141 env->SetFloatArrayRegion(array, inde
[all...]
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/
H A DKeyboardThemeTests.java351 * Test that KeyboardTheme array should be sorted by descending order of
354 private static void assertSortedKeyboardThemeArray(final KeyboardTheme[] array) { argument
355 assertNotNull(array);
356 final int length = array.length;
357 assertTrue("array length=" + length, length > 0);
359 final KeyboardTheme theme = array[index];
360 final KeyboardTheme nextTheme = array[index + 1];
/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]);
H A DStringUtils.java63 * @param tokens an array objects to be joined. Strings will be formed from
120 // Optimization: avoid creating a temporary array for characters that are
129 @Nonnull final String[] array) {
130 for (final String element : array) {
174 * Remove duplicates from an array of strings.
177 * in the array, removing the subsequent ones.
240 * Converts a range of a string to an array of code points.
244 * @return a new array of code points. At most endIndex - startIndex, but possibly less.
261 * Copies the codepoints in a CharSequence to an int array.
263 * This method assumes there is enough space in the array t
128 containsInArray(@onnull final String text, @Nonnull final String[] array) argument
644 join(@ullable final E[] array) argument
649 join(@ullable final E[] array, @Nullable final String delimiter) argument
654 toStringArray(@ullable final E[] array) argument
[all...]
/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/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/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/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/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/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)) {

Completed in 6140 milliseconds

12