/frameworks/base/native/android/ |
D | configuration.cpp | 27 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/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/av/media/libstagefright/codecs/aacenc/src/ |
D | aacenc.c | 143 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 …]
|
D | aacenc_core.c | 40 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/opt/net/wifi/service/java/com/android/server/wifi/ |
D | WifiConfigStore.java | 184 private static boolean needsKeyStore(WifiEnterpriseConfig config) { in needsKeyStore() argument 185 return (!(config.getClientCertificate() == null && config.getCaCertificate() == null)); in needsKeyStore() 196 private static boolean needsSoftwareBackedKeyStore(WifiEnterpriseConfig config) { in needsSoftwareBackedKeyStore() argument 197 java.lang.String client = config.getClientCertificateAlias(); in needsSoftwareBackedKeyStore() 246 public void readNetworkVariables(WifiConfiguration config) { in readNetworkVariables() argument 247 if (config == null) { in readNetworkVariables() 250 if (VDBG) localLog("readNetworkVariables: " + config.networkId); in readNetworkVariables() 251 int netId = config.networkId; in readNetworkVariables() 265 config.SSID = "\"" + WifiSsid.createFromHex(value).toString() + "\""; in readNetworkVariables() 269 config.SSID = value; in readNetworkVariables() [all …]
|
D | WifiConfigManager.java | 446 for (WifiConfiguration config : mConfiguredNetworks.valuesForCurrentUser()) { in getSavedNetworks() 447 WifiConfiguration newConfig = new WifiConfiguration(config); in getSavedNetworks() 450 if (config.ephemeral) { in getSavedNetworks() 457 if (pskMap != null && config.allowedKeyManagement != null in getSavedNetworks() 458 && config.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.WPA_PSK) in getSavedNetworks() 459 && pskMap.containsKey(config.configKey(true))) { in getSavedNetworks() 460 newConfig.preSharedKey = pskMap.get(config.configKey(true)); in getSavedNetworks() 472 for (WifiConfiguration config : mConfiguredNetworks.valuesForCurrentUser()) { in getAllConfiguredNetworks() 473 WifiConfiguration newConfig = new WifiConfiguration(config); in getAllConfiguredNetworks() 525 WifiConfiguration config = getWifiConfiguration(netId); in getMatchingConfig() local [all …]
|
D | WifiNetworkHistory.java | 143 for (WifiConfiguration config : networks) { in writeKnownNetworkHistory() 150 NetworkSelectionStatus status = config.getNetworkSelectionStatus(); in writeKnownNetworkHistory() 153 if (config.linkedConfigurations != null) { in writeKnownNetworkHistory() 154 numlink = config.linkedConfigurations.size(); in writeKnownNetworkHistory() 157 if (config.getNetworkSelectionStatus().isNetworkEnabled()) { in writeKnownNetworkHistory() 161 config.getNetworkSelectionStatus().getDisableTime()); in writeKnownNetworkHistory() 163 logd("saving network history: " + config.configKey() + " gw: " in writeKnownNetworkHistory() 164 + config.defaultGwMacAddress + " Network Selection-status: " in writeKnownNetworkHistory() 166 + disableTime + " ephemeral=" + config.ephemeral in writeKnownNetworkHistory() 169 + " status:" + config.status in writeKnownNetworkHistory() [all …]
|
D | ConfigurationMap.java | 38 public WifiConfiguration put(WifiConfiguration config) { in put() argument 39 final WifiConfiguration current = mPerID.put(config.networkId, config); in put() 40 mPerConfigKey.put(config.configKey().hashCode(), config); // This is ridiculous... in put() local 41 if (WifiConfigurationUtil.isVisibleToAnyProfile(config, in put() 43 mPerIDForCurrentUser.put(config.networkId, config); in put() 44 if (config.FQDN != null && config.FQDN.length() > 0) { in put() 45 mPerFQDNForCurrentUser.put(config.FQDN, config); in put() 47 if (config.hiddenSSID) { in put() 48 mHiddenNetworkIdsForCurrentUser.add(config.networkId); in put() 55 WifiConfiguration config = mPerID.remove(netID); in remove() local [all …]
|
D | WifiApConfigStore.java | 105 public synchronized void setApConfiguration(WifiConfiguration config) { in setApConfiguration() argument 106 if (config == null) { in setApConfiguration() 109 mWifiApConfig = config; in setApConfiguration() 125 WifiConfiguration config = null; in loadApConfiguration() local 128 config = new WifiConfiguration(); in loadApConfiguration() 137 config.SSID = in.readUTF(); in loadApConfiguration() 140 config.apBand = in.readInt(); in loadApConfiguration() 141 config.apChannel = in.readInt(); in loadApConfiguration() 145 config.allowedKeyManagement.set(authType); in loadApConfiguration() 147 config.preSharedKey = in.readUTF(); in loadApConfiguration() [all …]
|
/frameworks/native/include/android/ |
D | configuration.h | 442 void AConfiguration_delete(AConfiguration* config); 458 int32_t AConfiguration_getMcc(AConfiguration* config); 463 void AConfiguration_setMcc(AConfiguration* config, int32_t mcc); 468 int32_t AConfiguration_getMnc(AConfiguration* config); 473 void AConfiguration_setMnc(AConfiguration* config, int32_t mnc); 480 void AConfiguration_getLanguage(AConfiguration* config, char* outLanguage); 486 void AConfiguration_setLanguage(AConfiguration* config, const char* language); 493 void AConfiguration_getCountry(AConfiguration* config, char* outCountry); 499 void AConfiguration_setCountry(AConfiguration* config, const char* country); 504 int32_t AConfiguration_getOrientation(AConfiguration* config); [all …]
|
/frameworks/base/tools/aapt2/ |
D | ConfigDescription_test.cpp | 28 ConfigDescription* config = nullptr) { in TestParse() argument 29 if (ConfigDescription::parse(input, config)) { in TestParse() 50 ConfigDescription config; in TEST() local 51 EXPECT_TRUE(TestParse("", &config)); in TEST() 52 EXPECT_EQ(std::string(""), config.toString().string()); in TEST() 54 EXPECT_TRUE(TestParse("fr-land", &config)); in TEST() 55 EXPECT_EQ(std::string("fr-land"), config.toString().string()); in TEST() 58 "xhdpi-keyssoft-qwerty-navexposed-nonav", &config)); in TEST() 60 "xhdpi-keyssoft-qwerty-navexposed-nonav-v13"), config.toString().string()); in TEST() 64 ConfigDescription config; in TEST() local [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/tests/wifitests/src/com/android/server/wifi/ |
D | ConfigurationMapTest.java | 95 for (WifiConfiguration config : mConfigs.valuesForAllUsers()) { in switchUser() 96 if (WifiConfigurationUtil.isVisibleToAnyProfile(config, in switchUser() 98 && !WifiConfigurationUtil.isVisibleToAnyProfile(config, in switchUser() 100 hiddenConfigurations.add(config); in switchUser() 116 for (WifiConfiguration config : configs) { in verifyGetters() 117 if (WifiConfigurationUtil.isVisibleToAnyProfile(config, in verifyGetters() 119 configsForCurrentUser.add(config); in verifyGetters() 120 if (config.status != WifiConfiguration.Status.DISABLED) { in verifyGetters() 121 enabledConfigsForCurrentUser.add(config); in verifyGetters() 124 configsNotForCurrentUser.add(config); in verifyGetters() [all …]
|
D | WifiConfigurationTestUtil.java | 48 final WifiConfiguration config = new WifiConfiguration(); in generateWifiConfig() local 49 config.SSID = ssid; in generateWifiConfig() 50 config.networkId = networkId; in generateWifiConfig() 51 config.creatorUid = uid; in generateWifiConfig() 52 config.shared = shared; in generateWifiConfig() 53 config.status = enabled ? WifiConfiguration.Status.ENABLED in generateWifiConfig() 56 config.FQDN = fqdn; in generateWifiConfig() 57 config.providerFriendlyName = providerFriendlyName; in generateWifiConfig() 58 config.enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.SIM); in generateWifiConfig() 60 return config; in generateWifiConfig() [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/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/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/tests/NetworkSecurityConfigTest/src/android/security/net/config/ |
D | XmlConfigTests.java | 17 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 …]
|
/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/support/v4/java/android/support/v4/view/ |
D | ViewConfigurationCompat.java | 30 public int getScaledPagingTouchSlop(ViewConfiguration config); in getScaledPagingTouchSlop() argument 31 public boolean hasPermanentMenuKey(ViewConfiguration config); in hasPermanentMenuKey() argument 39 public int getScaledPagingTouchSlop(ViewConfiguration config) { in getScaledPagingTouchSlop() argument 40 return config.getScaledTouchSlop(); in getScaledPagingTouchSlop() 44 public boolean hasPermanentMenuKey(ViewConfiguration config) { in hasPermanentMenuKey() argument 55 public int getScaledPagingTouchSlop(ViewConfiguration config) { in getScaledPagingTouchSlop() argument 56 return ViewConfigurationCompatFroyo.getScaledPagingTouchSlop(config); in getScaledPagingTouchSlop() 65 public boolean hasPermanentMenuKey(ViewConfiguration config) { in hasPermanentMenuKey() argument 76 public boolean hasPermanentMenuKey(ViewConfiguration config) { in hasPermanentMenuKey() argument 77 return ViewConfigurationCompatICS.hasPermanentMenuKey(config); in hasPermanentMenuKey() [all …]
|
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/ |
D | LinearLayoutManagerSavedStateTest.java | 45 public LinearLayoutManagerSavedStateTest(Config config, boolean waitForLayout, in LinearLayoutManagerSavedStateTest() argument 48 mConfig = config; in LinearLayoutManagerSavedStateTest() 147 void onAfterRestore(Config config) throws Throwable { in params() 149 config.mOrientation = 1 - config.mOrientation; in params() 150 layoutManager().setOrientation(config.mOrientation); in params() 154 boolean shouldLayoutMatch(Config config) { in params() 155 return config.mItemCount == 0; in params() 165 void onAfterRestore(Config config) throws Throwable { in params() 166 config.mStackFromEnd = !config.mStackFromEnd; in params() 167 layoutManager().setStackFromEnd(config.mStackFromEnd); in params() [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/base/core/java/android/security/net/config/ |
D | RootTrustManager.java | 17 package android.security.net.config; 43 public RootTrustManager(ApplicationConfig config) { in RootTrustManager() argument 44 if (config == null) { in RootTrustManager() 47 mConfig = config; in RootTrustManager() 55 NetworkSecurityConfig config = mConfig.getConfigForHostname(""); in checkClientTrusted() local 56 config.getTrustManager().checkClientTrusted(chain, authType); in checkClientTrusted() 64 NetworkSecurityConfig config = mConfig.getConfigForHostname(""); in checkClientTrusted() local 65 config.getTrustManager().checkClientTrusted(certs, authType, socket); in checkClientTrusted() 73 NetworkSecurityConfig config = mConfig.getConfigForHostname(""); in checkClientTrusted() local 74 config.getTrustManager().checkClientTrusted(certs, authType, engine); in checkClientTrusted() [all …]
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/ |
D | ApConfigUtilTest.java | 185 WifiConfiguration config = new WifiConfiguration(); in updateApChannelConfigWithoutHal() local 186 config.apChannel = 36; in updateApChannelConfigWithoutHal() 187 config.apBand = WifiConfiguration.AP_BAND_5GHZ; in updateApChannelConfigWithoutHal() 191 mWifiNative, TEST_COUNTRY_CODE, mAllowed2GChannels, config)); in updateApChannelConfigWithoutHal() 193 assertEquals(ApConfigUtil.DEFAULT_AP_BAND, config.apBand); in updateApChannelConfigWithoutHal() 194 assertEquals(ApConfigUtil.DEFAULT_AP_CHANNEL, config.apChannel); in updateApChannelConfigWithoutHal() 203 WifiConfiguration config = new WifiConfiguration(); in updateApChannelConfig5GBandNoCountryCode() local 204 config.apBand = WifiConfiguration.AP_BAND_5GHZ; in updateApChannelConfig5GBandNoCountryCode() 208 mWifiNative, null, mAllowed2GChannels, config)); in updateApChannelConfig5GBandNoCountryCode() 216 WifiConfiguration config = new WifiConfiguration(); in updateApChannelConfigWithChannelSpecified() local [all …]
|