/frameworks/base/core/tests/coretests/src/android/os/ |
H A D | SystemPropertiesTest.java | 30 String value; 33 value = SystemProperties.get(KEY, "default"); 34 assertEquals("default", value); 37 value = SystemProperties.get(KEY, "default"); 38 assertEquals("AAA", value); 40 value = SystemProperties.get(KEY); 41 assertEquals("AAA", value); 44 value = SystemProperties.get(KEY, "default"); 45 assertEquals("default", value); 47 value [all...] |
/frameworks/base/tools/aapt2/ |
H A D | ValueVisitor.h | 26 * Visits a value and invokes the appropriate method based on its type. Does not 32 virtual void VisitAny(Value* value) {} argument 33 virtual void VisitItem(Item* value) { VisitAny(value); } argument 34 virtual void Visit(Reference* value) { VisitItem(value); } argument 35 virtual void Visit(RawString* value) { VisitItem(value); } argument 36 virtual void Visit(String* value) { VisitItem(value); } argument 37 Visit(StyledString* value) argument 38 Visit(FileReference* value) argument 39 Visit(Id* value) argument 40 Visit(BinaryPrimitive* value) argument 42 Visit(Attribute* value) argument 43 Visit(Style* value) argument 44 Visit(Array* value) argument 45 Visit(Plural* value) argument 46 Visit(Styleable* value) argument 114 T* value = nullptr; member in struct:aapt::DynCastVisitor 124 Item* value = nullptr; member in struct:aapt::DynCastVisitor 130 ValueCast(const Value* value) argument 139 ValueCast(Value* value) argument [all...] |
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/ |
H A D | h264bsd_vlc.h | 52 u32 h264bsdDecodeExpGolombUnsigned(strmData_t *pStrmData, u32 *value); 54 u32 h264bsdDecodeExpGolombSigned(strmData_t *pStrmData, i32 *value); 56 u32 h264bsdDecodeExpGolombMapped(strmData_t *pStrmData, u32 *value, 59 u32 h264bsdDecodeExpGolombTruncated(strmData_t *pStrmData, u32 *value,
|
/frameworks/base/core/java/android/webkit/ |
H A D | ValueCallback.java | 24 * Invoked when the value is available. 25 * @param value The value. 27 public void onReceiveValue(T value); argument
|
/frameworks/data-binding/integration-tests/TestApp/app/src/main/java/android/databinding/testapp/adapter/ |
H A D | CustomNamespaceAdapter.java | 23 public static void setOne(TextView view, String value) { argument 24 view.setText(value); 28 public static void setTwo(TextView view, String value) { argument 29 view.setText(value);
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/ |
H A D | FontSize.java | 32 FontSize(int value) { argument 33 mValue = value; 38 * @param value Integer value to be converted to a FontSize object. 39 * @return FontSize object whose value is {@code value}. If no 40 * FontSize object has that value, null is returned. 42 public static FontSize fromInt(int value) { argument 44 if (e.mValue == value) {
|
H A D | TextAlignment.java | 34 TextAlignment(int value) { argument 35 mValue = value; 40 * @param value Integer value to be converted to a TextAlignment object. 41 * @return TextAlignment object whose value is {@code value}. If no 42 * TextAlignment object has that value, null is returned. 44 public static TextAlignment fromInt(int value) { argument 46 if (e.mValue == value) {
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
H A D | FrameValues.java | 26 * This returns 1, if the Frame value is null, or if the value is not an array. 31 Object value = super.getValue(); 32 if (value == null || !value.getClass().isArray()) { 49 Object value = super.getValue(); 50 if (value == null || value.getClass().isArray()) { 54 Object[] array = (Object[])Array.newInstance(value.getClass(), 1); 55 array[0] = value; 118 setValueAtIndex(Object value, int index) argument [all...] |
/frameworks/base/tools/layoutlib/bridge/src/android/os/ |
H A D | SystemProperties_Delegate.java | 44 String value = properties.get(key); 45 if (value != null) { 46 return value; 54 String value = properties.get(key); 55 if (value != null) { 56 return Integer.decode(value); 65 String value = properties.get(key); 66 if (value != null) { 67 return Long.decode(value); 80 String value [all...] |
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
H A D | DummyLogMessage.java | 22 public WifiLog.LogMessage r(String value) { argument 27 public WifiLog.LogMessage c(String value) { argument 32 public WifiLog.LogMessage c(long value) { argument 37 public WifiLog.LogMessage c(char value) { argument 42 public WifiLog.LogMessage c(boolean value) { argument
|
/frameworks/opt/telephony/src/java/com/google/android/mms/pdu/ |
H A D | RetrieveConf.java | 59 * Get CC value. 61 * @return the value 68 * Add a "CC" value. 70 * @param value the value 71 * @throws NullPointerException if the value is null. 73 public void addCc(EncodedStringValue value) { argument 74 mPduHeaders.appendEncodedStringValue(value, PduHeaders.CC); 78 * Get Content-type value. 80 * @return the value 92 setContentType(byte[] value) argument 111 setDeliveryReport(int value) argument 132 setFrom(EncodedStringValue value) argument 153 setMessageClass(byte[] value) argument 172 setMessageId(byte[] value) argument 191 setReadReport(int value) argument 210 setRetrieveStatus(int value) argument 229 setRetrieveText(EncodedStringValue value) argument 248 setTransactionId(byte[] value) argument [all...] |
H A D | NotificationInd.java | 52 * @return the value 61 * @param value the value 62 * @throws InvalidHeaderValueException if the value is invalid. 65 public void setContentClass(int value) throws InvalidHeaderValueException { argument 66 mPduHeaders.setOctet(value, PduHeaders.CONTENT_CLASS); 70 * Get X-Mms-Content-Location value. 72 * Content-location-value = Uri-value 74 * @return the value 87 setContentLocation(byte[] value) argument 109 setExpiry(long value) argument 131 setFrom(EncodedStringValue value) argument 153 setMessageClass(byte[] value) argument 173 setMessageSize(long value) argument 193 setSubject(EncodedStringValue value) argument 213 setTransactionId(byte[] value) argument 233 setDeliveryReport(int value) argument [all...] |
H A D | SendReq.java | 53 * @param contentType the content type value 54 * @param from the from value 56 * @param transactionId the transaction-id value 92 * Get Bcc value. 94 * @return the value 101 * Add a "BCC" value. 103 * @param value the value 104 * @throws NullPointerException if the value is null. 106 public void addBcc(EncodedStringValue value) { argument 116 setBcc(EncodedStringValue[] value) argument 135 addCc(EncodedStringValue value) argument 145 setCc(EncodedStringValue[] value) argument 164 setContentType(byte[] value) argument 183 setDeliveryReport(int value) argument 204 setExpiry(long value) argument 224 setMessageSize(long value) argument 245 setMessageClass(byte[] value) argument 264 setReadReport(int value) argument 274 setTo(EncodedStringValue[] value) argument 293 setTransactionId(byte[] value) argument [all...] |
/frameworks/base/core/java/android/content/ |
H A D | ContentValues.java | 90 * Adds a value to the set. 92 * @param key the name of the value to put 93 * @param value the data for the value to put 95 public void put(String key, String value) { argument 96 mValues.put(key, value); 109 * Adds a value to the set. 111 * @param key the name of the value to put 112 * @param value the data for the value t 114 put(String key, Byte value) argument 124 put(String key, Short value) argument 134 put(String key, Integer value) argument 144 put(String key, Long value) argument 154 put(String key, Float value) argument 164 put(String key, Double value) argument 174 put(String key, Boolean value) argument 184 put(String key, byte[] value) argument 505 putStringArrayList(String key, ArrayList<String> value) argument [all...] |
/frameworks/base/core/tests/coretests/src/android/util/ |
H A D | LongSparseLongArrayTest.java | 35 final long value = 1 << i; 36 array.put(value, value); 39 final long value = 1 << i; 40 assertEquals(value, array.get(value, -1)); 41 assertEquals(-1, array.get(-value, -1)); 48 final long value = 1 << i; 49 array.put(value, value); [all...] |
/frameworks/base/libs/androidfw/ |
H A D | AttributeResolution.cpp | 70 Res_value value; local 77 Res_value value; local 78 if (theme->getAttribute(def_style_attr, &value, &def_style_bag_type_set_flags) >= 0) { 79 if (value.dataType == Res_value::TYPE_REFERENCE) { 80 def_style_res = value.data; 112 value.dataType = Res_value::TYPE_NULL; 113 value.data = Res_value::DATA_NULL_UNDEFINED; 116 // Try to find a value for this attribute... we prioritize values 120 // Retrieve the current input value if available. 122 value 216 Res_value value; local 223 Res_value value; local 415 Res_value value; local [all...] |
/frameworks/base/core/java/com/android/internal/util/ |
H A D | TypedProperties.java | 202 // Read a value of the appropriate type, and insert into the map. 203 final Object value = parseValue(st, type); 208 if (value.getClass() != oldValue.getClass()) { 213 map.put(propertyName, value); 229 * @return a Boolean, Number subclass, or String representing the value. 257 long value; 259 value = Long.decode(st.sval); 264 // Ensure that the type can hold this value, and return. 268 if (value < Byte.MIN_VALUE || value > Byt 419 TypeException(String property, Object value, String requestedType) argument [all...] |
H A D | Preconditions.java | 195 * Ensures that that the argument numeric value is non-negative. 197 * @param value a numeric int value 199 * @return the validated numeric value 200 * @throws IllegalArgumentException if {@code value} was negative 202 public static @IntRange(from = 0) int checkArgumentNonnegative(final int value, argument 204 if (value < 0) { 208 return value; 212 * Ensures that that the argument numeric value is non-negative. 214 * @param value 219 checkArgumentNonnegative(final int value) argument 234 checkArgumentNonnegative(final long value) argument 250 checkArgumentNonnegative(final long value, final String errorMessage) argument 266 checkArgumentPositive(final int value, final String errorMessage) argument 287 checkArgumentFinite(final float value, final String valueName) argument 312 checkArgumentInRange(float value, float lower, float upper, String valueName) argument 341 checkArgumentInRange(int value, int lower, int upper, String valueName) argument 368 checkArgumentInRange(long value, long lower, long upper, String valueName) argument 393 checkArrayElementsNotNull(final T[] value, final String valueName) argument 419 checkCollectionElementsNotNull( final C value, final String valueName) argument 448 checkCollectionNotEmpty(final Collection<T> value, final String valueName) argument 475 checkArrayElementsInRange(float[] value, float lower, float upper, String valueName) argument [all...] |
/frameworks/base/core/java/android/security/keymaster/ |
H A D | KeymasterIntArgument.java | 25 public final int value; field in class:KeymasterIntArgument 27 public KeymasterIntArgument(int tag, int value) { argument 38 this.value = value; 43 value = in.readInt(); 48 out.writeInt(value);
|
/frameworks/base/core/java/android/util/ |
H A D | ContainerHelpers.java | 22 static int binarySearch(int[] array, int size, int value) { argument 30 if (midVal < value) { 32 } else if (midVal > value) { 35 return mid; // value found 38 return ~lo; // value not present 41 static int binarySearch(long[] array, int size, long value) { argument 49 if (midVal < value) { 51 } else if (midVal > value) { 54 return mid; // value found 57 return ~lo; // value no [all...] |
/frameworks/data-binding/compilerCommon/src/main/java/android/databinding/tool/util/ |
H A D | Preconditions.java | 23 public static void check(boolean value, String error, Object... args) { argument 24 if (!value) { 29 public static void checkNotNull(Object value, String error, Object... args) { argument 30 if (value == null) { 35 public static void checkNull(Object value, String error, Object... args) { argument 36 if (value != null) {
|
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/testutils/ |
H A D | ContentValuesBuilder.java | 31 public ContentValuesBuilder put(String key, String value) { argument 32 mContentValues.put(key, value); 37 public ContentValuesBuilder put(String key, Byte value) { 38 mContentValues.put(key, value); 42 public ContentValuesBuilder put(String key, Short value) { 43 mContentValues.put(key, value); 47 public ContentValuesBuilder put(String key, Integer value) { argument 48 mContentValues.put(key, value); 53 public ContentValuesBuilder put(String key, Long value) { 54 mContentValues.put(key, value); 73 put(String key, byte[] value) argument [all...] |
/frameworks/rs/script_api/ |
H A D | rs_object_types.spec | 90 value: RS_ALLOCATION_CUBEMAP_FACE_POSITIVE_X = 0 91 value: RS_ALLOCATION_CUBEMAP_FACE_NEGATIVE_X = 1 92 value: RS_ALLOCATION_CUBEMAP_FACE_POSITIVE_Y = 2 93 value: RS_ALLOCATION_CUBEMAP_FACE_NEGATIVE_Y = 3 94 value: RS_ALLOCATION_CUBEMAP_FACE_POSITIVE_Z = 4 95 value: RS_ALLOCATION_CUBEMAP_FACE_NEGATIVE_Z = 5 104 value: RS_ALLOCATION_USAGE_SCRIPT = 0x0001, "Allocation is bound to and accessed by scripts." 105 value: RS_ALLOCATION_USAGE_GRAPHICS_TEXTURE = 0x0002, "Allocation is used as a texture source." 106 value: RS_ALLOCATION_USAGE_GRAPHICS_VERTEX = 0x0004, "Deprecated." 107 value [all...] |
/frameworks/base/media/java/android/mtp/ |
H A D | MtpObjectInfo.java | 325 * The value is represented as milliseconds since January 1, 1970 335 * The value is represented as milliseconds since January 1, 1970 393 public Builder setObjectHandle(int value) { argument 394 mObjectInfo.mHandle = value; 398 public Builder setAssociationDesc(int value) { argument 399 mObjectInfo.mAssociationDesc = value; 403 public Builder setAssociationType(int value) { argument 404 mObjectInfo.mAssociationType = value; 408 public Builder setCompressedSize(long value) { argument 409 mObjectInfo.mCompressedSize = longToUint32(value, "valu 413 setDateCreated(long value) argument 418 setDateModified(long value) argument 423 setFormat(int value) argument 428 setImagePixDepth(long value) argument 433 setImagePixHeight(long value) argument 438 setImagePixWidth(long value) argument 443 setKeywords(@onNull String value) argument 455 setName(@onNull String value) argument 461 setParent(int value) argument 466 setProtectionStatus(int value) argument 471 setSequenceNumber(long value) argument 476 setStorageId(int value) argument 481 setThumbCompressedSize(long value) argument 486 setThumbFormat(int value) argument 491 setThumbPixHeight(long value) argument 496 setThumbPixWidth(long value) argument 515 uint32ToLong(int value) argument 519 longToUint32(long value, String valueName) argument [all...] |
/frameworks/av/drm/libmediadrm/ |
H A D | DrmPluginPath.cpp | 27 char value[PROPERTY_VALUE_MAX]; local 28 if (property_get("drm.64bit.enabled", value, NULL) == 0) {
|