/frameworks/base/native/android/ |
D | configuration.cpp | 28 AConfiguration* config = new AConfiguration; in AConfiguration_new() local 29 memset(config, 0, sizeof(AConfiguration)); in AConfiguration_new() 30 return config; in AConfiguration_new() 33 void AConfiguration_delete(AConfiguration* config) { in AConfiguration_delete() argument 34 delete config; in AConfiguration_delete() 39 ResTable_config config = locked_mgr->GetConfiguration(); in AConfiguration_fromAssetManager() local 42 memcpy(out, &config, sizeof(config)); in AConfiguration_fromAssetManager() 49 int32_t AConfiguration_getMcc(AConfiguration* config) { in AConfiguration_getMcc() argument 50 return config->mcc; in AConfiguration_getMcc() 53 int32_t AConfiguration_getMnc(AConfiguration* config) { in AConfiguration_getMnc() argument [all …]
|
/frameworks/base/wifi/tests/src/android/net/wifi/ |
D | WifiConfigurationTest.java | 60 WifiConfiguration config = new WifiConfiguration(); in testWifiConfigurationParcel() local 61 config.setPasspointManagementObjectTree(cookie); in testWifiConfigurationParcel() 62 config.trusted = false; in testWifiConfigurationParcel() 63 config.updateIdentifier = "1234"; in testWifiConfigurationParcel() 64 config.fromWifiNetworkSpecifier = true; in testWifiConfigurationParcel() 65 config.fromWifiNetworkSuggestion = true; in testWifiConfigurationParcel() 66 config.setRandomizedMacAddress(MacAddressUtils.createRandomUnicastAddress()); in testWifiConfigurationParcel() 67 MacAddress macBeforeParcel = config.getRandomizedMacAddress(); in testWifiConfigurationParcel() 69 config.writeToParcel(parcelW, 0); in testWifiConfigurationParcel() 81 assertEquals(config.updateIdentifier, reconfig.updateIdentifier); in testWifiConfigurationParcel() [all …]
|
/frameworks/native/cmds/installd/ |
D | installd.rc | 6 mkdir /config/sdcardfs/extensions/1055 7 mkdir /config/sdcardfs/extensions/1056 8 mkdir /config/sdcardfs/extensions/1057 9 mkdir /config/sdcardfs/extensions/1056/3gpp 10 mkdir /config/sdcardfs/extensions/1056/3gp 11 mkdir /config/sdcardfs/extensions/1056/3gpp2 12 mkdir /config/sdcardfs/extensions/1056/3g2 13 mkdir /config/sdcardfs/extensions/1056/avi 14 mkdir /config/sdcardfs/extensions/1056/dl 15 mkdir /config/sdcardfs/extensions/1056/dif [all …]
|
/frameworks/base/tools/aapt/tests/ |
D | ResourceFilter_test.cpp | 34 ConfigDescription config; in TEST() local 35 config.density = 320; in TEST() 37 EXPECT_TRUE(filter.match(config)); in TEST() 39 config.language[0] = 'f'; in TEST() 40 config.language[1] = 'r'; in TEST() 42 EXPECT_TRUE(filter.match(config)); in TEST() 49 ConfigDescription config; in TEST() local 50 config.density = 320; in TEST() 52 EXPECT_TRUE(filter.match(config)); in TEST() 59 ConfigDescription config; in TEST() local [all …]
|
D | AaptConfig_test.cpp | 26 static ::testing::AssertionResult TestParse(const String8& input, ConfigDescription* config=NULL) { in TestParse() argument 27 if (AaptConfig::parse(String8(input), config)) { in TestParse() 33 static ::testing::AssertionResult TestParse(const char* input, ConfigDescription* config=NULL) { in TestParse() argument 34 return TestParse(String8(input), config); in TestParse() 52 ConfigDescription config; in TEST() local 53 EXPECT_TRUE(TestParse("", &config)); in TEST() 54 EXPECT_EQ(String8(""), config.toString()); in TEST() 56 EXPECT_TRUE(TestParse("fr-land", &config)); in TEST() 57 EXPECT_EQ(String8("fr-land"), config.toString()); in TEST() 60 "xhdpi-keyssoft-qwerty-navexposed-nonav", &config)); in TEST() [all …]
|
/frameworks/base/libs/androidfw/tests/ |
D | ConfigDescription_test.cpp | 29 const StringPiece& input, ConfigDescription* config = nullptr) { in TestParse() argument 30 if (ConfigDescription::Parse(input, config)) { in TestParse() 51 ConfigDescription config; in TEST() local 52 EXPECT_TRUE(TestParse("", &config)); in TEST() 53 EXPECT_EQ(std::string(""), config.toString().string()); in TEST() 55 EXPECT_TRUE(TestParse("fr-land", &config)); in TEST() 56 EXPECT_EQ(std::string("fr-land"), config.toString().string()); in TEST() 61 &config)); in TEST() 64 config.toString().string()); in TEST() 68 ConfigDescription config; in TEST() local [all …]
|
D | SparseEntry_bench.cpp | 28 ResTable_config config; in BM_SparseEntryGetResourceOldSparse() local 29 memset(&config, 0, sizeof(config)); in BM_SparseEntryGetResourceOldSparse() 30 config.sdkVersion = 26; in BM_SparseEntryGetResourceOldSparse() 31 GetResourceBenchmarkOld({GetTestDataPath() + "/sparse/sparse.apk"}, &config, resid, state); in BM_SparseEntryGetResourceOldSparse() 37 ResTable_config config; in BM_SparseEntryGetResourceOldNotSparse() local 38 memset(&config, 0, sizeof(config)); in BM_SparseEntryGetResourceOldNotSparse() 39 config.sdkVersion = 26; in BM_SparseEntryGetResourceOldNotSparse() 40 GetResourceBenchmarkOld({GetTestDataPath() + "/sparse/not_sparse.apk"}, &config, resid, state); in BM_SparseEntryGetResourceOldNotSparse() 46 ResTable_config config; in BM_SparseEntryGetResourceSparse() local 47 memset(&config, 0, sizeof(config)); in BM_SparseEntryGetResourceSparse() [all …]
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | ZenModeConfigTest.java | 55 ZenModeConfig config = getMutedNotificationsConfig(); in testPriorityOnlyMutingAllNotifications() local 56 assertEquals(true, ZenModeConfig.areAllPriorityOnlyNotificationZenSoundsMuted(config)); in testPriorityOnlyMutingAllNotifications() 58 config.allowReminders = true; in testPriorityOnlyMutingAllNotifications() 59 assertEquals(false, ZenModeConfig.areAllPriorityOnlyNotificationZenSoundsMuted(config)); in testPriorityOnlyMutingAllNotifications() 60 config.allowReminders = false; in testPriorityOnlyMutingAllNotifications() 62 config.areChannelsBypassingDnd = true; in testPriorityOnlyMutingAllNotifications() 63 assertEquals(false, ZenModeConfig.areAllPriorityOnlyNotificationZenSoundsMuted(config)); in testPriorityOnlyMutingAllNotifications() 64 config.areChannelsBypassingDnd = false; in testPriorityOnlyMutingAllNotifications() 66 assertEquals(true, ZenModeConfig.areAllPriorityOnlyNotificationZenSoundsMuted(config)); in testPriorityOnlyMutingAllNotifications() 71 ZenModeConfig config = getCustomConfig(); in testZenPolicyNothingSetToNotificationPolicy() local [all …]
|
/frameworks/base/wifi/tests/src/android/net/wifi/hotspot2/ |
D | PasspointConfigurationTest.java | 149 PasspointConfiguration config = new PasspointConfiguration(); in createConfig() local 150 config.setUpdateIdentifier(1234); in createConfig() 151 config.setHomeSp(createHomeSp()); in createConfig() 152 config.setCredential(createCredential()); in createConfig() 153 config.setPolicy(createPolicy()); in createConfig() 154 config.setSubscriptionUpdate(createSubscriptionUpdate()); in createConfig() 160 config.setTrustRootCertList(trustRootCertList); in createConfig() 161 config.setUpdateIdentifier(1); in createConfig() 162 config.setCredentialPriority(120); in createConfig() 163 config.setSubscriptionCreationTimeInMillis(231200); in createConfig() [all …]
|
/frameworks/native/include/android/ |
D | configuration.h | 489 void AConfiguration_delete(AConfiguration* config); 505 int32_t AConfiguration_getMcc(AConfiguration* config); 510 void AConfiguration_setMcc(AConfiguration* config, int32_t mcc); 515 int32_t AConfiguration_getMnc(AConfiguration* config); 520 void AConfiguration_setMnc(AConfiguration* config, int32_t mnc); 527 void AConfiguration_getLanguage(AConfiguration* config, char* outLanguage); 533 void AConfiguration_setLanguage(AConfiguration* config, const char* language); 540 void AConfiguration_getCountry(AConfiguration* config, char* outCountry); 546 void AConfiguration_setCountry(AConfiguration* config, const char* country); 551 int32_t AConfiguration_getOrientation(AConfiguration* config); [all …]
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | ConfigurationMapTest.java | 104 for (WifiConfiguration config : mConfigs.valuesForCurrentUser()) { in getEnabledNetworksForCurrentUser() 105 if (config.status != WifiConfiguration.Status.DISABLED) { in getEnabledNetworksForCurrentUser() 106 list.add(config); in getEnabledNetworksForCurrentUser() 113 for (WifiConfiguration config : mConfigs.valuesForCurrentUser()) { in getEphemeralForCurrentUser() 114 if (ssid.equals(config.SSID) && config.ephemeral) { in getEphemeralForCurrentUser() 115 return config; in getEphemeralForCurrentUser() 122 for (WifiConfiguration config : configs) { in addNetworks() 123 assertNull(mConfigs.put(config)); in addNetworks() 135 for (WifiConfiguration config : configs) { in verifyGetters() 136 if (WifiConfigurationUtil.isVisibleToAnyProfile(config, in verifyGetters() [all …]
|
D | WifiConfigurationUtilTest.java | 236 WifiConfiguration config = WifiConfigurationTestUtil.createPskNetwork(); in testValidatePositiveCases_Hex() local 237 config.SSID = "abcd1234555a"; in testValidatePositiveCases_Hex() 238 config.preSharedKey = "abcd123455151234556788990034556667332345667322344556676743233445"; in testValidatePositiveCases_Hex() 239 assertTrue(WifiConfigurationUtil.validate(config, WifiConfigurationUtil.VALIDATE_FOR_ADD)); in testValidatePositiveCases_Hex() 248 WifiConfiguration config = WifiConfigurationTestUtil.createPskNetwork(); in testValidatePositiveCases_MaskedPskString() local 249 assertTrue(WifiConfigurationUtil.validate(config, WifiConfigurationUtil.VALIDATE_FOR_ADD)); in testValidatePositiveCases_MaskedPskString() 251 config.preSharedKey = WifiConfigurationUtil.PASSWORD_MASK; in testValidatePositiveCases_MaskedPskString() 252 assertFalse(WifiConfigurationUtil.validate(config, WifiConfigurationUtil.VALIDATE_FOR_ADD)); in testValidatePositiveCases_MaskedPskString() 254 config, WifiConfigurationUtil.VALIDATE_FOR_UPDATE)); in testValidatePositiveCases_MaskedPskString() 263 WifiConfiguration config = new WifiConfiguration(); in testValidatePositiveCases_OnlyUpdateIgnoresNullSsid() local [all …]
|
D | WifiApConfigStoreTest.java | 159 WifiConfiguration config = new WifiConfiguration(); in setupApConfig() local 160 config.SSID = ssid; in setupApConfig() 161 config.preSharedKey = preSharedKey; in setupApConfig() 162 config.allowedKeyManagement.set(keyManagement); in setupApConfig() 163 config.apBand = band; in setupApConfig() 164 config.apChannel = channel; in setupApConfig() 165 config.hiddenSSID = hiddenSSID; in setupApConfig() 166 return config; in setupApConfig() 169 private void writeApConfigFile(WifiConfiguration config) throws Exception { in writeApConfigFile() argument 173 m.invoke(null, mApConfigFile.getPath(), config); in writeApConfigFile() [all …]
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | WifiConfigManager.java | 503 private MacAddress getPersistentMacAddress(WifiConfiguration config) { in getPersistentMacAddress() argument 506 config.getSsidAndSecurityTypeString()); in getPersistentMacAddress() 514 mRandomizedMacAddressMapping.remove(config.getSsidAndSecurityTypeString()); in getPersistentMacAddress() 518 config, mMacAddressUtil.obtainMacRandHashFunction(Process.WIFI_UID)); in getPersistentMacAddress() 521 config, mMacAddressUtil.obtainMacRandHashFunction(Process.WIFI_UID)); in getPersistentMacAddress() 538 private MacAddress setRandomizedMacToPersistentMac(WifiConfiguration config) { in setRandomizedMacToPersistentMac() argument 539 MacAddress persistentMac = getPersistentMacAddress(config); in setRandomizedMacToPersistentMac() 540 if (persistentMac == null || persistentMac.equals(config.getRandomizedMacAddress())) { in setRandomizedMacToPersistentMac() 543 WifiConfiguration internalConfig = getInternalConfiguredNetwork(config.networkId); in setRandomizedMacToPersistentMac() 649 for (WifiConfiguration config : getInternalConfiguredNetworks()) { in getConfiguredNetworks() [all …]
|
D | WifiConfigurationUtil.java | 85 public static boolean isVisibleToAnyProfile(WifiConfiguration config, List<UserInfo> profiles) { in isVisibleToAnyProfile() argument 86 return (config.shared || doesUidBelongToAnyProfile(config.creatorUid, profiles)); in isVisibleToAnyProfile() 122 public static boolean isConfigForPskNetwork(WifiConfiguration config) { in isConfigForPskNetwork() argument 123 return config.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.WPA_PSK); in isConfigForPskNetwork() 129 public static boolean isConfigForSaeNetwork(WifiConfiguration config) { in isConfigForSaeNetwork() argument 130 return config.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.SAE); in isConfigForSaeNetwork() 136 public static boolean isConfigForOweNetwork(WifiConfiguration config) { in isConfigForOweNetwork() argument 137 return config.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.OWE); in isConfigForOweNetwork() 143 public static boolean isConfigForEapNetwork(WifiConfiguration config) { in isConfigForEapNetwork() argument 144 return (config.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.WPA_EAP) in isConfigForEapNetwork() [all …]
|
/frameworks/compile/slang/lit-tests/ |
D | lit.cfg | 6 config.name = 'slang_lit_tests' 9 config.suffixes = ['.rs', '.ll'] 13 config.test_format = lit.formats.ShTest() 16 config.base_path = os.getenv('ANDROID_BUILD_TOP') 20 config.test_source_root = None 24 config.test_exec_root = os.path.join(config.base_path, 'out', 'tests', 'slang', 'lit-tests') 27 config.target_triple = 'slang' 47 config.slang = inferTool('llvm-rs-cc', 'SLANG', os.path.join(os.getenv('ANDROID_HOST_OUT'), 'bin'))… 48 config.llvm_rs_as = inferTool('llvm-rs-as', 'LLVM_RS_AS', os.path.join(os.getenv('ANDROID_HOST_OUT'… 50 config.filecheck = inferTool('FileCheck', 'FILECHECK', config.environment['PATH']) [all …]
|
/frameworks/base/tools/aapt2/filter/ |
D | ConfigFilter.cpp | 26 void AxisConfigFilter::AddConfig(ConfigDescription config) { in AddConfig() argument 27 uint32_t diff_mask = ConfigDescription::DefaultConfig().diff(config); in AddConfig() 34 config.density = 0; in AddConfig() 38 configs_.insert(std::make_pair(config, diff_mask)); in AddConfig() 55 static bool ScriptsMatch(const ConfigDescription& config, const ConfigDescription& entry) { in ScriptsMatch() argument 56 const char* config_script = config.localeScript; in ScriptsMatch() 62 char script_buffer[sizeof(config.localeScript)]; in ScriptsMatch() 64 android::localeDataComputeScript(script_buffer, config.language, config.country); in ScriptsMatch() 76 return memcmp(config_script, entry_script, sizeof(config.localeScript)) == 0; in ScriptsMatch() 79 bool AxisConfigFilter::Match(const ConfigDescription& config) const { in Match() [all …]
|
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/ |
D | WifiConfigurationHelper.java | 59 WifiConfiguration config = createGenericConfig(ssid); in createOpenConfig() local 61 config.allowedKeyManagement.set(KeyMgmt.NONE); in createOpenConfig() 62 return config; in createOpenConfig() 73 WifiConfiguration config = createGenericConfig(ssid); in createWepConfig() local 76 config.wepKeys[0] = password; in createWepConfig() 78 config.wepKeys[0] = quotedString(password); in createWepConfig() 81 config.allowedKeyManagement.set(KeyMgmt.NONE); in createWepConfig() 82 config.allowedAuthAlgorithms.set(AuthAlgorithm.OPEN); in createWepConfig() 83 config.allowedAuthAlgorithms.set(AuthAlgorithm.SHARED); in createWepConfig() 84 return config; in createWepConfig() [all …]
|
/frameworks/compile/libbcc/tests/debuginfo/target-tests/ |
D | lit.cfg | 28 build_top = getattr(config, 'build_top', None) 30 lit.load_config(config, os.path.join(os.getenv('ANDROID_BUILD_TOP', 33 build_top = config.build_top 36 default_sdk_dir = os.path.join(config.base_build_path, 'sdk', 'android-sdk_' \ 44 config.name = 'target_renderscript_debug' 45 config.suffixes = ['.rs'] 46 config.target_triple = 'target-bcc' 50 config.test_exec_root = os.path.join(config.build_top, 'out', 'debug', 53 config.test_exec_root = os.path.join(config.build_top, 'out', 'target', 59 config.sdk_dir = lit.params.get('android_sdk', default_sdk_dir) [all …]
|
/frameworks/av/media/codec2/sfplugin/ |
D | CCodec.cpp | 164 c2_status_t err = mSurface->config({&eos}, C2_MAY_BLOCK, &failures); in signalEndOfInputStream() 171 status_t configure(Config &config __unused) { in configure() 258 status_t configure(Config &config) { in configure() argument 266 if (config.mMinFps > 0 && config.mMinFps != mConfig.mMinFps) { in configure() 267 int64_t us = 1e6 / config.mMinFps + 0.5; in configure() 269 status << " minFps=" << config.mMinFps << " => repeatDelayUs=" << us; in configure() 274 mConfig.mMinFps = config.mMinFps; in configure() 278 if (config.mMinAdjustedFps > 0 || config.mFixedAdjustedFps > 0) { in configure() 282 float gap = (config.mMinAdjustedFps > 0) in configure() 283 ? c2_min(INT32_MAX + 0., 1e6 / config.mMinAdjustedFps + 0.5) in configure() [all …]
|
/frameworks/base/packages/Tethering/src/com/android/networkstack/tethering/ |
D | EntitlementManager.java | 150 final TetheringConfiguration config = mFetcher.fetchTetheringConfiguration(); in isCellularUpstreamPermitted() local 152 return isCellularUpstreamPermitted(config); in isCellularUpstreamPermitted() 155 private boolean isCellularUpstreamPermitted(final TetheringConfiguration config) { in isCellularUpstreamPermitted() argument 156 if (!isTetherProvisioningRequired(config)) return true; in isCellularUpstreamPermitted() 196 final TetheringConfiguration config = mFetcher.fetchTetheringConfiguration(); in startProvisioningIfNeeded() local 197 if (!isTetherProvisioningRequired(config)) return; in startProvisioningIfNeeded() 203 runUiTetherProvisioning(downstreamType, config); in startProvisioningIfNeeded() 205 runSilentTetherProvisioning(downstreamType, config); in startProvisioningIfNeeded() 243 final TetheringConfiguration config = mFetcher.fetchTetheringConfiguration(); in notifyUpstream() local 244 maybeRunProvisioning(config); in notifyUpstream() [all …]
|
/frameworks/compile/libbcc/tests/debuginfo/ |
D | lit.site.cfg | 43 config.build_top = os.getenv('ANDROID_BUILD_TOP') 45 config.base_build_path = os.path.join(config.build_top, 'out', 'host', 49 config.test_format = lit.formats.ShTest() 52 config.filecheck = inferTool(lit, 'FileCheck', 'FILECHECK', \ 53 os.path.join(config.base_build_path, 'bin')) 56 config.test_bcc_debuginfo = inferTool(lit, 'test_bcc_debuginfo.pl', \ 57 'TEST_JIT_DEBUGINFO', os.path.join(config.build_top, 'frameworks', \ 61 config.gdb = inferTool(lit, 'arm-linux-androideabi-gdb', 'GDB', 62 config.environment['PATH']) 65 config.gdb_plugin = inferTool(lit, 'android-commands.py', [all …]
|
/frameworks/compile/libbcc/tests/debuginfo/host-tests/ |
D | lit.cfg | 24 config.name = 'host_bcc_debugger_integration' 25 config.suffixes = ['.cpp', '.c'] 26 config.target_triple = 'host-bcc' 30 build_top = getattr(config, 'build_top', None) 32 lit.load_config(config, os.path.join(os.getenv('ANDROID_BUILD_TOP', 35 build_top = config.build_top 38 config.test_exec_root = os.path.join(config.build_top, 'out', 'host', 46 config.environment['LD_LIBRARY_PATH'] = \ 47 os.path.join(config.base_build_path, 'lib') + ":" + \ 48 config.environment['LD_LIBRARY_PATH'] [all …]
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/rtt/ |
D | RttNative.java | 294 RttConfig config = new RttConfig(); in convertRangingRequestToRttConfigs() local 296 System.arraycopy(responder.macAddress.toByteArray(), 0, config.addr, 0, in convertRangingRequestToRttConfigs() 297 config.addr.length); in convertRangingRequestToRttConfigs() 300 config.type = responder.supports80211mc ? RttType.TWO_SIDED : RttType.ONE_SIDED; in convertRangingRequestToRttConfigs() 301 if (config.type == RttType.ONE_SIDED && cap != null && !cap.rttOneSidedSupported) { in convertRangingRequestToRttConfigs() 306 config.peer = halRttPeerTypeFromResponderType(responder.responderType); in convertRangingRequestToRttConfigs() 307 config.channel.width = halChannelWidthFromResponderChannelWidth( in convertRangingRequestToRttConfigs() 309 config.channel.centerFreq = responder.frequency; in convertRangingRequestToRttConfigs() 310 config.channel.centerFreq0 = responder.centerFreq0; in convertRangingRequestToRttConfigs() 311 config.channel.centerFreq1 = responder.centerFreq1; in convertRangingRequestToRttConfigs() [all …]
|
/frameworks/base/cmds/statsd/tests/ |
D | MetricsManager_test.cpp | 47 StatsdConfig config; in buildGoodConfig() local 48 config.set_id(12345); in buildGoodConfig() 50 AtomMatcher* eventMatcher = config.add_atom_matcher(); in buildGoodConfig() 60 eventMatcher = config.add_atom_matcher(); in buildGoodConfig() 70 eventMatcher = config.add_atom_matcher(); in buildGoodConfig() 78 CountMetric* metric = config.add_count_metric(); in buildGoodConfig() 85 config.add_no_report_metric(3); in buildGoodConfig() 87 auto alert = config.add_alert(); in buildGoodConfig() 93 return config; in buildGoodConfig() 97 StatsdConfig config; in buildCircleMatchers() local [all …]
|