/packages/modules/Connectivity/staticlibs/native/bpf_headers/include/bpf/ |
D | BpfMap.h | 52 template <class Key, class Value> 55 BpfMapRO<Key, Value>() {}; 59 BpfMapRO<Key, Value>(const BpfMapRO<Key, Value>&) = delete; 70 if (bpfGetFdValueSize(mMapFd) != sizeof(Value)) abort(); in abortOnMismatch() 75 explicit BpfMapRO<Key, Value>(const char* pathname) { 96 Result<Value> readValue(const Key key) const { in readValue() 97 Value value; in readValue() 128 const BpfMapRO<Key, Value>& map)>& filter) const; 133 const function<Result<void>(const Key& key, const Value& value, 134 const BpfMapRO<Key, Value>& map)>& filter) const; [all …]
|
D | BpfRingbuf.h | 127 template <typename Value> 130 using MessageCallback = std::function<void(const Value&)>; 134 BpfRingbuf(const char* path) : BpfRingbufBase(path, sizeof(Value)) {} in BpfRingbuf() 139 static base::Result<std::unique_ptr<BpfRingbuf<Value>>> Create( 149 BpfRingbuf() : BpfRingbufBase(sizeof(Value)) {} in BpfRingbuf() 262 template <typename Value> 263 inline base::Result<std::unique_ptr<BpfRingbuf<Value>>> 264 BpfRingbuf<Value>::Create(const char* path) { in Create() 270 template <typename Value> 271 inline base::Result<int> BpfRingbuf<Value>::ConsumeAll( in ConsumeAll() [all …]
|
/packages/modules/Virtualization/libs/cborutil/src/ |
D | lib.rs | 23 use ciborium::value::{Integer, Value}; 50 pub fn parse_value_array(data: &[u8], context: &'static str) -> Result<Vec<Value>> { in parse_value_array() argument 51 value_to_array(Value::from_slice(data)?, context) in parse_value_array() 55 pub fn value_to_array(v: Value, context: &'static str) -> Result<Vec<Value>> { in value_to_array() argument 60 pub fn value_to_text(v: Value, context: &'static str) -> Result<String> { in value_to_text() argument 65 pub fn value_to_map(v: Value, context: &'static str) -> Result<Vec<(Value, Value)>> { in value_to_map() argument 70 pub fn value_to_num<T: TryFrom<Integer>>(v: Value, context: &'static str) -> Result<T> { in value_to_num() argument 79 pub fn value_to_byte_array<const N: usize>(v: Value, context: &'static str) -> Result<[u8; N]> { in value_to_byte_array() argument 88 pub fn value_to_bytes(v: Value, context: &'static str) -> Result<Vec<u8>> { in value_to_bytes() argument 95 v: &Value, in to_unexpected_item_error() argument [all …]
|
/packages/services/Car/cpp/watchdog/server/tests/ |
D | UidProcStatsCollectorTestUtils.h | 36 return ::testing::Value(actual.comm, ::testing::Eq(expected.comm)) && 37 ::testing::Value(actual.startTimeMillis, ::testing::Eq(expected.startTimeMillis)) && 38 ::testing::Value(actual.cpuTimeMillis, ::testing::Eq(expected.cpuTimeMillis)) && 39 ::testing::Value(actual.totalCpuCycles, ::testing::Eq(expected.totalCpuCycles)) && 40 ::testing::Value(actual.totalMajorFaults, ::testing::Eq(expected.totalMajorFaults)) && 41 ::testing::Value(actual.totalTasksCount, ::testing::Eq(expected.totalTasksCount)) && 42 ::testing::Value(actual.ioBlockedTasksCount, 44 ::testing::Value(actual.cpuCyclesByTid, 47 ::testing::Value(actual.rssKb, ::testing::Eq(expected.rssKb)) && 48 ::testing::Value(actual.pssKb, ::testing::Eq(expected.pssKb)) && [all …]
|
D | PackageInfoTestUtils.h | 53 return ::testing::Value(actual.name, ::testing::Eq(expected.name)) && 54 ::testing::Value(actual.uid, ::testing::Eq(expected.uid)); 59 return ::testing::Value(actual.packageIdentifier, 61 ::testing::Value(actual.uidType, ::testing::Eq(expected.uidType)) && 62 ::testing::Value(actual.sharedUidPackages, 64 ::testing::Value(actual.componentType, ::testing::Eq(expected.componentType)) && 65 ::testing::Value(actual.appCategoryType, ::testing::Eq(expected.appCategoryType));
|
/packages/apps/Dialer/java/com/android/dialer/calllog/model/ |
D | coalesced_row.proto | 16 // Value in column CoalescedAnnotatedCallLog._ID 19 // Value in column CoalescedAnnotatedCallLog.TIMESTAMP 22 // Value in column CoalescedAnnotatedCallLog.NUMBER 25 // Value in column CoalescedAnnotatedCallLog.FORMATTED_NUMBER 28 // Value in column CoalescedAnnotatedCallLog.NUMBER_PRESENTATION 31 // Value in column CoalescedAnnotatedCallLog.IS_READ 34 // Value in column CoalescedAnnotatedCallLog.NEW 37 // Value in column CoalescedAnnotatedCallLog.GEOCODED_LOCATION 40 // Value in column CoalescedAnnotatedCallLog.PHONE_ACCOUNT_COMPONENT_NAME 43 // Value in column CoalescedAnnotatedCallLog.PHONE_ACCOUNT_ID [all …]
|
/packages/apps/Dialer/java/com/android/dialer/voicemail/model/ |
D | voicemail_entry.proto | 14 // Value in column AnnotatedCallLog._ID 17 // Value in column AnnotatedCallLog.TIMESTAMP 20 // Value in column AnnotatedCallLog.NUMBER 23 // Value in column AnnotatedCallLog.FORMATTED_NUMBER 26 // Value in column AnnotatedCallLog.GEOCODED_LOCATION 29 // Value in column AnnotatedCallLog.DURATION 32 // Value in column AnnotatedCallLog.TRANSCRIPTION 35 // Value in column AnnotatedCallLog.VOICEMAIL_URI 38 // Value in column AnnotatedCallLog.CALL_TYPE 41 // Value in column AnnotatedCallLog.IS_READ [all …]
|
/packages/modules/StatsD/statsd/src/ |
D | FieldValue.h | 282 struct Value { struct 283 Value() : type(UNKNOWN) {} in Value() argument 285 Value(int32_t v) { in Value() argument 290 Value(int64_t v) { in Value() function 295 Value(float v) { in Value() function 300 Value(double v) { in Value() function 305 Value(const std::string& v) { in Value() function 310 Value(const std::vector<uint8_t>& v) { in Value() argument 358 Value(const Value& from); argument 360 bool operator==(const Value& that) const; [all …]
|
D | FieldValue.cpp | 142 bool isAttributionUidField(const Field& field, const Value& value) { in isAttributionUidField() 158 Value::Value(const Value& from) { in Value() function in android::os::statsd::Value 184 std::string Value::toString() const { in toString() 203 bool Value::isZero() const { in isZero() 222 bool Value::operator==(const Value& that) const { in operator ==() 243 bool Value::operator!=(const Value& that) const { in operator !=() 263 bool Value::operator<(const Value& that) const { in operator <() 284 bool Value::operator>(const Value& that) const { in operator >() 305 bool Value::operator>=(const Value& that) const { in operator >=() 326 Value Value::operator-(const Value& that) const { in operator -() [all …]
|
D | metadata_util.cpp | 26 void writeValueToProto(metadata::FieldValue* metadataFieldValue, const Value& value) { in writeValueToProto() 78 Value value; in writeFieldValuesFromMetadata() 81 value = Value(metadataFieldValue.value_int()); in writeFieldValuesFromMetadata() 84 value = Value(metadataFieldValue.value_long()); in writeFieldValuesFromMetadata() 87 value = Value(metadataFieldValue.value_float()); in writeFieldValuesFromMetadata() 90 value = Value(metadataFieldValue.value_double()); in writeFieldValuesFromMetadata() 93 value = Value(metadataFieldValue.value_str()); in writeFieldValuesFromMetadata() 96 value = Value(metadataFieldValue.value_storage()); in writeFieldValuesFromMetadata()
|
/packages/modules/Virtualization/service_vm/comm/src/ |
D | csr.rs | 21 use ciborium::Value; 41 let value = Value::Array(vec![ in into_cbor_vec() 42 Value::Bytes(self.dice_cert_chain), in into_cbor_vec() 43 Value::Bytes(self.signed_csr_payload), in into_cbor_vec() 50 let value = Value::from_slice(data)?; in from_cbor_slice() 51 let Value::Array(mut arr) = value else { in from_cbor_slice() localVariable 83 let value = Value::Array(vec![Value::Bytes(self.public_key), Value::Bytes(self.challenge)]); in into_cbor_vec() 89 let value = Value::from_slice(data)?; in from_cbor_slice() 90 let Value::Array(mut arr) = value else { in from_cbor_slice() localVariable
|
/packages/modules/Bluetooth/system/audio_hal_interface/fuzzer/ |
D | README.md | 33 | Parameter| Valid Values| Configured Value| 35 …TED` 4.`A2DP_CTRL_ACK_PENDING` 5.`A2DP_CTRL_ACK_DISCONNECT_IN_PROGRESS` | Value obtained from Fuzz… 36 … 6.`BTAV_A2DP_CODEC_INDEX_SINK_AAC` 7.`BTAV_A2DP_CODEC_INDEX_SINK_LDAC` | Value obtained from Fuzz… 37 …FLOAD_DATAPATH` 3.`SessionType::HEARING_AID_SOFTWARE_ENCODING_DATAPATH` | Value obtained from Fuzz… 38 …APATH` 7.`SessionType_2_1::LE_AUDIO_HARDWARE_OFFLOAD_DECODING_DATAPATH` | Value obtained from Fuzz… 39 …Rate::RATE_32000` 5.`SampleRate::RATE_44100` 6.`SampleRate::RATE_48000` | Value obtained from Fuzz… 40 …TE_32000` 5.`SampleRate_2_1::RATE_44100` 6.`SampleRate_2_1::RATE_48000` | Value obtained from Fuzz… 41 …TAV_A2DP_CODEC_SAMPLE_RATE_16000` 8.`BTAV_A2DP_CODEC_SAMPLE_RATE_24000` | Value obtained from Fuzz… 42 …rSample::BITS_16` 2.`BitsPerSample::BITS_24` 3.`BitsPerSample::BITS_32` | Value obtained from Fuzz… 43 …V_A2DP_CODEC_BITS_PER_SAMPLE_24` 3.`BTAV_A2DP_CODEC_BITS_PER_SAMPLE_32` | Value obtained from Fuzz… [all …]
|
/packages/modules/Virtualization/service_vm/requests/src/ |
D | rkp.rs | 26 value::{CanonicalValue, Value}, 78 let mut public_keys: Vec<Value> = Vec::new(); in generate_certificate_request() 87 Value::Integer(CSR_PAYLOAD_SCHEMA_V3.into()), in generate_certificate_request() 88 Value::Text(String::from(CERTIFICATE_TYPE)), in generate_certificate_request() 90 Value::Array(public_keys), in generate_certificate_request() 96 cbor!([Value::Bytes(params.challenge.to_vec()), Value::Bytes(csr_payload)])?; in generate_certificate_request() 103 let uds_certs = Value::Map(Vec::new()); in generate_certificate_request() 105 let dice_cert_chain: Value = cbor_util::deserialize(dice_cert_chain)?; in generate_certificate_request() 107 Value::Integer(AUTH_REQ_SCHEMA_V1.into()), in generate_certificate_request() 130 "vbmeta_digest" => Value::Bytes(vec![1u8; 1]), in device_info() [all …]
|
D | dice.rs | 25 use ciborium::value::Value; 83 mut client_vm_dice_chain: Vec<Value>, in validate_signatures_and_parse_dice_chain() argument 257 if curve_type != &Value::from(iana::EllipticCurve::Ed25519.to_i64()) { in verify() 300 value: Value, in validate_cose_signature_and_extract_payload() argument 317 let entries = value_to_map(Value::from_slice(data)?, "DiceChainEntryPayload")?; in from_slice() 358 sub_components: Option<Value>, 363 let value = Value::from_slice(data); in from_slice() 404 sub_components: OnceCell<Value>, 412 fn sub_components(&mut self, sub_components: Value) -> Result<()> { in sub_components() 431 impl TryFrom<Value> for SubComponent { [all …]
|
/packages/modules/Bluetooth/system/gd/l2cap/ |
D | signal_id_test.cc | 47 ASSERT_TRUE(i == signal_id.Value()); in TEST() 56 ASSERT_TRUE(i == signal_id.Value()); in TEST() 67 ASSERT_EQ(0xff, signal_id.Value()); in TEST() 77 ASSERT_EQ(1, signal_id.Value()); in TEST() 85 ASSERT_TRUE(i == signal_id.Value()); in TEST() 94 ASSERT_TRUE(i == signal_id.Value()); in TEST() 105 ASSERT_EQ(1, signal_id.Value()); in TEST() 115 ASSERT_EQ(0xff, signal_id.Value()); in TEST()
|
/packages/services/Car/cpp/evs/support_library/ |
D | ConfigManager.cpp | 37 static bool readChildNodeAsFloat(const char* groupName, const Json::Value& parentNode, in readChildNodeAsFloat() 42 Json::Value childNode = parentNode[childName]; in readChildNodeAsFloat() 62 Json::Value rootNode; in initialize() 74 Json::Value car = rootNode["car"]; in initialize() 89 Json::Value displayNode = rootNode["display"]; in initialize() 104 Json::Value graphicNode = rootNode["graphic"]; in initialize() 120 Json::Value cameraArray = rootNode["cameras"]; in initialize() 129 Json::Value nameNode = node.get("cameraId", "MISSING"); in initialize() 132 Json::Value usageNode = node.get("function", ""); in initialize()
|
/packages/services/Car/cpp/evs/apps/default/src/ |
D | ConfigManager.cpp | 32 static bool readChildNodeAsFloat(const char* groupName, const Json::Value& parentNode, in readChildNodeAsFloat() 37 Json::Value childNode = parentNode[childName]; in readChildNodeAsFloat() 57 Json::Value rootNode; in initialize() 69 Json::Value car = rootNode["car"]; in initialize() 84 Json::Value displayArray = rootNode["displays"]; in initialize() 106 Json::Value graphicNode = rootNode["graphic"]; in initialize() 122 Json::Value cameraArray = rootNode["cameras"]; in initialize() 131 Json::Value nameNode = node.get("cameraId", "MISSING"); in initialize() 134 Json::Value usageNode = node.get("function", ""); in initialize()
|
/packages/services/Car/cpp/evs/sampleDriver/hidl/ |
D | ConfigManager.cpp | 49 LOG(VERBOSE) << "[ATTR] " << prefix << curAttr->Name() << ": " << curAttr->Value(); in printElementNames() 70 const char* id = curElem->FindAttribute("id")->Value(); in readCameraInfo() 83 const char* sync = curElem->FindAttribute("synchronized")->Value(); in readCameraInfo() 96 const char* id = curElem->FindAttribute("id")->Value(); in readCameraInfo() 99 const char* pos = curElem->FindAttribute("position")->Value(); in readCameraInfo() 165 const char* nameAttr = ctrlElem->FindAttribute("name")->Value(); in readCameraCapabilities() 167 const int32_t minVal = std::stoi(ctrlElem->FindAttribute("min")->Value()); in readCameraCapabilities() 168 const int32_t maxVal = std::stoi(ctrlElem->FindAttribute("max")->Value()); in readCameraCapabilities() 173 stepVal = std::stoi(stepAttr->Value()); in readCameraCapabilities() 195 const int32_t id = std::stoi(idAttr->Value()); in readCameraCapabilities() [all …]
|
/packages/services/Car/cpp/evs/sampleDriver/aidl/src/ |
D | ConfigManager.cpp | 49 LOG(VERBOSE) << "[ATTR] " << prefix << curAttr->Name() << ": " << curAttr->Value(); in printElementNames() 70 const char* id = curElem->FindAttribute("id")->Value(); in readCameraInfo() 83 const char* sync = curElem->FindAttribute("synchronized")->Value(); in readCameraInfo() 96 const char* id = curElem->FindAttribute("id")->Value(); in readCameraInfo() 99 const char* pos = curElem->FindAttribute("position")->Value(); in readCameraInfo() 165 const char* nameAttr = ctrlElem->FindAttribute("name")->Value(); in readCameraCapabilities() 166 const int32_t minVal = std::stoi(ctrlElem->FindAttribute("min")->Value()); in readCameraCapabilities() 167 const int32_t maxVal = std::stoi(ctrlElem->FindAttribute("max")->Value()); in readCameraCapabilities() 172 stepVal = std::stoi(stepAttr->Value()); in readCameraCapabilities() 196 const int32_t id = std::stoi(idAttr->Value()); in readCameraCapabilities() [all …]
|
/packages/modules/Virtualization/pvmfw/src/ |
D | bcc.rs | 21 use ciborium::value::Value; 64 let bcc_handover: Vec<(Value, Value)> = in truncate() 109 Value::Array(v) if v.len() >= 2 => v, in new() 138 struct BccEntry(Value); 141 struct BccPayload(Value); 144 pub fn new(entry: Value) -> Self { in new() 203 fn value_from_key(&self, key: i32) -> Option<&Value> { in value_from_key() argument
|
/packages/modules/AdServices/adservices/scripts/ |
D | generate_adservices_public_xml.py | 26 Value = 1 variable in ResourceCategory 78 case ResourceCategory.Value: 139 res_type='string', res_category=ResourceCategory.Value, 143 res_type='dimen', res_category=ResourceCategory.Value, 146 res_type='color', res_category=ResourceCategory.Value, 149 res_type='integer', res_category=ResourceCategory.Value, 152 res_type='style', res_category=ResourceCategory.Value,
|
/packages/modules/Virtualization/service_vm/fake_chain/src/ |
D | client_vm.rs | 22 use ciborium::{cbor, value::Value}; 76 fn to_value(&self) -> CborResult<Value> { in to_value() argument 80 3 => Value::Bytes(self.code_hash.clone()), in to_value() 81 4 => Value::Bytes(self.authority_hash.clone()), in to_value() 156 map.push((cbor!(-71002)?, Value::Array(components))); in fake_microdroid_payload_config_descriptor() 157 Ok(Value::Map(map).to_vec().unwrap()) in fake_microdroid_payload_config_descriptor()
|
/packages/modules/Bluetooth/system/gd/rust/linux/mgmt/src/ |
D | config_util.rs | 4 use serde_json::{Map, Value}; 65 serde_json::from_str::<Value>(config.as_str()) in get_log_level_internal() 79 serde_json::from_str::<Value>(config.as_str()) in is_hci_n_enabled_internal() 90 Ok(s) => match serde_json::from_str::<Value>(s.as_str()) { in fix_config_file_format() 115 let mut o = serde_json::from_str::<Value>(config.as_str()).ok()?; in modify_hci_n_enabled_internal() 118 section.as_object_mut()?.insert("enabled".to_string(), Value::Bool(enabled)); in modify_hci_n_enabled_internal() 123 entry_map.insert("enabled".to_string(), Value::Bool(enabled)); in modify_hci_n_enabled_internal() 124 o.as_object_mut()?.insert(hci_str, Value::Object(entry_map)); in modify_hci_n_enabled_internal() 134 serde_json::from_str::<Value>(config.as_str()) in get_default_adapter() 147 let mut cfg = serde_json::from_str::<Value>(config.as_str()).ok()?; in set_default_adapter()
|
/packages/modules/StatsD/statsd/src/metrics/ |
D | NumericValueMetricProducer.cpp | 61 const Value ZERO_LONG((int64_t)0); 62 const Value ZERO_DOUBLE(0.0); 114 for (optional<Value>& base : dimInfo.dimExtras) { in resetBase() 122 const int aggIndex, const Value& value, const int sampleSize, in writePastBucketAggregateToProto() 372 bool getDoubleOrLong(const LogEvent& event, const Matcher& matcher, Value& ret) { in getDoubleOrLong() 419 optional<Value>& base = bases[i]; in aggregateFields() 420 Value value; in aggregateFields() 444 Value diff; in aggregateFields() 523 PastBucket<Value> NumericValueMetricProducer::buildPartialBucket(int64_t bucketEndTimeNs, in buildPartialBucket() 525 PastBucket<Value> bucket; in buildPartialBucket() [all …]
|
/packages/modules/Bluetooth/system/gd/l2cap/classic/internal/ |
D | signalling_manager.cc | 258 command_just_sent_.signal_id_.Value(), in OnConnectionResponse() 260 signal_id.Value()); in OnConnectionResponse() 361 … ConfigurationResponseBuilder::Create(signal_id.Value(), channel->GetRemoteCid(), is_continuation, in OnConfigurationRequest() 392 …auto response = ConfigurationResponseBuilder::Create(signal_id.Value(), channel->GetRemoteCid(), i… in OnConfigurationRequest() 514 command_just_sent_.signal_id_.Value(), in OnConfigurationResponse() 516 signal_id.Value()); in OnConfigurationResponse() 612 auto builder = DisconnectionResponseBuilder::Create(signal_id.Value(), cid, remote_cid); in OnDisconnectionRequest() 629 command_just_sent_.signal_id_.Value(), in OnDisconnectionResponse() 631 signal_id.Value()); in OnDisconnectionResponse() 658 auto builder = EchoResponseBuilder::Create(signal_id.Value(), std::move(raw_builder)); in OnEchoRequest() [all …]
|