/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 …]
|
/packages/modules/AdServices/adservices/service-core/resources/ |
D | cobalt_registry.textpb | 146 value: "UNKNOWN" 150 value: "t10001" 154 value: "t10002" 158 value: "t10003" 162 value: "t10004" 166 value: "t10005" 170 value: "t10006" 174 value: "t10007" 178 value: "t10008" 182 value: "t10009" [all …]
|
/packages/modules/Bluetooth/system/bta/le_audio/ |
D | client_parser_test.cc | 65 const uint8_t value[] = {0x00}; in TEST() local 67 ASSERT_TRUE(ParsePacs(pac_recs, sizeof(value), value)); in TEST() 73 const uint8_t value[] = { in TEST() local 87 ASSERT_TRUE(ParsePacs(pac_recs, sizeof(value), value)); in TEST() 204 const uint8_t value[] = { in TEST() local 229 ASSERT_TRUE(ParsePacs(pac_recs, sizeof(value), value)); in TEST() 258 const uint8_t value[] = { in TEST() local 280 ASSERT_TRUE(ParsePacs(pac_recs, sizeof(value), value)); in TEST() 305 const uint8_t value[] = { in TEST() local 328 ASSERT_FALSE(ParsePacs(pac_recs, sizeof(value), value)); in TEST() [all …]
|
D | client_parser.cc | 128 const uint8_t* value) { in ParseAseStatusHeader() argument 135 STREAM_TO_UINT8(arh.id, value); in ParseAseStatusHeader() 136 STREAM_TO_UINT8(arh.state, value); in ParseAseStatusHeader() 146 const uint8_t* value) { in ParseAseStatusCodecConfiguredStateParams() argument 154 STREAM_TO_UINT8(rsp.framing, value); in ParseAseStatusCodecConfiguredStateParams() 155 STREAM_TO_UINT8(rsp.preferred_phy, value); in ParseAseStatusCodecConfiguredStateParams() 156 STREAM_TO_UINT8(rsp.preferred_retrans_nb, value); in ParseAseStatusCodecConfiguredStateParams() 157 STREAM_TO_UINT16(rsp.max_transport_latency, value); in ParseAseStatusCodecConfiguredStateParams() 158 STREAM_TO_UINT24(rsp.pres_delay_min, value); in ParseAseStatusCodecConfiguredStateParams() 159 STREAM_TO_UINT24(rsp.pres_delay_max, value); in ParseAseStatusCodecConfiguredStateParams() [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/services/Car/tests/carservice_unit_test/src/com/android/car/hal/ |
D | HalPropValueTest.java | 59 hidlValue.value.int32Values.add(TEST_INT32_VALUE); in getTestHidlPropValue() 60 hidlValue.value.floatValues.add(TEST_FLOAT_VALUE); in getTestHidlPropValue() 61 hidlValue.value.int64Values.add(TEST_INT64_VALUE); in getTestHidlPropValue() 62 hidlValue.value.bytes.add(TEST_BYTE_VALUE); in getTestHidlPropValue() 63 hidlValue.value.stringValue = TEST_STRING_VALUE; in getTestHidlPropValue() 75 aidlValue.value = new RawPropValues(); in getTestAidlPropValue() 76 aidlValue.value.int32Values = new int[] {TEST_INT32_VALUE}; in getTestAidlPropValue() 77 aidlValue.value.floatValues = new float[] {TEST_FLOAT_VALUE}; in getTestAidlPropValue() 78 aidlValue.value.int64Values = new long[] {TEST_INT64_VALUE}; in getTestAidlPropValue() 79 aidlValue.value.byteValues = new byte[] {TEST_BYTE_VALUE}; in getTestAidlPropValue() [all …]
|
/packages/services/Car/car-lib/src/com/android/car/internal/util/ |
D | AnnotationValidations.java | 48 public static void validate(Class<UserIdInt> annotation, UserIdInt ignored, int value) { in validate() argument 49 if (!ValidationHelper.isUserIdValid(value)) { in validate() 50 invalid(annotation, value); in validate() 55 public static void validate(Class<AppIdInt> annotation, AppIdInt ignored, int value) { in validate() argument 56 if (!ValidationHelper.isAppIdValid(value)) { in validate() 57 invalid(annotation, value); in validate() 62 public static void validate(Class<IntRange> annotation, IntRange ignored, int value, in validate() argument 64 validate(annotation, ignored, value, paramName1, param1); in validate() 65 validate(annotation, ignored, value, paramName2, param2); in validate() 69 public static void validate(Class<IntRange> annotation, IntRange ignored, int value, in validate() argument [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 …]
|
/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 …]
|
/packages/services/Car/service/src/com/android/car/hal/ |
D | HalPropValueBuilder.java | 102 public HalPropValue build(int prop, int areaId, int value) { in build() argument 103 return build(prop, areaId, /*timestamp=*/0, VehiclePropertyStatus.AVAILABLE, value); in build() 116 public HalPropValue build(int prop, int areaId, long timestamp, int status, int value) { in build() argument 118 return new AidlHalPropValue(prop, areaId, timestamp, status, value); in build() 120 return new HidlHalPropValue(prop, areaId, timestamp, status, value); in build() 158 public HalPropValue build(int prop, int areaId, float value) { in build() argument 159 return build(prop, areaId, /*timestamp=*/0, VehiclePropertyStatus.AVAILABLE, value); in build() 172 public HalPropValue build(int prop, int areaId, long timestamp, int status, float value) { in build() argument 174 return new AidlHalPropValue(prop, areaId, timestamp, status, value); in build() 176 return new HidlHalPropValue(prop, areaId, timestamp, status, value); in build() [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/modules/OnDevicePersonalization/framework/java/com/android/ondevicepersonalization/internal/util/ |
D | AnnotationValidations.java | 45 public static void validate(Class<IntRange> annotation, IntRange ignored, int value, in validate() argument 47 validate(annotation, ignored, value, paramName1, param1); in validate() 48 validate(annotation, ignored, value, paramName2, param2); in validate() 52 public static void validate(Class<IntRange> annotation, IntRange ignored, int value, in validate() argument 56 if (value < param) { in validate() 57 invalid(annotation, value, paramName, param); in validate() 61 if (value > param) { in validate() 62 invalid(annotation, value, paramName, param); in validate() 71 public static void validate(Class<IntRange> annotation, IntRange ignored, long value, in validate() argument 73 validate(annotation, ignored, value, paramName1, param1); in validate() [all …]
|
/packages/modules/Bluetooth/system/common/ |
D | lru_unittest.cc | 31 int* value = new int(0); in TEST() local 40 EXPECT_TRUE(cache.Get(1, value)); in TEST() 41 EXPECT_EQ(*value, 10); in TEST() 42 EXPECT_TRUE(cache.Get(2, value)); in TEST() 43 EXPECT_EQ(*value, 20); in TEST() 44 EXPECT_TRUE(cache.Get(3, value)); in TEST() 45 EXPECT_EQ(*value, 30); in TEST() 50 EXPECT_FALSE(cache.Get(1, value)); in TEST() 51 EXPECT_TRUE(cache.Get(4, value)); in TEST() 52 EXPECT_EQ(*value, 40); in TEST() [all …]
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/btservice/storage/ |
D | Metadata.java | 253 void setCustomizedMeta(int key, byte[] value) { in setCustomizedMeta() argument 256 publicMetadata.manufacturer_name = value; in setCustomizedMeta() 259 publicMetadata.model_name = value; in setCustomizedMeta() 262 publicMetadata.software_version = value; in setCustomizedMeta() 265 publicMetadata.hardware_version = value; in setCustomizedMeta() 268 publicMetadata.companion_app = value; in setCustomizedMeta() 271 publicMetadata.main_icon = value; in setCustomizedMeta() 274 publicMetadata.is_untethered_headset = value; in setCustomizedMeta() 277 publicMetadata.untethered_left_icon = value; in setCustomizedMeta() 280 publicMetadata.untethered_right_icon = value; in setCustomizedMeta() [all …]
|
/packages/services/Car/libs/vehicle-hal-support-lib/src/com/android/car/hal/test/ |
D | AidlVehiclePropValueBuilder.java | 45 mPropValue.value = new RawPropValues(); in AidlVehiclePropValueBuilder() 46 mPropValue.value.int32Values = new int[0]; in AidlVehiclePropValueBuilder() 47 mPropValue.value.floatValues = new float[0]; in AidlVehiclePropValueBuilder() 48 mPropValue.value.int64Values = new long[0]; in AidlVehiclePropValueBuilder() 49 mPropValue.value.byteValues = new byte[0]; in AidlVehiclePropValueBuilder() 50 mPropValue.value.stringValue = new String(); in AidlVehiclePropValueBuilder() 65 newValue.value = new RawPropValues(); in clone() 66 newValue.value.stringValue = propValue.value.stringValue; in clone() 67 if (propValue.value.int32Values != null) { in clone() 68 newValue.value.int32Values = propValue.value.int32Values.clone(); in clone() [all …]
|
/packages/modules/Uwb/service/support_lib/src/com/google/uwb/support/fira/ |
D | FiraParams.java | 53 value = { 63 value = { 87 value = { 119 value = { 137 value = { 152 value = { 179 value = { 217 value = { 233 value = { 248 value = { [all …]
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/hap/ |
D | HapClientStackEvent.java | 108 private String eventTypeValueListToString(int type, List value) { in eventTypeValueListToString() argument 111 return "{presets count: " + (value == null ? 0 : value.size()) + "}"; in eventTypeValueListToString() 117 private String eventTypeValueInt1ToString(int type, int value) { in eventTypeValueInt1ToString() argument 120 return "{state: " + connectionStateValueToString(value) + "}"; in eventTypeValueInt1ToString() 122 return "{features: " + featuresToString(value) + "}"; in eventTypeValueInt1ToString() 124 return "{features: " + featuresToString(value) + "}"; in eventTypeValueInt1ToString() 126 return "{statusCode: " + statusCodeValueToString(value) + "}"; in eventTypeValueInt1ToString() 128 return "{statusCode: " + statusCodeValueToString(value) + "}"; in eventTypeValueInt1ToString() 130 return "{presetIndex: " + value + "}"; in eventTypeValueInt1ToString() 132 return "{statusCode: " + statusCodeValueToString(value) + "}"; in eventTypeValueInt1ToString() [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/modules/Bluetooth/system/gd/packet/parser/ |
D | util.h | 65 inline std::string CamelCaseToUnderScore(std::string value) { in CamelCaseToUnderScore() argument 66 if (value[0] < 'A' || value[0] > 'Z') { in CamelCaseToUnderScore() 67 ERROR() << value << " doesn't look like CamelCase"; in CamelCaseToUnderScore() 74 value = std::regex_replace(value, camel_case_regex, "$&_"); in CamelCaseToUnderScore() 77 value.pop_back(); in CamelCaseToUnderScore() 80 …std::transform(value.begin(), value.end(), value.begin(), [](unsigned char c) { return std::tolowe… in CamelCaseToUnderScore() 82 return value; in CamelCaseToUnderScore() 85 inline std::string UnderscoreToCamelCase(std::string value) { in UnderscoreToCamelCase() argument 86 if (value[0] < 'a' || value[0] > 'z') { in UnderscoreToCamelCase() 87 ERROR() << value << " invalid identifier"; in UnderscoreToCamelCase() [all …]
|
/packages/modules/AdServices/adservices/tests/perf/assets/concurrent-configs/ |
D | msmt_concurrent_indexed.textpb | 14 value: "25" 18 value: "500" 22 value: "sdk3" 31 value: "25" 35 value: "500" 39 value: "sdk3" 48 value: "25" 52 value: "500" 56 value: "sdk3" 65 value: "25" [all …]
|
/packages/modules/GeoTZ/s2storage/src/readonly/java/com/android/storage/util/ |
D | BitwiseUtils.java | 48 long value = 0; 50 LOW_BITS_MASK[i] = value; 51 value = (value << 1) | 1; 67 long value = ~0; 69 HIGH_BITS_MASK[64 - i] = value; 70 value <<= 1; 120 public static long extractLowBits(int bitCount, long value) { in extractLowBits() argument 124 return value; in extractLowBits() 127 return mask & value; in extractLowBits() 146 public static void checkValueInRange(int bitCount, long value, boolean signedValue) { in checkValueInRange() argument [all …]
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/le_audio/ |
D | LeAudioStackEvent.java | 201 private static String eventTypeValue1ToString(int type, int value) { in eventTypeValue1ToString() argument 204 switch (value) { in eventTypeValue1ToString() 224 return "{group_id:" + Integer.toString(value) + "}"; in eventTypeValue1ToString() 227 return "{direction:" + value + "}"; in eventTypeValue1ToString() 229 return "{sink_audio_location:" + value + "}"; in eventTypeValue1ToString() 237 return "{broadcastId:" + value + "}"; in eventTypeValue1ToString() 239 return "{group_id: " + value + "}"; in eventTypeValue1ToString() 241 switch (value) { in eventTypeValue1ToString() 252 switch (value) { in eventTypeValue1ToString() 263 return Integer.toString(value); in eventTypeValue1ToString() [all …]
|
/packages/apps/Nfc/nci/jni/ |
D | RouteDataSet.cpp | 185 xmlChar* value = xmlGetProp(node1, (const xmlChar*)"Type"); in import() local 186 if (value && in import() 187 (xmlStrcmp(value, (const xmlChar*)"SecElemSelectedRoutes") == 0)) { in import() 199 } else if (value && in import() 200 (xmlStrcmp(value, (const xmlChar*)"DefaultRoutes") == 0)) { in import() 212 if (value) xmlFree(value); in import() 318 xmlChar* value = NULL; in importProtocolRoute() local 322 value = xmlGetProp(element, id); in importProtocolRoute() 323 if (value) { in importProtocolRoute() 324 if (xmlStrcmp(value, (const xmlChar*)"T1T") == 0) in importProtocolRoute() [all …]
|
/packages/modules/HealthFitness/framework/java/android/health/connect/datatypes/validation/ |
D | ValidationUtils.java | 35 public static void requireInRange(int value, int lowerBound, int upperBound, String name) { in requireInRange() argument 36 if (value < lowerBound) { in requireInRange() 38 name + " must not be less than " + lowerBound + ", currently " + value); in requireInRange() 41 if (value > upperBound) { in requireInRange() 43 name + " must not be more than " + upperBound + ", currently " + value); in requireInRange() 48 public static void requireInRange(long value, long lowerBound, long upperBound, String name) { in requireInRange() argument 49 if (value < lowerBound) { in requireInRange() 51 name + " must not be less than " + lowerBound + ", currently " + value); in requireInRange() 54 if (value > upperBound) { in requireInRange() 56 name + " must not be more than " + upperBound + ", currently " + value); in requireInRange() [all …]
|