Home
last modified time | relevance | path

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

12

/frameworks/base/tests/net/java/com/android/server/connectivity/tethering/
DTetheringConfigurationTest.java134 final TetheringConfiguration cfg = getTetheringConfiguration( in testNoTelephonyManagerMeansNoDun() local
136 assertFalse(cfg.isDunRequired); in testNoTelephonyManagerMeansNoDun()
137 assertFalse(cfg.preferredUpstreamIfaceTypes.contains(TYPE_MOBILE_DUN)); in testNoTelephonyManagerMeansNoDun()
139 assertTrue(cfg.preferredUpstreamIfaceTypes.contains(TYPE_WIFI)); in testNoTelephonyManagerMeansNoDun()
154 for (TetheringConfiguration cfg : Arrays.asList(cfgWifi, cfgMobileWifiHipri, in testDunFromTelephonyManagerMeansDun()
156 String msg = "config=" + cfg.toString(); in testDunFromTelephonyManagerMeansDun()
157 assertTrue(msg, cfg.isDunRequired); in testDunFromTelephonyManagerMeansDun()
158 assertTrue(msg, cfg.preferredUpstreamIfaceTypes.contains(TYPE_MOBILE_DUN)); in testDunFromTelephonyManagerMeansDun()
159 assertFalse(msg, cfg.preferredUpstreamIfaceTypes.contains(TYPE_MOBILE)); in testDunFromTelephonyManagerMeansDun()
160 assertFalse(msg, cfg.preferredUpstreamIfaceTypes.contains(TYPE_MOBILE_HIPRI)); in testDunFromTelephonyManagerMeansDun()
[all …]
/frameworks/av/media/codec2/sfplugin/tests/
DMediaCodec_sanity_test.cpp39 cfg(new AMessage), in MediaCodecSanityTest()
55 sp<AMessage> cfg; member in android::MediaCodecSanityTest
112 cfg->setInt32("width", 320); in TEST_P()
113 cfg->setInt32("height", 240); in TEST_P()
114 cfg->setString("mime", MIMETYPE_VIDEO_AVC); in TEST_P()
118 cfg->setInt32("max-input-size", InputSize); in TEST_P()
121 EXPECT_EQ(codec->configure(cfg, nullptr, nullptr, 0), OK); in TEST_P()
141 cfg->setInt32("width", 320); in TEST_P()
142 cfg->setInt32("height", 240); in TEST_P()
143 cfg->setString("mime", MIMETYPE_VIDEO_VP8); in TEST_P()
[all …]
/frameworks/base/media/java/android/media/audiofx/
DDynamicsProcessing.java182 public DynamicsProcessing(int priority, int audioSession, @Nullable Config cfg) { in DynamicsProcessing() argument
190 if (cfg == null) { in DynamicsProcessing()
206 config = new DynamicsProcessing.Config(mChannelCount, cfg); in DynamicsProcessing()
486 public EqBand(EqBand cfg) { in EqBand() argument
487 super(cfg.isEnabled(), cfg.getCutoffFrequency()); in EqBand()
488 mGain = cfg.mGain; in EqBand()
572 public MbcBand(MbcBand cfg) { in MbcBand() argument
573 super(cfg.isEnabled(), cfg.getCutoffFrequency()); in MbcBand()
574 mAttackTime = cfg.mAttackTime; in MbcBand()
575 mReleaseTime = cfg.mReleaseTime; in MbcBand()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DSecurityControllerImpl.java191 VpnConfig cfg = mCurrentVpns.get(mVpnUserId); in getPrimaryVpnName() local
192 if (cfg != null) { in getPrimaryVpnName()
193 return getNameForVpnConfig(cfg, new UserHandle(mVpnUserId)); in getPrimaryVpnName()
217 VpnConfig cfg = mCurrentVpns.get(profileId); in getWorkProfileVpnName()
218 if (cfg != null) { in getWorkProfileVpnName()
219 return getNameForVpnConfig(cfg, UserHandle.of(profileId)); in getWorkProfileVpnName()
248 VpnConfig cfg = mCurrentVpns.get(mVpnUserId); in isVpnBranded() local
249 if (cfg == null) { in isVpnBranded()
253 String packageName = getPackageNameForVpnConfig(cfg); in isVpnBranded()
313 private String getNameForVpnConfig(VpnConfig cfg, UserHandle user) { in getNameForVpnConfig() argument
[all …]
/frameworks/base/core/tests/coretests/src/android/content/res/
DConfigurationBoundResourceCacheTest.java88 final Configuration cfg = res.getConfiguration(); in testVoidConfigChange() local
89 Configuration newCnf = new Configuration(cfg); in testVoidConfigChange()
90 newCnf.orientation = cfg.orientation == Configuration.ORIENTATION_LANDSCAPE ? in testVoidConfigChange()
111 final Configuration cfg = res.getConfiguration(); in testEffectiveConfigChange() local
112 Configuration newCnf = new Configuration(cfg); in testEffectiveConfigChange()
113 newCnf.orientation = cfg.orientation == Configuration.ORIENTATION_LANDSCAPE ? in testEffectiveConfigChange()
137 final Configuration cfg = res.getConfiguration(); in testConfigChangeMultipleResources() local
138 Configuration newCnf = new Configuration(cfg); in testConfigChangeMultipleResources()
139 newCnf.orientation = cfg.orientation == Configuration.ORIENTATION_LANDSCAPE ? in testConfigChangeMultipleResources()
179 final Configuration cfg = res.getConfiguration(); in testConfigChangeMultipleThemes() local
[all …]
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
DAudioPatch.cpp41 const audio_port_config &cfg = cfgs[i]; in dumpPatchEndpoints() local
43 if (cfg.type == AUDIO_PORT_TYPE_DEVICE) { in dumpPatchEndpoints()
44 dst->appendFormat("Device ID %d %s", cfg.id, toString(cfg.ext.device.type).c_str()); in dumpPatchEndpoints()
46 dst->appendFormat("Mix ID %d I/O handle %d", cfg.id, cfg.ext.mix.handle); in dumpPatchEndpoints()
/frameworks/base/services/net/java/android/net/shared/
DPrivateDnsConfig.java50 public PrivateDnsConfig(PrivateDnsConfig cfg) { in PrivateDnsConfig() argument
51 useTls = cfg.useTls; in PrivateDnsConfig()
52 hostname = cfg.hostname; in PrivateDnsConfig()
53 ips = cfg.ips; in PrivateDnsConfig()
/frameworks/base/services/core/java/com/android/server/connectivity/
DTethering.java356 final TetheringConfiguration cfg = mConfig; in ifaceNameToType() local
358 if (cfg.isWifi(iface)) { in ifaceNameToType()
360 } else if (cfg.isUsb(iface)) { in ifaceNameToType()
362 } else if (cfg.isBluetooth(iface)) { in ifaceNameToType()
549 final TetheringConfiguration cfg = mConfig; in sendTetherStateChangedBroadcast() local
562 if (cfg.isUsb(iface)) { in sendTetherStateChangedBroadcast()
564 } else if (cfg.isWifi(iface)) { in sendTetherStateChangedBroadcast()
566 } else if (cfg.isBluetooth(iface)) { in sendTetherStateChangedBroadcast()
934 final TetheringConfiguration cfg = mConfig; in hasTetherableConfiguration() local
936 (cfg.tetherableUsbRegexs.length != 0) in hasTetherableConfiguration()
[all …]
DDnsManager.java270 public PrivateDnsConfig updatePrivateDns(Network network, PrivateDnsConfig cfg) { in updatePrivateDns() argument
271 Slog.w(TAG, "updatePrivateDns(" + network + ", " + cfg + ")"); in updatePrivateDns()
272 return (cfg != null) in updatePrivateDns()
273 ? mPrivateDnsMap.put(network.netId, cfg) in updatePrivateDns()
/frameworks/av/media/libstagefright/codecs/on2/dec/
DSoftVPX.cpp95 vpx_codec_dec_cfg_t cfg; in initDecoder() local
97 memset(&cfg, 0, sizeof(vpx_codec_dec_cfg_t)); in initDecoder()
99 cfg.threads = GetCPUCoreCount(); in initDecoder()
108 &cfg, flags))) { in initDecoder()
/frameworks/base/core/java/android/inputmethodservice/
DCompactExtractEditLayout.java114 Configuration cfg = res.getConfiguration(); in onAttachedToWindow() local
130 if (cfg.isScreenRound() && heightPixels < widthPixels) { in onAttachedToWindow()
/frameworks/base/services/core/java/com/android/server/
DNetworkManagementService.java756 private static InterfaceConfigurationParcel toStableParcel(InterfaceConfiguration cfg, in toStableParcel() argument
760 String hwAddr = cfg.getHardwareAddress(); in toStableParcel()
766 cfgParcel.ipv4Addr = cfg.getLinkAddress().getAddress().getHostAddress(); in toStableParcel()
767 cfgParcel.prefixLength = cfg.getLinkAddress().getPrefixLength(); in toStableParcel()
769 for (String flag : cfg.getFlags()) { in toStableParcel()
781 InterfaceConfiguration cfg = new InterfaceConfiguration(); in fromStableParcel() local
782 cfg.setHardwareAddress(p.hwAddr); in fromStableParcel()
785 cfg.setLinkAddress(new LinkAddress(addr, p.prefixLength)); in fromStableParcel()
787 cfg.setFlag(flag); in fromStableParcel()
790 return cfg; in fromStableParcel()
[all …]
/frameworks/rs/tests/lldb/
D.gitignore27 .installed.cfg
/frameworks/base/core/java/android/text/format/
DDateUtils.java350 Configuration cfg = r.getConfiguration(); in initFormatStringsLocked() local
351 if (sLastConfig == null || !sLastConfig.equals(cfg)) { in initFormatStringsLocked()
352 sLastConfig = cfg; in initFormatStringsLocked()
/frameworks/base/media/java/android/media/audiopolicy/
DAudioPolicy.java350 final AudioPolicyConfig cfg = new AudioPolicyConfig(zeMixes); in attachMixes() local
353 final int status = service.addMixForPolicy(cfg, this.cb()); in attachMixes()
390 final AudioPolicyConfig cfg = new AudioPolicyConfig(zeMixes); in detachMixes() local
393 final int status = service.removeMixForPolicy(cfg, this.cb()); in detachMixes()
/frameworks/base/tests/net/java/android/net/ip/
DIpServerTest.java233 inOrder.verify(mNetd).interfaceSetCfg(argThat(cfg -> IFACE_NAME.equals(cfg.ifName))); in canUnrequestTethering()
331 inOrder.verify(mNetd).interfaceSetCfg(argThat(cfg -> IFACE_NAME.equals(cfg.ifName))); in canUnrequestTetheringWithUpstream()
/frameworks/av/media/codec2/components/aom/
DC2SoftAomDec.cpp335 aom_codec_dec_cfg_t cfg; in initDecoder() local
336 memset(&cfg, 0, sizeof(aom_codec_dec_cfg_t)); in initDecoder()
337 cfg.threads = GetCPUCoreCount(); in initDecoder()
338 cfg.allow_lowbitdepth = 1; in initDecoder()
344 if ((err = aom_codec_dec_init(mCodecCtx, aom_codec_av1_dx(), &cfg, 0))) { in initDecoder()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/p2p/
DWifiP2pNative.java368 public boolean setConfigMethods(String cfg) { in setConfigMethods() argument
369 return mSupplicantP2pIfaceHal.setWpsConfigMethods(cfg); in setConfigMethods()
/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/core/java/android/os/
DINetworkManagementService.aidl66 void setInterfaceConfig(String iface, in InterfaceConfiguration cfg); in setInterfaceConfig() argument
/frameworks/av/media/codec2/components/vpx/
DC2SoftVpxDec.cpp432 vpx_codec_dec_cfg_t cfg; in initDecoder() local
433 memset(&cfg, 0, sizeof(vpx_codec_dec_cfg_t)); in initDecoder()
434 cfg.threads = mCoreCount = GetCPUCoreCount(); in initDecoder()
443 &cfg, flags))) { in initDecoder()
/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/gamesdk/third_party/protobuf-3.0.0/
Dprotobuf.bzl91 cfg = HOST_CFG,
97 cfg = HOST_CFG,

12