Searched refs:array (Results 1 - 25 of 131) sorted by relevance

123456

/packages/apps/Exchange/exchange2/src/com/android/exchange/
H A DMockParserStream.java31 int[] array; field in class:MockParserStream
36 array = _array;
42 return array[pos++];
/packages/apps/Email/src/org/apache/commons/io/
H A DFilenameUtils.java273 char[] array = new char[size + 2]; // +1 for possible extra slash, +2 for arraycopy
274 filename.getChars(0, filename.length(), array, 0);
277 for (int i = 0; i < array.length; i++) {
278 if (array[i] == OTHER_SEPARATOR) {
279 array[i] = SYSTEM_SEPARATOR;
285 if (array[size - 1] != SYSTEM_SEPARATOR) {
286 array[size++] = SYSTEM_SEPARATOR;
292 if (array[i] == SYSTEM_SEPARATOR && array[i - 1] == SYSTEM_SEPARATOR) {
293 System.arraycopy(array,
[all...]
/packages/apps/Email/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/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/apps/Gallery2/gallerycommon/src/com/android/gallery3d/exif/
H A DOrderedDataOutputStream.java39 out.write(mByteBuffer.array(), 0, 2);
45 out.write(mByteBuffer.array());
/packages/apps/Settings/src/com/android/settings/wifi/
H A DSummary.java27 ? R.array.wifi_status : R.array.wifi_status_with_ssid);
/packages/apps/Launcher2/src/com/android/launcher2/
H A DUserInitializeReceiver.java42 final String packageName = resources.getResourcePackageName(R.array.wallpapers);
44 addWallpapers(resources, packageName, R.array.wallpapers, list);
45 addWallpapers(resources, packageName, R.array.extra_wallpapers, list);
/packages/apps/Mms/src/com/android/mms/
H A DLogTag.java53 private static String prettyArray(String[] array) { argument
54 if (array.length == 0) {
59 int len = array.length-1;
61 sb.append(array[i]);
64 sb.append(array[len]);
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
H A DResizableIntArrayTests.java26 final int[] array = src.getPrimitiveArray();
28 assertNotNull("new instance array", array);
29 assertEquals("new instance array length", DEFAULT_CAPACITY, array.length);
34 final int[] array = src.getPrimitiveArray();
47 assertSame("array after add " + i, array, src.getPrimitiveArray());
49 assertSame("array after add " + i, array2, src.getPrimitiveArray());
51 assertSame("array afte
[all...]
/packages/apps/Camera/src/com/android/camera/
H A DIconListPreference.java84 TypedArray array = res.obtainTypedArray(iconsRes);
85 int n = array.length();
88 ids[i] = array.getResourceId(i, 0);
90 array.recycle();
/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/LegacyCamera/src/com/android/camera/
H A DIconListPreference.java77 TypedArray array = res.obtainTypedArray(iconsRes);
78 int n = array.length();
81 ids[i] = array.getResourceId(i, 0);
83 array.recycle();
/packages/apps/Contacts/src/com/android/contacts/model/account/
H A DAccountWithDataSet.java156 final String[] array = STRINGIFY_SEPARATOR_PAT.split(s, 3);
157 if (array.length < 3) {
160 return new AccountWithDataSet(array[0], array[1],
161 TextUtils.isEmpty(array[2]) ? null : array[2]);
191 final String[] array = ARRAY_STRINGIFY_SEPARATOR_PAT.split(s);
193 for (int i = 0; i < array.length; i++) {
194 ret.add(unstringify(array[i]));
/packages/apps/Email/src/com/android/email/
H A DResourceHelper.java42 mAccountColorArray = mResources.obtainTypedArray(R.array.combined_view_account_colors);
43 mAccountColors = mResources.getIntArray(R.array.combined_view_account_colors);
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
H A DCollectionUtils.java88 public static <E> CopyOnWriteArrayList<E> newCopyOnWriteArrayList(final E[] array) { argument
89 return new CopyOnWriteArrayList<E>(array);
H A DSubtypeLocale.java79 final String[] predefinedLayoutSet = res.getStringArray(R.array.predefined_layouts);
82 R.array.predefined_layout_display_names);
98 R.array.subtype_locale_exception_keys);
100 R.array.subtype_locale_exception_values);
110 R.array.locale_and_extra_value_to_keyboard_layout_set_map);
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
H A DKeySpecParser.java216 private static <T> ArrayList<T> arrayAsList(final T[] array, final int start, final int end) { argument
217 if (array == null) {
220 if (start < 0 || start > end || end > array.length) {
226 list.add(array[i]);
233 private static String[] filterOutEmptyString(final String[] array) { argument
234 if (array == null) {
238 for (int i = 0; i < array.length; i++) {
239 final String entry = array[i];
242 out = arrayAsList(array, 0, i);
249 return array;
[all...]
/packages/apps/Browser/src/com/android/browser/
H A DDateSortedExpandableListAdapter.java77 int array[] = new int[DateSorter.DAY_COUNT];
78 // Zero out the array.
80 array[j] = 0;
93 array[index] = mCursor.getCount()
99 array[dateIndex]++;
103 mItemMap = array;
107 * Get the byte array at cursorIndex from the Cursor. Assumes the Cursor
112 * @return corresponding byte array from the Cursor.
204 // the array is empty, in which case the provided groupPosition
H A DXLargeUi.java295 Drawable[] array = new Drawable[2];
296 array[0] = getFaviconBackground();
298 array[1] = mGenericFavicon;
300 array[1] = new BitmapDrawable(mActivity.getResources(), icon);
302 LayerDrawable d = new LayerDrawable(array);
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
H A DUtils.java122 public static void swap(int[] array, int i, int j) { argument
123 int temp = array[i];
124 array[i] = array[j];
125 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;
H A DImageCacheRequest.java94 byte[] array = BitmapUtils.compressToBytes(bitmap);
97 cacheService.putImageData(mPath, mType, array);
/packages/providers/DownloadProvider/ui/src/com/android/providers/downloads/ui/
H A DDateSortedExpandableListAdapter.java98 int array[] = new int[DateSorter.DAY_COUNT];
99 // Zero out the array.
101 array[j] = 0;
114 array[index] = mCursor.getCount()
120 array[dateIndex]++;
124 mItemMap = array;
128 * Get the byte array at cursorIndex from the Cursor. Assumes the Cursor
133 * @return corresponding byte array from the Cursor.
215 // the array is empty, in which case the provided groupPosition
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
H A DConfig.java117 mDefaultCorpora = loadResourceStringSet(R.array.default_corpora);
126 R.array.default_corpora_suggest_uris);
146 mHiddenCorpora = loadResourceStringSet(R.array.hidden_corpora);
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
H A DImageFilterCurves.java69 public void populateArray(int[] array, int curveIndex) { argument
76 array[i] = (int) (curve[i] * 255);

Completed in 554 milliseconds

123456