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

12345

/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/Settings/src/com/android/settings/wifi/
H A DSummary.java27 ? R.array.wifi_status : R.array.wifi_status_with_ssid);
/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/apps/Camera/src/com/android/camera/
H A DIconListPreference.java75 TypedArray array = res.obtainTypedArray(iconsRes);
76 int n = array.length();
79 ids[i] = array.getResourceId(i, 0);
81 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/
H A DAccountWithDataSet.java157 final String[] array = STRINGIFY_SEPARATOR_PAT.split(s, 3);
158 if (array.length < 3) {
161 return new AccountWithDataSet(array[0], array[1],
162 TextUtils.isEmpty(array[2]) ? null : array[2]);
192 final String[] array = ARRAY_STRINGIFY_SEPARATOR_PAT.split(s);
194 for (int i = 0; i < array.length; i++) {
195 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/keyboard/internal/
H A DKeySpecParser.java232 private static <T> ArrayList<T> arrayAsList(T[] array, int start, int end) { argument
233 if (array == null) {
236 if (start < 0 || start > end || end > array.length) {
242 list.add(array[i]);
249 private static String[] filterOutEmptyString(String[] array) { argument
250 if (array == null) {
254 for (int i = 0; i < array.length; i++) {
255 final String entry = array[i];
258 out = arrayAsList(array, 0, i);
265 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/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
H A DSubtypeLocale.java75 final String[] predefinedLayoutSet = res.getStringArray(R.array.predefined_layouts);
78 R.array.predefined_layout_display_names);
94 R.array.subtype_locale_exception_keys);
96 R.array.subtype_locale_exception_values);
106 R.array.locale_and_extra_value_to_keyboard_layout_set_map);
/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/data/
H A DImageCacheRequest.java89 byte[] array = BitmapUtils.compressToBytes(bitmap);
92 cacheService.putImageData(mPath, mType, array);
/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/Browser/src/com/android/browser/preferences/
H A DFontSizePreview.java52 Object[] visualNames = res.getStringArray(R.array.pref_text_size_choices);
/packages/apps/Browser/src/com/android/browser/search/
H A DSearchEngines.java39 String[] searchEngines = res.getStringArray(R.array.search_engines);
/packages/apps/Calendar/src/com/android/calendar/
H A DEditResponseHelper.java81 .setSingleChoiceItems(R.array.change_response_labels, whichEvents, mListListener)
/packages/apps/Contacts/tests/src/com/android/contacts/tests/widget/
H A DPinnedHeaderUseCaseActivity.java43 getResources().getStringArray(R.array.pinnedHeaderUseCases)));
/packages/apps/Settings/src/com/android/settings/bluetooth/
H A DBluetoothVisibilityTimeoutFragment.java58 .setSingleChoiceItems(R.array.bluetooth_visibility_timeout_entries,

Completed in 370 milliseconds

12345