/packages/services/Car/tools/emulator/ |
D | diagjson.example | 8 "value": 2 12 "value": 18 16 "value": 21 22 "value": 64 26 "value": 3080 30 "value": 0 34 "value": 42.22222 38 "value": 214.0625 42 "value": 31.764706 52 "value": 2 [all …]
|
D | obd2_to_diagjson.py | 66 def __setattr__(self, name, value): argument 67 self.__dict__['store'][name] = value 116 def setIntValue(self, id, value): argument 121 d['value'] = value 128 for value in self.store.intValues: 129 yield (value['id'], value['value']) 131 def setFloatValue(self, id, value): argument 136 d['value'] = value 143 for value in self.store.floatValues: 144 yield (value['id'], value['value']) [all …]
|
D | vhal_emulator_test.py | 107 if len(rxMsg.value) != 1: 109 value = None 111 valType = rxMsg.value[0].value_type 114 value = rxMsg.value[0].string_value 116 value = rxMsg.value[0].bytes_value 118 value = rxMsg.value[0].int32_values[0] 120 value = rxMsg.value[0].int32_values[0] 122 value = rxMsg.value[0].int64_values[0] 124 value = rxMsg.value[0].float_values[0] 126 value = "%.5f" % value [all …]
|
/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/exif/ |
D | ExifTag.java | 94 private Object value; field in ExifTag 126 value = null; in ExifTag() 208 return value != null; in hasValue() 222 boolean setValue(int[] value) { in setValue() argument 223 if (checkBadComponentCount(value.length)) { in setValue() 231 if (dataType == TYPE_UNSIGNED_SHORT && checkOverflowForUnsignedShort(value)) { in setValue() 233 } else if (dataType == TYPE_UNSIGNED_LONG && checkOverflowForUnsignedLong(value)) { in setValue() 237 long[] data = new long[value.length]; in setValue() 238 for (int i = 0; i < value.length; i++) { in setValue() 239 data[i] = value[i]; in setValue() [all …]
|
/packages/apps/UnifiedEmail/src/org/apache/commons/io/ |
D | EndianUtils.java | 56 public static short swapShort(short value) { in swapShort() argument 57 return (short) ( ( ( ( value >> 0 ) & 0xff ) << 8 ) + in swapShort() 58 ( ( ( value >> 8 ) & 0xff ) << 0 ) ); in swapShort() 66 public static int swapInteger(int value) { in swapInteger() argument 68 ( ( ( value >> 0 ) & 0xff ) << 24 ) + in swapInteger() 69 ( ( ( value >> 8 ) & 0xff ) << 16 ) + in swapInteger() 70 ( ( ( value >> 16 ) & 0xff ) << 8 ) + in swapInteger() 71 ( ( ( value >> 24 ) & 0xff ) << 0 ); in swapInteger() 79 public static long swapLong(long value) { in swapLong() argument 81 ( ( ( value >> 0 ) & 0xff ) << 56 ) + in swapLong() [all …]
|
/packages/apps/Messaging/src/com/android/messaging/mmslib/pdu/ |
D | PduHeaders.java | 376 protected void setOctet(int value, int field) in setOctet() argument 394 if ((VALUE_YES != value) && (VALUE_NO != value)) { in setOctet() 400 if ((READ_STATUS_READ != value) && in setOctet() 401 (READ_STATUS__DELETED_WITHOUT_BEING_READ != value)) { in setOctet() 407 if ((CANCEL_STATUS_REQUEST_SUCCESSFULLY_RECEIVED != value) && in setOctet() 408 (CANCEL_STATUS_REQUEST_CORRUPTED != value)) { in setOctet() 414 if ((value < PRIORITY_LOW) || (value > PRIORITY_HIGH)) { in setOctet() 420 if ((value < STATUS_EXPIRED) || (value > STATUS_UNREACHABLE)) { in setOctet() 426 if ((value < REPLY_CHARGING_REQUESTED) in setOctet() 427 || (value > REPLY_CHARGING_ACCEPTED_TEXT_ONLY)) { in setOctet() [all …]
|
D | SendReq.java | 107 public void addBcc(EncodedStringValue value) { in addBcc() argument 108 mPduHeaders.appendEncodedStringValue(value, PduHeaders.BCC); in addBcc() 117 public void setBcc(EncodedStringValue[] value) { in setBcc() argument 118 mPduHeaders.setEncodedStringValues(value, PduHeaders.BCC); in setBcc() 136 public void addCc(EncodedStringValue value) { in addCc() argument 137 mPduHeaders.appendEncodedStringValue(value, PduHeaders.CC); in addCc() 146 public void setCc(EncodedStringValue[] value) { in setCc() argument 147 mPduHeaders.setEncodedStringValues(value, PduHeaders.CC); in setCc() 165 public void setContentType(byte[] value) { in setContentType() argument 166 mPduHeaders.setTextString(value, PduHeaders.CONTENT_TYPE); in setContentType() [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 | 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 …]
|
/packages/apps/Messaging/src/android/support/v7/mms/pdu/ |
D | PduHeaders.java | 356 protected void setOctet(int value, int field) in setOctet() argument 374 if ((VALUE_YES != value) && (VALUE_NO != value)) { in setOctet() 380 if ((READ_STATUS_READ != value) && in setOctet() 381 (READ_STATUS__DELETED_WITHOUT_BEING_READ != value)) { in setOctet() 387 if ((CANCEL_STATUS_REQUEST_SUCCESSFULLY_RECEIVED != value) && in setOctet() 388 (CANCEL_STATUS_REQUEST_CORRUPTED != value)) { in setOctet() 394 if ((value < PRIORITY_LOW) || (value > PRIORITY_HIGH)) { in setOctet() 400 if ((value < STATUS_EXPIRED) || (value > STATUS_UNREACHABLE)) { in setOctet() 406 if ((value < REPLY_CHARGING_REQUESTED) in setOctet() 407 || (value > REPLY_CHARGING_ACCEPTED_TEXT_ONLY)) { in setOctet() [all …]
|
D | SendReq.java | 104 public void addBcc(EncodedStringValue value) { in addBcc() argument 105 mPduHeaders.appendEncodedStringValue(value, PduHeaders.BCC); in addBcc() 114 public void setBcc(EncodedStringValue[] value) { in setBcc() argument 115 mPduHeaders.setEncodedStringValues(value, PduHeaders.BCC); in setBcc() 133 public void addCc(EncodedStringValue value) { in addCc() argument 134 mPduHeaders.appendEncodedStringValue(value, PduHeaders.CC); in addCc() 143 public void setCc(EncodedStringValue[] value) { in setCc() argument 144 mPduHeaders.setEncodedStringValues(value, PduHeaders.CC); in setCc() 162 public void setContentType(byte[] value) { in setContentType() argument 163 mPduHeaders.setTextString(value, PduHeaders.CONTENT_TYPE); in setContentType() [all …]
|
D | RetrieveConf.java | 71 public void addCc(EncodedStringValue value) { in addCc() argument 72 mPduHeaders.appendEncodedStringValue(value, PduHeaders.CC); in addCc() 90 public void setContentType(byte[] value) { in setContentType() argument 91 mPduHeaders.setTextString(value, PduHeaders.CONTENT_TYPE); in setContentType() 109 public void setDeliveryReport(int value) throws InvalidHeaderValueException { in setDeliveryReport() argument 110 mPduHeaders.setOctet(value, PduHeaders.DELIVERY_REPORT); in setDeliveryReport() 130 public void setFrom(EncodedStringValue value) { in setFrom() argument 131 mPduHeaders.setEncodedStringValue(value, PduHeaders.FROM); in setFrom() 151 public void setMessageClass(byte[] value) { in setMessageClass() argument 152 mPduHeaders.setTextString(value, PduHeaders.MESSAGE_CLASS); in setMessageClass() [all …]
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/sensor/ |
D | SensorsTestFragment.java | 72 public void onChangeEvent(CarPropertyValue value) { 74 Log.v(TAG, "New car property value: " + value); 76 if (value.getStatus() == CarPropertyValue.STATUS_AVAILABLE) { 77 mValueMap.put(value.getPropertyId(), value); 79 mValueMap.put(value.getPropertyId(), null); 257 CarPropertyValue value = mValueMap.get(propertyId); in refreshSensorInfoText() local 261 getTimestamp(value), in refreshSensorInfoText() 262 value == null ? mNaString : (float) value.getValue())); in refreshSensorInfoText() 266 getTimestamp(value), in refreshSensorInfoText() 267 value == null ? mNaString : (float) value.getValue())); in refreshSensorInfoText() [all …]
|
/packages/apps/Nfc/nci/jni/ |
D | RouteDataSet.cpp | 188 xmlChar* value = xmlGetProp(node1, (const xmlChar*)"Type"); in import() local 189 if (value && in import() 190 (xmlStrcmp(value, (const xmlChar*)"SecElemSelectedRoutes") == 0)) { in import() 203 } else if (value && in import() 204 (xmlStrcmp(value, (const xmlChar*)"DefaultRoutes") == 0)) { in import() 217 if (value) xmlFree(value); in import() 325 xmlChar* value = NULL; in importProtocolRoute() local 329 value = xmlGetProp(element, id); in importProtocolRoute() 330 if (value) { in importProtocolRoute() 331 if (xmlStrcmp(value, (const xmlChar*)"T1T") == 0) in importProtocolRoute() [all …]
|
/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/internal/ |
D | itoa.h | 39 inline char* u32toa(uint32_t value, char* buffer) { in u32toa() argument 42 if (value < 10000) { in u32toa() 43 const uint32_t d1 = (value / 100) << 1; in u32toa() 44 const uint32_t d2 = (value % 100) << 1; in u32toa() 46 if (value >= 1000) in u32toa() 48 if (value >= 100) in u32toa() 50 if (value >= 10) in u32toa() 54 else if (value < 100000000) { in u32toa() 56 const uint32_t b = value / 10000; in u32toa() 57 const uint32_t c = value % 10000; in u32toa() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/storage/ |
D | Metadata.java | 135 void setCustomizedMeta(int key, byte[] value) { in setCustomizedMeta() argument 138 publicMetadata.manufacturer_name = value; in setCustomizedMeta() 141 publicMetadata.model_name = value; in setCustomizedMeta() 144 publicMetadata.software_version = value; in setCustomizedMeta() 147 publicMetadata.hardware_version = value; in setCustomizedMeta() 150 publicMetadata.companion_app = value; in setCustomizedMeta() 153 publicMetadata.main_icon = value; in setCustomizedMeta() 156 publicMetadata.is_untethered_headset = value; in setCustomizedMeta() 159 publicMetadata.untethered_left_icon = value; in setCustomizedMeta() 162 publicMetadata.untethered_right_icon = value; in setCustomizedMeta() [all …]
|
/packages/modules/NetworkStack/src/android/net/apf/ |
D | ApfGenerator.java | 65 final int value; field in ApfGenerator.Opcodes 67 private Opcodes(int value) { in Opcodes() argument 68 this.value = value; in Opcodes() 81 final int value; field in ApfGenerator.ExtendedOpcodes 83 private ExtendedOpcodes(int value) { in ExtendedOpcodes() argument 84 this.value = value; in ExtendedOpcodes() 91 final int value; field in ApfGenerator.Register 93 private Register(int value) { in Register() argument 94 this.value = value; in Register() 115 mOpcode = (byte)opcode.value; in Instruction() [all …]
|
/packages/apps/Camera2/src/com/android/camera/exif/ |
D | ExifTag.java | 236 public boolean setValue(int[] value) { in setValue() argument 237 if (checkBadComponentCount(value.length)) { in setValue() 244 if (mDataType == TYPE_UNSIGNED_SHORT && checkOverflowForUnsignedShort(value)) { in setValue() 246 } else if (mDataType == TYPE_UNSIGNED_LONG && checkOverflowForUnsignedLong(value)) { in setValue() 250 long[] data = new long[value.length]; in setValue() 251 for (int i = 0; i < value.length; i++) { in setValue() 252 data[i] = value[i]; in setValue() 255 mComponentCountActual = value.length; in setValue() 270 public boolean setValue(int value) { in setValue() argument 272 value in setValue() [all …]
|
/packages/apps/Messaging/src/com/android/messaging/util/exif/ |
D | ExifTag.java | 236 public boolean setValue(int[] value) { in setValue() argument 237 if (checkBadComponentCount(value.length)) { in setValue() 244 if (mDataType == TYPE_UNSIGNED_SHORT && checkOverflowForUnsignedShort(value)) { in setValue() 246 } else if (mDataType == TYPE_UNSIGNED_LONG && checkOverflowForUnsignedLong(value)) { in setValue() 250 long[] data = new long[value.length]; in setValue() 251 for (int i = 0; i < value.length; i++) { in setValue() 252 data[i] = value[i]; in setValue() 255 mComponentCountActual = value.length; in setValue() 270 public boolean setValue(int value) { in setValue() argument 272 value in setValue() [all …]
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/exif/ |
D | ExifTag.java | 236 public boolean setValue(int[] value) { in setValue() argument 237 if (checkBadComponentCount(value.length)) { in setValue() 244 if (mDataType == TYPE_UNSIGNED_SHORT && checkOverflowForUnsignedShort(value)) { in setValue() 246 } else if (mDataType == TYPE_UNSIGNED_LONG && checkOverflowForUnsignedLong(value)) { in setValue() 250 long[] data = new long[value.length]; in setValue() 251 for (int i = 0; i < value.length; i++) { in setValue() 252 data[i] = value[i]; in setValue() 255 mComponentCountActual = value.length; in setValue() 270 public boolean setValue(int value) { in setValue() argument 272 value in setValue() [all …]
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/btservice/storage/ |
D | DatabaseManagerTest.java | 301 byte[] value = "input value".getBytes(); in testSetGetCustomMeta() 305 value, true); in testSetGetCustomMeta() 307 value, true); in testSetGetCustomMeta() 309 value, true); in testSetGetCustomMeta() 311 value, true); in testSetGetCustomMeta() 313 value, true); in testSetGetCustomMeta() 315 value, true); in testSetGetCustomMeta() 317 value, true); in testSetGetCustomMeta() 319 value, true); in testSetGetCustomMeta() 321 value, true); in testSetGetCustomMeta() [all …]
|
/packages/services/Car/service/src/com/android/car/hal/ |
D | VehicleHal.java | 344 return (T) propValue.value.int32Values.get(0); in get() 346 return (T) Boolean.valueOf(propValue.value.int32Values.get(0) == 1); in get() 348 return (T) propValue.value.floatValues.get(0); in get() 350 Integer[] intArray = new Integer[propValue.value.int32Values.size()]; in get() 351 return (T) propValue.value.int32Values.toArray(intArray); in get() 353 Float[] floatArray = new Float[propValue.value.floatValues.size()]; in get() 354 return (T) propValue.value.floatValues.toArray(floatArray); in get() 356 return (T) toIntArray(propValue.value.int32Values); in get() 358 return (T) toFloatArray(propValue.value.floatValues); in get() 360 return (T) toByteArray(propValue.value.bytes); in get() [all …]
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/common/ |
D | ResizableIntArrayTests.java | 55 final int value = i; in testAdd() local 56 src.add(value); in testAdd() 73 final int value = i; in testAdd() local 74 assertEquals("value at " + i, value, src.get(i)); in testAdd() 83 final int value = i; in testAddAt() local 84 src.addAt(i, value); in testAddAt() 88 final int value = i; in testAddAt() local 89 assertEquals("value at " + i, value, src.get(i)); in testAddAt() 128 final int value = i; in testReset() local 129 src.add(value); in testReset() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dp/ |
D | A2dpCodecConfig.java | 174 int value; in assignCodecConfigPriorities() local 176 value = resources.getInteger(R.integer.a2dp_source_codec_priority_sbc); in assignCodecConfigPriorities() 178 value = BluetoothCodecConfig.CODEC_PRIORITY_DEFAULT; in assignCodecConfigPriorities() 180 if ((value >= BluetoothCodecConfig.CODEC_PRIORITY_DISABLED) && (value in assignCodecConfigPriorities() 182 mA2dpSourceCodecPrioritySbc = value; in assignCodecConfigPriorities() 186 value = resources.getInteger(R.integer.a2dp_source_codec_priority_aac); in assignCodecConfigPriorities() 188 value = BluetoothCodecConfig.CODEC_PRIORITY_DEFAULT; in assignCodecConfigPriorities() 190 if ((value >= BluetoothCodecConfig.CODEC_PRIORITY_DISABLED) && (value in assignCodecConfigPriorities() 192 mA2dpSourceCodecPriorityAac = value; in assignCodecConfigPriorities() 196 value = resources.getInteger(R.integer.a2dp_source_codec_priority_aptx); in assignCodecConfigPriorities() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
D | DialogDetailsView.java | 138 String value; in setDetails() local 143 value = DetailsHelper.resolveAddress(mActivity, latlng, this); in setDetails() 147 value = Formatter.formatFileSize( in setDetails() 152 value = "1".equals(detail.getValue()) in setDetails() 163 value = context.getString(R.string.flash_on); in setDetails() 165 value = context.getString(R.string.flash_off); in setDetails() 170 value = (String) detail.getValue(); in setDetails() 171 double time = Double.valueOf(value); in setDetails() 173 value = String.format(mDefaultLocale, "%d/%d", 1, in setDetails() 178 value = String.valueOf(integer) + "''"; in setDetails() [all …]
|