Home
last modified time | relevance | path

Searched refs:properties (Results 1 – 25 of 235) sorted by relevance

12345678910

/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/avrcpcontroller/bip/
DBipImagePropertiesTest.java125 BipImageProperties properties = new BipImageProperties(stream); in testParsePropertiesSimple() local
126 Assert.assertEquals(IMAGE_HANDLE, properties.getImageHandle()); in testParsePropertiesSimple()
127 Assert.assertEquals(VERSION, properties.getVersion()); in testParsePropertiesSimple()
128 Assert.assertEquals(null, properties.getFriendlyName()); in testParsePropertiesSimple()
129 Assert.assertTrue(properties.isValid()); in testParsePropertiesSimple()
130 Assert.assertEquals(xmlString, properties.toString()); in testParsePropertiesSimple()
156 BipImageProperties properties = new BipImageProperties(stream); in testParsePropertiesRich() local
157 Assert.assertEquals(IMAGE_HANDLE, properties.getImageHandle()); in testParsePropertiesRich()
158 Assert.assertEquals(VERSION, properties.getVersion()); in testParsePropertiesRich()
159 Assert.assertEquals(FRIENDLY_NAME, properties.getFriendlyName()); in testParsePropertiesRich()
[all …]
/packages/modules/AppSearch/service/java/com/android/server/appsearch/
DFrameworkAppSearchConfig.java164 properties -> {
165 if (!properties.getNamespace().equals(DeviceConfig.NAMESPACE_APPSEARCH)) {
169 updateCachedValues(properties);
232 DeviceConfig.Properties properties = DeviceConfig.getProperties( in initialize() local
234 updateCachedValues(properties); in initialize()
516 private void updateCachedValues(@NonNull DeviceConfig.Properties properties) { in updateCachedValues() argument
517 for (String key : properties.getKeyset()) { in updateCachedValues()
518 updateCachedValue(key, properties); in updateCachedValues()
524 @NonNull DeviceConfig.Properties properties) { in updateCachedValue() argument
525 if (properties.getString(key, /*defaultValue=*/ null) == null) { in updateCachedValue()
[all …]
/packages/modules/common/
DAndroid.bp29 properties: [
39 properties: [
49 properties: [
59 properties: [
69 properties: [
79 properties: [
89 properties: [
99 properties: [
109 properties: [
119 properties: [
[all …]
/packages/modules/Bluetooth/tools/rootcanal/test/controller/le/
Dtest_helpers.h31 bluetooth::hci::AdvertisingEventProperties properties; variable
32 properties.connectable_ = (mask & CONNECTABLE) != 0;
33 properties.scannable_ = (mask & SCANNABLE) != 0;
34 properties.directed_ = (mask & DIRECTED) != 0;
35 properties.high_duty_cycle_ = (mask & HIGH_DUTY_CYCLE) != 0;
36 properties.legacy_ = (mask & LEGACY) != 0;
37 properties.anonymous_ = (mask & ANONYMOUS) != 0;
38 properties.tx_power_ = (mask & TX_POWER) != 0;
39 return properties;
/packages/apps/Dialer/java/com/android/incallui/answer/impl/utils/
DFlingAnimationUtils.java95 AnimatorProperties properties = getProperties(currValue, endValue, velocity, maxDistance); in apply() local
96 animator.setDuration(properties.duration); in apply()
97 animator.setInterpolator(properties.interpolator); in apply()
117 AnimatorProperties properties = getProperties(currValue, endValue, velocity, maxDistance); in apply() local
118 animator.setDuration(properties.duration); in apply()
119 animator.setInterpolator(properties.interpolator); in apply()
163 AnimatorProperties properties = in applyDismissing() local
165 animator.setDuration(properties.duration); in applyDismissing()
166 animator.setInterpolator(properties.interpolator); in applyDismissing()
187 AnimatorProperties properties = in applyDismissing() local
[all …]
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/
DHealthConnectDeviceConfigManager.java525 public void onPropertiesChanged(DeviceConfig.Properties properties) { in onPropertiesChanged() argument
526 if (!properties.getNamespace().equals(HEALTH_FITNESS_NAMESPACE)) { in onPropertiesChanged()
530 Set<String> changedFlags = new ArraySet<>(properties.getKeyset()); in onPropertiesChanged()
538 properties.getBoolean( in onPropertiesChanged()
547 properties.getBoolean( in onPropertiesChanged()
557 properties.getBoolean( in onPropertiesChanged()
568 properties.getInt( in onPropertiesChanged()
578 properties.getInt( in onPropertiesChanged()
588 properties.getInt( in onPropertiesChanged()
598 properties.getInt( in onPropertiesChanged()
[all …]
/packages/modules/AppSearch/framework/java/external/android/app/appsearch/
DVisibilityPermissionDocument.java96 static long[] toLongs(@NonNull Set<Integer> properties) { in toLongs() argument
97 long[] outputs = new long[properties.size()]; in toLongs()
99 for (int property : properties) { in toLongs()
106 private static Set<Integer> toInts(@Nullable long[] properties) { in toInts() argument
107 if (properties == null) { in toInts()
110 Set<Integer> outputs = new ArraySet<>(properties.length); in toInts()
111 for (long property : properties) { in toInts()
/packages/modules/Bluetooth/system/btif/src/
Dbtif_core.cc327 bt_property_t properties[NUM_ADAPTER_PROPERTIES]; in btif_in_get_adapter_properties() local
340 BTIF_STORAGE_FILL_PROPERTY(&properties[num_props], BT_PROPERTY_BDADDR, in btif_in_get_adapter_properties()
342 status = btif_storage_get_adapter_property(&properties[num_props]); in btif_in_get_adapter_properties()
350 BTIF_STORAGE_FILL_PROPERTY(&properties[num_props], BT_PROPERTY_BDNAME, in btif_in_get_adapter_properties()
352 btif_storage_get_adapter_property(&properties[num_props]); in btif_in_get_adapter_properties()
356 BTIF_STORAGE_FILL_PROPERTY(&properties[num_props], in btif_in_get_adapter_properties()
359 btif_storage_get_adapter_property(&properties[num_props]); in btif_in_get_adapter_properties()
363 BTIF_STORAGE_FILL_PROPERTY(&properties[num_props], in btif_in_get_adapter_properties()
366 btif_storage_get_adapter_property(&properties[num_props]); in btif_in_get_adapter_properties()
370 BTIF_STORAGE_FILL_PROPERTY(&properties[num_props], in btif_in_get_adapter_properties()
[all …]
Dbluetooth.cc1142 bt_property_t* properties) { in property_deep_copy_array() argument
1147 auto len = properties[i].len; in property_deep_copy_array()
1159 auto len = properties[i].len; in property_deep_copy_array()
1160 copy[i].type = properties[i].type; in property_deep_copy_array()
1166 memcpy(content, properties[i].val, len); in property_deep_copy_array()
1183 bt_property_t* properties) { in invoke_adapter_properties_cb() argument
1187 bt_property_t* properties) { in invoke_adapter_properties_cb() argument
1189 num_properties, properties); in invoke_adapter_properties_cb()
1190 if (properties) { in invoke_adapter_properties_cb()
1191 osi_free(properties); in invoke_adapter_properties_cb()
[all …]
Dbtif_iot_config.cc73 bt_property_t properties[2]; in btif_iot_update_remote_info() local
97 BTIF_STORAGE_FILL_PROPERTY(&properties[num_properties], in btif_iot_update_remote_info()
100 &properties[num_properties]) == in btif_iot_update_remote_info()
114 BTIF_STORAGE_FILL_PROPERTY(&properties[num_properties], in btif_iot_update_remote_info()
118 &properties[num_properties]) == in btif_iot_update_remote_info()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/utils/
DFeatureUtils.kt62 override fun onPropertiesChanged(properties: DeviceConfig.Properties) { in isSessionTypesEnabled()
64 if (!properties.namespace.equals(HEALTH_FITNESS_FLAGS_NAMESPACE)) { in isSessionTypesEnabled()
67 for (name in properties.keyset) { in isSessionTypesEnabled()
71 properties.getBoolean(PROPERTY_EXERCISE_ROUTE_ENABLED, true) in isSessionTypesEnabled()
74 properties.getBoolean(PROPERTY_SESSIONS_TYPE_ENABLED, true) in isSessionTypesEnabled()
77 properties.getBoolean(PROPERTY_ENTRY_POINTS_ENABLED, true) in isSessionTypesEnabled()
/packages/modules/Bluetooth/system/gd/os/host/
Dsystem_properties.cc28 std::unordered_map<std::string, std::string> properties; variable
33 auto iter = properties.find(property); in GetSystemProperty()
34 if (iter == properties.end()) { in GetSystemProperty()
42 properties.insert_or_assign(property, value); in SetSystemProperty()
48 properties.clear(); in ClearSystemPropertiesForHost()
/packages/modules/Bluetooth/system/gd/os/chromeos/
Dsystem_properties.cc30 std::unordered_map<std::string, std::string> properties = { variable
37 auto iter = properties.find(property); in GetSystemProperty()
38 if (iter == properties.end()) { in GetSystemProperty()
46 properties.insert_or_assign(property, value); in SetSystemProperty()
52 properties.clear(); in ClearSystemPropertiesForHost()
/packages/modules/Bluetooth/system/gd/os/linux/
Dsystem_properties.cc30 std::unordered_map<std::string, std::string> properties = { variable
37 auto iter = properties.find(property); in GetSystemProperty()
38 if (iter == properties.end()) { in GetSystemProperty()
46 properties.insert_or_assign(property, value); in SetSystemProperty()
52 properties.clear(); in ClearSystemPropertiesForHost()
/packages/modules/Bluetooth/tools/rootcanal/test/LL/DDI/ADV/
DBV_47_C.py14 def make_advertising_event_properties(properties: int) -> hci.AdvertisingEventProperties:
15 return hci.AdvertisingEventProperties(connectable=(properties & 0x1) != 0,
16 scannable=(properties & 0x2) != 0,
17 directed=(properties & 0x4) != 0,
18 high_duty_cycle=(properties & 0x8) != 0,
19 legacy=(properties & 0x10) != 0,
20 anonymous=(properties & 0x20) != 0,
21 tx_power=(properties & 0x40) != 0)
/packages/modules/AppSearch/service/java/com/android/server/appsearch/external/localstorage/visibilitystore/
DVisibilityDocumentV1.java213 static long[] toLongs(@NonNull Set<Integer> properties) { in toLongs() argument
214 long[] outputs = new long[properties.size()]; in toLongs()
216 for (int property : properties) { in toLongs()
223 private static Set<Integer> toInts(@Nullable long[] properties) { in toInts() argument
224 if (properties == null) { in toInts()
227 Set<Integer> outputs = new ArraySet<>(properties.length); in toInts()
228 for (long property : properties) { in toInts()
/packages/modules/AppSearch/testing/coretests/src/android/app/appsearch/external/app/
DSetSchemaResponseInternalTest.java98 List<PropertyConfig> properties = schema.getProperties(); in testPropertyConfig_deletionPropagation() local
99 assertThat(properties).hasSize(1); in testPropertyConfig_deletionPropagation()
101 assertThat(properties.get(0).getName()).isEqualTo("qualifiedId1"); in testPropertyConfig_deletionPropagation()
102 assertThat(properties.get(0).getCardinality()) in testPropertyConfig_deletionPropagation()
104 assertThat(((StringPropertyConfig) properties.get(0)).getJoinableValueType()) in testPropertyConfig_deletionPropagation()
106 assertThat(((StringPropertyConfig) properties.get(0)).getDeletionPropagation()) in testPropertyConfig_deletionPropagation()
/packages/modules/Bluetooth/system/btcore/src/
Dproperty.cc36 bt_property_t* property_copy_array(const bt_property_t* properties, in property_copy_array() argument
38 CHECK(properties != NULL); in property_copy_array()
42 memcpy(&clone[0], &properties[0], sizeof(bt_property_t) * count); in property_copy_array()
45 memcpy(clone[i].val, properties[i].val, clone[i].len); in property_copy_array()
129 void property_free_array(bt_property_t* properties, size_t count) { in property_free_array() argument
130 if (properties == NULL) return; in property_free_array()
133 osi_free(properties[i].val); in property_free_array()
136 osi_free(properties); in property_free_array()
/packages/modules/Bluetooth/system/tools/bdtool/
Dadapter.c29 static bt_property_t* properties = NULL; variable
45 if (properties[i].type == type) { in adapter_get_property()
46 return &properties[i]; in adapter_get_property()
72 property_free_array(properties, property_count); in adapter_properties()
73 properties = property_copy_array(new_properties, num_properties); in adapter_properties()
144 int num_properties, bt_property_t* properties) { in remote_device_properties() argument
149 parse_properties(num_properties, properties); in remote_device_properties()
/packages/modules/SdkExtensions/derive_sdk/
Dderive_sdk.cpp72 void ReadSystemProperties(std::map<std::string, std::string>& properties) { in ReadSystemProperties() argument
76 properties[kSystemPropertiesPrefix + dessert] = in ReadSystemProperties()
79 properties["ro.build.version.sdk"] = android::base::GetProperty("ro.build.version.sdk", default_); in ReadSystemProperties()
263 std::map<std::string, std::string> properties; in PrintHeader() local
264 ReadSystemProperties(properties); in PrintHeader()
268 for (const auto& property : properties) { in PrintHeader()
283 std::map<std::string, std::string> properties; in PrintDump() local
284 ReadSystemProperties(properties); in PrintDump()
293 for (const auto& property : properties) { in PrintDump()
/packages/modules/Bluetooth/system/gd/rust/linux/stack/src/
Dbluetooth.rs314 pub properties: HashMap<BtPropertyType, BluetoothProperty>, field
330 properties: Vec<BluetoothProperty>, in new()
338 properties: HashMap::new(), in new()
342 device.update_properties(&properties); in new()
352 self.properties.insert(prop.get_type(), prop.clone()); in update_properties()
357 self.properties.insert(prop.get_type(), prop.clone()); in update_properties()
361 self.properties.insert(prop.get_type(), prop.clone()); in update_properties()
438 properties: Vec<BluetoothProperty>, in on_remote_device_properties_changed()
472 properties: HashMap<BtPropertyType, BluetoothProperty>, field
520 properties: HashMap::new(), in new()
[all …]
/packages/modules/Bluetooth/system/test/headless/
Dinterface.h94 bt_property_t* properties) in remote_device_properties_params_t()
99 properties(properties) {} in remote_device_properties_params_t()
107 bt_property_t* properties; member
112 num_properties, properties); in ToString()
/packages/apps/DeskClock/src/com/android/deskclock/
DNotificationUtils.kt108 val properties = CHANNEL_PROPS[id]!! in createChannel() constant
109 val nameId = properties[0] in createChannel()
110 val importance = properties[1] in createChannel()
112 if (properties.size >= 3) { in createChannel()
113 val bits = properties[2] in createChannel()
/packages/modules/Bluetooth/tools/rootcanal/model/controller/
Dle_advertiser.cc1204 const AdvertisingEventProperties& properties) { in GetMaxAdvertisingDataLength() argument
1216 if (properties.legacy_ && properties.directed_) { in GetMaxAdvertisingDataLength()
1219 } else if (properties.legacy_) { in GetMaxAdvertisingDataLength()
1221 } else if (properties.scannable_) { in GetMaxAdvertisingDataLength()
1224 } else if (!properties.connectable_) { in GetMaxAdvertisingDataLength()
1238 max_advertising_data_length -= 6 * properties.directed_; // TargetA in GetMaxAdvertisingDataLength()
1239 max_advertising_data_length -= 1 * properties.tx_power_; // TxPower in GetMaxAdvertisingDataLength()
1248 const AdvertisingEventProperties& properties) { in GetMaxScanResponseDataLength() argument
1256 if (!properties.scannable_) { in GetMaxScanResponseDataLength()
1258 } else if (properties.legacy_) { in GetMaxScanResponseDataLength()
[all …]
/packages/modules/common/javatests/com/android/modules/targetprep/
DClasspathFetcherTest.java118 assertThat(mTestInfo.properties().containsKey(DEVICE_JAR_ARTIFACTS_TAG)).isTrue(); in testSingleArtifactFetcher()
120 assertThat(mTestInfo.properties().containsKey(DEVICE_JAR_ARTIFACTS_TAG)).isFalse(); in testSingleArtifactFetcher()
132 assertThat(mTestInfo.properties().containsKey(DEVICE_JAR_ARTIFACTS_TAG)).isTrue(); in testMultipleArtifactFetchers()
134 assertThat(mTestInfo.properties().containsKey(DEVICE_JAR_ARTIFACTS_TAG)).isTrue(); in testMultipleArtifactFetchers()
136 assertThat(mTestInfo.properties().containsKey(DEVICE_JAR_ARTIFACTS_TAG)).isFalse(); in testMultipleArtifactFetchers()
148 final File bcpProto = new File(mTestInfo.properties().get(DEVICE_JAR_ARTIFACTS_TAG), in testFetchCorrectBcpClasses()
175 final File sscpProto = new File(mTestInfo.properties().get(DEVICE_JAR_ARTIFACTS_TAG), in testFetchCorrectSscpClasses()

12345678910