/frameworks/base/libs/androidfw/tests/ |
D | ConfigLocale_test.cpp | 485 ResTable_config config1, config2, request; in TEST() local 488 fillIn("fr", "FR", NULL, NULL, &config1); in TEST() 490 EXPECT_FALSE(config1.isLocaleBetterThan(config2, &request)); in TEST() 491 EXPECT_FALSE(config2.isLocaleBetterThan(config1, &request)); in TEST() 494 fillIn(NULL, NULL, NULL, NULL, &config1); in TEST() 496 EXPECT_FALSE(config1.isLocaleBetterThan(config2, &request)); in TEST() 497 EXPECT_FALSE(config2.isLocaleBetterThan(config1, &request)); in TEST() 500 fillIn("fr", "FR", NULL, NULL, &config1); in TEST() 502 EXPECT_TRUE(config1.isLocaleBetterThan(config2, &request)); in TEST() 503 EXPECT_FALSE(config2.isLocaleBetterThan(config1, &request)); in TEST() [all …]
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | WindowConfigurationTests.java | 73 final Configuration config1 = new Configuration(); in testDiff() local 74 final WindowConfiguration winConfig1 = config1.windowConfiguration; in testDiff() 87 assertEquals(CONFIG_WINDOW_CONFIGURATION, config1.diff(config2)); in testDiff() 88 assertEquals(0, config1.diffPublicOnly(config2)); in testDiff() 104 assertEquals(0, config1.diff(config3)); in testDiff() 105 assertEquals(0, config1.diffPublicOnly(config3)); in testDiff() 115 final Configuration config1 = new Configuration(); in testConfigurationCompareTo() local 116 final WindowConfiguration winConfig1 = config1.windowConfiguration; in testConfigurationCompareTo() 119 final Configuration config2 = new Configuration(config1); in testConfigurationCompareTo() 122 assertEquals(0, config1.compareTo(config2)); in testConfigurationCompareTo() [all …]
|
D | RecentTasksTest.java | 1209 Configuration config1 = new Configuration(); in setTaskActivityType() local 1210 config1.windowConfiguration.setActivityType(activityType); in setTaskActivityType() 1211 task.onConfigurationChanged(config1); in setTaskActivityType() 1217 Configuration config1 = new Configuration(); in setTaskWindowingMode() local 1218 config1.windowConfiguration.setWindowingMode(windowingMode); in setTaskWindowingMode() 1219 task.onConfigurationChanged(config1); in setTaskWindowingMode()
|
/frameworks/base/cmds/statsd/tests/ |
D | UidMap_test.cpp | 192 ConfigKey config1(1, StringToId("config1")); in TEST() local 193 m.OnConfigUpdated(config1); in TEST() 207 m.mLastUpdatePerConfigKey[config1] = 2; in TEST() 210 m.appendUidMap(3, config1, nullptr, true, true, &proto); in TEST() 222 ConfigKey config1(1, StringToId("config1")); in TEST() local 223 m.OnConfigUpdated(config1); in TEST() 238 m.appendUidMap(3, config1, nullptr, true, true, &proto); in TEST() 250 ConfigKey config1(1, StringToId("config1")); in TEST() local 251 m.OnConfigUpdated(config1); in TEST() 270 m.appendUidMap(3, config1, nullptr, true, true, &proto); in TEST() [all …]
|
D | StatsLogProcessor_test.cpp | 365 StatsdConfig config1; in TEST() local 367 config1.set_id(cfgId1); in TEST() 368 config1.add_allowed_log_source("AID_ROOT"); // LogEvent defaults to UID of root. in TEST() 370 *config1.add_atom_matcher() = wakelockAcquireMatcher; in TEST() 374 auto countMetric1 = config1.add_count_metric(); in TEST() 379 auto countMetric2 = config1.add_count_metric(); in TEST() 471 processor.OnConfigUpdated(1, cfgKey1, config1); in TEST() 593 CreateStatsLogProcessor(timeBase2, timeBase2, config1, cfgKey1); in TEST() 709 StatsdConfig config1; in TEST() local 710 config1.set_id(12341); in TEST() [all …]
|
/frameworks/compile/mclinker/unittests/ |
D | LinkerTest.cpp | 137 LinkerConfig config1("armv7-none-linux-gnueabi"); in TEST_F() local 147 linker.emulate(script1, config1); in TEST_F() 149 config1.setCodeGenType(LinkerConfig::DynObj); ///< --shared in TEST_F() 150 config1.options().setSOName( in TEST_F() 152 config1.options().setBsymbolic(false); ///< -Bsymbolic in TEST_F() 155 IRBuilder builder1(module1, config1); in TEST_F() 235 LinkerConfig config1("armv7-none-linux-gnueabi"); in TEST_F() local 245 linker.emulate(script1, config1); in TEST_F() 247 config1.setCodeGenType(LinkerConfig::DynObj); ///< --shared in TEST_F() 248 config1.options().setSOName( in TEST_F() [all …]
|
/frameworks/base/core/tests/privacytests/src/android/privacy/ |
D | RapporEncoderTest.java | 86 final RapporConfig config1 = new RapporConfig( in testRapporEncoder_IRRWithPRR() local 95 final RapporEncoder encoder1 = RapporEncoder.createInsecureEncoderForTest(config1); in testRapporEncoder_IRRWithPRR() 135 final RapporConfig config1 = new RapporConfig( in testRapporEncoder_ensureSecureEncoderIsSecure() local 143 final RapporEncoder encoder1 = RapporEncoder.createEncoder(config1, in testRapporEncoder_ensureSecureEncoderIsSecure()
|
D | LongitudinalReportingEncoderTest.java | 160 final LongitudinalReportingConfig config1 = new LongitudinalReportingConfig( in testLongitudinalReportingEncoder_basicPRRTest() local 167 config1, makeTestingUserSecret("encoder" + j)); in testLongitudinalReportingEncoder_basicPRRTest() 352 final LongitudinalReportingConfig config1 = new LongitudinalReportingConfig( in testLongitudinalReportingEncoder_basicIRRwithPRRTest() local 359 config1, makeTestingUserSecret("encoder1")); in testLongitudinalReportingEncoder_basicIRRwithPRRTest()
|
/frameworks/base/wifi/tests/src/android/net/wifi/hotspot2/ |
D | PasspointConfigurationTest.java | 379 PasspointConfiguration config1 = PasspointTestUtils.createConfig(); in validateUniqueId() local 382 assertEquals(config1.getUniqueId(), config2.getUniqueId()); in validateUniqueId() 393 PasspointConfiguration config1 = PasspointTestUtils.createConfig(); in validateUniqueIdDifferentHomeSp() local 401 assertNotEquals(config1.getUniqueId(), config2.getUniqueId()); in validateUniqueIdDifferentHomeSp() 412 PasspointConfiguration config1 = PasspointTestUtils.createConfig(); in validateUniqueIdDifferentCredential() local 421 assertNotEquals(config1.getUniqueId(), config2.getUniqueId()); in validateUniqueIdDifferentCredential()
|
/frameworks/base/tests/net/java/android/net/ |
D | IpSecTransformTest.java | 57 IpSecTransform config1 = new IpSecTransform(null, config); in testCreateTransformsWithSameConfigEqual() local 60 assertEquals(config1, config2); in testCreateTransformsWithSameConfigEqual()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | ConfigurationMapTest.java | 233 final WifiConfiguration config1 = CONFIGS.get(0); in testPutRemoveClear() local 236 switchUser(UserHandle.getUserHandleForUid(config1.creatorUid).getIdentifier()); in testPutRemoveClear() 240 assertNull(mConfigs.put(config1)); in testPutRemoveClear() 242 configs.add(config1); in testPutRemoveClear() 247 config2.networkId = config1.networkId; in testPutRemoveClear() 248 assertEquals(config1, mConfigs.put(config2)); in testPutRemoveClear()
|
D | WifiApConfigStoreTest.java | 161 private void verifyApConfig(SoftApConfiguration config1, SoftApConfiguration config2) { in verifyApConfig() argument 162 assertEquals(config1.getSsid(), config2.getSsid()); in verifyApConfig() 163 assertEquals(config1.getPassphrase(), config2.getPassphrase()); in verifyApConfig() 164 assertEquals(config1.getSecurityType(), config2.getSecurityType()); in verifyApConfig() 165 assertEquals(config1.getBand(), config2.getBand()); in verifyApConfig() 166 assertEquals(config1.getChannel(), config2.getChannel()); in verifyApConfig() 167 assertEquals(config1.isHiddenSsid(), config2.isHiddenSsid()); in verifyApConfig()
|
D | WifiCandidatesTest.java | 345 WifiConfiguration config1 = WifiConfigurationTestUtil.createPasspointNetwork(); in testMultiplePasspointCandidatesWithSameFQDN() local 348 assertTrue(mWifiCandidates.add(mScanDetail1, config1, 2, 0.0, false, 100)); in testMultiplePasspointCandidatesWithSameFQDN() 349 assertTrue(mWifiCandidates.add(mScanDetail2, config1, 2, 0.0, false, 100)); in testMultiplePasspointCandidatesWithSameFQDN()
|
D | WifiMetricsTest.java | 4551 WifiConfiguration config1 = WifiConfigurationTestUtil.createPskNetwork(); in testMeteredNetworkMetrics() local 4553 config1.fromWifiNetworkSuggestion = true; in testMeteredNetworkMetrics() 4555 mWifiMetrics.addMeteredStat(config1, true); in testMeteredNetworkMetrics() 4568 config1 = WifiConfigurationTestUtil.createPskNetwork(); in testMeteredNetworkMetrics() 4570 config1.meteredOverride = WifiConfiguration.METERED_OVERRIDE_NOT_METERED; in testMeteredNetworkMetrics() 4572 mWifiMetrics.addMeteredStat(config1, true); in testMeteredNetworkMetrics()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/usage/ |
D | IntervalStatsTests.java | 112 final Configuration config1 = new Configuration(); in populateIntervalStats() local 113 config1.fontScale = 3.3f; in populateIntervalStats() 114 config1.mcc = 4; in populateIntervalStats() 115 intervalStats.getOrCreateConfigurationStats(config1); in populateIntervalStats()
|
D | UsageStatsDatabaseTest.java | 194 Configuration config1 = new Configuration(); in populateIntervalStats() local 195 config1.fontScale = 3.3f; in populateIntervalStats() 196 config1.mcc = 4; in populateIntervalStats() 197 mIntervalStats.getOrCreateConfigurationStats(config1); in populateIntervalStats()
|
/frameworks/base/core/tests/coretests/src/android/content/res/ |
D | ResourcesManagerTest.java | 218 Configuration config1 = new Configuration(); in testMultipleResourcesForOneActivityGetUpdatedWhenActivityBaseUpdates() local 219 config1.densityDpi = 280; in testMultipleResourcesForOneActivityGetUpdatedWhenActivityBaseUpdates() 221 activity1, APP_ONE_RES_DIR, null, null, null, Display.DEFAULT_DISPLAY, config1, in testMultipleResourcesForOneActivityGetUpdatedWhenActivityBaseUpdates() 252 config1.orientation = Configuration.ORIENTATION_LANDSCAPE; in testMultipleResourcesForOneActivityGetUpdatedWhenActivityBaseUpdates() 253 mResourcesManager.updateResourcesForActivity(activity1, config1, Display.DEFAULT_DISPLAY, in testMultipleResourcesForOneActivityGetUpdatedWhenActivityBaseUpdates()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | WifiConfigurationUtil.java | 780 public static boolean isSameNetwork(WifiConfiguration config, WifiConfiguration config1) { in isSameNetwork() argument 781 if (config == null && config1 == null) { in isSameNetwork() 784 if (config == null || config1 == null) { in isSameNetwork() 787 if (config.networkId != config1.networkId) { in isSameNetwork() 790 if (!Objects.equals(config.SSID, config1.SSID)) { in isSameNetwork() 793 if (WifiConfigurationUtil.hasCredentialChanged(config, config1)) { in isSameNetwork()
|
/frameworks/base/tests/NetworkSecurityConfigTest/src/android/security/net/config/ |
D | NetworkSecurityConfigTests.java | 238 NetworkSecurityConfig.Builder config1 = new NetworkSecurityConfig.Builder(); in testConfigBuilderParentLoop() local 240 config1.setParent(config2); in testConfigBuilderParentLoop() 242 config2.setParent(config1); in testConfigBuilderParentLoop()
|
/frameworks/base/native/android/ |
D | configuration.cpp | 239 int32_t AConfiguration_diff(AConfiguration* config1, AConfiguration* config2) { in AConfiguration_diff() argument 240 return (config1->diff(*config2)); in AConfiguration_diff()
|
/frameworks/native/include/android/ |
D | configuration.h | 737 int32_t AConfiguration_diff(AConfiguration* config1, AConfiguration* config2);
|
/frameworks/base/tools/aapt2/ |
D | readme.md | 158 `--split path/to/split.apk:<config1>[,<config2>,...]`.
|