/frameworks/base/core/java/android/hardware/ |
H A D | SensorEvent.java | 22 * course the sensor's {@link SensorEvent#values data}. 37 * screen. In this system, coordinates behind the screen have negative Z values. 59 * The length and contents of the {@link #values values} array depends on 65 * Sensor.TYPE_ACCELEROMETER}:</h4> All values are in SI units (m/s^2) 68 * <li> values[0]: Acceleration minus Gx on the x-axis </li> 69 * <li> values[1]: Acceleration minus Gy on the y-axis </li> 70 * <li> values[2]: Acceleration minus Gz on the z-axis </li> 117 * gravity[0] = alpha * gravity[0] + (1 - alpha) * event.values[0]; 118 * gravity[1] = alpha * gravity[1] + (1 - alpha) * event.values[ 485 public final float[] values; field in class:SensorEvent [all...] |
H A D | TriggerEvent.java | 38 * The length and contents of the {@link #values values} array depends on 46 public final float[] values; field in class:TriggerEvent 60 values = new float[size];
|
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...] |
H A D | LegacySensorManager.java | 53 // which won't get the rotated values 259 v[0] = event.values[0]; 260 v[1] = event.values[1]; 261 v[2] = event.values[2]; 282 * output: 3,4,5: values in the old API format 283 * 0,1,2: transformed values in the old API format 287 float[] values, int orientation) { 288 float x = values[0]; 289 float y = values[1]; 290 float z = values[ 286 mapSensorDataToWindow(int sensor, float[] values, int orientation) 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...] |
/frameworks/base/core/java/android/transition/ |
H A D | TransitionValues.java | 26 * Data structure which holds cached values for the transition. 27 * The view field is the target which all of the values pertain to. 28 * The values field is a map which holds information for fields 30 * be unique to avoid clobbering values stored by other transitions, 35 * <p>These values are cached during the 37 * capture} phases of a scene change, once when the start values are captured 38 * and again when the end values are captured. These start/end values are then 46 * The View with these values 51 * The set of values tracke 53 public final Map<String, Object> values = new ArrayMap<String, Object>(); field in class:TransitionValues [all...] |
H A D | Visibility.java | 59 transitionValues.values.put(PROPNAME_VISIBILITY, visibility); 60 transitionValues.values.put(PROPNAME_PARENT, transitionValues.view.getParent()); 74 * Returns whether the view is 'visible' according to the given values 75 * object. This is determined by testing the same properties in the values 83 * @param values The TransitionValues object that holds the information by 85 * @return True if the view reference by <code>values</code> is visible, 88 public boolean isVisible(TransitionValues values) { argument 89 if (values == null) { 92 int visibility = (Integer) values.values [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 | 105 ContentValues values = new ContentValues(); 106 values.put(Columns.DATA, data); 107 values.put(Columns.ACCOUNT_NAME, account.name); 108 values.put(Columns.ACCOUNT_TYPE, account.type); 109 provider.insert(uri, values); 114 ContentValues values = new ContentValues(); 115 values.put(Columns.DATA, data); 116 values.put(Columns.ACCOUNT_NAME, account.name); 117 values.put(Columns.ACCOUNT_TYPE, account.type); 118 return provider.insert(uri, values); [all...] |
H A D | UserDictionary.java | 75 * The frequency column. A value between 1 and 255. Higher values imply higher frequency. 170 ContentValues values = new ContentValues(COLUMN_COUNT); 172 values.put(WORD, word); 173 values.put(FREQUENCY, frequency); 174 values.put(LOCALE, null == locale ? null : locale.toString()); 175 values.put(APP_ID, 0); // TODO: Get App UID 176 values.put(SHORTCUT, shortcut); 178 Uri result = resolver.insert(CONTENT_URI, values);
|
/frameworks/ml/bordeaux/learning/multiclass_pa/jni/ |
H A D | jni_multiclass_pa.cpp | 26 void CreateIndexValuePairs(const int* indices, const float* values, argument 31 pair<int, float> new_pair(indices[i], values[i]); 66 jfloat* values = env->GetFloatArrayElements(value_array, NULL); local 71 if (values && indices && value_len == index_len) { 74 CreateIndexValuePairs(indices, values, value_len, &inputs); 77 env->ReleaseFloatArrayElements(value_array, values, JNI_ABORT); 82 env->ReleaseFloatArrayElements(value_array, values, JNI_ABORT); 99 jfloat* values = env->GetFloatArrayElements(value_array, NULL); local 104 if (values && indices && value_len == index_len) { 106 CreateIndexValuePairs(indices, values, value_le [all...] |
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
H A D | SmsMessageBodyTest.java | 261 int[] values = {0, 0, 0, SmsConstants.ENCODING_7BIT, 0, 0}; 279 values[0] = sTestMsgCounts[i]; 280 values[1] = len; 281 values[2] = sSeptetUnitsRemaining[i]; 283 callGsmLengthMethods(testStr, false, values); 284 callGsmLengthMethods(testStr, true, values); 285 callCdmaLengthMethods(testStr, false, values); 286 callCdmaLengthMethods(testStr, true, values); 293 int[] values = {0, 0, 0, SmsConstants.ENCODING_16BIT, 0, 0}; 313 values[ 382 fillData(int enabledLangsIndex, boolean use7bitOnly, int[] values, int length) argument [all...] |
/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...] |
/frameworks/av/media/mtp/ |
H A D | MtpDataPacket.h | 79 void putAInt8(const int8_t* values, int count); 80 void putAUInt8(const uint8_t* values, int count); 81 void putAInt16(const int16_t* values, int count); 82 void putAUInt16(const uint16_t* values, int count); 83 void putAUInt16(const UInt16List* values); 84 void putAInt32(const int32_t* values, int count); 85 void putAUInt32(const uint32_t* values, int count); 87 void putAInt64(const int64_t* values, int count); 88 void putAUInt64(const uint64_t* values, int count);
|
/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/support/v4/java/android/support/v4/widget/ |
H A D | CursorFilter.java | 55 results.values = cursor; 58 results.values = null; 67 if (results.values != null && results.values != oldCursor) { 68 mClient.changeCursor((Cursor) results.values);
|
/frameworks/base/core/java/android/animation/ |
H A D | ObjectAnimator.java | 55 * a setter function that will be called to set animated values. 62 * name of the property being animated, use <code>float</code> or <code>int</code> typed values, 90 // New property/values/target should cause re-initialization prior to starting 115 // New property/values/target should cause re-initialization prior to starting 121 * a setter function that will be called to set animated values. 193 * Constructs and returns an ObjectAnimator that animates between int values. A single 194 * value implies that that value is the one being animated to. Two values imply a starting 195 * and ending values. More than two values imply a starting value, values t 206 ofInt(Object target, String propertyName, int... values) argument 224 ofInt(T target, Property<T, Integer> property, int... values) argument 244 ofFloat(Object target, String propertyName, float... values) argument 262 ofFloat(T target, Property<T, Float> property, float... values) argument 286 ofObject(Object target, String propertyName, TypeEvaluator evaluator, Object... values) argument 309 ofObject(T target, Property<T, V> property, TypeEvaluator<V> evaluator, V... values) argument 334 ofPropertyValuesHolder(Object target, PropertyValuesHolder... values) argument 343 setIntValues(int... values) argument 358 setFloatValues(float... values) argument 373 setObjectValues(Object... values) argument [all...] |
/frameworks/base/core/java/com/android/internal/net/ |
H A D | VpnProfile.java | 120 String[] values = new String(value, StandardCharsets.UTF_8).split("\0", -1); 121 // There can be 14 or 15 values in ICS MR1. 122 if (values.length < 14 || values.length > 15) { 127 profile.name = values[0]; 128 profile.type = Integer.valueOf(values[1]); 132 profile.server = values[2]; 133 profile.username = values[3]; 134 profile.password = values[4]; 135 profile.dnsServers = values[ [all...] |
/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));
|