/packages/apps/Exchange/src/com/android/exchange/ |
H A D | MockParserStream.java | 31 int[] array; field in class:MockParserStream 36 array = _array; 42 return array[pos++];
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/ |
H A D | ArraysCompatUtils.java | 26 public static int binarySearch(int[] array, int startIndex, int endIndex, int value) { argument 29 array, startIndex, endIndex, value); 32 return compatBinarySearch(array, startIndex, endIndex, value); 36 /* package */ static int compatBinarySearch(int[] array, int startIndex, int endIndex, argument 39 if (startIndex < 0 || endIndex > array.length) throw new ArrayIndexOutOfBoundsException(); 42 System.arraycopy(array, startIndex, work, 0, work.length);
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
H A D | Hex.java | 19 * 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; 76 * Quickly converts a hexadecimal string to a byte array.
|
/packages/apps/Email/emailcommon/src/org/apache/commons/io/input/ |
H A D | CharSequenceReader.java | 87 * 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/Email/tests/src/com/android/email/ |
H A D | TestUtils.java | 42 /** 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/Mms/src/com/android/mms/ |
H A D | LogTag.java | 43 private static String prettyArray(String[] array) { argument 44 if (array.length == 0) { 49 int len = array.length-1; 51 sb.append(array[i]); 54 sb.append(array[len]);
|
/packages/apps/Email/tests/src/com/android/emailcommon/utility/ |
H A D | UtilityUnitTests.java | 64 private static byte[] b(int... array) { argument 65 return TestUtils.b(array);
|
/packages/apps/Gallery/src/com/android/camera/ |
H A D | Util.java | 243 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/src/com/android/gallery3d/data/ |
H A D | LocalAlbumSet.java | 287 // Circular shift the array range from a[i] to a[j] (inclusive). That is, 289 private static <T> void circularShiftRight(T[] array, int i, int j) { argument 290 T temp = array[j]; 292 array[k] = array[k - 1]; 294 array[i] = temp;
|
/packages/apps/Gallery2/tests/src/com/android/gallery3d/ui/ |
H A D | GLMock.java | 103 public void glEnableClientState(int array) { argument 104 if (array == GL10.GL_VERTEX_ARRAY) {
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
H A D | RocketLauncher.java | 79 static <E> E pick(E[] array) { argument 80 if (array.length == 0) return null; 81 return array[sRNG.nextInt(array.length)];
|
/packages/apps/Mms/src/com/android/mms/model/ |
H A D | SlideshowModel.java | 476 public <T> T[] toArray(T[] array) { argument 477 return mSlides.toArray(array);
|
H A D | SlideModel.java | 349 public <T> T[] toArray(T[] array) { argument 350 return mMedia.toArray(array);
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ |
H A D | Utils.java | 139 public static <T> void swap(T[] array, int i, int j) { argument 140 T temp = array[i]; 141 array[i] = array[j]; 142 array[j] = temp; 145 public static void swap(int[] array, int i, int j) { argument 146 int temp = array[i]; 147 array[i] = array[j]; 148 array[ 317 shuffle(int array[], Random random) argument [all...] |
/packages/inputmethods/LatinIME/tools/makedict/src/com/android/inputmethod/latin/ |
H A D | BinaryDictInputOutput.java | 199 * Compute the byte size of a character array. 208 * Writes a char array to a byte buffer. 210 * @param characters the character array to write. 212 * @param index the index in buffer to write the character array to. 249 * Compute the binary size of the character array in a group 255 * @return the size of the char array, including the terminator if any 346 // If eventually the code runs on Android, searching through the whole array each time 408 * @param flatNodes the array of nodes. 429 * Compute the addresses and sizes of an ordered node array. 431 * This method takes a node array an 484 checkFlatNodeArray(ArrayList<Node> array) argument [all...] |
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/ |
H A D | UserDictionaryToolsList.java | 619 * @param array The array list of the words 621 protected void compareTo(ArrayList<WnnWord> array) { argument 622 mSortData = new WnnWord[array.size()]; 623 array.toArray(mSortData);
|
/packages/apps/Calendar/src/com/android/calendar/month/ |
H A D | MonthWeekEventsView.java | 217 * This provides a reference to a float array which allows for easy size 221 float[] array; field in class:MonthWeekEventsView.FloatRef 224 array = new float[size]; 228 if (newSize >= array.length) { 230 array = Arrays.copyOf(array, newSize + 16 * 7); 713 lines.array[count++] = x; 714 lines.array[count++] = y; 715 lines.array[count++] = x + EVENT_SQUARE_WIDTH; 716 lines.array[coun [all...] |
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/ |
H A D | Utility.java | 397 return new String(cb.array(), 0, cb.length()); 735 * {@link #getFirstRowColumn} for a byte array with a provided default value. 810 * an array of Strings corresponding to the columns in the projection. If the cursor has no 963 // Need to do this manually because we're converting to a primitive long array, not 964 // a Long array. 975 public static Set<Long> toLongSet(long[] array) { argument 976 // Need to do this manually because we're converting from a primitive long array, not 977 // a Long array. 978 final int size = array.length; 981 ret.add(array[ [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
H A D | KeyboardBuilder.java | 724 private static boolean stringArrayContains(String[] array, String value) { argument 725 for (final String elem : array) {
|