Home
last modified time | relevance | path

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

12345678910>>...13

/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/avrcpcontroller/bip/
DBipImagePropertiesTest.java131 BipImageProperties properties = new BipImageProperties(stream); in testParsePropertiesSimple() local
132 Assert.assertEquals(IMAGE_HANDLE, properties.getImageHandle()); in testParsePropertiesSimple()
133 Assert.assertEquals(VERSION, properties.getVersion()); in testParsePropertiesSimple()
134 Assert.assertEquals(null, properties.getFriendlyName()); in testParsePropertiesSimple()
135 Assert.assertTrue(properties.isValid()); in testParsePropertiesSimple()
136 Assert.assertEquals(xmlString, properties.toString()); in testParsePropertiesSimple()
166 BipImageProperties properties = new BipImageProperties(stream); in testParsePropertiesRich() local
167 Assert.assertEquals(IMAGE_HANDLE, properties.getImageHandle()); in testParsePropertiesRich()
168 Assert.assertEquals(VERSION, properties.getVersion()); in testParsePropertiesRich()
169 Assert.assertEquals(FRIENDLY_NAME, properties.getFriendlyName()); in testParsePropertiesRich()
[all …]
/packages/modules/Bluetooth/system/gd/discovery/device/
Dbt_property_unittest.cc162 const bt_property_type_t& type, std::vector<std::shared_ptr<BtProperty>>& properties) { in fill_property() argument
165 properties.push_back(BdName::Create(kBdName)); in fill_property()
166 ASSERT_EQ(kBdPropNameLength, properties.back()->Size()); in fill_property()
170 properties.push_back(BdAddr::Create(kRawAddress)); in fill_property()
171 ASSERT_EQ(sizeof(RawAddress), properties.back()->Size()); in fill_property()
175 properties.push_back(Uuids::Create(kUuids)); in fill_property()
176 ASSERT_EQ(sizeof(bluetooth::Uuid) * kUuids.size(), properties.back()->Size()); in fill_property()
180 properties.push_back(ClassOfDevice::Create(kClassOfDevice)); in fill_property()
181 ASSERT_EQ(sizeof(uint32_t), properties.back()->Size()); in fill_property()
185 properties.push_back(TypeOfDevice::Create(kTypeOfDevice)); in fill_property()
[all …]
/packages/modules/Profiling/service/java/com/android/os/profiling/
DConfigs.java93 DeviceConfig.Properties properties = DeviceConfigHelper.getAllSystemTraceProperties(); in initializeSystemTraceConfigsIfNecessary() local
95 sKillswitchSystemTrace = properties.getBoolean( in initializeSystemTraceConfigsIfNecessary()
97 sSystemTraceDurationMsDefault = properties.getInt( in initializeSystemTraceConfigsIfNecessary()
99 sSystemTraceDurationMsMin = properties.getInt( in initializeSystemTraceConfigsIfNecessary()
101 sSystemTraceDurationMsMax = properties.getInt( in initializeSystemTraceConfigsIfNecessary()
103 sSystemTraceSizeKbDefault = properties.getInt( in initializeSystemTraceConfigsIfNecessary()
105 sSystemTraceSizeKbMin = properties.getInt( in initializeSystemTraceConfigsIfNecessary()
107 sSystemTraceSizeKbMax = properties.getInt( in initializeSystemTraceConfigsIfNecessary()
119 DeviceConfig.Properties properties = DeviceConfigHelper.getAllJavaHeapDumpProperties(); in initializeJavaHeapDumpConfigsIfNecessary() local
121 sKillswitchJavaHeapDump = properties.getBoolean( in initializeJavaHeapDumpConfigsIfNecessary()
[all …]
DRateLimiter.java128 DeviceConfig.Properties properties = DeviceConfigHelper.getAllRateLimiterProperties(); in RateLimiter() local
131 properties.getInt(DeviceConfigHelper.MAX_COST_SYSTEM_1_HOUR, in RateLimiter()
133 properties.getInt(DeviceConfigHelper.MAX_COST_PROCESS_1_HOUR, in RateLimiter()
137 properties.getInt(DeviceConfigHelper.MAX_COST_SYSTEM_24_HOUR, in RateLimiter()
139 properties.getInt(DeviceConfigHelper.MAX_COST_PROCESS_24_HOUR, in RateLimiter()
143 properties.getInt(DeviceConfigHelper.MAX_COST_SYSTEM_7_DAY, in RateLimiter()
145 properties.getInt(DeviceConfigHelper.MAX_COST_PROCESS_7_DAY, in RateLimiter()
149 mCostJavaHeapDump = properties.getInt(DeviceConfigHelper.COST_JAVA_HEAP_DUMP, in RateLimiter()
151 mCostHeapProfile = properties.getInt(DeviceConfigHelper.COST_HEAP_PROFILE, in RateLimiter()
153 mCostStackSampling = properties.getInt(DeviceConfigHelper.COST_STACK_SAMPLING, in RateLimiter()
[all …]
/packages/modules/AppSearch/service/java/com/android/server/appsearch/
DFrameworkServiceAppSearchConfig.java186 properties -> {
187 if (!properties.getNamespace().equals(DeviceConfig.NAMESPACE_APPSEARCH)) {
191 updateCachedValues(properties);
257 DeviceConfig.Properties properties = in initialize() local
260 updateCachedValues(properties); in initialize()
628 private void updateCachedValues(@NonNull DeviceConfig.Properties properties) { in updateCachedValues() argument
629 for (String key : properties.getKeyset()) { in updateCachedValues()
630 updateCachedValue(key, properties); in updateCachedValues()
636 @NonNull String key, @NonNull DeviceConfig.Properties properties) { in updateCachedValue() argument
637 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/modules/HealthFitness/service/java/com/android/server/healthconnect/
DHealthConnectDeviceConfigManager.java512 public void onPropertiesChanged(DeviceConfig.Properties properties) { in onPropertiesChanged() argument
513 if (!properties.getNamespace().equals(HEALTH_FITNESS_NAMESPACE)) { in onPropertiesChanged()
517 Set<String> changedFlags = new ArraySet<>(properties.getKeyset()); in onPropertiesChanged()
526 properties.getBoolean( in onPropertiesChanged()
532 properties.getBoolean( in onPropertiesChanged()
538 properties.getBoolean( in onPropertiesChanged()
544 properties.getBoolean( in onPropertiesChanged()
551 properties.getInt( in onPropertiesChanged()
557 properties.getInt( in onPropertiesChanged()
563 properties.getInt( in onPropertiesChanged()
[all …]
/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/Bluetooth/system/test/headless/
Dinterface.h97 std::deque<bluetooth::test::headless::bt_property_t*> properties() const { in properties() function
105 ::bt_property_t* properties) in callback_params_with_properties_t()
109 num_properties, fmt::ptr(&properties[i]), properties[i].type, in callback_params_with_properties_t()
110 fmt::ptr(properties[i].val)); in callback_params_with_properties_t()
112 bluetooth::test::headless::property_factory(properties[i])); in callback_params_with_properties_t()
177 ::bt_property_t* properties) in adapter_properties_params_t()
180 num_properties, properties), in adapter_properties_params_t()
198 ::bt_property_t* properties) in remote_device_properties_params_t()
201 num_properties, properties), in remote_device_properties_params_t()
219 device_found_params_t(int num_properties, ::bt_property_t* properties) in device_found_params_t()
[all …]
Dheadless.cc81 ::bt_property_t* properties) { in adapter_properties() argument
86 adapter_properties_params_t params(status, num_properties, properties); in adapter_properties()
92 fmt::ptr(properties)); in adapter_properties()
96 int num_properties, ::bt_property_t* properties) { in remote_device_properties() argument
105 num_properties, properties); in remote_device_properties()
112 fmt::ptr(properties)); in remote_device_properties()
116 void device_found(int num_properties, ::bt_property_t* properties) { in device_found() argument
122 device_found_params_t params(num_properties, properties); in device_found()
127 num_properties, fmt::ptr(properties)); in device_found()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/utils/
DFeatureUtils.kt135 override fun onPropertiesChanged(properties: DeviceConfig.Properties) { in isSessionTypesEnabled()
137 if (!properties.namespace.equals(HEALTH_FITNESS_FLAGS_NAMESPACE)) { in isSessionTypesEnabled()
141 for (name in properties.keyset) { in isSessionTypesEnabled()
145 properties.getBoolean(PROPERTY_EXERCISE_ROUTE_READ_ALL_ENABLED, true) in isSessionTypesEnabled()
149 properties.getBoolean(PROPERTY_SESSIONS_TYPE_ENABLED, true) in isSessionTypesEnabled()
152 properties.getBoolean(PROPERTY_ENTRY_POINTS_ENABLED, true) in isSessionTypesEnabled()
156 properties.getBoolean( in isSessionTypesEnabled()
159 properties.getBoolean(PROPERTY_PERSONAL_HEALTH_RECORD_ENABLED, false) in isSessionTypesEnabled()
/packages/services/Iwlan/test/com/google/android/iwlan/epdg/
DTunnelLinkPropertiesTest.java73 TunnelLinkProperties properties = in testGetProtocolType_emptyInternalAddresses_returnsUnknown() local
81 assertEquals(ApnSetting.PROTOCOL_UNKNOWN, properties.getProtocolType()); in testGetProtocolType_emptyInternalAddresses_returnsUnknown()
86 TunnelLinkProperties properties = createTestTunnelLinkProperties(ApnSetting.PROTOCOL_IP); in testGetProtocolType_onlyIpv4InternalAddresses_returnsIp() local
87 assertEquals(ApnSetting.PROTOCOL_IP, properties.getProtocolType()); in testGetProtocolType_onlyIpv4InternalAddresses_returnsIp()
92 TunnelLinkProperties properties = createTestTunnelLinkProperties(ApnSetting.PROTOCOL_IPV6); in testGetProtocolType_onlyIpv6InternalAddresses_returnsIpv6() local
93 assertEquals(ApnSetting.PROTOCOL_IPV6, properties.getProtocolType()); in testGetProtocolType_onlyIpv6InternalAddresses_returnsIpv6()
99 TunnelLinkProperties properties = in testGetProtocolType_bothIpv4AndIpv6InternalAddresses_returnsIpv4v6() local
101 assertEquals(ApnSetting.PROTOCOL_IPV4V6, properties.getProtocolType()); in testGetProtocolType_bothIpv4AndIpv6InternalAddresses_returnsIpv4v6()
/packages/modules/AdServices/adservices/tests/test-util/java/com/android/adservices/experimental/
DDeviceConfigFlagsManager.java135 private void setProperties(Properties properties) { in setProperties() argument
136 Log.v(TAG, "setProperties(): " + toString(properties)); in setProperties()
137 boolean set = callWithDeviceConfigPermissions(() -> DeviceConfig.setProperties(properties)); in setProperties()
140 "Failed to set properties (" + toString(properties) + ")"); in setProperties()
144 private static String toString(@Nullable Properties properties) { in toString() argument
145 if (properties == null) { in toString()
148 Set<String> keySet = properties.getKeyset(); in toString()
151 .append(properties.getNamespace()) in toString()
161 .append(properties.getString(k, "N/A")) in toString()
/packages/modules/AdServices/sdksandbox/service/java/com/android/server/sdksandbox/
DSdkSandboxSettingsListener.java179 public void onPropertiesChanged(@NonNull DeviceConfig.Properties properties) { in onPropertiesChanged() argument
181 if (!properties.getNamespace().equals(DeviceConfig.NAMESPACE_ADSERVICES)) { in onPropertiesChanged()
184 for (String name : properties.getKeyset()) { in onPropertiesChanged()
193 properties.getBoolean( in onPropertiesChanged()
203 properties.getBoolean( in onPropertiesChanged()
209 properties.getBoolean( in onPropertiesChanged()
216 properties.getString(PROPERTY_SERVICES_ALLOWLIST, null)); in onPropertiesChanged()
221 properties.getString( in onPropertiesChanged()
227 properties.getString( in onPropertiesChanged()
233 properties.getString( in onPropertiesChanged()
[all …]
/packages/modules/Bluetooth/system/btif/test/
Dbtif_dm_test.cc168 std::vector<bt_property_t> properties; in TEST_F_WITH_FLAGS() member
173 .properties = {}, in TEST_F_WITH_FLAGS()
179 bt_property_t* properties) { in TEST_F_WITH_FLAGS() argument
184 .properties = std::vector<bt_property_t>( in TEST_F_WITH_FLAGS()
185 properties, properties + (size_t)num_properties), in TEST_F_WITH_FLAGS()
199 invoke_remote_device_properties_cb.properties[0].type); in TEST_F_WITH_FLAGS()
201 invoke_remote_device_properties_cb.properties[0].len); in TEST_F_WITH_FLAGS()
204 (const char*)invoke_remote_device_properties_cb.properties[0].val); in TEST_F_WITH_FLAGS()
/packages/modules/AppSearch/framework/java/external/android/app/appsearch/
DVisibilityPermissionConfig.java103 private static int[] toInts(@NonNull Set<Integer> properties) { in toInts() argument
104 int[] outputs = new int[properties.size()]; in toInts()
106 for (int property : properties) { in toInts()
113 private static Set<Integer> toIntegerSet(@Nullable int[] properties) { in toIntegerSet() argument
114 if (properties == null) { in toIntegerSet()
117 Set<Integer> outputs = new ArraySet<>(properties.length); in toIntegerSet()
118 for (int property : properties) { in toIntegerSet()
/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/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/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/system/btif/src/
Dbtif_core.cc310 bt_property_t properties[NUM_ADAPTER_PROPERTIES]; in btif_in_get_adapter_properties() local
322 BTIF_STORAGE_FILL_PROPERTY(&properties[num_props], BT_PROPERTY_BDADDR, in btif_in_get_adapter_properties()
324 status = btif_storage_get_adapter_property(&properties[num_props]); in btif_in_get_adapter_properties()
332 BTIF_STORAGE_FILL_PROPERTY(&properties[num_props], BT_PROPERTY_BDNAME, in btif_in_get_adapter_properties()
334 btif_storage_get_adapter_property(&properties[num_props]); in btif_in_get_adapter_properties()
338 BTIF_STORAGE_FILL_PROPERTY(&properties[num_props], in btif_in_get_adapter_properties()
341 btif_storage_get_adapter_property(&properties[num_props]); in btif_in_get_adapter_properties()
345 BTIF_STORAGE_FILL_PROPERTY(&properties[num_props], in btif_in_get_adapter_properties()
348 btif_storage_get_adapter_property(&properties[num_props]); in btif_in_get_adapter_properties()
352 BTIF_STORAGE_FILL_PROPERTY(&properties[num_props], in btif_in_get_adapter_properties()
[all …]
/packages/modules/AppSearch/service/java/com/android/server/appsearch/external/localstorage/visibilitystore/
DVisibilityDocumentV1.java220 static long[] toLongs(@NonNull Set<Integer> properties) { in toLongs() argument
221 long[] outputs = new long[properties.size()]; in toLongs()
223 for (int property : properties) { in toLongs()
230 private static Set<Integer> toInts(@Nullable long[] properties) { in toInts() argument
231 if (properties == null) { in toInts()
234 Set<Integer> outputs = new ArraySet<>(properties.length); in toInts()
235 for (long property : properties) { in toInts()
/packages/modules/Bluetooth/tools/rootcanal/test/LL/DDI/ADV/
DBV_47_C.py28 def make_advertising_event_properties(properties: int) -> hci.AdvertisingEventProperties:
29 return hci.AdvertisingEventProperties(connectable=(properties & 0x1) != 0,
30 scannable=(properties & 0x2) != 0,
31 directed=(properties & 0x4) != 0,
32 high_duty_cycle=(properties & 0x8) != 0,
33 legacy=(properties & 0x10) != 0,
34 anonymous=(properties & 0x20) != 0,
35 tx_power=(properties & 0x40) != 0)
/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 log::assert_that(properties != NULL, "assert failed: 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/SdkExtensions/derive_sdk/
Dderive_sdk.cpp77 void ReadSystemProperties(std::map<std::string, std::string>& properties) { in ReadSystemProperties() argument
81 properties[kSystemPropertiesPrefix + dessert] = in ReadSystemProperties()
84 properties["ro.build.version.sdk"] = android::base::GetProperty("ro.build.version.sdk", default_); in ReadSystemProperties()
258 std::map<std::string, std::string> properties; in PrintHeader() local
259 ReadSystemProperties(properties); in PrintHeader()
263 for (const auto& property : properties) { in PrintHeader()
278 std::map<std::string, std::string> properties; in PrintDump() local
279 ReadSystemProperties(properties); in PrintDump()
288 for (const auto& property : properties) { in PrintDump()

12345678910>>...13