/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/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | DppMetricsTest.java | 79 private void checkOperationBucketEqualsTo(int index, int value) { in checkOperationBucketEqualsTo() argument 83 assertEquals(hb.count, value); in checkOperationBucketEqualsTo() 103 private void checkDppFailures(int key, int value) { in checkDppFailures() argument 112 assertEquals(hb.count, value); in checkDppFailures() 127 private void checkDppSuccesses(int key, int value) { in checkDppSuccesses() argument 136 assertEquals(hb.count, value); in checkDppSuccesses() 153 int value = getNumOfTimes(MAX_ITERATIONS) + 1; in testUpdateDppConfiguratorInitiatorRequests() local 155 for (int i = 0; i < value; i++) { in testUpdateDppConfiguratorInitiatorRequests() 161 assertEquals(mWifiDppLogProto.numDppConfiguratorInitiatorRequests, value); in testUpdateDppConfiguratorInitiatorRequests() 172 int value = getNumOfTimes(MAX_ITERATIONS) + 1; in testUpdateDppEnrolleeInitiatorRequests() local [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 …]
|
/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 …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/storage/ |
D | Metadata.java | 153 void setCustomizedMeta(int key, byte[] value) { in setCustomizedMeta() argument 156 publicMetadata.manufacturer_name = value; in setCustomizedMeta() 159 publicMetadata.model_name = value; in setCustomizedMeta() 162 publicMetadata.software_version = value; in setCustomizedMeta() 165 publicMetadata.hardware_version = value; in setCustomizedMeta() 168 publicMetadata.companion_app = value; in setCustomizedMeta() 171 publicMetadata.main_icon = value; in setCustomizedMeta() 174 publicMetadata.is_untethered_headset = value; in setCustomizedMeta() 177 publicMetadata.untethered_left_icon = value; in setCustomizedMeta() 180 publicMetadata.untethered_right_icon = value; in setCustomizedMeta() [all …]
|
/packages/modules/DnsResolver/tests/ |
D | resolv_stats_test_utils.cpp | 89 int value = 0; in fromNetworkDnsEventReportedStr() local 94 if (protoField[1] == "event_type" && ParseInt(protoField[2], &value)) { in fromNetworkDnsEventReportedStr() 95 event.set_event_type(static_cast<EventType>(value)); in fromNetworkDnsEventReportedStr() 96 } else if (protoField[1] == "return_code" && ParseInt(protoField[2], &value)) { in fromNetworkDnsEventReportedStr() 97 event.set_return_code(static_cast<ReturnCode>(value)); in fromNetworkDnsEventReportedStr() 98 } else if (protoField[1] == "latency_micros" && ParseInt(protoField[2], &value)) { in fromNetworkDnsEventReportedStr() 99 event.set_latency_micros(value); in fromNetworkDnsEventReportedStr() 100 } else if (protoField[1] == "hints_ai_flags" && ParseInt(protoField[2], &value)) { in fromNetworkDnsEventReportedStr() 101 event.set_hints_ai_flags(value); in fromNetworkDnsEventReportedStr() 102 } else if (protoField[1] == "res_nsend_flags" && ParseInt(protoField[2], &value)) { in fromNetworkDnsEventReportedStr() [all …]
|
/packages/services/Car/service/src/com/android/car/hal/ |
D | ClusterHalService.java | 182 for (VehiclePropValue value : values) { in onHalEvents() 183 switch (value.prop) { in onHalEvents() 185 int uiType = value.value.int32Values.get(0); in onHalEvents() 189 int onOff = value.value.int32Values.get(0); in onHalEvents() 191 if (hasNoDontCare(value.value.int32Values, 1, 4, "bounds")) { in onHalEvents() 193 value.value.int32Values.get(1), value.value.int32Values.get(2), in onHalEvents() 194 value.value.int32Values.get(3), value.value.int32Values.get(4)); in onHalEvents() 197 if (hasNoDontCare(value.value.int32Values, 5, 4, "insets")) { in onHalEvents() 199 value.value.int32Values.get(5), value.value.int32Values.get(6), in onHalEvents() 200 value.value.int32Values.get(7), value.value.int32Values.get(8)); in onHalEvents() [all …]
|
D | InputHalService.java | 223 for (VehiclePropValue value : values) { in onHalEvents() 224 switch (value.prop) { in onHalEvents() 226 dispatchKeyInput(listener, value); in onHalEvents() 229 dispatchRotaryInput(listener, value); in onHalEvents() 232 dispatchCustomInput(listener, value); in onHalEvents() 235 Slogf.e(TAG, "Wrong event dispatched, prop:0x%x", value.prop); in onHalEvents() 241 private void dispatchKeyInput(InputListener listener, VehiclePropValue value) { in dispatchKeyInput() argument 242 int action = (value.value.int32Values.get(0) == VehicleHwKeyInputAction.ACTION_DOWN) in dispatchKeyInput() 245 int code = value.value.int32Values.get(1); in dispatchKeyInput() 246 int vehicleDisplay = value.value.int32Values.get(2); in dispatchKeyInput() [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/modules/StatsD/framework/java/android/util/ |
D | StatsEvent.java | 396 public Builder writeBoolean(final boolean value) { in writeBoolean() argument 399 mPos += mBuffer.putBoolean(mPos, value); in writeBoolean() 408 public Builder writeInt(final int value) { in writeInt() argument 411 mPos += mBuffer.putInt(mPos, value); in writeInt() 420 public Builder writeLong(final long value) { in writeLong() argument 423 mPos += mBuffer.putLong(mPos, value); in writeLong() 432 public Builder writeFloat(final float value) { in writeFloat() argument 435 mPos += mBuffer.putFloat(mPos, value); in writeFloat() 444 public Builder writeString(@NonNull final String value) { in writeString() argument 447 final byte[] valueBytes = stringToBytes(value); in writeString() [all …]
|
/packages/modules/GeoTZ/s2storage/src/readonly/java/com/android/timezone/location/storage/util/ |
D | BitwiseUtils.java | 47 long value = 0; 49 LOW_BITS_MASK[i] = value; 50 value = (value << 1) | 1; 66 long value = ~0; 68 HIGH_BITS_MASK[64 - i] = value; 69 value <<= 1; 119 public static long extractLowBits(int bitCount, long value) { in extractLowBits() argument 123 return value; in extractLowBits() 126 return mask & value; in extractLowBits() 145 public static void checkValueInRange(int bitCount, long value, boolean signedValue) { in checkValueInRange() argument [all …]
|
/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/ |
D | PasspointXmlUtils.java | 189 Object value = XmlUtil.readCurrentValue(in, name); in deserializePasspointConfiguration() local 192 config.setUpdateIdentifier((int) value); in deserializePasspointConfiguration() 195 config.setCredentialPriority((int) value); in deserializePasspointConfiguration() 198 config.setTrustRootCertList((Map<String, byte[]>) value); in deserializePasspointConfiguration() 201 config.setSubscriptionCreationTimeInMillis((long) value); in deserializePasspointConfiguration() 204 config.setSubscriptionExpirationTimeInMillis((long) value); in deserializePasspointConfiguration() 207 config.setSubscriptionType((String) value); in deserializePasspointConfiguration() 210 config.setUsageLimitUsageTimePeriodInMinutes((long) value); in deserializePasspointConfiguration() 213 config.setUsageLimitStartTimeInMillis((long) value); in deserializePasspointConfiguration() 216 config.setUsageLimitDataLimit((long) value); in deserializePasspointConfiguration() [all …]
|
/packages/modules/Wifi/service/java/com/android/server/wifi/util/ |
D | KeyValueListParser.java | 78 String value = mValues.get(key); in getInt() local 79 if (value != null) { in getInt() 81 return Integer.parseInt(value); in getInt() 96 String value = mValues.get(key); in getLong() local 97 if (value != null) { in getLong() 99 return Long.parseLong(value); in getLong() 114 String value = mValues.get(key); in getFloat() local 115 if (value != null) { in getFloat() 117 return Float.parseFloat(value); in getFloat() 132 String value = mValues.get(key); in getString() local [all …]
|
D | XmlUtil.java | 220 Object value = XmlUtilHelper.readValueXml(in, valueName); in readCurrentValue() local 224 return value; in readCurrentValue() 243 Object value = readCurrentValue(in, valueName); in readNextValueWithName() local 245 return value; in readNextValueWithName() 304 public static void writeNextValue(XmlSerializer out, String name, Object value) in writeNextValue() argument 306 XmlUtilHelper.writeValueXml(value, name, out); in writeNextValue() 583 private static void populateWepKeysFromXmlValue(Object value, String[] wepKeys) in populateWepKeysFromXmlValue() argument 585 String[] wepKeysInData = (String[]) value; in populateWepKeysFromXmlValue() 607 Object value = XmlUtil.readCurrentValue(in, valueName); in parseSecurityParamsFromXml() local 614 params = SecurityParams.createSecurityParamsBySecurityType((int) value); in parseSecurityParamsFromXml() [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/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/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/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/ |
D | IkeConfigPayload.java | 275 byte[] value = new byte[length]; in decodeSingleAttributeFrom() 276 inputBuffer.get(value); in decodeSingleAttributeFrom() 280 return new ConfigAttributeIpv4Address(value); in decodeSingleAttributeFrom() 282 return new ConfigAttributeIpv4Netmask(value); in decodeSingleAttributeFrom() 284 return new ConfigAttributeIpv4Dns(value); in decodeSingleAttributeFrom() 286 return new ConfigAttributeIpv4Dhcp(value); in decodeSingleAttributeFrom() 288 return new ConfigAttributeAppVersion(value); in decodeSingleAttributeFrom() 290 return new ConfigAttributeIpv6Address(value); in decodeSingleAttributeFrom() 292 return new ConfigAttributeIpv6Dns(value); in decodeSingleAttributeFrom() 294 return new ConfigAttributeIpv4Subnet(value); in decodeSingleAttributeFrom() [all …]
|