Home
last modified time | relevance | path

Searched refs:cfg (Results 1 – 19 of 19) sorted by relevance

/frameworks/base/tests/net/java/com/android/server/connectivity/tethering/
DTetheringConfigurationTest.java99 final TetheringConfiguration cfg = new TetheringConfiguration(mMockContext, mLog); in testDunFromTelephonyManagerMeansDun() local
100 assertTrue(cfg.isDunRequired); in testDunFromTelephonyManagerMeansDun()
101 assertTrue(cfg.preferredUpstreamIfaceTypes.contains(TYPE_MOBILE_DUN)); in testDunFromTelephonyManagerMeansDun()
102 assertFalse(cfg.preferredUpstreamIfaceTypes.contains(TYPE_MOBILE)); in testDunFromTelephonyManagerMeansDun()
103 assertFalse(cfg.preferredUpstreamIfaceTypes.contains(TYPE_MOBILE_HIPRI)); in testDunFromTelephonyManagerMeansDun()
105 assertTrue(cfg.preferredUpstreamIfaceTypes.contains(TYPE_WIFI)); in testDunFromTelephonyManagerMeansDun()
115 final TetheringConfiguration cfg = new TetheringConfiguration(mMockContext, mLog); in testDunNotRequiredFromTelephonyManagerMeansNoDun() local
116 assertFalse(cfg.isDunRequired); in testDunNotRequiredFromTelephonyManagerMeansNoDun()
117 assertFalse(cfg.preferredUpstreamIfaceTypes.contains(TYPE_MOBILE_DUN)); in testDunNotRequiredFromTelephonyManagerMeansNoDun()
118 assertTrue(cfg.preferredUpstreamIfaceTypes.contains(TYPE_MOBILE)); in testDunNotRequiredFromTelephonyManagerMeansNoDun()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DSecurityControllerImpl.java176 VpnConfig cfg = mCurrentVpns.get(mVpnUserId); in getPrimaryVpnName() local
177 if (cfg != null) { in getPrimaryVpnName()
178 return getNameForVpnConfig(cfg, new UserHandle(mVpnUserId)); in getPrimaryVpnName()
202 VpnConfig cfg = mCurrentVpns.get(profileId); in getWorkProfileVpnName()
203 if (cfg != null) { in getWorkProfileVpnName()
204 return getNameForVpnConfig(cfg, UserHandle.of(profileId)); in getWorkProfileVpnName()
233 VpnConfig cfg = mCurrentVpns.get(mVpnUserId); in isVpnBranded() local
234 if (cfg == null) { in isVpnBranded()
238 String packageName = getPackageNameForVpnConfig(cfg); in isVpnBranded()
298 private String getNameForVpnConfig(VpnConfig cfg, UserHandle user) { in getNameForVpnConfig() argument
[all …]
/frameworks/base/core/tests/coretests/src/android/content/res/
DConfigurationBoundResourceCacheTest.java87 final Configuration cfg = res.getConfiguration(); in testVoidConfigChange() local
88 Configuration newCnf = new Configuration(cfg); in testVoidConfigChange()
89 newCnf.orientation = cfg.orientation == Configuration.ORIENTATION_LANDSCAPE ? in testVoidConfigChange()
110 final Configuration cfg = res.getConfiguration(); in testEffectiveConfigChange() local
111 Configuration newCnf = new Configuration(cfg); in testEffectiveConfigChange()
112 newCnf.orientation = cfg.orientation == Configuration.ORIENTATION_LANDSCAPE ? in testEffectiveConfigChange()
136 final Configuration cfg = res.getConfiguration(); in testConfigChangeMultipleResources() local
137 Configuration newCnf = new Configuration(cfg); in testConfigChangeMultipleResources()
138 newCnf.orientation = cfg.orientation == Configuration.ORIENTATION_LANDSCAPE ? in testConfigChangeMultipleResources()
178 final Configuration cfg = res.getConfiguration(); in testConfigChangeMultipleThemes() local
[all …]
/frameworks/av/media/libstagefright/codecs/on2/dec/
DSoftVPX.cpp84 vpx_codec_dec_cfg_t cfg; in initDecoder() local
86 memset(&cfg, 0, sizeof(vpx_codec_dec_cfg_t)); in initDecoder()
88 cfg.threads = GetCPUCoreCount(); in initDecoder()
97 &cfg, flags))) { in initDecoder()
/frameworks/base/services/core/java/com/android/server/connectivity/
DTethering.java294 final TetheringConfiguration cfg = mConfig; in ifaceNameToType() local
296 if (cfg.isWifi(iface)) { in ifaceNameToType()
298 } else if (cfg.isUsb(iface)) { in ifaceNameToType()
300 } else if (cfg.isBluetooth(iface)) { in ifaceNameToType()
652 final TetheringConfiguration cfg = mConfig; in sendTetherStateChangedBroadcast() local
665 if (cfg.isUsb(iface)) { in sendTetherStateChangedBroadcast()
667 } else if (cfg.isWifi(iface)) { in sendTetherStateChangedBroadcast()
669 } else if (cfg.isBluetooth(iface)) { in sendTetherStateChangedBroadcast()
1008 final TetheringConfiguration cfg = mConfig; in hasTetherableConfiguration() local
1010 (cfg.tetherableUsbRegexs.length != 0) || in hasTetherableConfiguration()
[all …]
/frameworks/base/core/java/android/inputmethodservice/
DCompactExtractEditLayout.java114 Configuration cfg = res.getConfiguration(); in onAttachedToWindow() local
130 if (cfg.isScreenRound() && heightPixels < widthPixels) { in onAttachedToWindow()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/p2p/
DWifiP2pNative.java167 public boolean setConfigMethods(String cfg) { in setConfigMethods() argument
168 return mSupplicantP2pIfaceHal.setWpsConfigMethods(cfg); in setConfigMethods()
/frameworks/rs/tests/lldb/
D.gitignore27 .installed.cfg
/frameworks/base/core/java/android/text/format/
DDateUtils.java349 Configuration cfg = r.getConfiguration(); in initFormatStringsLocked() local
350 if (sLastConfig == null || !sLastConfig.equals(cfg)) { in initFormatStringsLocked()
351 sLastConfig = cfg; in initFormatStringsLocked()
/frameworks/compile/libbcc/tests/libbcc/
Dlit.cfg34 # Based on LLVM's lit.cfg: "For each occurrence of an llvm tool name
/frameworks/compile/libbcc/tests/debuginfo/host-tests/
Dlit.cfg34 'debuginfo', 'lit.site.cfg'))
/frameworks/base/services/core/java/com/android/server/
DNetworkManagementService.java999 InterfaceConfiguration cfg; in getInterfaceConfig() local
1001 cfg = new InterfaceConfiguration(); in getInterfaceConfig()
1002 cfg.setHardwareAddress(st.nextToken(" ")); in getInterfaceConfig()
1017 cfg.setLinkAddress(new LinkAddress(addr, prefixLength)); in getInterfaceConfig()
1019 cfg.setFlag(st.nextToken()); in getInterfaceConfig()
1024 return cfg; in getInterfaceConfig()
1028 public void setInterfaceConfig(String iface, InterfaceConfiguration cfg) { in setInterfaceConfig() argument
1030 LinkAddress linkAddr = cfg.getLinkAddress(); in setInterfaceConfig()
1038 for (String flag : cfg.getFlags()) { in setInterfaceConfig()
/frameworks/base/core/java/android/os/
DINetworkManagementService.aidl68 void setInterfaceConfig(String iface, in InterfaceConfiguration cfg); in setInterfaceConfig() argument
/frameworks/compile/libbcc/tests/debuginfo/
DREADME47 Further customization is possible by modifying the lit.cfg file.
/frameworks/compile/libbcc/tests/debuginfo/target-tests/
Dlit.cfg32 'debuginfo', 'lit.site.cfg'))
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/
DWifiAwareNativeApi.java916 private void updateSingleConfigForPowerSettings(NanBandSpecificConfig cfg, int override) { in updateSingleConfigForPowerSettings() argument
918 cfg.validDiscoveryWindowIntervalVal = true; in updateSingleConfigForPowerSettings()
919 cfg.discoveryWindowIntervalVal = (byte) override; in updateSingleConfigForPowerSettings()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiNative.java608 public boolean setConfigMethods(String cfg) { in setConfigMethods() argument
609 return mSupplicantStaIfaceHal.setWpsConfigMethods(cfg); in setConfigMethods()
/frameworks/data-binding/
Dbuild.gradle220 configuration '../proguard.cfg'
/frameworks/base/libs/androidfw/
DResourceTypes.cpp5993 ResTable_config cfg; in forEachConfiguration() local
5994 memset(&cfg, 0, sizeof(ResTable_config)); in forEachConfiguration()
5995 cfg.copyFromDtoH(config->config); in forEachConfiguration()
5997 f(cfg); in forEachConfiguration()
6006 auto func = [&](const ResTable_config& cfg) { in getConfigurations() argument
6010 auto iter = std::lower_bound(beginIter, endIter, cfg, compareResTableConfig); in getConfigurations()
6011 if (iter == endIter || iter->compare(cfg) != 0) { in getConfigurations()
6012 configs->insertAt(cfg, std::distance(beginIter, iter)); in getConfigurations()
6026 forEachConfiguration(false, false, includeSystemLocales, [&](const ResTable_config& cfg) { in getLocales() argument
6027 cfg.getBcp47Locale(locale, mergeEquivalentLangs /* canonicalize if merging */); in getLocales()