/frameworks/av/drm/libmediadrm/tests/ |
H A D | CounterMetric_test.cpp | 32 std::map<int, int64_t> values; local 36 values[attribute_value] = value; 39 EXPECT_TRUE(values.empty()); 45 std::map<int, int64_t> values; local 53 values[attribute_value] = value; 56 ASSERT_EQ(2u, values.size()); 57 EXPECT_EQ(1, values[7]); 58 EXPECT_EQ(2, values[8]); 64 std::map<std::string, int64_t> values; local 72 values[attribute_valu [all...] |
H A D | EventMetric_test.cpp | 30 std::map<int, EventStatistics> values; local 34 values[attribute_value] = value; 37 EXPECT_TRUE(values.empty()); 43 std::map<int, EventStatistics> values; local 55 values[attribute_value] = value; 58 ASSERT_EQ(2u, values.size()); 59 EXPECT_EQ(4, values[7].min); 60 EXPECT_EQ(4, values[7].max); 61 EXPECT_EQ(4, values[7].mean); 62 EXPECT_EQ(1, values[ 74 std::map<std::string, EventStatistics> values; local 122 std::map<int, EventStatistics> values; local [all...] |
/frameworks/base/core/java/android/hardware/ |
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 | 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[ 633 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/core/java/android/transition/ |
H A D | TransitionValues.java | 27 * Data structure which holds cached values for the transition. 28 * The view field is the target which all of the values pertain to. 29 * The values field is a map which holds information for fields 31 * be unique to avoid clobbering values stored by other transitions, 36 * <p>These values are cached during the 38 * capture} phases of a scene change, once when the start values are captured 39 * and again when the end values are captured. These start/end values are then 47 * The View with these values 52 * The set of values tracke 54 public final Map<String, Object> values = new ArrayMap<String, Object>(); field in class:TransitionValues [all...] |
H A D | VisibilityPropagation.java | 43 public void captureValues(TransitionValues values) { argument 44 View view = values.view; 45 Integer visibility = (Integer) values.values.get(Visibility.PROPNAME_VISIBILITY); 49 values.values.put(PROPNAME_VISIBILITY, visibility); 56 values.values.put(PROPNAME_VIEW_CENTER, loc); 65 * Returns {@link android.view.View#getVisibility()} for the View at the time the values 67 * @param values Th 71 getViewVisibility(TransitionValues values) argument 89 getViewX(TransitionValues values) argument 100 getViewY(TransitionValues values) argument 104 getViewCoordinate(TransitionValues values, int coordinateIndex) argument [all...] |
/frameworks/data-binding/integration-tests/TestApp/app/src/main/java/android/databinding/testapp/adapter/ |
H A D | GenericConverter.java | 25 public static <T> String convertArrayList(ArrayList<T> values) { argument 26 return convert(values); 30 public static String convertLinkedList(LinkedList<?> values) { argument 31 return convert(values); 34 private static <T> String convert(List<T> values) { argument 35 if (values == null) { 39 for (T val : values) {
|
/frameworks/support/interpolator/src/main/java/androidx/interpolator/view/animation/ |
H A D | LookupTableInterpolator.java | 30 protected LookupTableInterpolator(float[] values) { argument 31 mValues = values; 48 // Calculate values to account for small offsets as the lookup table has discrete values 53 // Linearly interpolate between the table values
|
/frameworks/support/transition/src/main/java/androidx/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 set of values tracked by transitions for this scene 48 public final Map<String, Object> values field in class:TransitionValues [all...] |
H A D | VisibilityPropagation.java | 44 public void captureValues(TransitionValues values) { argument 45 View view = values.view; 46 Integer visibility = (Integer) values.values.get(Visibility.PROPNAME_VISIBILITY); 50 values.values.put(PROPNAME_VISIBILITY, visibility); 57 values.values.put(PROPNAME_VIEW_CENTER, loc); 66 * Returns {@link android.view.View#getVisibility()} for the View at the time the values 68 * @param values Th 72 getViewVisibility(TransitionValues values) argument 90 getViewX(TransitionValues values) argument 101 getViewY(TransitionValues values) argument 105 getViewCoordinate(TransitionValues values, int coordinateIndex) argument [all...] |
/frameworks/base/core/java/android/content/ |
H A D | Entity.java | 34 public Entity(ContentValues values) { argument 35 mValues = values; 47 public void addSubValue(Uri uri, ContentValues values) { argument 48 mSubValues.add(new Entity.NamedContentValues(uri, values)); 53 public final ContentValues values; field in class:Entity.NamedContentValues 55 public NamedContentValues(Uri uri, ContentValues values) { argument 57 this.values = values; 66 sb.append("\n -> ").append(namedValue.values);
|
/frameworks/base/core/java/android/view/autofill/ |
H A D | Helper.java | 48 * Appends {@code values} to the {@code builder} redacting its contents. 50 public static void appendRedacted(@NonNull StringBuilder builder, @Nullable String[] values) { argument 51 if (values == null) { 56 for (String value : values) {
|
/frameworks/base/media/java/android/media/ |
H A D | AudioGainConfig.java | 20 * The AudioGainConfig is used by APIs setting or getting values on a given gain 36 int[] values, int rampDurationMs) { 41 mValues = values; 70 * Gain values for each channel in the order of bits set in 73 public int[] values() { method in class:AudioGainConfig 35 AudioGainConfig(int index, AudioGain gain, int mode, int channelMask, int[] values, int rampDurationMs) argument
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/ |
H A D | InMatcher.java | 38 public InMatcher(Collection<T> values) { argument 39 Preconditions.checkNotNull("values", values); 40 mValues = values; 43 public InMatcher(T... values) { argument 44 Preconditions.checkNotNull(values); 45 mValues = Arrays.asList(values);
|
/frameworks/base/packages/StatementService/src/com/android/statementservice/retriever/ |
H A D | AssetJsonWriter.java | 45 * Appends a field to the output, putting both the key and value in lowercase. Null values are 65 * Appends an array to the output, putting both the key and values in lowercase. If {@code 66 * values} is null, this field will not be written. Individual values in the list must not be 69 public void writeArrayUpper(String key, List<String> values) { argument 75 if (values != null) { 79 for (String value : values) {
|
/frameworks/base/services/robotests/src/com/android/server/testing/shadows/ |
H A D | ShadowEventLog.java | 33 public static int writeEvent(int tag, Object... values) { argument 34 ENTRIES.add(new Entry(tag, Arrays.asList(values))); 39 public static boolean hasEvent(int tag, Object... values) { argument 40 return ENTRIES.contains(new Entry(tag, Arrays.asList(values))); 50 public final List<Object> values; field in class:ShadowEventLog.Entry 52 public Entry(int tag, List<Object> values) { argument 54 this.values = values; 62 return tag == entry.tag && values.equals(entry.values); [all...] |
/frameworks/support/collection/src/main/java/androidx/collection/ |
H A D | ArrayMap.java | 195 * Return a {@link java.util.Collection} for iterating over and interacting with all values 202 public Collection<V> values() { method in class:ArrayMap
|
/frameworks/support/compat/src/main/java/androidx/core/util/ |
H A D | ObjectsCompat.java | 69 * Generates a hash code for a sequence of input values. The hash code is generated as if all 70 * the input values were placed into an array, and that array were hashed by calling 87 * @param values the values to be hashed 88 * @return a hash value of the sequence of input values 91 public static int hash(@Nullable Object... values) { argument 93 return Objects.hash(values); 95 return Arrays.hashCode(values);
|
/frameworks/support/frameworks/support/samples/Support7Demos/src/main/java/com/example/android/supportv7/widget/selection/fancy/ |
H A D | ContentUriKeyProvider.java | 32 ContentUriKeyProvider(String authority, String[] values) { argument 37 mUris = new Uri[values.length]; 40 for (int i = 0; i < values.length; i++) { 44 .appendPath(values[i])
|
/frameworks/support/leanback/kitkat/androidx/leanback/transition/ |
H A D | Scale.java | 34 private void captureValues(TransitionValues values) { argument 35 View view = values.view; 36 values.values.put(PROPNAME_SCALE, view.getScaleX()); 56 final float startScale = (Float) startValues.values.get(PROPNAME_SCALE); 57 final float endScale = (Float) endValues.values.get(PROPNAME_SCALE);
|
/frameworks/support/preference/src/main/java/androidx/preference/internal/ |
H A D | AbstractMultiSelectListPreference.java | 58 public abstract void setValues(Set<String> values); argument
|
/frameworks/support/samples/Support7Demos/src/main/java/com/example/android/supportv7/widget/selection/fancy/ |
H A D | ContentUriKeyProvider.java | 32 ContentUriKeyProvider(String authority, String[] values) { argument 37 mUris = new Uri[values.length]; 40 for (int i = 0; i < values.length; i++) { 44 .appendPath(values[i])
|
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/ |
H A D | WorkManagerInitializer.java | 62 public Uri insert(@NonNull Uri uri, @Nullable ContentValues values) { argument 75 @Nullable ContentValues values, 74 update(@onNull Uri uri, @Nullable ContentValues values, @Nullable String selection, @Nullable String[] selectionArgs) argument
|
/frameworks/base/apct-tests/perftests/core/src/android/text/ |
H A D | PrecomputedTextMemoryUsageTest.java | 71 private int median(int[] values) { argument 72 return values.length % 2 == 0 ? 73 (values[values.length / 2] + values[values.length / 2 - 1]) / 2: 74 values[values.length / 2];
|