/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/ |
D | CarHvacManagerTest.java | 55 for (CarPropertyConfig property : properties) { in testAllHvacProperties() 56 if (supportedTypes.contains(property.getPropertyType())) { in testAllHvacProperties() 57 assertTypeAndZone(property); in testAllHvacProperties() 59 fail("Type is not supported for " + property); in testAllHvacProperties() 71 private void assertTypeAndZone(CarPropertyConfig property) { in assertTypeAndZone() argument 72 switch (property.getPropertyId()) { in assertTypeAndZone() 74 checkTypeAndGlobal(Integer.class, false, property); in assertTypeAndZone() 78 checkTypeAndGlobal(Integer.class, true, property); in assertTypeAndZone() 79 checkIntMinMax(property); in assertTypeAndZone() 82 checkTypeAndGlobal(Float.class, true, property); in assertTypeAndZone() [all …]
|
D | CarCabinManagerTest.java | 57 for (CarPropertyConfig property : properties) { in testAllCabinProperties() 58 if (supportedTypes.contains(property.getPropertyType())) { in testAllCabinProperties() 59 assertTypeAndZone(property); in testAllCabinProperties() 61 fail("Type is not supported for " + property); in testAllCabinProperties() 66 private void assertTypeAndZone(CarPropertyConfig property) { in assertTypeAndZone() argument 67 int propId = property.getPropertyId(); in assertTypeAndZone() 72 assertThat(property.getPropertyType()).isAssignableTo(Boolean.class); in assertTypeAndZone() 73 assertThat(property.isGlobalProperty()).isTrue(); in assertTypeAndZone() 80 assertThat(property.getPropertyType()).isAssignableTo(Boolean.class); in assertTypeAndZone() 81 assertThat(property.isGlobalProperty()).isFalse(); in assertTypeAndZone() [all …]
|
D | WindshieldWipersSwitchTest.java | 46 android.car.hardware.property.WindshieldWipersSwitch.OTHER, in constantValues() 50 android.car.hardware.property.WindshieldWipersSwitch.OFF, in constantValues() 54 android.car.hardware.property.WindshieldWipersSwitch.MIST, in constantValues() 58 android.car.hardware.property.WindshieldWipersSwitch in constantValues() 64 android.car.hardware.property.WindshieldWipersSwitch in constantValues() 70 android.car.hardware.property.WindshieldWipersSwitch in constantValues() 76 android.car.hardware.property.WindshieldWipersSwitch in constantValues() 82 android.car.hardware.property.WindshieldWipersSwitch in constantValues() 88 android.car.hardware.property.WindshieldWipersSwitch in constantValues() 94 android.car.hardware.property.WindshieldWipersSwitch in constantValues() [all …]
|
D | DriverDrowsinessAttentionStateTest.java | 46 android.car.hardware.property.DriverDrowsinessAttentionState.OTHER, in constantValues() 51 android.car.hardware.property.DriverDrowsinessAttentionState in constantValues() 57 android.car.hardware.property.DriverDrowsinessAttentionState in constantValues() 63 android.car.hardware.property.DriverDrowsinessAttentionState in constantValues() 69 android.car.hardware.property.DriverDrowsinessAttentionState in constantValues() 75 android.car.hardware.property.DriverDrowsinessAttentionState in constantValues() 81 android.car.hardware.property.DriverDrowsinessAttentionState in constantValues() 87 android.car.hardware.property.DriverDrowsinessAttentionState in constantValues() 93 android.car.hardware.property.DriverDrowsinessAttentionState in constantValues() 99 android.car.hardware.property.DriverDrowsinessAttentionState in constantValues()
|
D | LocationCharacterizationTest.java | 46 android.car.hardware.property.LocationCharacterization.PRIOR_LOCATIONS, in constantValues() 50 android.car.hardware.property.LocationCharacterization.GYROSCOPE_FUSION, in constantValues() 54 android.car.hardware.property.LocationCharacterization.ACCELEROMETER_FUSION, in constantValues() 59 android.car.hardware.property.LocationCharacterization.COMPASS_FUSION, in constantValues() 63 android.car.hardware.property.LocationCharacterization.WHEEL_SPEED_FUSION, in constantValues() 67 android.car.hardware.property.LocationCharacterization.STEERING_ANGLE_FUSION, in constantValues() 72 android.car.hardware.property.LocationCharacterization.CAR_SPEED_FUSION, in constantValues() 76 android.car.hardware.property.LocationCharacterization.DEAD_RECKONED, in constantValues() 80 android.car.hardware.property.LocationCharacterization.RAW_GNSS_ONLY, in constantValues()
|
/packages/modules/Bluetooth/system/btcore/src/ |
D | property.cc | 125 void property_free(bt_property_t* property) { in property_free() argument 126 property_free_array(property, 1); in property_free() 139 bool property_is_addr(const bt_property_t* property) { in property_is_addr() argument 140 log::assert_that(property != NULL, "assert failed: property != NULL"); in property_is_addr() 141 return property->type == BT_PROPERTY_BDADDR; in property_is_addr() 144 bool property_is_device_class(const bt_property_t* property) { in property_is_device_class() argument 145 log::assert_that(property != NULL, "assert failed: property != NULL"); in property_is_device_class() 146 return property->type == BT_PROPERTY_CLASS_OF_DEVICE; in property_is_device_class() 149 bool property_is_device_type(const bt_property_t* property) { in property_is_device_type() argument 150 log::assert_that(property != NULL, "assert failed: property != NULL"); in property_is_device_type() [all …]
|
/packages/modules/Bluetooth/system/btcore/test/ |
D | property_test.cc | 33 bt_property_t* property = property_new_addr(&addr0); in TEST_F() local 35 EXPECT_EQ(addr0.address[0], ((uint8_t*)property->val)[0]); in TEST_F() 36 EXPECT_EQ(addr0.address[1], ((uint8_t*)property->val)[1]); in TEST_F() 37 EXPECT_EQ(addr0.address[2], ((uint8_t*)property->val)[2]); in TEST_F() 38 EXPECT_EQ(addr0.address[3], ((uint8_t*)property->val)[3]); in TEST_F() 39 EXPECT_EQ(addr0.address[4], ((uint8_t*)property->val)[4]); in TEST_F() 40 EXPECT_EQ(addr0.address[5], ((uint8_t*)property->val)[5]); in TEST_F() 41 EXPECT_EQ(BT_PROPERTY_BDADDR, property->type); in TEST_F() 42 EXPECT_EQ((int)sizeof(RawAddress), property->len); in TEST_F() 44 const RawAddress* addr1 = property_as_addr(property); in TEST_F() [all …]
|
/packages/modules/Bluetooth/system/gd/discovery/device/ |
D | bt_property.cc | 61 std::string bt_property_text(const bt_property_t& property) { in bt_property_text() argument 62 switch (property.type) { in bt_property_text() 66 bt_property_type_text(property.type).c_str(), in bt_property_text() 67 (const char*)property.val); in bt_property_text() 71 bt_property_type_text(property.type).c_str(), in bt_property_text() 72 ((const RawAddress*)property.val)->ToString().c_str()); in bt_property_text() 75 const bluetooth::Uuid* it = (const bluetooth::Uuid*)property.val; in bt_property_text() 76 for (size_t i = 0; i < (size_t)property.len; i += sizeof(bluetooth::Uuid), it++) { in bt_property_text() 80 "type:%s uuids:%s", bt_property_type_text(property.type).c_str(), oss.str().c_str()); in bt_property_text() 85 bt_property_type_text(property.type).c_str(), in bt_property_text() [all …]
|
D | bt_property_unittest.cc | 27 using namespace bluetooth::property; 282 void verify_property(const bt_property_type_t& type, const bt_property_t& property) { in verify_property() argument 283 ASSERT_EQ(type, property.type); in verify_property() 284 switch (property.type) { in verify_property() 286 ASSERT_EQ((int)kBdPropNameLength, property.len); in verify_property() 287 ASSERT_STREQ((const char*)kBdName, (const char*)property.val); in verify_property() 291 ASSERT_EQ((int)sizeof(RawAddress), property.len); in verify_property() 292 ASSERT_EQ(kRawAddress, *((RawAddress*)property.val)); in verify_property() 296 ASSERT_EQ((int)(sizeof(bluetooth::Uuid) * kUuids.size()), property.len); in verify_property() 297 const bluetooth::Uuid* uuid = (const bluetooth::Uuid*)property.val; in verify_property() [all …]
|
/packages/modules/Bluetooth/system/btcore/fuzzer/ |
D | btcore_property_fuzzer.cpp | 41 bt_property_t* property = property_new_addr(&btAddress); in process() local 42 property_as_addr(property); in process() 43 property_free(property); in process() 48 property = property_new_device_class(&deviceClass); in process() 50 const bt_device_class_t* pDeviceClass = property_as_device_class(property); in process() 52 property_free(property); in process() 56 property = property_new_device_type(deviceType); in process() 57 (void)property_as_device_type(property); in process() 58 property_free(property); in process() 61 property = property_new_discoverable_timeout(timeout); in process() [all …]
|
/packages/modules/Bluetooth/system/gd/storage/ |
D | config_cache_helper.cc | 27 void ConfigCacheHelper::SetBool(const std::string& section, const std::string& property, bool value… in SetBool() argument 28 config_cache_.SetProperty(section, property, value ? "true" : "false"); in SetBool() 31 …l<bool> ConfigCacheHelper::GetBool(const std::string& section, const std::string& property) const { in GetBool() 32 auto value_str = config_cache_.GetProperty(section, property); in GetBool() 45 void ConfigCacheHelper::SetUint64(const std::string& section, const std::string& property, uint64_t… in SetUint64() argument 46 config_cache_.SetProperty(section, property, std::to_string(value)); in SetUint64() 49 …64_t> ConfigCacheHelper::GetUint64(const std::string& section, const std::string& property) const { in GetUint64() 50 auto value_str = config_cache_.GetProperty(section, property); in GetUint64() 57 void ConfigCacheHelper::SetUint32(const std::string& section, const std::string& property, uint32_t… in SetUint32() argument 58 config_cache_.SetProperty(section, property, std::to_string(value)); in SetUint32() [all …]
|
D | config_cache_helper.h | 45 virtual void SetBool(const std::string& section, const std::string& property, bool value); 46 …virtual std::optional<bool> GetBool(const std::string& section, const std::string& property) const; 47 virtual void SetUint64(const std::string& section, const std::string& property, uint64_t value); 48 …virtual std::optional<uint64_t> GetUint64(const std::string& section, const std::string& property)… 49 virtual void SetUint32(const std::string& section, const std::string& property, uint32_t value); 50 …virtual std::optional<uint32_t> GetUint32(const std::string& section, const std::string& property)… 51 virtual void SetInt64(const std::string& section, const std::string& property, int64_t value); 52 …virtual std::optional<int64_t> GetInt64(const std::string& section, const std::string& property) c… 53 virtual void SetInt(const std::string& section, const std::string& property, int value); 54 virtual std::optional<int> GetInt(const std::string& section, const std::string& property) const; [all …]
|
D | config_cache.cc | 135 bool ConfigCache::HasProperty(const std::string& section, const std::string& property) const { in HasProperty() 139 return section_iter->second.find(property) != section_iter->second.end(); in HasProperty() 143 return section_iter->second.find(property) != section_iter->second.end(); in HasProperty() 147 return section_iter->second.find(property) != section_iter->second.end(); in HasProperty() 152 …::string> ConfigCache::GetProperty(const std::string& section, const std::string& property) const { in GetProperty() 156 auto property_iter = section_iter->second.find(property); in GetProperty() 163 auto property_iter = section_iter->second.find(property); in GetProperty() 167 return os::ParameterProvider::GetBtKeystoreInterface()->get_key(section + "-" + property); in GetProperty() 174 auto property_iter = section_iter->second.find(property); in GetProperty() 182 void ConfigCache::SetProperty(std::string section, std::string property, std::string value) { in SetProperty() argument [all …]
|
D | storage_module.cc | 255 bool StorageModule::HasProperty(const std::string& section, const std::string& property) const { in HasProperty() 257 return pimpl_->cache_.HasProperty(section, property); in HasProperty() 261 const std::string& section, const std::string& property) const { in GetProperty() 263 return pimpl_->cache_.GetProperty(section, property); in GetProperty() 266 void StorageModule::SetProperty(std::string section, std::string property, std::string value) { in SetProperty() argument 268 pimpl_->cache_.SetProperty(section, property, value); in SetProperty() 281 bool StorageModule::RemoveProperty(const std::string& section, const std::string& property) { in RemoveProperty() argument 283 return pimpl_->cache_.RemoveProperty(section, property); in RemoveProperty() 291 void StorageModule::RemoveSectionWithProperty(const std::string& property) { in RemoveSectionWithProperty() argument 293 return pimpl_->cache_.RemoveSectionWithProperty(property); in RemoveSectionWithProperty() [all …]
|
D | storage_module.h | 151 bool HasProperty(const std::string& section, const std::string& property) const; 154 const std::string& section, const std::string& property) const; 155 void SetProperty(std::string section, std::string property, std::string value); 160 bool RemoveProperty(const std::string& section, const std::string& property); 163 void RemoveSectionWithProperty(const std::string& property); 165 void SetBool(const std::string& section, const std::string& property, bool value); 166 std::optional<bool> GetBool(const std::string& section, const std::string& property) const; 167 void SetUint64(const std::string& section, const std::string& property, uint64_t value); 168 std::optional<uint64_t> GetUint64(const std::string& section, const std::string& property) const; 169 void SetUint32(const std::string& section, const std::string& property, uint32_t value); [all …]
|
D | config_cache.h | 73 virtual bool HasProperty(const std::string& section, const std::string& property) const; 75 …::optional<std::string> GetProperty(const std::string& section, const std::string& property) const; 84 virtual bool IsPersistentProperty(const std::string& property) const; 90 std::string property; member 92 return section == rhs.section && property == rhs.property; 98 …td::vector<SectionAndPropertyValue> GetSectionNamesWithProperty(const std::string& property) const; 105 virtual void SetProperty(std::string section, std::string property, std::string value); 107 virtual bool RemoveProperty(const std::string& section, const std::string& property); 111 virtual void RemoveSectionWithProperty(const std::string& property);
|
/packages/modules/Bluetooth/system/main/shim/ |
D | config.cc | 40 const std::string& property) { in HasProperty() argument 41 return GetStorage()->HasProperty(section, property); in HasProperty() 45 const std::string& property, int* value) { in GetInt() argument 47 auto ret = GetStorage()->GetInt(section, property); in GetInt() 55 const std::string& property, int value) { in SetInt() argument 56 GetStorage()->SetInt(section, property, value); in SetInt() 61 const std::string& property, in GetUint64() argument 64 auto ret = GetStorage()->GetUint64(section, property); in GetUint64() 72 const std::string& property, in SetUint64() argument 74 GetStorage()->SetUint64(section, property, value); in SetUint64() [all …]
|
/packages/modules/Bluetooth/system/btcore/include/ |
D | property.h | 56 void property_free(bt_property_t* property); 62 bool property_is_addr(const bt_property_t* property); 63 bool property_is_device_class(const bt_property_t* property); 64 bool property_is_device_type(const bt_property_t* property); 65 bool property_is_discoverable_timeout(const bt_property_t* property); 66 bool property_is_name(const bt_property_t* property); 67 bool property_is_rssi(const bt_property_t* property); 68 bool property_is_scan_mode(const bt_property_t* property); 69 bool property_is_uuids(const bt_property_t* property); 73 const RawAddress* property_as_addr(const bt_property_t* property); [all …]
|
/packages/modules/AppSearch/service/java/com/android/server/appsearch/external/localstorage/converter/ |
D | GenericDocumentToProtoConverter.java | 79 Object property = document.getProperty(name); in toDocumentProto() local 80 if (property instanceof String[]) { in toDocumentProto() 81 String[] stringValues = (String[]) property; in toDocumentProto() 85 } else if (property instanceof long[]) { in toDocumentProto() 86 long[] longValues = (long[]) property; in toDocumentProto() 90 } else if (property instanceof double[]) { in toDocumentProto() 91 double[] doubleValues = (double[]) property; in toDocumentProto() 95 } else if (property instanceof boolean[]) { in toDocumentProto() 96 boolean[] booleanValues = (boolean[]) property; in toDocumentProto() 100 } else if (property instanceof byte[][]) { in toDocumentProto() [all …]
|
/packages/modules/Bluetooth/system/test/headless/ |
D | property.cc | 38 return new headless::property::name_t(data, len); in __anon4b405c0e0202() 42 return new headless::property::bdaddr_t(data, len); in __anon4b405c0e0302() 46 return new headless::property::uuid_t(data, len); in __anon4b405c0e0402() 50 return new headless::property::class_of_device_t(data, len); in __anon4b405c0e0502() 54 return new headless::property::type_of_device_t(data, len); in __anon4b405c0e0602() 58 return new headless::property::void_t(data, len, in __anon4b405c0e0702() 63 return new headless::property::void_t(data, len, in __anon4b405c0e0802() 68 return new headless::property::void_t( in __anon4b405c0e0902() 73 return new headless::property::void_t( in __anon4b405c0e0a02() 78 return new headless::property::void_t( in __anon4b405c0e0b02() [all …]
|
/packages/modules/IntentResolver/java/src/com/android/intentresolver/validation/ |
D | Validation.kt | 37 @Throws(InvalidResultError::class) fun <T> required(property: Validator<T>): T in <lambda>() 47 fun <T> optional(property: Validator<T>): T? in <lambda>() 54 fun <T> ignored(property: Validator<T>, reason: String) in <lambda>() 102 override fun <T> optional(property: Validator<T>): T? = validate(property, WARNING) in optional() 104 override fun <T> required(property: Validator<T>): T { in optional() 105 return validate(property, CRITICAL) ?: throw InvalidResultError() in optional() 108 override fun <T> ignored(property: Validator<T>, reason: String) { in ignored() 109 val result = property.validate(source, WARNING) in ignored() 112 findings += IgnoredValue(property.key, reason) in ignored() 116 private fun <T> validate(property: Validator<T>, importance: Importance): T? { in validate() [all …]
|
/packages/modules/AdServices/sdksandbox/tests/testutils/src/android/app/sdksandbox/testutils/ |
D | DeviceConfigUtils.java | 34 public void deleteProperty(String property) throws Exception { in deleteProperty() argument 35 if (DeviceConfig.getProperty(mNamespace, property) == null) { in deleteProperty() 39 mConfigListener.setLatchForProperty(mLatch, property); in deleteProperty() 40 DeviceConfig.deleteProperty(mNamespace, property); in deleteProperty() 44 public void setProperty(String property, String value) throws Exception { in setProperty() argument 46 mConfigListener.setLatchForProperty(mLatch, property); in setProperty() 47 DeviceConfig.setProperty(mNamespace, property, value, /*makeDefault= */ false); in setProperty() 51 public void resetToInitialValue(String property, String value) throws Exception { in resetToInitialValue() argument 53 setProperty(property, value); in resetToInitialValue() 55 deleteProperty(property); in resetToInitialValue()
|
/packages/services/Car/car-lib/api/ |
D | lint-baseline.txt | 10 CallbackInterface: android.car.hardware.property.CarPropertyManager.CarPropertyEventCallback: 18 ConcreteCollection: android.car.hardware.property.CarPropertyManager#getPropertyList(android.util.A… 38 …utorRegistration: android.car.hardware.property.CarPropertyManager#registerCallback(android.car.ha… 138 MissingNullability: android.car.hardware.property.CarPropertyManager.CarPropertyEventCallback#onCha… 1424 UnflaggedApi: android.car.hardware.property.AreaIdConfig: 1425 New API must be flagged with @FlaggedApi: class android.car.hardware.property.AreaIdConfig 1426 UnflaggedApi: android.car.hardware.property.AreaIdConfig#CREATOR: 1427 … New API must be flagged with @FlaggedApi: field android.car.hardware.property.AreaIdConfig.CREATOR 1428 UnflaggedApi: android.car.hardware.property.AreaIdConfig#describeContents(): 1429 …New API must be flagged with @FlaggedApi: method android.car.hardware.property.AreaIdConfig.descri… [all …]
|
/packages/apps/Provision/src/com/android/provision/ |
D | Utils.java | 56 static String getSettings(ContentResolver resolver, String property, in getSettings() argument 59 Log.w(TAG, "Using OVERRIDDEN value " + overriddenValue + " for property " + property); in getSettings() 62 String value = Settings.Secure.getString(resolver, property); in getSettings() 63 Log.w(TAG, "Using value " + overriddenValue + " for property " + property); in getSettings() 67 static int getSettings(ContentResolver resolver, String property, in getSettings() argument 70 Log.w(TAG, "Using OVERRIDDEN value " + overriddenValue + " for property " + property); in getSettings() 73 int value = Settings.Secure.getInt(resolver, property, overriddenValue); in getSettings() 74 Log.w(TAG, "Using value " + overriddenValue + " for property " + property); in getSettings()
|
/packages/services/Car/car-lib/src/android/car/hardware/property/ |
D | ICarProperty.aidl | 17 package android.car.hardware.property; 21 import android.car.hardware.property.ICarPropertyEventListener; 23 import com.android.car.internal.property.AsyncPropertyServiceRequest; 24 import com.android.car.internal.property.IAsyncPropertyResultCallback; 25 import com.android.car.internal.property.CarPropertyConfigList; 26 import com.android.car.internal.property.AsyncPropertyServiceRequestList; 27 import com.android.car.internal.property.CarSubscription; 28 import com.android.car.internal.property.GetPropertyConfigListResult;
|