/packages/modules/Bluetooth/system/gd/storage/ |
D | config_cache_test.cc | 44 ConfigCache config(100, Device::kLinkKeyProperties); in TEST() local 45 config.SetProperty("A", "B", "C"); in TEST() 46 auto value = config.GetProperty("A", "B"); in TEST() 52 ConfigCache config(100, Device::kLinkKeyProperties); in TEST() local 53 ASSERT_DEATH({ config.SetProperty("", "B", "C"); }, "Empty section name not allowed"); in TEST() 54 ASSERT_DEATH({ config.SetProperty("A", "", "C"); }, "Empty property name not allowed"); in TEST() 56 config.SetProperty("A", "B", ""); in TEST() 57 auto value = config.GetProperty("A", "B"); in TEST() 63 ConfigCache config(2, Device::kLinkKeyProperties); in TEST() local 64 config.SetProperty("A", "B", "C"); in TEST() [all …]
|
D | mutation_test.cc | 33 ConfigCache config(100, Device::kLinkKeyProperties); in TEST() local 35 config.SetProperty("A", "B", "C"); in TEST() 36 config.SetProperty("AA:BB:CC:DD:EE:FF", "B", "C"); in TEST() 37 config.SetProperty("AA:BB:CC:DD:EE:FF", "C", "D"); in TEST() 38 config.SetProperty("CC:DD:EE:FF:00:11", "LinkKey", "AABBAABBCCDDEE"); in TEST() 39 Mutation mutation(&config, &memory_only_config); in TEST() 43 ASSERT_THAT(config.GetPersistentSections(), ElementsAre("CC:DD:EE:FF:00:11")); in TEST() 44 Mutation mutation2(&config, &memory_only_config); in TEST() 47 …ASSERT_THAT(config.GetPersistentSections(), ElementsAre("CC:DD:EE:FF:00:11", "AA:BB:CC:DD:EE:FF")); in TEST() 51 ConfigCache config(100, Device::kLinkKeyProperties); in TEST() local [all …]
|
D | config_cache_helper_test.cc | 34 ConfigCache config(100, Device::kLinkKeyProperties); in TEST() local 36 ConfigCacheHelper(config).SetBool("A", "B", true); in TEST() 37 ASSERT_THAT(config.GetProperty("A", "B"), Optional(StrEq("true"))); in TEST() 38 ASSERT_THAT(ConfigCacheHelper(config).GetBool("A", "B"), Optional(IsTrue())); in TEST() 40 ConfigCacheHelper(config).SetBool("A", "B", false); in TEST() 41 ASSERT_THAT(config.GetProperty("A", "B"), Optional(StrEq("false"))); in TEST() 42 ASSERT_THAT(ConfigCacheHelper(config).GetBool("A", "B"), Optional(IsFalse())); in TEST() 46 ConfigCache config(100, Device::kLinkKeyProperties); in TEST() local 48 ConfigCacheHelper(config).SetUint64("A", "B", 123); in TEST() 49 ASSERT_THAT(config.GetProperty("A", "B"), Optional(StrEq("123"))); in TEST() [all …]
|
/packages/modules/Wifi/framework/tests/src/android/net/wifi/ |
D | WifiConfigurationTest.java | 107 WifiConfiguration config = new WifiConfiguration(); in testWifiConfigurationParcel() local 108 config.setSecurityParams(WifiConfiguration.SECURITY_TYPE_PSK); in testWifiConfigurationParcel() 109 config.setPasspointManagementObjectTree(cookie); in testWifiConfigurationParcel() 110 config.trusted = false; in testWifiConfigurationParcel() 111 config.oemPaid = true; in testWifiConfigurationParcel() 112 config.oemPrivate = true; in testWifiConfigurationParcel() 113 config.carrierMerged = true; in testWifiConfigurationParcel() 114 config.updateIdentifier = "1234"; in testWifiConfigurationParcel() 115 config.fromWifiNetworkSpecifier = true; in testWifiConfigurationParcel() 116 config.fromWifiNetworkSuggestion = true; in testWifiConfigurationParcel() [all …]
|
/packages/modules/ImsMedia/service/src/com/android/telephony/imsmedia/lib/libimsmedia/config/src/ |
D | VideoConfig.cpp | 52 VideoConfig::VideoConfig(VideoConfig* config) : in VideoConfig() argument 53 RtpConfig(config) in VideoConfig() 55 if (config == nullptr) in VideoConfig() 57 videoMode = config->videoMode; in VideoConfig() 58 codecType = config->codecType; in VideoConfig() 59 framerate = config->framerate; in VideoConfig() 60 bitrate = config->bitrate; in VideoConfig() 61 maxMtuBytes = config->maxMtuBytes; in VideoConfig() 62 codecProfile = config->codecProfile; in VideoConfig() 63 codecLevel = config->codecLevel; in VideoConfig() [all …]
|
D | RtpConfig.cpp | 48 RtpConfig::RtpConfig(RtpConfig* config) in RtpConfig() argument 50 if (config == nullptr) in RtpConfig() 54 type = config->type; in RtpConfig() 55 direction = config->direction; in RtpConfig() 56 accessNetwork = config->accessNetwork; in RtpConfig() 57 remoteAddress = String8(config->remoteAddress.c_str()); in RtpConfig() 58 remotePort = config->remotePort; in RtpConfig() 59 rtcpConfig = config->rtcpConfig; in RtpConfig() 60 dscp = config->dscp; in RtpConfig() 61 rxPayloadTypeNumber = config->rxPayloadTypeNumber; in RtpConfig() [all …]
|
D | AudioConfig.cpp | 43 AudioConfig::AudioConfig(AudioConfig* config) : in AudioConfig() argument 44 RtpConfig(config) in AudioConfig() 46 if (config != nullptr) in AudioConfig() 48 pTimeMillis = config->pTimeMillis; in AudioConfig() 49 maxPtimeMillis = config->maxPtimeMillis; in AudioConfig() 50 dtxEnabled = config->dtxEnabled; in AudioConfig() 51 codecType = config->codecType; in AudioConfig() 52 mDtmfTxPayloadTypeNumber = config->mDtmfTxPayloadTypeNumber; in AudioConfig() 53 mDtmfRxPayloadTypeNumber = config->mDtmfRxPayloadTypeNumber; in AudioConfig() 54 dtmfsamplingRateKHz = config->dtmfsamplingRateKHz; in AudioConfig() [all …]
|
D | TextConfig.cpp | 38 TextConfig::TextConfig(TextConfig* config) : in TextConfig() argument 39 RtpConfig(config) in TextConfig() 41 if (config != nullptr) in TextConfig() 43 this->mCodecType = config->mCodecType; in TextConfig() 44 this->mBitrate = config->mBitrate; in TextConfig() 45 this->mRedundantPayload = config->mRedundantPayload; in TextConfig() 46 this->mRedundantLevel = config->mRedundantLevel; in TextConfig() 47 this->mKeepRedundantLevel = config->mKeepRedundantLevel; in TextConfig() 51 TextConfig::TextConfig(TextConfig& config) : in TextConfig() argument 52 RtpConfig(config) in TextConfig() [all …]
|
/packages/modules/StatsD/statsd/tests/metrics/parsing_utils/ |
D | metrics_manager_util_test.cpp | 83 optional<InvalidConfigReason> initConfig(const StatsdConfig& config) { in initConfig() argument 86 kConfigKey, config, uidMap, pullerManager, anomalyAlarmMonitor, periodicAlarmMonitor, in initConfig() 96 StatsdConfig config; in buildCircleMatchers() local 97 config.set_id(12345); in buildCircleMatchers() 99 AtomMatcher* eventMatcher = config.add_atom_matcher(); in buildCircleMatchers() 109 eventMatcher = config.add_atom_matcher(); in buildCircleMatchers() 118 return config; in buildCircleMatchers() 122 StatsdConfig config; in buildAlertWithUnknownMetric() local 123 config.set_id(12345); in buildAlertWithUnknownMetric() 125 *config.add_atom_matcher() = CreateScreenTurnedOnAtomMatcher(); in buildAlertWithUnknownMetric() [all …]
|
/packages/modules/Bluetooth/system/osi/test/ |
D | config_test.cc | 87 std::unique_ptr<config_t> config = config_new(CONFIG_FILE); in TEST_F() local 88 ASSERT_NE(config, nullptr); in TEST_F() 89 EXPECT_TRUE(config->Has("DID")); in TEST_F() 90 auto section_iter = config->Find("DID"); in TEST_F() 91 ASSERT_NE(section_iter, config->sections.end()); in TEST_F() 92 EXPECT_FALSE(config->Has("random")); in TEST_F() 93 EXPECT_EQ(config->Find("random"), config->sections.end()); in TEST_F() 97 std::unique_ptr<config_t> config = config_new(CONFIG_FILE); in TEST_F() local 98 ASSERT_NE(config, nullptr); in TEST_F() 99 EXPECT_TRUE(config->Has("DID")); in TEST_F() [all …]
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | WifiConfigManager.java | 150 default void onNetworkAdded(@NonNull WifiConfiguration config) { }; in onNetworkAdded() argument 154 default void onNetworkEnabled(@NonNull WifiConfiguration config) { }; in onNetworkEnabled() argument 158 default void onNetworkPermanentlyDisabled(@NonNull WifiConfiguration config, in onNetworkPermanentlyDisabled() argument 163 default void onNetworkRemoved(@NonNull WifiConfiguration config) { }; in onNetworkRemoved() argument 167 default void onNetworkTemporarilyDisabled(@NonNull WifiConfiguration config, in onNetworkTemporarilyDisabled() argument 494 public boolean shouldUseNonPersistentRandomization(WifiConfiguration config) { in shouldUseNonPersistentRandomization() argument 496 || config.macRandomizationSetting == WifiConfiguration.RANDOMIZATION_NONE) { in shouldUseNonPersistentRandomization() 507 if (config.macRandomizationSetting == WifiConfiguration.RANDOMIZATION_NON_PERSISTENT) { in shouldUseNonPersistentRandomization() 510 if (config.macRandomizationSetting == WifiConfiguration.RANDOMIZATION_PERSISTENT) { in shouldUseNonPersistentRandomization() 515 if (config.getIpConfiguration().getIpAssignment() == IpConfiguration.IpAssignment.STATIC) { in shouldUseNonPersistentRandomization() [all …]
|
D | WifiConfigurationUtil.java | 98 public static boolean isConfigForPskNetwork(WifiConfiguration config) { in isConfigForPskNetwork() argument 99 return config.isSecurityType(WifiConfiguration.SECURITY_TYPE_PSK); in isConfigForPskNetwork() 105 public static boolean isConfigForWapiPskNetwork(WifiConfiguration config) { in isConfigForWapiPskNetwork() argument 106 return config.isSecurityType(WifiConfiguration.SECURITY_TYPE_WAPI_PSK); in isConfigForWapiPskNetwork() 112 public static boolean isConfigForWapiCertNetwork(WifiConfiguration config) { in isConfigForWapiCertNetwork() argument 113 return config.isSecurityType(WifiConfiguration.SECURITY_TYPE_WAPI_CERT); in isConfigForWapiCertNetwork() 119 public static boolean isConfigForSaeNetwork(WifiConfiguration config) { in isConfigForSaeNetwork() argument 120 return config.isSecurityType(WifiConfiguration.SECURITY_TYPE_SAE); in isConfigForSaeNetwork() 126 public static boolean isConfigForOweNetwork(WifiConfiguration config) { in isConfigForOweNetwork() argument 127 return config.isSecurityType(WifiConfiguration.SECURITY_TYPE_OWE); in isConfigForOweNetwork() [all …]
|
D | NetworkSuggestionNominator.java | 127 WifiConfiguration config = ewns.createInternalWifiConfiguration(mWifiCarrierInfoManager); in addOrUpdateSuggestionToWifiConfigManger() local 129 mWifiConfigManager.getConfiguredNetwork(config.getProfileKey()); in addOrUpdateSuggestionToWifiConfigManger() 131 mLocalLog.log(config.getProfileKey() + "is already in the WifiConfigManager"); in addOrUpdateSuggestionToWifiConfigManger() 140 config, ewns.perAppInfo.uid, ewns.perAppInfo.packageName, false); in addOrUpdateSuggestionToWifiConfigManger() 145 mLocalLog.log(config.getProfileKey() in addOrUpdateSuggestionToWifiConfigManger() 158 WifiConfiguration config, boolean untrustedNetworkAllowed, in shouldIgnoreBasedOnChecksForTrustedOrOemPaidOrOemPrivateOrRestricted() argument 162 if (!untrustedNetworkAllowed && !config.trusted) { in shouldIgnoreBasedOnChecksForTrustedOrOemPaidOrOemPrivateOrRestricted() 165 if (!(restrictedNetworkAllowedUids.contains(config.creatorUid) in shouldIgnoreBasedOnChecksForTrustedOrOemPaidOrOemPrivateOrRestricted() 166 || config.creatorUid == Process.SYSTEM_UID) && config.restricted) { in shouldIgnoreBasedOnChecksForTrustedOrOemPaidOrOemPrivateOrRestricted() 173 if (config.oemPaid && config.oemPrivate) { in shouldIgnoreBasedOnChecksForTrustedOrOemPaidOrOemPrivateOrRestricted() [all …]
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | ConfigurationMapTest.java | 155 for (WifiConfiguration config : mConfigs.valuesForCurrentUser()) { in getEnabledNetworksForCurrentUser() 156 if (config.status != WifiConfiguration.Status.DISABLED) { in getEnabledNetworksForCurrentUser() 157 list.add(config); in getEnabledNetworksForCurrentUser() 164 for (WifiConfiguration config : mConfigs.valuesForCurrentUser()) { in getEphemeralForCurrentUser() 165 if (ssid.equals(config.SSID) && config.ephemeral) { in getEphemeralForCurrentUser() 166 return config; in getEphemeralForCurrentUser() 173 for (WifiConfiguration config : configs) { in addNetworks() 174 assertNull(mConfigs.put(config)); in addNetworks() 186 for (WifiConfiguration config : configs) { in verifyGetters() 187 if (config.shared || mWifiPermissionsUtil in verifyGetters() [all …]
|
D | SupplicantStaNetworkHalAidlImplTest.java | 136 WifiConfiguration config = WifiConfigurationTestUtil.createOweNetwork(); in testOweNetworkWifiConfigurationSaveLoad() local 137 config.updateIdentifier = "46"; in testOweNetworkWifiConfigurationSaveLoad() 138 testWifiConfigurationSaveLoad(config); in testOweNetworkWifiConfigurationSaveLoad() 146 WifiConfiguration config = WifiConfigurationTestUtil.createOpenHiddenNetwork(); in testOpenNetworkWifiConfigurationSaveLoad() local 147 config.updateIdentifier = "45"; in testOpenNetworkWifiConfigurationSaveLoad() 148 testWifiConfigurationSaveLoad(config); in testOpenNetworkWifiConfigurationSaveLoad() 156 WifiConfiguration config = WifiConfigurationTestUtil.createSaeNetwork(); in testSaePasswordNetworkWifiConfigurationSaveLoad() local 157 testWifiConfigurationSaveLoad(config); in testSaePasswordNetworkWifiConfigurationSaveLoad() 169 WifiConfiguration config = WifiConfigurationTestUtil.createPskNetwork(); in testPskPassphraseNetworkWifiConfigurationSaveLoad() local 172 testWifiConfigurationSaveLoad(config); in testPskPassphraseNetworkWifiConfigurationSaveLoad() [all …]
|
D | WifiConfigurationUtilTest.java | 260 WifiConfiguration config = WifiConfigurationTestUtil.createPskNetwork(); in testValidatePositiveCases_HexSsidString() local 261 config.SSID = "abcd1234555a"; in testValidatePositiveCases_HexSsidString() 262 config.preSharedKey = "abcd123455151234556788990034556667332345667322344556676743233445"; in testValidatePositiveCases_HexSsidString() 263 assertTrue(WifiConfigurationUtil.validate(config, SUPPORTED_FEATURES_ALL, in testValidatePositiveCases_HexSsidString() 272 WifiConfiguration config = WifiConfigurationTestUtil.createPskNetwork(); in testValidatePositiveCases_AnyBssidString() local 273 config.BSSID = "any"; in testValidatePositiveCases_AnyBssidString() 274 assertTrue(WifiConfigurationUtil.validate(config, SUPPORTED_FEATURES_ALL, in testValidatePositiveCases_AnyBssidString() 277 config, SUPPORTED_FEATURES_ALL, WifiConfigurationUtil.VALIDATE_FOR_UPDATE)); in testValidatePositiveCases_AnyBssidString() 286 WifiConfiguration config = WifiConfigurationTestUtil.createPskNetwork(); in testValidatePositiveCases_MaskedPskString() local 287 assertTrue(WifiConfigurationUtil.validate(config, SUPPORTED_FEATURES_ALL, in testValidatePositiveCases_MaskedPskString() [all …]
|
D | InsecureEapNetworkHandlerTest.java | 414 WifiConfiguration config = prepareWifiConfiguration(isAtLeastT); in verifyTrustOnFirstUseAcceptWhenConnectByUser() local 415 setupTest(config, isAtLeastT, isTrustOnFirstUseSupported); in verifyTrustOnFirstUseAcceptWhenConnectByUser() 416 verifyTrustOnFirstUseFlowWithDefaultCerts(config, ACTION_ACCEPT, in verifyTrustOnFirstUseAcceptWhenConnectByUser() 431 WifiConfiguration config = prepareWifiConfiguration(isAtLeastT); in verifyTrustOnFirstUseRejectWhenConnectByUser() local 432 setupTest(config, isAtLeastT, isTrustOnFirstUseSupported); in verifyTrustOnFirstUseRejectWhenConnectByUser() 433 verifyTrustOnFirstUseFlowWithDefaultCerts(config, ACTION_REJECT, in verifyTrustOnFirstUseRejectWhenConnectByUser() 448 WifiConfiguration config = prepareWifiConfiguration(isAtLeastT); in verifyTrustOnFirstUseAcceptWhenConnectByAutoConnect() local 449 setupTest(config, isAtLeastT, isTrustOnFirstUseSupported); in verifyTrustOnFirstUseAcceptWhenConnectByAutoConnect() 450 verifyTrustOnFirstUseFlowWithDefaultCerts(config, ACTION_ACCEPT, in verifyTrustOnFirstUseAcceptWhenConnectByAutoConnect() 465 WifiConfiguration config = prepareWifiConfiguration(isAtLeastT); in verifyTrustOnFirstUseRejectWhenConnectByAutoConnect() local [all …]
|
/packages/apps/Traceur/src_common/com/android/traceur/ |
D | PerfettoUtils.java | 91 public boolean traceStart(TraceConfig config) { in traceStart() argument 99 return startPerfettoWithProtoConfig(config); in traceStart() 112 StringBuilder config = new StringBuilder(); in traceStart() local 113 appendBaseConfigOptions(config, attachToBugreport, longTrace, maxLongTraceSizeMb, in traceStart() 127 appendTraceBuffer(config, targetBuffer0Kb); in traceStart() 130 appendTraceBuffer(config, targetBuffer1Kb); in traceStart() 132 appendFtraceConfig(config, tags, apps); in traceStart() 133 appendProcStatsConfig(config, tags, /* targetBuffer = */ 1); in traceStart() 134 appendAdditionalDataSources(config, tags, winscope, longTrace, /* targetBuffer = */ 1); in traceStart() 136 return startPerfettoWithTextConfig(config.toString()); in traceStart() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/touch/ |
D | AllAppsSwipeController.java | 180 StateAnimationConfig config = getConfigForStates(mFromState, mToState); in initCurrentAnimation() local 181 config.duration = (long) (2 * range); in initCurrentAnimation() 184 .createAnimationToNewWorkspace(mToState, config); in initCurrentAnimation() 194 StateAnimationConfig config = super.getConfigForStates(fromState, toState); in getConfigForStates() local 195 config.animProps |= StateAnimationConfig.USER_CONTROLLED; in getConfigForStates() 197 applyNormalToAllAppsAnimConfig(mLauncher, config); in getConfigForStates() 199 applyAllAppsToNormalConfig(mLauncher, config); in getConfigForStates() 201 return config; in getConfigForStates() 207 public static void applyAllAppsToNormalConfig(Launcher launcher, StateAnimationConfig config) { in applyAllAppsToNormalConfig() argument 209 config.setInterpolator(ANIM_SCRIM_FADE, in applyAllAppsToNormalConfig() [all …]
|
/packages/modules/Wifi/framework/tests/src/android/net/wifi/hotspot2/ |
D | PasspointConfigurationTest.java | 110 PasspointConfiguration config = PasspointTestUtils.createConfig(); in verifyParcelWithoutServiceNames() local 111 config.setServiceFriendlyNames(null); in verifyParcelWithoutServiceNames() 112 verifyParcel(config); in verifyParcelWithoutServiceNames() 122 PasspointConfiguration config = PasspointTestUtils.createConfig(); in verifyParcelWithoutHomeSP() local 123 config.setHomeSp(null); in verifyParcelWithoutHomeSP() 124 verifyParcel(config); in verifyParcelWithoutHomeSP() 134 PasspointConfiguration config = PasspointTestUtils.createConfig(); in verifyParcelWithoutCredential() local 135 config.setCredential(null); in verifyParcelWithoutCredential() 136 verifyParcel(config); in verifyParcelWithoutCredential() 146 PasspointConfiguration config = PasspointTestUtils.createConfig(); in verifyParcelWithoutPolicy() local [all …]
|
/packages/modules/Wifi/service/java/com/android/server/wifi/hal/ |
D | WifiRttControllerHidlImpl.java | 614 RttConfig config = new RttConfig(); in convertRangingRequestToRttConfigs() local 616 System.arraycopy(responder.macAddress.toByteArray(), 0, config.addr, 0, in convertRangingRequestToRttConfigs() 617 config.addr.length); in convertRangingRequestToRttConfigs() 620 config.type = responder.supports80211mc ? RttType.TWO_SIDED : RttType.ONE_SIDED; in convertRangingRequestToRttConfigs() 621 if (config.type == RttType.ONE_SIDED && cap != null && !cap.oneSidedRttSupported) { in convertRangingRequestToRttConfigs() 626 config.peer = halRttPeerTypeFromResponderType(responder.responderType); in convertRangingRequestToRttConfigs() 627 config.channel.width = halChannelWidthFromResponderChannelWidth( in convertRangingRequestToRttConfigs() 629 config.channel.centerFreq = responder.frequency; in convertRangingRequestToRttConfigs() 630 config.channel.centerFreq0 = responder.centerFreq0; in convertRangingRequestToRttConfigs() 631 config.channel.centerFreq1 = responder.centerFreq1; in convertRangingRequestToRttConfigs() [all …]
|
/packages/modules/ImsMedia/tests/native/service/src/com/android/telephony/imsmedia/lib/libimsmedia/core/text/ |
D | TextSessionTest.cpp | 61 TextConfig config; member in TextSessionTest 73 config.setMediaDirection(kMediaDirection); in SetUp() 74 config.setRemoteAddress(kRemoteAddress); in SetUp() 75 config.setRemotePort(kRemotePort); in SetUp() 76 config.setRtcpConfig(rtcp); in SetUp() 77 config.setDscp(kDscp); in SetUp() 78 config.setRxPayloadTypeNumber(kRxPayload); in SetUp() 79 config.setTxPayloadTypeNumber(kTxPayload); in SetUp() 80 config.setSamplingRateKHz(kSamplingRate); in SetUp() 81 config.setCodecType(kCodecType); in SetUp() [all …]
|
/packages/modules/ImsMedia/tests/native/service/src/com/android/telephony/imsmedia/lib/libimsmedia/core/audio/ |
D | AudioSessionTest.cpp | 68 AudioConfig config; member in AudioSessionTest 105 config.setMediaDirection(kMediaDirection); in SetUp() 106 config.setRemoteAddress(kRemoteAddress); in SetUp() 107 config.setRemotePort(kRemotePort); in SetUp() 108 config.setRtcpConfig(rtcp); in SetUp() 109 config.setDscp(kDscp); in SetUp() 110 config.setRxPayloadTypeNumber(kRxPayload); in SetUp() 111 config.setTxPayloadTypeNumber(kTxPayload); in SetUp() 112 config.setSamplingRateKHz(kSamplingRate); in SetUp() 113 config.setAnbrMode(anbr); in SetUp() [all …]
|
/packages/apps/Settings/tests/unit/src/com/android/settings/wifi/dpp/ |
D | AdbQrCodeTest.java | 29 WifiNetworkConfig config = new AdbQrCode( in testZxParsing_validCode() local 31 assertThat(config.getSsid()).isEqualTo("reallyLONGone"); in testZxParsing_validCode() 32 assertThat(config.getSecurity()).isEqualTo("ADB"); in testZxParsing_validCode() 33 assertThat(config.getPreSharedKey()).isEqualTo("somepasswo#%^**123rd"); in testZxParsing_validCode() 35 config = new AdbQrCode("WIFI:S:anotherone;T:ADB;P:3#=3j9asicla").getWifiNetworkConfig(); in testZxParsing_validCode() 36 assertThat(config.getSsid()).isEqualTo("anotherone"); in testZxParsing_validCode() 37 assertThat(config.getSecurity()).isEqualTo("ADB"); in testZxParsing_validCode() 38 assertThat(config.getPreSharedKey()).isEqualTo("3#=3j9asicla"); in testZxParsing_validCode() 40 config = new AdbQrCode("WIFI:S:xx;T:ADB;P:a").getWifiNetworkConfig(); in testZxParsing_validCode() 41 assertThat(config.getSsid()).isEqualTo("xx"); in testZxParsing_validCode() [all …]
|
/packages/modules/Virtualization/vm/src/ |
D | run.rs | 46 pub fn command_run_app(config: RunAppConfig) -> Result<(), Error> { in command_run_app() 48 let apk = File::open(&config.apk).context("Failed to open APK file")?; in command_run_app() 50 let extra_apks = match config.config_path.as_deref() { in command_run_app() 51 Some(path) => parse_extra_apk_list(&config.apk, path)?, in command_run_app() 52 None => config.extra_apks().to_vec(), in command_run_app() 55 if extra_apks.len() != config.extra_idsigs.len() { in command_run_app() 59 config.extra_idsigs.len() in command_run_app() 65 let extra_idsig_fd = ParcelFileDescriptor::new(File::create(&config.extra_idsigs[i])?); in command_run_app() 69 let idsig = File::create(&config.idsig).context("Failed to create idsig file")?; in command_run_app() 75 let idsig = File::open(&config.idsig).context("Failed to open idsig file")?; in command_run_app() [all …]
|