/frameworks/base/core/java/android/content/ |
D | ContentValues.java | 95 public void put(String key, String value) { in put() argument 96 mValues.put(key, value); in put() 114 public void put(String key, Byte value) { in put() argument 115 mValues.put(key, value); in put() 124 public void put(String key, Short value) { in put() argument 125 mValues.put(key, value); in put() 134 public void put(String key, Integer value) { in put() argument 135 mValues.put(key, value); in put() 144 public void put(String key, Long value) { in put() argument 145 mValues.put(key, value); in put() [all …]
|
/frameworks/base/core/java/com/google/android/mms/pdu/ |
D | PduHeaders.java | 358 protected void setOctet(int value, int field) in setOctet() argument 376 if ((VALUE_YES != value) && (VALUE_NO != value)) { in setOctet() 382 if ((READ_STATUS_READ != value) && in setOctet() 383 (READ_STATUS__DELETED_WITHOUT_BEING_READ != value)) { in setOctet() 389 if ((CANCEL_STATUS_REQUEST_SUCCESSFULLY_RECEIVED != value) && in setOctet() 390 (CANCEL_STATUS_REQUEST_CORRUPTED != value)) { in setOctet() 396 if ((value < PRIORITY_LOW) || (value > PRIORITY_HIGH)) { in setOctet() 402 if ((value < STATUS_EXPIRED) || (value > STATUS_UNREACHABLE)) { in setOctet() 408 if ((value < REPLY_CHARGING_REQUESTED) in setOctet() 409 || (value > REPLY_CHARGING_ACCEPTED_TEXT_ONLY)) { in setOctet() [all …]
|
D | RetrieveConf.java | 73 public void addCc(EncodedStringValue value) { in addCc() argument 74 mPduHeaders.appendEncodedStringValue(value, PduHeaders.CC); in addCc() 92 public void setContentType(byte[] value) { in setContentType() argument 93 mPduHeaders.setTextString(value, PduHeaders.CONTENT_TYPE); in setContentType() 111 public void setDeliveryReport(int value) throws InvalidHeaderValueException { in setDeliveryReport() argument 112 mPduHeaders.setOctet(value, PduHeaders.DELIVERY_REPORT); in setDeliveryReport() 132 public void setFrom(EncodedStringValue value) { in setFrom() argument 133 mPduHeaders.setEncodedStringValue(value, PduHeaders.FROM); in setFrom() 153 public void setMessageClass(byte[] value) { in setMessageClass() argument 154 mPduHeaders.setTextString(value, PduHeaders.MESSAGE_CLASS); in setMessageClass() [all …]
|
D | SendReq.java | 106 public void addBcc(EncodedStringValue value) { in addBcc() argument 107 mPduHeaders.appendEncodedStringValue(value, PduHeaders.BCC); in addBcc() 116 public void setBcc(EncodedStringValue[] value) { in setBcc() argument 117 mPduHeaders.setEncodedStringValues(value, PduHeaders.BCC); in setBcc() 135 public void addCc(EncodedStringValue value) { in addCc() argument 136 mPduHeaders.appendEncodedStringValue(value, PduHeaders.CC); in addCc() 145 public void setCc(EncodedStringValue[] value) { in setCc() argument 146 mPduHeaders.setEncodedStringValues(value, PduHeaders.CC); in setCc() 164 public void setContentType(byte[] value) { in setContentType() argument 165 mPduHeaders.setTextString(value, PduHeaders.CONTENT_TYPE); in setContentType() [all …]
|
D | NotificationInd.java | 65 public void setContentClass(int value) throws InvalidHeaderValueException { in setContentClass() argument 66 mPduHeaders.setOctet(value, PduHeaders.CONTENT_CLASS); in setContentClass() 87 public void setContentLocation(byte[] value) { in setContentLocation() argument 88 mPduHeaders.setTextString(value, PduHeaders.CONTENT_LOCATION); in setContentLocation() 109 public void setExpiry(long value) { in setExpiry() argument 110 mPduHeaders.setLongInteger(value, PduHeaders.EXPIRY); in setExpiry() 131 public void setFrom(EncodedStringValue value) { in setFrom() argument 132 mPduHeaders.setEncodedStringValue(value, PduHeaders.FROM); in setFrom() 153 public void setMessageClass(byte[] value) { in setMessageClass() argument 154 mPduHeaders.setTextString(value, PduHeaders.MESSAGE_CLASS); in setMessageClass() [all …]
|
D | ReadOrigInd.java | 59 public void setDate(long value) { in setDate() argument 60 mPduHeaders.setLongInteger(value, PduHeaders.DATE); in setDate() 80 public void setFrom(EncodedStringValue value) { in setFrom() argument 81 mPduHeaders.setEncodedStringValue(value, PduHeaders.FROM); in setFrom() 99 public void setMessageId(byte[] value) { in setMessageId() argument 100 mPduHeaders.setTextString(value, PduHeaders.MESSAGE_ID); in setMessageId() 118 public void setReadStatus(int value) throws InvalidHeaderValueException { in setReadStatus() argument 119 mPduHeaders.setOctet(value, PduHeaders.READ_STATUS); in setReadStatus() 137 public void setTo(EncodedStringValue[] value) { in setTo() argument 138 mPduHeaders.setEncodedStringValues(value, PduHeaders.TO); in setTo()
|
/frameworks/base/core/java/com/android/internal/util/ |
D | TypedProperties.java | 203 final Object value = parseValue(st, type); in parse() local 208 if (value.getClass() != oldValue.getClass()) { in parse() 213 map.put(propertyName, value); in parse() 257 long value; in parseValue() local 259 value = Long.decode(st.sval); in parseValue() 268 if (value < Byte.MIN_VALUE || value > Byte.MAX_VALUE) { in parseValue() 271 return new Byte((byte)value); in parseValue() 273 if (value < Short.MIN_VALUE || value > Short.MAX_VALUE) { in parseValue() 276 return new Short((short)value); in parseValue() 278 if (value < Integer.MIN_VALUE || value > Integer.MAX_VALUE) { in parseValue() [all …]
|
/frameworks/base/tests/CoreTests/android/core/ |
D | TreeSetTest.java | 80 int value; in testTreeSetFirst() local 83 value = set.first(); in testTreeSetFirst() 84 value = set.first(); in testTreeSetFirst() 85 value = set.first(); in testTreeSetFirst() 86 value = set.first(); in testTreeSetFirst() 87 value = set.first(); in testTreeSetFirst() 88 value = set.first(); in testTreeSetFirst() 89 value = set.first(); in testTreeSetFirst() 90 value = set.first(); in testTreeSetFirst() 91 value = set.first(); in testTreeSetFirst() [all …]
|
/frameworks/base/include/utils/ |
D | BitSet.h | 30 uint32_t value; member 32 inline BitSet32() : value(0) { } in BitSet32() 33 explicit inline BitSet32(uint32_t value) : value(value) { } in BitSet32() 39 inline void clear() { value = 0; } in clear() 42 inline uint32_t count() const { return __builtin_popcount(value); } in count() 45 inline bool isEmpty() const { return ! value; } in isEmpty() 48 inline bool hasBit(uint32_t n) const { return value & valueForBit(n); } in hasBit() 51 inline void markBit(uint32_t n) { value |= valueForBit(n); } in markBit() 54 inline void clearBit(uint32_t n) { value &= ~ valueForBit(n); } in clearBit() 58 inline uint32_t firstMarkedBit() const { return __builtin_clz(value); } in firstMarkedBit() [all …]
|
D | TypeHelpers.h | 33 template <typename T> struct trait_trivial_ctor { enum { value = false }; }; enumerator 34 template <typename T> struct trait_trivial_dtor { enum { value = false }; }; enumerator 35 template <typename T> struct trait_trivial_copy { enum { value = false }; }; enumerator 36 template <typename T> struct trait_trivial_move { enum { value = false }; }; enumerator 37 template <typename T> struct trait_pointer { enum { value = false }; }; enumerator 38 template <typename T> struct trait_pointer<T*> { enum { value = true }; }; 43 enum { value = true }; 49 enum { value = true }; 56 is_pointer = trait_pointer<TYPE>::value, 58 has_trivial_ctor = is_pointer || trait_trivial_ctor<TYPE>::value, [all …]
|
/frameworks/base/core/java/android/database/ |
D | MatrixCursor.java | 229 Object value = get(column); in getString() local 230 if (value == null) return null; in getString() 231 return value.toString(); in getString() 236 Object value = get(column); in getShort() local 237 if (value == null) return 0; in getShort() 238 if (value instanceof Number) return ((Number) value).shortValue(); in getShort() 239 return Short.parseShort(value.toString()); in getShort() 244 Object value = get(column); in getInt() local 245 if (value == null) return 0; in getInt() 246 if (value instanceof Number) return ((Number) value).intValue(); in getInt() [all …]
|
/frameworks/base/media/libstagefright/ |
D | MetaData.cpp | 53 bool MetaData::setCString(uint32_t key, const char *value) { in setCString() argument 54 return setData(key, TYPE_C_STRING, value, strlen(value) + 1); in setCString() 57 bool MetaData::setInt32(uint32_t key, int32_t value) { in setInt32() argument 58 return setData(key, TYPE_INT32, &value, sizeof(value)); in setInt32() 61 bool MetaData::setInt64(uint32_t key, int64_t value) { in setInt64() argument 62 return setData(key, TYPE_INT64, &value, sizeof(value)); in setInt64() 65 bool MetaData::setFloat(uint32_t key, float value) { in setFloat() argument 66 return setData(key, TYPE_FLOAT, &value, sizeof(value)); in setFloat() 69 bool MetaData::setPointer(uint32_t key, void *value) { in setPointer() argument 70 return setData(key, TYPE_POINTER, &value, sizeof(value)); in setPointer() [all …]
|
/frameworks/base/media/java/android/media/audiofx/ |
D | AudioEffect.java | 451 public int setParameter(byte[] param, byte[] value) in setParameter() argument 454 return native_setParameter(param.length, param, value.length, value); in setParameter() 463 public int setParameter(int param, int value) throws IllegalStateException { in setParameter() argument 465 byte[] v = intToByteArray(value); in setParameter() 476 public int setParameter(int param, short value) in setParameter() argument 479 byte[] v = shortToByteArray(value); in setParameter() 490 public int setParameter(int param, byte[] value) in setParameter() argument 493 return setParameter(p, value); in setParameter() 503 public int setParameter(int[] param, int[] value) in setParameter() argument 505 if (param.length > 2 || value.length > 2) { in setParameter() [all …]
|
/frameworks/base/obex/javax/obex/ |
D | ObexHelper.java | 163 byte[] value = null; in updateHeaderSet() 190 value = new byte[length]; in updateHeaderSet() 191 System.arraycopy(headerArray, index, value, 0, length); in updateHeaderSet() 192 if (length == 0 || (length > 0 && (value[length - 1] != 0))) { in updateHeaderSet() 200 headerImpl.setHeader(headerID, new String(value, 0, in updateHeaderSet() 201 value.length, "ISO8859_1")); in updateHeaderSet() 203 headerImpl.setHeader(headerID, new String(value, 0, in updateHeaderSet() 204 value.length - 1, "ISO8859_1")); in updateHeaderSet() 233 String dateString = new String(value, "ISO8859_1"); in updateHeaderSet() 260 value, true)); in updateHeaderSet() [all …]
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/ |
D | MediaMetadataTest.java | 203 String value = null; in validateMetatData() local 214 value = retriever.extractMetadata(MediaMetadataRetriever.METADATA_KEY_CD_TRACK_NUMBER); in validateMetatData() 215 Log.v(TAG, "CD_TRACK_NUMBER : " + value); in validateMetatData() 216 assertEquals(TAG, meta_data_file[fileIndex][meta.CD_TRACK.ordinal()], value); in validateMetatData() 218 value = retriever.extractMetadata(MediaMetadataRetriever.METADATA_KEY_ALBUM); in validateMetatData() 219 Log.v(TAG, "Album : "+ value); in validateMetatData() 220 assertEquals(TAG, meta_data_file[fileIndex][meta.ALBUM.ordinal()], value); in validateMetatData() 222 value = retriever.extractMetadata(MediaMetadataRetriever.METADATA_KEY_ARTIST); in validateMetatData() 223 Log.v(TAG, "Artist : "+ value); in validateMetatData() 224 assertEquals(TAG, meta_data_file[fileIndex][meta.ARTIST.ordinal()], value); in validateMetatData() [all …]
|
/frameworks/base/media/libstagefright/codecs/amrwb/src/ |
D | get_amr_wb_bits.cpp | 121 int16 value = 0; in Serial_parm() local 125 value <<= 2; in Serial_parm() 129 value |= 2; in Serial_parm() 134 value |= 1; in Serial_parm() 141 value <<= 1; in Serial_parm() 145 value |= 1; in Serial_parm() 150 return (value); in Serial_parm() 156 int16 value = 0; in Serial_parm_1bit() local 160 value = 1; in Serial_parm_1bit() 162 return (value); in Serial_parm_1bit()
|
/frameworks/base/core/tests/coretests/src/android/os/ |
D | SystemPropertiesTest.java | 30 String value; in testProperties() local 33 value = SystemProperties.get(KEY, "default"); in testProperties() 34 assertEquals("default", value); in testProperties() 37 value = SystemProperties.get(KEY, "default"); in testProperties() 38 assertEquals("AAA", value); in testProperties() 40 value = SystemProperties.get(KEY); in testProperties() 41 assertEquals("AAA", value); in testProperties() 44 value = SystemProperties.get(KEY, "default"); in testProperties() 45 assertEquals("default", value); in testProperties() 47 value = SystemProperties.get(KEY); in testProperties() [all …]
|
/frameworks/base/core/java/android/net/http/ |
D | HttpAuthHeader.java | 341 String value = in parseParameter() local 347 " value: " + value); in parseParameter() 351 mRealm = value; in parseParameter() 354 parseParameter(token, value); in parseParameter() 365 private void parseParameter(String token, String value) { in parseParameter() argument 366 if (token != null && value != null) { in parseParameter() 368 mNonce = value; in parseParameter() 373 parseStale(value); in parseParameter() 378 mOpaque = value; in parseParameter() 383 mQop = value.toLowerCase(); in parseParameter() [all …]
|
/frameworks/base/tools/localize/ |
D | res_check.cpp | 9 static int check_value(const SourcePos& pos, const XMLNode* value); 10 static int scan_for_unguarded_format(const SourcePos& pos, const XMLNode* value, int depth = 0); 41 XMLNode* value = it->value; in check_file() local 42 if (value != NULL) { in check_file() 43 err |= check_value(it->pos, value); in check_file() 63 check_value(const SourcePos& pos, const XMLNode* value) in check_value() argument 66 err |= scan_for_unguarded_format(pos, value); in check_value() 91 scan_for_unguarded_format(const SourcePos& pos, const XMLNode* value, int depth) in scan_for_unguarded_format() argument 93 if (value->Type() == XMLNode::ELEMENT) { in scan_for_unguarded_format() 95 if (depth == 0 || !is_xliff_block(value->Namespace(), value->Name())) { in scan_for_unguarded_format() [all …]
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/ |
D | BridgeResources.java | 158 ResourceValue value = getResourceValue(id, mPlatformResourceFlag); in getDrawable() local 160 if (value != null) { in getDrawable() 161 return ResourceHelper.getDrawable(value, mContext); in getDrawable() 173 ResourceValue value = getResourceValue(id, mPlatformResourceFlag); in getColor() local 175 if (value != null) { in getColor() 177 return ResourceHelper.getColor(value.getValue()); in getColor() 212 ResourceValue value = getResourceValue(id, mPlatformResourceFlag); in getText() local 214 if (value != null) { in getText() 215 return value.getValue(); in getText() 227 ResourceValue value = getResourceValue(id, mPlatformResourceFlag); in getLayout() local [all …]
|
/frameworks/base/core/java/android/widget/ |
D | RemoteViews.java | 292 Object value; field in RemoteViews.ReflectionAction 294 ReflectionAction(int viewId, String methodName, int type, Object value) { in ReflectionAction() argument 298 this.value = value; in ReflectionAction() 312 this.value = in.readInt() != 0; in ReflectionAction() 315 this.value = in.readByte(); in ReflectionAction() 318 this.value = (short)in.readInt(); in ReflectionAction() 321 this.value = in.readInt(); in ReflectionAction() 324 this.value = in.readLong(); in ReflectionAction() 327 this.value = in.readFloat(); in ReflectionAction() 330 this.value = in.readDouble(); in ReflectionAction() [all …]
|
/frameworks/base/core/java/android/content/res/ |
D | Resources.java | 455 TypedValue value = mTmpValue; in getDimension() local 456 getValue(id, value, true); in getDimension() 457 if (value.type == TypedValue.TYPE_DIMENSION) { in getDimension() 458 return TypedValue.complexToDimension(value.data, mMetrics); in getDimension() 462 + Integer.toHexString(value.type) + " is not valid"); in getDimension() 487 TypedValue value = mTmpValue; in getDimensionPixelOffset() local 488 getValue(id, value, true); in getDimensionPixelOffset() 489 if (value.type == TypedValue.TYPE_DIMENSION) { in getDimensionPixelOffset() 491 value.data, mMetrics); in getDimensionPixelOffset() 495 + Integer.toHexString(value.type) + " is not valid"); in getDimensionPixelOffset() [all …]
|
/frameworks/base/include/media/stagefright/foundation/ |
D | AMessage.h | 39 void setInt32(const char *name, int32_t value); 40 void setInt64(const char *name, int64_t value); 41 void setSize(const char *name, size_t value); 42 void setFloat(const char *name, float value); 43 void setDouble(const char *name, double value); 44 void setPointer(const char *name, void *value); 49 bool findInt32(const char *name, int32_t *value) const; 50 bool findInt64(const char *name, int64_t *value) const; 51 bool findSize(const char *name, size_t *value) const; 52 bool findFloat(const char *name, float *value) const; [all …]
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
D | ResourceHelper.java | 69 public static int getColor(String value) { in getColor() argument 70 if (value != null) { in getColor() 71 if (value.startsWith("#") == false) { in getColor() 73 String.format("Color value '%s' must start with #", value)); in getColor() 76 value = value.substring(1); in getColor() 79 if (value.length() > 8) { in getColor() 83 value)); in getColor() 86 if (value.length() == 3) { // RGB format in getColor() 89 color[2] = color[3] = value.charAt(0); in getColor() 90 color[4] = color[5] = value.charAt(1); in getColor() [all …]
|
/frameworks/base/opengl/java/com/google/android/gles_jni/ |
D | EGLImpl.java | 33 …ve boolean eglQueryContext(EGLDisplay display, EGLContext context, int attribute, int[] value); in eglQueryContext() argument 34 …ve boolean eglQuerySurface(EGLDisplay display, EGLSurface surface, int attribute, int[] value); in eglQuerySurface() argument 36 …e boolean eglGetConfigAttrib(EGLDisplay display, EGLConfig config, int attribute, int[] value); in eglGetConfigAttrib() argument 95 int value = _eglGetDisplay(native_display); in eglGetDisplay() local 96 if (value == 0) { in eglGetDisplay() 99 if (mDisplay.mEGLDisplay != value) in eglGetDisplay() 100 mDisplay = new EGLDisplayImpl(value); in eglGetDisplay() 105 int value = _eglGetCurrentContext(); in eglGetCurrentContext() local 106 if (value == 0) { in eglGetCurrentContext() 109 if (mContext.mEGLContext != value) in eglGetCurrentContext() [all …]
|