/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/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/wifi/tests/src/android/net/wifi/ |
D | WifiConfigurationTest.java | 59 WifiConfiguration config = new WifiConfiguration(); in testWifiConfigurationParcel() local 60 config.setPasspointManagementObjectTree(cookie); in testWifiConfigurationParcel() 61 config.trusted = false; in testWifiConfigurationParcel() 62 config.updateIdentifier = "1234"; in testWifiConfigurationParcel() 63 config.fromWifiNetworkSpecifier = true; in testWifiConfigurationParcel() 64 config.fromWifiNetworkSuggestion = true; in testWifiConfigurationParcel() 65 MacAddress macBeforeParcel = config.getOrCreateRandomizedMacAddress(); in testWifiConfigurationParcel() 67 config.writeToParcel(parcelW, 0); in testWifiConfigurationParcel() 79 assertEquals(config.updateIdentifier, reconfig.updateIdentifier); in testWifiConfigurationParcel() 81 assertTrue(config.fromWifiNetworkSpecifier); in testWifiConfigurationParcel() [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 | 27 static ::testing::AssertionResult TestParse(const String8& input, ConfigDescription* config=NULL) { in TestParse() argument 28 if (AaptConfig::parse(String8(input), config)) { in TestParse() 34 static ::testing::AssertionResult TestParse(const char* input, ConfigDescription* config=NULL) { in TestParse() argument 35 return TestParse(String8(input), config); in TestParse() 53 ConfigDescription config; in TEST() local 54 EXPECT_TRUE(TestParse("", &config)); in TEST() 55 EXPECT_EQ(String8(""), config.toString()); in TEST() 57 EXPECT_TRUE(TestParse("fr-land", &config)); in TEST() 58 EXPECT_EQ(String8("fr-land"), config.toString()); in TEST() 61 "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/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/opt/net/wifi/service/java/com/android/server/wifi/ |
D | WifiConfigManager.java | 563 for (WifiConfiguration config : getInternalConfiguredNetworks()) { in getConfiguredNetworks() 564 if (savedOnly && (config.ephemeral || config.isPasspoint())) { in getConfiguredNetworks() 567 networks.add(createExternalWifiConfiguration(config, maskPasswords, targetUid)); in getConfiguredNetworks() 611 WifiConfiguration config = getInternalConfiguredNetwork(networkId); in getConfiguredNetwork() local 612 if (config == null) { in getConfiguredNetwork() 617 return createExternalWifiConfiguration(config, true, Process.WIFI_UID); in getConfiguredNetwork() 628 WifiConfiguration config = getInternalConfiguredNetwork(configKey); in getConfiguredNetwork() local 629 if (config == null) { in getConfiguredNetwork() 634 return createExternalWifiConfiguration(config, true, Process.WIFI_UID); in getConfiguredNetwork() 648 WifiConfiguration config = getInternalConfiguredNetwork(networkId); in getConfiguredNetworkWithPassword() local [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/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 | 58 WifiConfiguration config = createGenericConfig(ssid); in createOpenConfig() local 60 config.allowedKeyManagement.set(KeyMgmt.NONE); in createOpenConfig() 61 return config; in createOpenConfig() 72 WifiConfiguration config = createGenericConfig(ssid); in createWepConfig() local 75 config.wepKeys[0] = password; in createWepConfig() 77 config.wepKeys[0] = quotedString(password); in createWepConfig() 80 config.allowedKeyManagement.set(KeyMgmt.NONE); in createWepConfig() 81 config.allowedAuthAlgorithms.set(AuthAlgorithm.OPEN); in createWepConfig() 82 config.allowedAuthAlgorithms.set(AuthAlgorithm.SHARED); in createWepConfig() 83 return config; in createWepConfig() [all …]
|
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/ |
D | AudioGain.cpp | 42 void AudioGain::getDefaultConfig(struct audio_gain_config *config) in getDefaultConfig() argument 44 config->index = mIndex; in getDefaultConfig() 45 config->mode = mGain.mode; in getDefaultConfig() 46 config->channel_mask = mGain.channel_mask; in getDefaultConfig() 48 config->values[0] = mGain.default_value; in getDefaultConfig() 57 config->values[i] = mGain.default_value; in getDefaultConfig() 61 config->ramp_duration_ms = mGain.min_ramp_ms; in getDefaultConfig() 65 status_t AudioGain::checkConfig(const struct audio_gain_config *config) in checkConfig() argument 67 if ((config->mode & ~mGain.mode) != 0) { in checkConfig() 70 if ((config->mode & AUDIO_GAIN_MODE_JOINT) == AUDIO_GAIN_MODE_JOINT) { in checkConfig() [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/base/tests/net/java/android/net/ |
D | IpSecTransformTest.java | 36 IpSecConfig config = new IpSecConfig(); in testCreateTransformCopiesConfig() local 37 config.setSourceAddress("0.0.0.0"); in testCreateTransformCopiesConfig() 38 config.setDestinationAddress("1.2.3.4"); in testCreateTransformCopiesConfig() 39 config.setSpiResourceId(1984); in testCreateTransformCopiesConfig() 41 IpSecTransform preModification = new IpSecTransform(null, config); in testCreateTransformCopiesConfig() 43 config.setSpiResourceId(1985); in testCreateTransformCopiesConfig() 44 IpSecTransform postModification = new IpSecTransform(null, config); in testCreateTransformCopiesConfig() 52 IpSecConfig config = new IpSecConfig(); in testCreateTransformsWithSameConfigEqual() local 53 config.setSourceAddress("0.0.0.0"); in testCreateTransformsWithSameConfigEqual() 54 config.setDestinationAddress("1.2.3.4"); in testCreateTransformsWithSameConfigEqual() [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/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/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/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/functional/ |
D | WifiAssociationTest.java | 71 WifiConfiguration config = getConfig(ssid, securityType, password); in testWifiAssociation() local 73 logv("Network config: %s", config.toString()); in testWifiAssociation() 74 connectToWifi(config); in testWifiAssociation() 83 WifiConfiguration config = null; in getConfig() local 86 config = WifiConfigurationHelper.createOpenConfig(ssid); in getConfig() 92 config = WifiConfigurationHelper.createWepConfig(ssid, password); in getConfig() 93 config.allowedGroupCiphers.set(GroupCipher.WEP40); in getConfig() 99 config = WifiConfigurationHelper.createWepConfig(ssid, password); in getConfig() 100 config.allowedGroupCiphers.set(GroupCipher.WEP104); in getConfig() 104 config = WifiConfigurationHelper.createPskConfig(ssid, password); in getConfig() [all …]
|