Searched defs:array (Results 1 - 25 of 28) sorted by relevance

12

/packages/apps/Exchange/src/com/android/exchange/
H A DMockParserStream.java31 int[] array; field in class:MockParserStream
36 array = _array;
42 return array[pos++];
/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/tests/src/com/android/providers/contacts/testutil/
H A DCommonDatabaseUtils.java60 private static void fillArray(Cursor cursor, String[] array) { argument
61 for (int i = 0; i < array.length; i++) {
62 array[i] = cursor.getString(i);
/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/Email/tests/src/com/android/email/
H A DTestUtils.java41 /** Shortcut to create byte array */
42 public static byte[] b(int... array) { argument
43 if (array == null) {
46 byte[] ret = new byte[array.length];
48 ret[i] = (byte) array[i];
/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/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
H A DCollectionUtils.java94 public static <E> CopyOnWriteArrayList<E> newCopyOnWriteArrayList(final E[] array) { argument
95 return new CopyOnWriteArrayList<E>(array);
H A DStringUtils.java53 // Optimization: avoid creating an temporary array for characters that are
61 public static boolean containsInArray(final String text, final String[] array) { argument
62 for (final String element : array) {
113 * Remove duplicates from an array of strings.
116 * in the array, removing the subsequent ones.
393 * Convert hex string to byte array. The string length must be an even number.
/packages/apps/Camera2/src/com/android/camera/crop/
H A DCropMath.java28 * Gets a float array of the 2D coordinates representing a rectangles
30 * The order of the corners in the float array is:
37 * @return the float array of corners (8 floats)
65 * Takes an array of 2D coordinates representing corners and returns the
68 * @param array array of 2D coordinates
71 public static RectF trapToRect(float[] array) { argument
74 for (int i = 1; i < array.length; i += 2) {
75 float x = array[i - 1];
76 float y = array[
94 getEdgePoints(RectF imageBound, float[] array) argument
[all...]
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/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/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/Email/tests/src/com/android/emailcommon/utility/
H A DUtilityUnitTests.java64 private static byte[] b(int... array) { argument
65 return TestUtils.b(array);
/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/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/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
H A DKeySpecParser.java70 * Split the text containing multiple key specifications separated by commas into an array of
74 * Note that an empty key specification will be eliminated from the result array.
77 * @return an array of key specification text. Null if the specified <code>text</code> is empty
270 private static <T> ArrayList<T> arrayAsList(final T[] array, final int start, final int end) { argument
271 if (array == null) {
274 if (start < 0 || start > end || end > array.length) {
280 list.add(array[i]);
287 private static String[] filterOutEmptyString(final String[] array) { argument
288 if (array == null) {
292 for (int i = 0; i < array
[all...]
/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/Launcher3/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/Mms/src/com/android/mms/model/
H A DSlideshowModel.java481 public <T> T[] toArray(T[] array) { argument
482 return mSlides.toArray(array);
H A DSlideModel.java356 public <T> T[] toArray(T[] array) { argument
357 return mMedia.toArray(array);
/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/worldclock/
H A DCitiesActivity.java249 // Re-organize the selected cities into an array.
451 private boolean isEmpty(Object[] array) { argument
452 return array == null || array.length == 0;
/packages/apps/Settings/src/com/android/settings/deviceinfo/
H A DStorageMeasurement.java532 private static void addValue(SparseLongArray array, int key, long value) { argument
533 array.put(key, array.get(key) + value);
/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/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...]

Completed in 540 milliseconds

12