Home
last modified time | relevance | path

Searched refs:config1 (Results 1 – 20 of 20) sorted by relevance

/frameworks/base/libs/androidfw/tests/
DConfigLocale_test.cpp485 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/
DWindowConfigurationTests.java67 final Configuration config1 = new Configuration(); in testDiff() local
68 final WindowConfiguration winConfig1 = config1.windowConfiguration; in testDiff()
81 assertEquals(CONFIG_WINDOW_CONFIGURATION, config1.diff(config2)); in testDiff()
82 assertEquals(0, config1.diffPublicOnly(config2)); in testDiff()
98 assertEquals(0, config1.diff(config3)); in testDiff()
99 assertEquals(0, config1.diffPublicOnly(config3)); in testDiff()
109 final Configuration config1 = new Configuration(); in testConfigurationCompareTo() local
110 final WindowConfiguration winConfig1 = config1.windowConfiguration; in testConfigurationCompareTo()
113 final Configuration config2 = new Configuration(config1); in testConfigurationCompareTo()
116 assertEquals(0, config1.compareTo(config2)); in testConfigurationCompareTo()
[all …]
DRecentTasksTest.java1055 Configuration config1 = new Configuration(); in setTaskActivityType() local
1056 config1.windowConfiguration.setActivityType(activityType); in setTaskActivityType()
1057 task.onConfigurationChanged(config1); in setTaskActivityType()
1063 Configuration config1 = new Configuration(); in setTaskWindowingMode() local
1064 config1.windowConfiguration.setWindowingMode(windowingMode); in setTaskWindowingMode()
1065 task.onConfigurationChanged(config1); in setTaskWindowingMode()
/frameworks/base/cmds/statsd/tests/
DUidMap_test.cpp198 ConfigKey config1(1, StringToId("config1")); in TEST() local
199 m.OnConfigUpdated(config1); in TEST()
213 m.mLastUpdatePerConfigKey[config1] = 2; in TEST()
216 m.appendUidMap(3, config1, nullptr, true, true, &proto); in TEST()
228 ConfigKey config1(1, StringToId("config1")); in TEST() local
229 m.OnConfigUpdated(config1); in TEST()
244 m.appendUidMap(3, config1, nullptr, true, true, &proto); in TEST()
256 ConfigKey config1(1, StringToId("config1")); in TEST() local
257 m.OnConfigUpdated(config1); in TEST()
276 m.appendUidMap(3, config1, nullptr, true, true, &proto); in TEST()
[all …]
DStatsLogProcessor_test.cpp302 StatsdConfig config1; in TEST() local
304 config1.set_id(cfgId1); in TEST()
305 config1.add_allowed_log_source("AID_ROOT"); // LogEvent defaults to UID of root. in TEST()
307 *config1.add_atom_matcher() = wakelockAcquireMatcher; in TEST()
311 auto countMetric1 = config1.add_count_metric(); in TEST()
316 auto countMetric2 = config1.add_count_metric(); in TEST()
407 processor.OnConfigUpdated(1, cfgKey1, config1); in TEST()
527 CreateStatsLogProcessor(timeBase2, timeBase2, config1, cfgKey1); in TEST()
643 StatsdConfig config1; in TEST() local
644 config1.set_id(12341); in TEST()
[all …]
/frameworks/compile/mclinker/unittests/
DLinkerTest.cpp137 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/
DRapporEncoderTest.java86 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()
DLongitudinalReportingEncoderTest.java160 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/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DConfigurationMapTest.java228 final WifiConfiguration config1 = CONFIGS.get(0); in testPutRemoveClear() local
231 switchUser(UserHandle.getUserId(config1.creatorUid)); in testPutRemoveClear()
235 assertNull(mConfigs.put(config1)); in testPutRemoveClear()
237 configs.add(config1); in testPutRemoveClear()
242 config2.networkId = config1.networkId; in testPutRemoveClear()
243 assertEquals(config1, mConfigs.put(config2)); in testPutRemoveClear()
DWifiApConfigStoreTest.java176 private void verifyApConfig(WifiConfiguration config1, WifiConfiguration config2) { in verifyApConfig() argument
177 assertEquals(config1.SSID, config2.SSID); in verifyApConfig()
178 assertEquals(config1.preSharedKey, config2.preSharedKey); in verifyApConfig()
179 assertEquals(config1.getAuthType(), config2.getAuthType()); in verifyApConfig()
180 assertEquals(config1.apBand, config2.apBand); in verifyApConfig()
181 assertEquals(config1.apChannel, config2.apChannel); in verifyApConfig()
182 assertEquals(config1.hiddenSSID, config2.hiddenSSID); in verifyApConfig()
DCarrierNetworkEvaluatorTest.java245 WifiConfiguration config1 = mWifiConfigCaptor.getAllValues().get(0); in testSelectOneFromMultiple() local
246 assertEquals(CARRIER1_SSID, config1.SSID); in testSelectOneFromMultiple()
247 assertTrue(config1.isEphemeral()); in testSelectOneFromMultiple()
248 assertTrue(config1.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.WPA_EAP)); in testSelectOneFromMultiple()
DActiveModeWardenTest.java581 WifiConfiguration config1 = new WifiConfiguration(); in testStartSoftApModeTwiceWithTwoConfigs() local
582 config1.SSID = "ThisIsAConfig"; in testStartSoftApModeTwiceWithTwoConfigs()
584 new SoftApModeConfiguration(WifiManager.IFACE_IP_MODE_TETHERED, config1); in testStartSoftApModeTwiceWithTwoConfigs()
/frameworks/base/tests/net/java/android/net/
DIpSecTransformTest.java57 IpSecTransform config1 = new IpSecTransform(null, config); in testCreateTransformsWithSameConfigEqual() local
60 assertEquals(config1, config2); in testCreateTransformsWithSameConfigEqual()
/frameworks/base/core/tests/coretests/src/android/content/res/
DResourcesManagerTest.java217 Configuration config1 = new Configuration(); in testMultipleResourcesForOneActivityGetUpdatedWhenActivityBaseUpdates() local
218 config1.densityDpi = 280; in testMultipleResourcesForOneActivityGetUpdatedWhenActivityBaseUpdates()
220 activity1, APP_ONE_RES_DIR, null, null, null, Display.DEFAULT_DISPLAY, config1, in testMultipleResourcesForOneActivityGetUpdatedWhenActivityBaseUpdates()
251 config1.orientation = Configuration.ORIENTATION_LANDSCAPE; in testMultipleResourcesForOneActivityGetUpdatedWhenActivityBaseUpdates()
252 mResourcesManager.updateResourcesForActivity(activity1, config1, Display.DEFAULT_DISPLAY, in testMultipleResourcesForOneActivityGetUpdatedWhenActivityBaseUpdates()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiConfigurationUtil.java792 public static boolean isSameNetwork(WifiConfiguration config, WifiConfiguration config1) { in isSameNetwork() argument
793 if (config == null && config1 == null) { in isSameNetwork()
796 if (config == null || config1 == null) { in isSameNetwork()
799 if (config.networkId != config1.networkId) { in isSameNetwork()
802 if (!Objects.equals(config.SSID, config1.SSID)) { in isSameNetwork()
805 if (WifiConfigurationUtil.hasCredentialChanged(config, config1)) { in isSameNetwork()
/frameworks/base/tests/NetworkSecurityConfigTest/src/android/security/net/config/
DNetworkSecurityConfigTests.java238 NetworkSecurityConfig.Builder config1 = new NetworkSecurityConfig.Builder(); in testConfigBuilderParentLoop() local
240 config1.setParent(config2); in testConfigBuilderParentLoop()
242 config2.setParent(config1); in testConfigBuilderParentLoop()
/frameworks/base/services/tests/servicestests/src/com/android/server/usage/
DUsageStatsDatabaseTest.java181 Configuration config1 = new Configuration(); in populateIntervalStats() local
182 config1.fontScale = 3.3f; in populateIntervalStats()
183 config1.mcc = 4; in populateIntervalStats()
184 mIntervalStats.getOrCreateConfigurationStats(config1); in populateIntervalStats()
/frameworks/base/native/android/
Dconfiguration.cpp239 int32_t AConfiguration_diff(AConfiguration* config1, AConfiguration* config2) { in AConfiguration_diff() argument
240 return (config1->diff(*config2)); in AConfiguration_diff()
/frameworks/native/include/android/
Dconfiguration.h737 int32_t AConfiguration_diff(AConfiguration* config1, AConfiguration* config2);
/frameworks/base/tools/aapt2/
Dreadme.md158 `--split path/to/split.apk:<config1>[,<config2>,...]`.