Home
last modified time | relevance | path

Searched refs:config (Results 1 – 25 of 804) sorted by relevance

12345678910>>...33

/frameworks/base/native/android/
Dconfiguration.cpp27 AConfiguration* config = new AConfiguration; in AConfiguration_new() local
28 memset(config, 0, sizeof(AConfiguration)); in AConfiguration_new()
29 return config; in AConfiguration_new()
32 void AConfiguration_delete(AConfiguration* config) { in AConfiguration_delete() argument
33 delete config; in AConfiguration_delete()
44 int32_t AConfiguration_getMcc(AConfiguration* config) { in AConfiguration_getMcc() argument
45 return config->mcc; in AConfiguration_getMcc()
48 int32_t AConfiguration_getMnc(AConfiguration* config) { in AConfiguration_getMnc() argument
49 return config->mnc; in AConfiguration_getMnc()
52 void AConfiguration_getLanguage(AConfiguration* config, char* outLanguage) { in AConfiguration_getLanguage() argument
[all …]
/frameworks/native/cmds/installd/
Dinstalld.rc6 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/
DResourceFilter_test.cpp34 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 …]
DAaptConfig_test.cpp27 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/tools/aapt2/
DConfigDescription_test.cpp31 const StringPiece& input, ConfigDescription* config = nullptr) { in TestParse() argument
32 if (ConfigDescription::Parse(input, config)) { in TestParse()
53 ConfigDescription config; in TEST() local
54 EXPECT_TRUE(TestParse("", &config)); in TEST()
55 EXPECT_EQ(std::string(""), config.toString().string()); in TEST()
57 EXPECT_TRUE(TestParse("fr-land", &config)); in TEST()
58 EXPECT_EQ(std::string("fr-land"), config.toString().string()); in TEST()
63 &config)); in TEST()
66 config.toString().string()); in TEST()
70 ConfigDescription config; in TEST() local
[all …]
/frameworks/av/media/libstagefright/codecs/aacenc/src/
Daacenc.c143 AACENC_CONFIG config; in voAACEncInit() local
144 config.adtsUsed = 1; in voAACEncInit()
145 config.bitRate = 128000; in voAACEncInit()
146 config.nChannelsIn = 2; in voAACEncInit()
147 config.nChannelsOut = 2; in voAACEncInit()
148 config.sampleRate = 44100; in voAACEncInit()
149 config.bandWidth = 20000; in voAACEncInit()
151 AacEncOpen(hAacEnc, config); in voAACEncInit()
191 length = min(hAacEnc->config.nChannelsIn*AACENC_BLOCKSIZE - hAacEnc->intlen, hAacEnc->inlen); in voAACEncSetInputData()
223 inbuflen = AACENC_BLOCKSIZE*hAacEnc->config.nChannelsIn; in voAACEncGetOutputData()
[all …]
Daacenc_core.c40 void AacInitDefaultConfig(AACENC_CONFIG *config) in AacInitDefaultConfig() argument
43 config->adtsUsed = 1; in AacInitDefaultConfig()
44 config->nChannelsIn = 2; in AacInitDefaultConfig()
45 config->nChannelsOut = 2; in AacInitDefaultConfig()
46 config->bitRate = 128000; in AacInitDefaultConfig()
47 config->bandWidth = 0; in AacInitDefaultConfig()
58 const AACENC_CONFIG config /* pre-initialized config struct */ in AacEncOpen() argument
71 hAacEnc->config = config; in AacEncOpen()
75 error = InitElementInfo (config.nChannelsOut, in AacEncOpen()
89 config.sampleRate, in AacEncOpen()
[all …]
/frameworks/native/include/android/
Dconfiguration.h485 void AConfiguration_delete(AConfiguration* config);
501 int32_t AConfiguration_getMcc(AConfiguration* config);
506 void AConfiguration_setMcc(AConfiguration* config, int32_t mcc);
511 int32_t AConfiguration_getMnc(AConfiguration* config);
516 void AConfiguration_setMnc(AConfiguration* config, int32_t mnc);
523 void AConfiguration_getLanguage(AConfiguration* config, char* outLanguage);
529 void AConfiguration_setLanguage(AConfiguration* config, const char* language);
536 void AConfiguration_getCountry(AConfiguration* config, char* outCountry);
542 void AConfiguration_setCountry(AConfiguration* config, const char* country);
547 int32_t AConfiguration_getOrientation(AConfiguration* config);
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiNetworkHistory.java141 for (WifiConfiguration config : networks) { in writeKnownNetworkHistory()
148 NetworkSelectionStatus status = config.getNetworkSelectionStatus(); in writeKnownNetworkHistory()
151 if (config.linkedConfigurations != null) { in writeKnownNetworkHistory()
152 numlink = config.linkedConfigurations.size(); in writeKnownNetworkHistory()
155 if (config.getNetworkSelectionStatus().isNetworkEnabled()) { in writeKnownNetworkHistory()
159 config.getNetworkSelectionStatus().getDisableTime()); in writeKnownNetworkHistory()
161 logd("saving network history: " + config.configKey() + " gw: " in writeKnownNetworkHistory()
162 + config.defaultGwMacAddress + " Network Selection-status: " in writeKnownNetworkHistory()
164 + disableTime + " ephemeral=" + config.ephemeral in writeKnownNetworkHistory()
167 + " status:" + config.status in writeKnownNetworkHistory()
[all …]
DWifiConfigManager.java460 for (WifiConfiguration config : getInternalConfiguredNetworks()) { in getConfiguredNetworks()
461 if (savedOnly && config.ephemeral) { in getConfiguredNetworks()
464 networks.add(createExternalWifiConfiguration(config, maskPasswords)); in getConfiguredNetworks()
508 WifiConfiguration config = getInternalConfiguredNetwork(networkId); in getConfiguredNetwork() local
509 if (config == null) { in getConfiguredNetwork()
514 return createExternalWifiConfiguration(config, true); in getConfiguredNetwork()
525 WifiConfiguration config = getInternalConfiguredNetwork(configKey); in getConfiguredNetwork() local
526 if (config == null) { in getConfiguredNetwork()
531 return createExternalWifiConfiguration(config, true); in getConfiguredNetwork()
545 WifiConfiguration config = getInternalConfiguredNetwork(networkId); in getConfiguredNetworkWithPassword() local
[all …]
DConfigurationMap.java32 public WifiConfiguration put(WifiConfiguration config) { in put() argument
33 final WifiConfiguration current = mPerID.put(config.networkId, config); in put()
34 if (WifiConfigurationUtil.isVisibleToAnyProfile(config, in put()
36 mPerIDForCurrentUser.put(config.networkId, config); in put()
37 if (config.FQDN != null && config.FQDN.length() > 0) { in put()
38 mPerFQDNForCurrentUser.put(config.FQDN, config); in put()
45 WifiConfiguration config = mPerID.remove(netID); in remove() local
46 if (config == null) { in remove()
59 return config; in remove()
102 for (WifiConfiguration config : mPerIDForCurrentUser.values()) { in getByConfigKeyForCurrentUser()
[all …]
DWifiApConfigStore.java109 public synchronized void setApConfiguration(WifiConfiguration config) { in setApConfiguration() argument
110 if (config == null) { in setApConfiguration()
113 mWifiApConfig = config; in setApConfiguration()
129 WifiConfiguration config = null; in loadApConfiguration() local
132 config = new WifiConfiguration(); in loadApConfiguration()
141 config.SSID = in.readUTF(); in loadApConfiguration()
144 config.apBand = in.readInt(); in loadApConfiguration()
145 config.apChannel = in.readInt(); in loadApConfiguration()
149 config.allowedKeyManagement.set(authType); in loadApConfiguration()
151 config.preSharedKey = in.readUTF(); in loadApConfiguration()
[all …]
DWifiConfigurationUtil.java50 public static boolean isVisibleToAnyProfile(WifiConfiguration config, List<UserInfo> profiles) { in isVisibleToAnyProfile() argument
51 return (config.shared || doesUidBelongToAnyProfile(config.creatorUid, profiles)); in isVisibleToAnyProfile()
87 public static boolean isConfigForPskNetwork(WifiConfiguration config) { in isConfigForPskNetwork() argument
88 return config.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.WPA_PSK); in isConfigForPskNetwork()
94 public static boolean isConfigForEapNetwork(WifiConfiguration config) { in isConfigForEapNetwork() argument
95 return (config.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.WPA_EAP) in isConfigForEapNetwork()
96 || config.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.IEEE8021X)); in isConfigForEapNetwork()
102 public static boolean isConfigForWepNetwork(WifiConfiguration config) { in isConfigForWepNetwork() argument
103 return (config.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.NONE) in isConfigForWepNetwork()
104 && hasAnyValidWepKey(config.wepKeys)); in isConfigForWepNetwork()
[all …]
/frameworks/base/wifi/tests/src/android/net/wifi/hotspot2/
DPasspointConfigurationTest.java148 PasspointConfiguration config = new PasspointConfiguration(); in createConfig() local
149 config.setHomeSp(createHomeSp()); in createConfig()
150 config.setCredential(createCredential()); in createConfig()
151 config.setPolicy(createPolicy()); in createConfig()
152 config.setSubscriptionUpdate(createSubscriptionUpdate()); in createConfig()
158 config.setTrustRootCertList(trustRootCertList); in createConfig()
159 config.setUpdateIdentifier(1); in createConfig()
160 config.setCredentialPriority(120); in createConfig()
161 config.setSubscriptionCreationTimeInMillis(231200); in createConfig()
162 config.setSubscriptionExpirationTimeInMillis(2134232); in createConfig()
[all …]
/frameworks/base/libs/androidfw/tests/
DSparseEntry_bench.cpp29 ResTable_config config; in BM_SparseEntryGetResourceSparseSmall() local
30 memset(&config, 0, sizeof(config)); in BM_SparseEntryGetResourceSparseSmall()
31 config.sdkVersion = 26; in BM_SparseEntryGetResourceSparseSmall()
32 GetResourceBenchmarkOld({GetTestDataPath() + "/sparse/sparse.apk"}, &config, in BM_SparseEntryGetResourceSparseSmall()
38 ResTable_config config; in BM_SparseEntryGetResourceNotSparseSmall() local
39 memset(&config, 0, sizeof(config)); in BM_SparseEntryGetResourceNotSparseSmall()
40 config.sdkVersion = 26; in BM_SparseEntryGetResourceNotSparseSmall()
41 GetResourceBenchmarkOld({GetTestDataPath() + "/sparse/not_sparse.apk"}, &config, in BM_SparseEntryGetResourceNotSparseSmall()
47 ResTable_config config; in BM_SparseEntryGetResourceSparseLarge() local
48 memset(&config, 0, sizeof(config)); in BM_SparseEntryGetResourceSparseLarge()
[all …]
/frameworks/compile/slang/lit-tests/
Dlit.cfg6 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/
DConfigFilter.cpp25 void AxisConfigFilter::AddConfig(ConfigDescription config) { in AddConfig() argument
26 uint32_t diff_mask = ConfigDescription::DefaultConfig().diff(config); in AddConfig()
33 config.density = 0; in AddConfig()
37 configs_.insert(std::make_pair(config, diff_mask)); in AddConfig()
54 static bool ScriptsMatch(const ConfigDescription& config, const ConfigDescription& entry) { in ScriptsMatch() argument
55 const char* config_script = config.localeScript; in ScriptsMatch()
61 char script_buffer[sizeof(config.localeScript)]; in ScriptsMatch()
63 android::localeDataComputeScript(script_buffer, config.language, config.country); in ScriptsMatch()
75 return memcmp(config_script, entry_script, sizeof(config.localeScript)) == 0; in ScriptsMatch()
78 bool AxisConfigFilter::Match(const ConfigDescription& config) const { in Match()
[all …]
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/
DWifiConfigurationHelper.java58 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/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DConfigurationMapTest.java99 for (WifiConfiguration config : configs) { in addNetworks()
100 assertNull(mConfigs.put(config)); in addNetworks()
112 for (WifiConfiguration config : configs) { in verifyGetters()
113 if (WifiConfigurationUtil.isVisibleToAnyProfile(config, in verifyGetters()
115 configsForCurrentUser.add(config); in verifyGetters()
116 if (config.status != WifiConfiguration.Status.DISABLED) { in verifyGetters()
117 enabledConfigsForCurrentUser.add(config); in verifyGetters()
120 configsNotForCurrentUser.add(config); in verifyGetters()
123 assertEquals(config, mConfigs.getForAllUsers(config.networkId)); in verifyGetters()
128 for (WifiConfiguration config : configsForCurrentUser) { in verifyGetters()
[all …]
/frameworks/compile/libbcc/tests/debuginfo/target-tests/
Dlit.cfg28 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/services/radio/
DHidlUtils.cpp53 const radio_hal_band_config_t *config) in convertBandConfigToHal() argument
55 halConfig->type = static_cast<Band>(config->type); in convertBandConfigToHal()
56 halConfig->antennaConnected = config->antenna_connected; in convertBandConfigToHal()
57 halConfig->lowerLimit = config->lower_limit; in convertBandConfigToHal()
58 halConfig->upperLimit = config->upper_limit; in convertBandConfigToHal()
59 halConfig->spacings.setToExternal(const_cast<unsigned int *>(&config->spacings[0]), in convertBandConfigToHal()
60 config->num_spacings * sizeof(uint32_t)); in convertBandConfigToHal()
62 halConfig->spacings.resize(config->num_spacings); in convertBandConfigToHal()
65 halConfig->ext.fm.deemphasis = static_cast<Deemphasis>(config->fm.deemphasis); in convertBandConfigToHal()
66 halConfig->ext.fm.stereo = config->fm.stereo; in convertBandConfigToHal()
[all …]
/frameworks/compile/libbcc/tests/debuginfo/
Dlit.site.cfg43 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/
Dlit.cfg24 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/util/
DScanResultUtil.java96 ScanResult scanResult, WifiConfiguration config) { in doesScanResultMatchWithNetwork() argument
99 if (TextUtils.equals(config.SSID, configSSID)) { in doesScanResultMatchWithNetwork()
101 && WifiConfigurationUtil.isConfigForPskNetwork(config)) { in doesScanResultMatchWithNetwork()
105 && WifiConfigurationUtil.isConfigForEapNetwork(config)) { in doesScanResultMatchWithNetwork()
109 && WifiConfigurationUtil.isConfigForWepNetwork(config)) { in doesScanResultMatchWithNetwork()
113 && WifiConfigurationUtil.isConfigForOpenNetwork(config)) { in doesScanResultMatchWithNetwork()
125 WifiConfiguration config = new WifiConfiguration(); in createNetworkFromScanResult() local
126 config.SSID = createQuotedSSID(scanResult.SSID); in createNetworkFromScanResult()
127 setAllowedKeyManagementFromScanResult(scanResult, config); in createNetworkFromScanResult()
128 return config; in createNetworkFromScanResult()
[all …]
/frameworks/base/tests/NetworkSecurityConfigTest/src/android/security/net/config/
DXmlConfigTests.java17 package android.security.net.config;
50 NetworkSecurityConfig config = appConfig.getConfigForHostname(""); in testEmptyConfigFile() local
51 assertNotNull(config); in testEmptyConfigFile()
53 assertTrue(config.isCleartextTrafficPermitted()); in testEmptyConfigFile()
54 assertFalse(config.isHstsEnforced()); in testEmptyConfigFile()
55 assertFalse(config.getTrustAnchors().isEmpty()); in testEmptyConfigFile()
56 PinSet pinSet = config.getPins(); in testEmptyConfigFile()
69 NetworkSecurityConfig config = appConfig.getConfigForHostname(""); in testEmptyAnchors() local
70 assertNotNull(config); in testEmptyAnchors()
72 assertTrue(config.isCleartextTrafficPermitted()); in testEmptyAnchors()
[all …]

12345678910>>...33