/frameworks/base/core/java/android/print/ |
H A D | PrintJobId.java | 45 * @param value The internal value. 49 public PrintJobId(@NonNull String value) { argument 50 mValue = value;
|
/frameworks/base/core/java/android/service/autofill/ |
H A D | DateValueSanitizer.java | 52 * @param dateFormat date format applied to the actual date value of an input field. 62 public AutofillValue sanitize(@NonNull AutofillValue value) { argument 63 if (value == null) { 64 Log.w(TAG, "sanitize() called with null value"); 67 if (!value.isDate()) { 68 if (sDebug) Log.d(TAG, value + " is not a date"); 73 final Date date = new Date(value.getDateValue()); 83 Log.w(TAG, "Could not apply " + mDateFormat + " to " + value + ": " + e);
|
/frameworks/base/core/java/android/util/ |
H A D | FloatMath.java | 40 * positive infinity) integer value which is less than the argument. 42 * @param value to be converted 43 * @return the floor of value 46 public static float floor(float value) { argument 47 return (float) Math.floor(value); 52 * negative infinity) integer value which is greater than the argument. 54 * @param value to be converted 55 * @return the ceiling of value 58 public static float ceil(float value) { argument 59 return (float) Math.ceil(value); 92 sqrt(float value) argument 104 exp(float value) argument [all...] |
H A D | SparseSetArray.java | 30 * Add a value at index n. 31 * @return FALSE when the value already existed at the given index, TRUE otherwise. 33 public boolean add(int n, T value) { argument 39 if (set.contains(value)) { 42 set.add(value); 47 * @return whether a value exists at index n. 49 public boolean contains(int n, T value) { argument 54 return set.contains(value); 58 * Remove a value from index n. 59 * @return TRUE when the value existe 61 remove(int n, T value) argument [all...] |
/frameworks/base/core/java/android/view/autofill/ |
H A D | Helper.java | 32 * Appends {@code value} to the {@code builder} redacting its contents. 35 @Nullable CharSequence value) { 36 builder.append(getRedacted(value)); 40 * Gets the redacted version of a value. 43 public static String getRedacted(@Nullable CharSequence value) { argument 44 return (value == null) ? "null" : value.length() + "_chars"; 56 for (String value : values) { 58 appendRedacted(builder, value); 34 appendRedacted(@onNull StringBuilder builder, @Nullable CharSequence value) argument
|
/frameworks/base/core/java/com/android/internal/app/ |
H A D | ProcessMap.java | 32 public E put(String name, int uid, E value) { argument 38 uids.put(uid, value); 39 return value;
|
/frameworks/base/core/java/com/android/internal/app/procstats/ |
H A D | DurationsTable.java | 31 * and the new value. 42 * Add the value into the value stored for the state. 45 * and the new value. 47 public void addDuration(int state, long value) { argument 49 setValue(key, getValue(key) + value);
|
/frameworks/base/core/java/com/android/internal/util/ |
H A D | ExponentiallyBucketedHistogram.java | 35 * @param numBuckets The number of buckets. The highest bucket is for all value >= 45 * Add a new value to the histogram. 50 * @param value The value to add 52 public void add(int value) { argument 53 if (value <= 0) { 56 mData[Math.min(mData.length - 1, 32 - Integer.numberOfLeadingZeros(value))]++;
|
H A D | MessageUtils.java | 34 /** Thrown when two different constants have the same value. */ 37 public DuplicateConstantError(String name1, String name2, int value) { argument 38 super(String.format("Duplicate constant value: both %s and %s = %d", 39 name1, name2, value)); 84 // Fetch the constant's value. 85 int value; 87 value = field.getInt(null); 90 // initializer failed and we have no idea what its value is. 96 String previousName = messageNames.get(value); 98 throw new DuplicateConstantError(name, previousName, value); [all...] |
H A D | ParseUtils.java | 30 /** Parse a value as a base-10 integer. */ 31 public static int parseInt(@Nullable String value, int defValue) { argument 32 return parseIntWithBase(value, 10, defValue); 35 /** Parse a value as an integer of a given base. */ 36 public static int parseIntWithBase(@Nullable String value, int base, int defValue) { argument 37 if (value == null) { 41 return Integer.parseInt(value, base); 47 /** Parse a value as a base-10 long. */ 48 public static long parseLong(@Nullable String value, long defValue) { argument 49 return parseLongWithBase(value, 1 53 parseLongWithBase(@ullable String value, int base, long defValue) argument 65 parseFloat(@ullable String value, float defValue) argument 77 parseDouble(@ullable String value, double defValue) argument 89 parseBoolean(@ullable String value, boolean defValue) argument [all...] |
/frameworks/base/core/tests/coretests/src/android/animation/ |
H A D | AnimatorSetEventsTest.java | 76 public void setTranslationX(float value) { argument 77 button.setTranslationX(value); 81 public void setTranslationY(float value) { argument 82 button.setTranslationY(value);
|
/frameworks/base/core/tests/privacytests/src/android/privacy/ |
H A D | RapporEncoderTest.java | 187 private static byte[] toBytes(long value) { argument 188 return ByteBuffer.allocate(8).order(ByteOrder.LITTLE_ENDIAN).putLong(value).array();
|
/frameworks/base/graphics/java/android/graphics/ |
H A D | BlurMaskFilter.java | 48 Blur(int value) { argument 49 native_int = value;
|
H A D | PathDashPathEffect.java | 26 Style(int value) { argument 27 native_style = value;
|
/frameworks/base/libs/hwui/tests/common/scenes/ |
H A D | OpPropAnimation.cpp | 46 mPaint->value.setAntiAlias(true); 47 mPaint->value.setColor(Color::Blue_500); 49 mRoundRectRight->value = width / 2; 50 mRoundRectBottom->value = height / 2; 52 mCircleX->value = width * 0.75; 53 mCircleY->value = height * 0.75; 65 float value = (abs((frameNr % 200) - 100)) / 100.0f; variable 66 mRoundRectRx->value = dp(10) + value * dp(40); 67 mRoundRectRy->value [all...] |
/frameworks/base/libs/services/src/os/ |
H A D | StatsDimensionsValue.cpp | 33 StatsDimensionsValue::StatsDimensionsValue(int32_t field, String16 value) : argument 36 mStrValue(value) { 38 StatsDimensionsValue::StatsDimensionsValue(int32_t field, int32_t value) : argument 41 mIntValue(value) { 43 StatsDimensionsValue::StatsDimensionsValue(int32_t field, int64_t value) : argument 46 mLongValue(value) { 48 StatsDimensionsValue::StatsDimensionsValue(int32_t field, bool value) : argument 51 mBoolValue(value) { 53 StatsDimensionsValue::StatsDimensionsValue(int32_t field, float value) : argument 56 mFloatValue(value) { 58 StatsDimensionsValue(int32_t field, vector<StatsDimensionsValue> value) argument [all...] |
/frameworks/base/media/java/android/media/ |
H A D | MediaScannerClient.java | 30 public void handleStringTag(String name, String value); argument
|
/frameworks/base/media/mca/effect/java/android/media/effect/ |
H A D | Effect.java | 82 * @param value The new value to set the parameter to. 83 * @throws InvalidArgumentException if parameterName is not a recognized name, or the value is 84 * not a valid value for this parameter. 86 public abstract void setParameter(String parameterKey, Object value); argument
|
/frameworks/base/media/mca/effect/java/android/media/effect/effects/ |
H A D | BackDropperEffect.java | 90 public void setParameter(String parameterKey, Object value) { argument 93 background.setInputValue("sourceUrl", value); 96 background.setInputValue("context", value);
|
H A D | IdentityEffect.java | 49 public void setParameter(String parameterKey, Object value) { argument
|
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/ |
H A D | Program.java | 35 public abstract void setHostValue(String variableName, Object value); argument
|
H A D | ProgramVariable.java | 41 public void setValue(Object value) { argument 46 mProgram.setHostValue(mVarName, value);
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wrapper/ |
H A D | BluetoothA2dpWrapper.java | 67 public void setOptionalCodecsEnabled(BluetoothDevice device, int value) { argument 68 mService.setOptionalCodecsEnabled(device, value);
|
/frameworks/base/packages/SettingsProvider/test/src/com/android/providers/settings/ |
H A D | SettingsStateTest.java | 108 private void checkWriteSingleSetting(XmlSerializer serializer, String key, String value) argument 110 checkWriteSingleSetting(key + "/" + value, serializer, key, value); 114 String key, String value) throws Exception { 118 serializer, "1", key, value, null, "package", null, false); 152 * In version 120, value "null" meant {code NULL}. 162 " <setting id=\"0\" name=\"k0\" value=\"null\" package=\"null\" />" + 163 " <setting id=\"1\" name=\"k1\" value=\"\" package=\"\" />" + 164 " <setting id=\"2\" name=\"k2\" value=\"v2\" package=\"p2\" />" + 113 checkWriteSingleSetting(String msg, XmlSerializer serializer, String key, String value) argument
|
/frameworks/base/packages/Shell/src/com/android/shell/ |
H A D | BugreportPrefs.java | 42 static void setWarningState(Context context, int value) { argument 45 prefs.edit().putInt(KEY_WARNING_STATE, value).apply();
|