/frameworks/base/core/java/android/hardware/ |
H A D | SensorEvent.java | 23 * course the sensor's {@link SensorEvent#values data}. 39 * screen. In this system, coordinates behind the screen have negative Z values. 61 * The length and contents of the {@link #values values} array depends on 67 * Sensor.TYPE_ACCELEROMETER}:</h4> All values are in SI units (m/s^2) 71 * values[0]: Acceleration minus Gx on the x-axis 74 * values[1]: Acceleration minus Gy on the y-axis 77 * values[2]: Acceleration minus Gz on the z-axis 154 * All values are in micro-Tesla (uT) and measure the ambient magnetic field 158 * All values ar 312 public final float[] values; field in class:SensorEvent [all...] |
H A D | SensorListener.java | 21 * sensor values have changed. 30 * <p>Called when sensor values have changed. 31 * The length and contents of the values array vary 45 * device's screen orientation changes. To access the unswapped values, 46 * use indices 3, 4 and 5 in values[]. 50 * All values are angles in degrees. 52 * <p>values[0]: Azimuth, rotation around the Z axis (0<=azimuth<360). 55 * <p>values[1]: Pitch, rotation around X axis (-180<=pitch<=180), with positive 56 * values when the z-axis moves toward the y-axis. 58 * <p>values[ 90 onSensorChanged(int sensor, float[] values) argument [all...] |
/frameworks/base/test-runner/src/junit/runner/ |
H A D | Sorter.java | 15 public void swap(Vector values, int left, int right); argument 18 public static void sortStrings(Vector values , int left, int right, Swapper swapper) { 21 String mid= (String)values.elementAt((left + right) / 2); 23 while (((String)(values.elementAt(left))).compareTo(mid) < 0) 25 while (mid.compareTo((String)(values.elementAt(right))) < 0) 28 swapper.swap(values, left, right); 35 sortStrings(values, oleft, right, swapper); 37 sortStrings(values, left, oright, swapper);
|
/frameworks/base/graphics/java/android/graphics/ |
H A D | Interpolator.java | 36 * Reset the Interpolator to have the specified number of values and an 38 * values for each keyFrame must be assigned using setKeyFrame(). 45 * Reset the Interpolator to have the specified number of values and 46 * keyFrames. After this call the values for each keyFrame must be assigned 65 * values (with an implicity blend array of [0, 0, 1, 1] giving linear 66 * transition to the next set of key values). 71 * @param values Array of values associated with theis key frame 73 public void setKeyFrame(int index, int msec, float[] values) { argument 74 setKeyFrame(index, msec, values, nul 87 setKeyFrame(int index, int msec, float[] values, float[] blend) argument 121 timeToValues(float[] values) argument 136 timeToValues(int msec, float[] values) argument 159 nativeSetKeyFrame(int native_instance, int index, int msec, float[] values, float[] blend) argument 161 nativeTimeToValues(int native_instance, int msec, float[] values) argument [all...] |
H A D | Matrix.java | 86 /** Returns true iff obj is a Matrix and its values equal our values. 135 * Set the matrix to rotate by the specified sine and cosine values, with a 143 /** Set the matrix to rotate by the specified sine and cosine values. */ 330 // the native values must match those in SkMatrix.h 338 * Set the matrix to the scale and translate values that map the source 370 * order [x0, y0, x1, y1, ...], where each "point" is 2 float values. 373 * @param srcIndex Index of the first pair of src values 375 * @param dstIndex Index of the first pair of dst values 521 /** Copy 9 values fro 523 getValues(float[] values) argument 536 setValues(float[] values) argument 667 native_getValues(int native_object, float[] values) argument 669 native_setValues(int native_object, float[] values) argument [all...] |
/frameworks/base/core/java/android/content/ |
H A D | Entity.java | 37 public Entity(ContentValues values) { argument 38 mValues = values; 50 public void addSubValue(Uri uri, ContentValues values) { argument 51 mSubValues.add(new Entity.NamedContentValues(uri, values)); 56 public final ContentValues values; field in class:Entity.NamedContentValues 58 public NamedContentValues(Uri uri, ContentValues values) { argument 60 this.values = values; 69 sb.append("\n -> ").append(namedValue.values);
|
/frameworks/base/core/java/android/provider/ |
H A D | SyncStateContract.java | 99 ContentValues values = new ContentValues(); 100 values.put(Columns.DATA, data); 101 values.put(Columns.ACCOUNT_NAME, account.name); 102 values.put(Columns.ACCOUNT_TYPE, account.type); 103 provider.insert(uri, values); 108 ContentValues values = new ContentValues(); 109 values.put(Columns.DATA, data); 110 values.put(Columns.ACCOUNT_NAME, account.name); 111 values.put(Columns.ACCOUNT_TYPE, account.type); 112 return provider.insert(uri, values); [all...] |
H A D | UserDictionary.java | 72 * The frequency column. A value between 1 and 255. Higher values imply higher frequency. 126 ContentValues values = new ContentValues(4); 128 values.put(WORD, word); 129 values.put(FREQUENCY, frequency); 130 values.put(LOCALE, locale); 131 values.put(APP_ID, 0); // TODO: Get App UID 133 Uri result = resolver.insert(CONTENT_URI, values);
|
/frameworks/base/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
H A D | SmsMessageBodyTest.java | 264 int[] values = {0, 0, 0, SmsMessage.ENCODING_7BIT, 0, 0}; 282 values[0] = sTestMsgCounts[i]; 283 values[1] = len; 284 values[2] = sSeptetUnitsRemaining[i]; 286 callGsmLengthMethods(testStr, false, values); 287 callGsmLengthMethods(testStr, true, values); 288 callCdmaLengthMethods(testStr, false, values); 289 callCdmaLengthMethods(testStr, true, values); 296 int[] values = {0, 0, 0, SmsMessage.ENCODING_16BIT, 0, 0}; 316 values[ 385 fillData(int enabledLangsIndex, boolean use7bitOnly, int[] values, int length) argument [all...] |
/frameworks/base/keystore/java/android/security/ |
H A D | KeyStore.java | 60 ArrayList<byte[]> values = execute('g', key); 61 return (values == null || values.isEmpty()) ? null : values.get(0); 97 ArrayList<byte[]> values = execute('s', prefix); 98 return (values == null) ? null : values.toArray(new byte[values.size()][]); 102 byte[][] values = saw(getBytes(prefix)); 103 if (values [all...] |
/frameworks/base/core/tests/coretests/src/android/pim/ |
H A D | RecurrenceSetTest.java | 68 ContentValues values = new ContentValues(); 69 RecurrenceSet.populateContentValues(recurrenceComponent, values); 70 Log.d("KS", "values " + values); 72 assertEquals(rrule, values.get(android.provider.Calendar.Events.RRULE)); 73 assertEquals(rdate, values.get(android.provider.Calendar.Events.RDATE)); 74 assertEquals(exrule, values.get(android.provider.Calendar.Events.EXRULE)); 75 assertEquals(exdate, values.get(android.provider.Calendar.Events.EXDATE)); 76 assertEquals(dtstart, (long) values.getAsLong(Calendar.Events.DTSTART)); 77 assertEquals(tzid, values [all...] |
/frameworks/base/tests/CoreTests/android/core/ |
H A D | ChecksumTest.java | 42 private void adler32Test(byte[] values, long expected) { argument 46 adler.update(values); 51 for (int i = 0; i < values.length; i++) { 52 adler.update(values[i]); 57 private void cRC32Test(byte[] values, long expected) { argument 61 crc.update(values); 66 for (int i = 0; i < values.length; i++) { 67 crc.update(values[i]);
|
/frameworks/base/core/java/android/database/ |
H A D | CursorJoiner.java | 24 * supports the case where the tuple of key column values is unique. 149 * next() are guaranteed to point to the row that was indicated. Reading values 196 * array and saves them in values beginning at startingIndex, skipping a slot 198 * values will be stored in slots 1, 3, and 5. 199 * @param values the String[] to populate 201 * @param columnIndicies the indicies of the values to read from the cursor 202 * @param startingIndex the slot in which to start storing values, and must be either 0 or 1. 204 private static void populateValues(String[] values, Cursor cursor, int[] columnIndicies, argument 208 values[startingIndex + i*2] = cursor.getString(columnIndicies[i]); 235 * Compare the values 242 compareStrings(String... values) argument [all...] |
H A D | DatabaseUtils.java | 260 * Concatenates two SQL WHERE clauses, handling empty or null values. 456 * @param values The {@link ContentValues} to put the value into, with the field as the key 459 ContentValues values) { 460 cursorStringToContentValues(cursor, field, values, field); 481 * @param values The {@link ContentValues} to put the value into, with the field as the key 485 ContentValues values, String key) { 486 values.put(key, cursor.getString(cursor.getColumnIndexOrThrow(field))); 494 * @param values The {@link ContentValues} to put the value into, with the field as the key 496 public static void cursorIntToContentValues(Cursor cursor, String field, ContentValues values) { argument 497 cursorIntToContentValues(cursor, field, values, fiel 458 cursorStringToContentValues(Cursor cursor, String field, ContentValues values) argument 484 cursorStringToContentValues(Cursor cursor, String field, ContentValues values, String key) argument 508 cursorIntToContentValues(Cursor cursor, String field, ContentValues values, String key) argument 525 cursorLongToContentValues(Cursor cursor, String field, ContentValues values) argument 538 cursorLongToContentValues(Cursor cursor, String field, ContentValues values, String key) argument 556 cursorDoubleToCursorValues(Cursor cursor, String field, ContentValues values) argument 569 cursorDoubleToContentValues(Cursor cursor, String field, ContentValues values, String key) argument 585 cursorRowToContentValues(Cursor cursor, ContentValues values) argument 681 cursorStringToContentValuesIfPresent(Cursor cursor, ContentValues values, String column) argument 697 cursorLongToContentValuesIfPresent(Cursor cursor, ContentValues values, String column) argument 713 cursorShortToContentValuesIfPresent(Cursor cursor, ContentValues values, String column) argument 729 cursorIntToContentValuesIfPresent(Cursor cursor, ContentValues values, String column) argument 745 cursorFloatToContentValuesIfPresent(Cursor cursor, ContentValues values, String column) argument 761 cursorDoubleToContentValuesIfPresent(Cursor cursor, ContentValues values, String column) argument 876 insertInternal(ContentValues values, boolean allowReplace) argument 1010 insert(ContentValues values) argument 1084 replace(ContentValues values) argument [all...] |
/frameworks/base/core/java/android/webkit/ |
H A D | WebStorage.java | 122 Map values = (Map) msg.obj; 123 Map origins = (Map) values.get(ORIGINS); 124 ValueCallback<Map> callback = (ValueCallback<Map>) values.get(CALLBACK); 129 Map values = (Map) msg.obj; 130 ValueCallback<Long> callback = (ValueCallback<Long>) values.get(CALLBACK); 131 callback.onReceiveValue((Long)values.get(USAGE)); 135 Map values = (Map) msg.obj; 136 ValueCallback<Long> callback = (ValueCallback<Long>) values.get(CALLBACK); 137 callback.onReceiveValue((Long)values.get(QUOTA)); 174 Map values [all...] |
H A D | GeolocationPermissions.java | 106 Map values = (Map) msg.obj; 107 Set<String> origins = (Set<String>) values.get(ORIGINS); 108 ValueCallback<Set<String> > callback = (ValueCallback<Set<String> >) values.get(CALLBACK); 112 Map values = (Map) msg.obj; 113 Boolean allowed = (Boolean) values.get(ALLOWED); 114 ValueCallback<Boolean> callback = (ValueCallback<Boolean>) values.get(CALLBACK); 137 Map values = new HashMap<String, Object>(); 138 values.put(CALLBACK, callback); 139 values.put(ORIGINS, origins); 140 postUIMessage(Message.obtain(null, RETURN_ORIGINS, values)); [all...] |
/frameworks/base/core/jni/android/graphics/ |
H A D | Interpolator.cpp | 29 float* values = autoValues.ptr(); local 36 scalars[i] = SkFloatToScalar(values[i]); 40 values = autoBlend.ptr(); 42 blendStorage[i] = SkFloatToScalar(values[i]); 62 float* values = valueArray ? env->GetFloatArrayElements(valueArray, NULL) : NULL; local 63 result = interp->timeToValues(msec, (SkScalar*)values); 68 values[i] = SkScalarToFloat(*(SkScalar*)&values[i]); 70 env->ReleaseFloatArrayElements(valueArray, values, 0);
|
/frameworks/base/core/java/android/widget/ |
H A D | CursorFilter.java | 54 results.values = cursor; 57 results.values = null; 66 if (results.values != null && results.values != oldCursor) { 67 mClient.changeCursor((Cursor) results.values);
|
/frameworks/base/core/tests/coretests/src/android/widget/gridview/ |
H A D | GridInHorizontal.java | 42 String values[] = new String[1000]; 45 values[i] = ((Integer)i).toString(); 51 android.R.layout.simple_list_item_1, values));
|
H A D | GridInVertical.java | 42 String values[] = new String[1000]; 45 values[i] = ((Integer)i).toString(); 51 android.R.layout.simple_list_item_1, values));
|
H A D | GridPadding.java | 38 String values[] = new String[1000]; 40 values[i] = String.valueOf(i); 45 android.R.layout.simple_list_item_1, values));
|
/frameworks/base/core/tests/coretests/src/android/widget/listview/ |
H A D | ListDividers.java | 38 String values[] = new String[1000]; 40 values[i] = ((Integer) i).toString(); 45 android.R.layout.simple_list_item_1, values));
|
H A D | ListInHorizontal.java | 41 String values[] = new String[1000]; 43 values[i] = ((Integer) i).toString(); 48 android.R.layout.simple_list_item_1, values));
|
H A D | ListInVertical.java | 41 String values[] = new String[1000]; 43 values[i] = ((Integer) i).toString(); 48 android.R.layout.simple_list_item_1, values));
|
/frameworks/base/core/java/android/pim/vcard/ |
H A D | VCardInterpreter.java | 34 * "parameter(param) names and values", and "property values". 98 * @param values List of property values. The size of values would be 1 unless 101 void propertyValues(List<String> values); argument
|