/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/ |
D | DeviceConfigUtilsTest.java | 137 doReturn(null).when(() -> DeviceConfig.getProperty(eq(TEST_NAME_SPACE), in testGetDeviceConfigPropertyInt_Null() 146 doReturn(TEST_FLAG_VALUE_STRING).when(() -> DeviceConfig.getProperty(eq(TEST_NAME_SPACE), in testGetDeviceConfigPropertyInt_NotNull() 155 doReturn(TEST_FLAG_VALUE_STRING).when(() -> DeviceConfig.getProperty(eq(TEST_NAME_SPACE), in testGetDeviceConfigPropertyInt_NormalValue() 165 doReturn(null).when(() -> DeviceConfig.getProperty( in testGetDeviceConfigPropertyInt_NullValue() 175 doReturn(Integer.toString(TEST_MAX_FLAG_VALUE + 10)).when(() -> DeviceConfig.getProperty( in testGetDeviceConfigPropertyInt_OverMaximumValue() 185 doReturn(Integer.toString(TEST_MAX_FLAG_VALUE)).when(() -> DeviceConfig.getProperty( in testGetDeviceConfigPropertyInt_EqualsMaximumValue() 195 doReturn(Integer.toString(TEST_MIN_FLAG_VALUE - 10)).when(() -> DeviceConfig.getProperty( in testGetDeviceConfigPropertyInt_BelowMinimumValue() 205 doReturn(Integer.toString(TEST_MIN_FLAG_VALUE)).when(() -> DeviceConfig.getProperty( in testGetDeviceConfigPropertyInt_EqualsMinimumValue() 215 doReturn(null).when(() -> DeviceConfig.getProperty(eq(TEST_NAME_SPACE), in testGetDeviceConfigPropertyBoolean_Null() 224 doReturn("true").when(() -> DeviceConfig.getProperty(eq(TEST_NAME_SPACE), in testGetDeviceConfigPropertyBoolean_NotNull() [all …]
|
/packages/modules/Virtualization/tests/helper/src/java/com/android/microdroid/test/common/ |
D | DeviceProperties.java | 26 String getProperty(String key) throws Exception; in getProperty() method 54 String vendorDeviceName = getProperty(KEY_VENDOR_DEVICE); in isCuttlefish() 62 String vendorDeviceName = getProperty(KEY_VENDOR_DEVICE); in isCuttlefishArm64() 71 String productName = getProperty(KEY_PRODUCT_NAME); in isHwasan() 79 return USER_BUILD_TYPE.equals(getProperty(KEY_BUILD_TYPE)); in isUserBuild() 83 return getProperty(KEY_METRICS_TAG); in getMetricsTag() 86 private String getProperty(String key) { in getProperty() method in DeviceProperties 88 return mPropertyGetter.getProperty(key); in getProperty()
|
/packages/services/Car/tests/CarLibUnitTest/src/android/car/hardware/property/ |
D | CarPropertyManagerUnitTest.java | 306 when(mICarProperty.getProperty(HVAC_TEMPERATURE_SET, 0)).thenReturn(value); in testGetProperty_returnsValue() 308 assertThat(mCarPropertyManager.getProperty(HVAC_TEMPERATURE_SET, 0)).isEqualTo(value); in testGetProperty_returnsValue() 316 () -> mCarPropertyManager.getProperty(INVALID, 0)); in testGetProperty_unsupportedProperty_exceptionAtU() 323 assertThat(mCarPropertyManager.getProperty(INVALID, 0)).isNull(); in testGetProperty_unsupportedProperty_nullBeforeU() 329 when(mICarProperty.getProperty(HVAC_TEMPERATURE_SET, 0)).thenThrow( in testGetProperty_unsupportedPropertyInSvc_exceptionAtU() 333 () -> mCarPropertyManager.getProperty(HVAC_TEMPERATURE_SET, 0)); in testGetProperty_unsupportedPropertyInSvc_exceptionAtU() 339 when(mICarProperty.getProperty(HVAC_TEMPERATURE_SET, 0)).thenThrow( in testGetProperty_unsupportedPropertyInSvc_nullBeforeU() 342 assertThat(mCarPropertyManager.getProperty(HVAC_TEMPERATURE_SET, 0)).isNull(); in testGetProperty_unsupportedPropertyInSvc_nullBeforeU() 349 when(mICarProperty.getProperty(HVAC_TEMPERATURE_SET, 0)).thenThrow( in testGetProperty_syncOpTryAgain() 352 assertThat(mCarPropertyManager.getProperty(HVAC_TEMPERATURE_SET, 0)).isEqualTo(value); in testGetProperty_syncOpTryAgain() [all …]
|
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/ |
D | ProxyTest.kt | 59 assertEquals(info.host, System.getProperty("http.proxyHost")) in verifyProxySystemProperties() 60 assertEquals(info.host, System.getProperty("https.proxyHost")) in verifyProxySystemProperties() 62 assertEquals(info.port.toString(), System.getProperty("http.proxyPort")) in verifyProxySystemProperties() 63 assertEquals(info.port.toString(), System.getProperty("https.proxyPort")) in verifyProxySystemProperties() 67 assertEquals(strExcludes, System.getProperty("https.nonProxyHosts")) in verifyProxySystemProperties() 68 assertEquals(strExcludes, System.getProperty("http.nonProxyHosts")) in verifyProxySystemProperties()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/ |
D | CarPropertyServiceUnitTest.java | 630 when(mHalService.getProperty(SPEED_ID, 0)).thenReturn(mValue); in testRegisterUnregisterForContinuousProperty() 640 verify(mHalService).getProperty(SPEED_ID, 0); in testRegisterUnregisterForContinuousProperty() 653 verify(mHalService).getProperty(SPEED_ID, 0); in testRegisterUnregisterForContinuousProperty() 682 when(mHalService.getProperty(HVAC_TEMP, 0)).thenReturn(mValue); in testRegisterForMultipleProperties() 684 when(mHalService.getProperty(SPEED_ID, 0)).thenReturn(mValue); in testRegisterForMultipleProperties() 695 verify(mHalService).getProperty(HVAC_TEMP, 0); in testRegisterForMultipleProperties() 696 verify(mHalService).getProperty(SPEED_ID, 0); in testRegisterForMultipleProperties() 724 when(mHalService.getProperty(HVAC_TEMP, 0)).thenReturn(mValue); in testRegisterUnregisterForOnChangeProperty() 735 verify(mHalService).getProperty(HVAC_TEMP, 0); in testRegisterUnregisterForOnChangeProperty() 749 verify(mHalService).getProperty(HVAC_TEMP, 0); in testRegisterUnregisterForOnChangeProperty() [all …]
|
/packages/modules/AdServices/sdksandbox/service/java/com/android/server/sdksandbox/ |
D | SdkSandboxSettingsListener.java | 120 DeviceConfig.getProperty( 126 DeviceConfig.getProperty( 132 DeviceConfig.getProperty( 138 DeviceConfig.getProperty( 146 DeviceConfig.getProperty( 153 DeviceConfig.getProperty( 161 DeviceConfig.getProperty( 168 DeviceConfig.getProperty(
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/pbap/ |
D | BluetoothPbapVcardManagerNestedClassesTest.java | 88 final String separator = System.getProperty("line.separator"); in VCardFilter_apply_returnsSameVcard() 110 final String separator = System.getProperty("line.separator"); in PropertySelector_checkVCardSelector_atLeastOnePropertyExists_returnsTrue() 127 final String separator = System.getProperty("line.separator"); in PropertySelector_checkVCardSelector_atLeastOnePropertyExists_returnsFalse() 144 final String separator = System.getProperty("line.separator"); in PropertySelector_checkVCardSelector_allPropertiesExist_returnsTrue() 161 final String separator = System.getProperty("line.separator"); in PropertySelector_checkVCardSelector_allPropertiesExist_returnsFalse()
|
/packages/services/Car/tests/carservice_test/src/com/android/car/ |
D | CarPropertyManagerTest.java | 328 CarPropertyValue<Object[]> result = mManager.getProperty( in testGetMixTypeProperty() 334 result = mManager.getProperty( in testGetMixTypeProperty() 340 result = mManager.getProperty( in testGetMixTypeProperty() 484 CarPropertyValue<Integer[]> result = mManager.getProperty(Integer[].class, in testGetPropertyWithClass() 849 () -> mManager.getProperty(PROP_CAUSE_STATUS_CODE_ACCESS_DENIED, 0)); in testGetterExceptionsBeforeR() 853 assertThat(mManager.getProperty(PROP_CAUSE_STATUS_CODE_INVALID_ARG, 0)).isNull(); in testGetterExceptionsBeforeR() 855 assertThat(mManager.getProperty(PROP_UNSUPPORTED, 0)).isNull(); in testGetterExceptionsBeforeR() 858 () -> mManager.getProperty(PROP_CAUSE_STATUS_CODE_NOT_AVAILABLE, 0)); in testGetterExceptionsBeforeR() 863 () -> mManager.getProperty(PROP_CAUSE_STATUS_CODE_INTERNAL_ERROR, 0)); in testGetterExceptionsBeforeR() 867 assertThrows(IllegalStateException.class, () -> mManager.getProperty(NULL_VALUE_PROP, 0)); in testGetterExceptionsBeforeR() [all …]
|
/packages/modules/Virtualization/tests/hostside/helper/java/com/android/microdroid/test/host/ |
D | MicrodroidHostTestCaseBase.java | 118 return DeviceProperties.create(getDevice()::getProperty).isUserBuild(); in isUserBuild() 122 return DeviceProperties.create(getDevice()::getProperty).isCuttlefish(); in isCuttlefish() 126 return DeviceProperties.create(getDevice()::getProperty).isHwasan(); in isHwasan() 131 DeviceProperties.create(getDevice()::getProperty).getMetricsTag()); in getMetricPrefix() 287 return getDevice().getProperty("ro.boot.hypervisor.version").equals("kvm.arm-protected"); in isPkvmHypervisor()
|
/packages/modules/AdServices/shared/libraries/host-side/java/com/android/adservices/shared/testing/ |
D | HostSideSystemPropertiesHelper.java | 18 import static com.android.adservices.shared.testing.TestDeviceHelper.getProperty; 39 return getProperty(name); in get()
|
/packages/services/Car/car-lib/src/android/car/hardware/ |
D | CarVendorExtensionManager.java | 158 return getProperty(propertyClass, propId, 0 /* area */); in getGlobalProperty() 171 public <E> E getProperty(Class<E> propertyClass, int propId, int area) { in getProperty() method in CarVendorExtensionManager 172 return mPropertyManager.getProperty(propertyClass, propId, area).getValue(); in getProperty()
|
/packages/modules/AppSearch/framework/java/external/android/app/appsearch/ |
D | GenericDocument.java | 263 public Object getProperty(@NonNull String path) { in getProperty() method in GenericDocument 733 Object value = getProperty(path); in getPropertyStringArray() 755 Object value = getProperty(path); in getPropertyLongArray() 777 Object value = getProperty(path); in getPropertyDoubleArray() 799 Object value = getProperty(path); in getPropertyBooleanArray() 824 Object value = getProperty(path); in getPropertyBytesArray() 849 Object value = getProperty(path); in getPropertyDocumentArray() 873 Object value = getProperty(path); in getPropertyEmbeddingArray() 971 Object property = Objects.requireNonNull(getProperty(sortedProperties[i])); in appendGenericDocumentString()
|
/packages/modules/OnDevicePersonalization/src/com/android/ondevicepersonalization/services/manifest/ |
D | AppManifestConfigHelper.java | 45 pm.getProperty(ON_DEVICE_PERSONALIZATION_CONFIG_PROPERTY, packageName); in manifestContainsOdpSettings() 62 int resId = pm.getProperty(ON_DEVICE_PERSONALIZATION_CONFIG_PROPERTY, in getAppManifestConfig()
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | BootCompletedReceiver.java | 59 String dbTime = ContactsDatabaseHelper.getInstance(context).getProperty( in onReceive() 67 dbTime = ContactsDatabaseHelper.getInstance(context).getProperty( in onReceive()
|
/packages/modules/AdServices/sdksandbox/tests/endtoendtests/src/com/android/tests/sdksandbox/restrictions/ |
D | ContentProviderRestrictionsTest.java | 123 DeviceConfig.getProperty(DeviceConfig.NAMESPACE_ADSERVICES, ENFORCE_RESTRICTIONS); in setup() 125 DeviceConfig.getProperty( in setup() 128 DeviceConfig.getProperty( in setup() 132 DeviceConfig.getProperty( in setup()
|
D | BroadcastRestrictionsTest.java | 124 DeviceConfig.getProperty( in setup() 127 DeviceConfig.getProperty( in setup() 130 DeviceConfig.getProperty( in setup() 134 DeviceConfig.getProperty( in setup()
|
/packages/modules/AdServices/adservices/tests/test-util/host-side/com/android/adservices/common/ |
D | AdServicesHostSideSupportHelper.java | 59 return "true".equals(call(device -> device.getProperty("ro.config.low_ram"))); in isLowRamDeviceByDefault() 80 return "1".equals(call(device -> device.getProperty("ro.debuggable"))); in isDebuggable()
|
/packages/modules/GeoTZ/app/src/main/java/com/android/geotz/app/ |
D | GeoDataFileManagerImpl.java | 59 String geoDataResource = configProperties.getProperty(RESOURCE_CONFIG_KEY_GEODATA_RESOURCE); in init() 60 String expectedSha256 = configProperties.getProperty(RESOURCE_CONFIG_KEY_GEODATA_SHA256); in init()
|
/packages/apps/Settings/tests/Enable16KbTests/src/com/android/test/ |
D | Enable16KbTest.java | 58 String result = getDevice().getProperty("ro.product.build.16k_page.enabled"); in enable16KbToggle() 63 result = getDevice().getProperty("ro.boot.flash.locked"); in enable16KbToggle()
|
/packages/modules/AdServices/sdksandbox/service/java/com/android/server/sdksandbox/helpers/ |
D | PackageManagerHelper.java | 83 public PackageManager.Property getProperty( in getProperty() method in PackageManagerHelper 86 return mPackageManager.getProperty(propertyName, packageName); in getProperty()
|
/packages/services/Car/tools/emulator/ |
D | vhal_emulator_test.py | 234 self._vhal.getProperty(cfg.prop, area) 258 self._vhal.getProperty(cfg.prop, area) 277 self._vhal.getProperty(prop, 0) 323 self._vhal.getProperty(
|
/packages/apps/ManagedProvisioning/studio-dev/ManagedProvisioningGradleProject/ |
D | build.gradle | 9 System.getProperty("os.arch") == "aarch64" 76 rootProject.ext.set("compileSdkPreviewString", properties.getProperty('compile.sdk.preview')) 78 rootProject.ext.set("compileSdkVersionString", properties.getProperty('compile.sdk.version'))
|
/packages/modules/Connectivity/staticlibs/testutils/devicetests/com/android/testutils/ |
D | DeviceConfigRule.kt | 81 DeviceConfig.getProperty(key.first, key.second) in <lambda>() 122 DeviceConfig.getProperty(namespace, key) in <lambda>()
|
/packages/modules/Connectivity/framework/src/android/net/ |
D | Network.java | 85 Boolean.parseBoolean(System.getProperty("http.keepAlive", "true")); 87 httpKeepAlive ? Integer.parseInt(System.getProperty("http.maxConnections", "5")) : 0; 89 Long.parseLong(System.getProperty("http.keepAliveDuration", "300000")); // 5 minutes.
|
/packages/modules/ConfigInfrastructure/framework/java/android/provider/ |
D | DeviceConfig.java | 1083 public static String getProperty(@NonNull String namespace, @NonNull String name) { in getProperty() method in DeviceConfig 1161 getProperty(DEVICE_CONFIG_OVERRIDES_NAMESPACE, namespace + ":" + flagName); in getAllProperties() 1193 String value = getProperty(namespace, name); in getString() 1210 String value = getProperty(namespace, name); in getBoolean() 1227 String value = getProperty(namespace, name); in getInt() 1252 String value = getProperty(namespace, name); in getLong() 1278 String value = getProperty(namespace, name); in getFloat()
|