• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2018 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 package android.net.wifi;
18 
19 import android.annotation.NonNull;
20 import android.annotation.Nullable;
21 import android.net.DhcpInfo;
22 import android.net.DhcpOption;
23 import android.net.Network;
24 import android.net.wifi.hotspot2.IProvisioningCallback;
25 import android.net.wifi.hotspot2.OsuProvider;
26 import android.net.wifi.hotspot2.PasspointConfiguration;
27 import android.os.Bundle;
28 import android.os.IBinder;
29 import android.os.RemoteException;
30 import android.os.WorkSource;
31 
32 import com.android.modules.utils.ParceledListSlice;
33 
34 import java.util.List;
35 import java.util.Map;
36 
37 /**
38  * Empty concrete class implementing IWifiManager with stub methods throwing runtime exceptions.
39  *
40  * This class is meant to be extended by real implementations of IWifiManager in order to facilitate
41  * cross-repo changes to WiFi internal APIs, including the introduction of new APIs, the removal of
42  * deprecated APIs, or the migration of existing API signatures.
43  *
44  * When an existing API is scheduled for removal, it can be removed from IWifiManager.aidl
45  * immediately and marked as @Deprecated first in this class. Children inheriting this class are
46  * then given a short grace period to update themselves before the @Deprecated stub is removed for
47  * good. If the API scheduled for removal has a replacement or an overload (signature change),
48  * these should be introduced before the stub is removed to allow children to migrate.
49  *
50  * When a new API is added to IWifiManager.aidl, a stub should be added in BaseWifiService as
51  * well otherwise compilation will fail.
52  *
53  * @hide
54  */
55 public class BaseWifiService extends IWifiManager.Stub {
56 
57     private static final String TAG = BaseWifiService.class.getSimpleName();
58 
59     @Override
getSupportedFeatures()60     public long getSupportedFeatures() {
61         throw new UnsupportedOperationException();
62     }
63 
64     @Override
getWifiActivityEnergyInfoAsync(IOnWifiActivityEnergyInfoListener listener)65     public void getWifiActivityEnergyInfoAsync(IOnWifiActivityEnergyInfoListener listener) {
66         throw new UnsupportedOperationException();
67     }
68 
69     @Deprecated
getConfiguredNetworks(String packageName, String featureId)70     public ParceledListSlice getConfiguredNetworks(String packageName, String featureId) {
71         throw new UnsupportedOperationException();
72     }
73 
74     @Override
getConfiguredNetworks(String packageName, String featureId, boolean callerNetworksOnly)75     public ParceledListSlice getConfiguredNetworks(String packageName, String featureId,
76             boolean callerNetworksOnly) {
77         throw new UnsupportedOperationException();
78     }
79 
80     @Override
getPrivilegedConfiguredNetworks(String packageName, String featureId, Bundle extras)81     public ParceledListSlice getPrivilegedConfiguredNetworks(String packageName, String featureId,
82             Bundle extras) {
83         throw new UnsupportedOperationException();
84     }
85 
86     @Override
getPrivilegedConnectedNetwork( String packageName, String featureId, Bundle extras)87     public WifiConfiguration getPrivilegedConnectedNetwork(
88             String packageName, String featureId, Bundle extras) {
89         throw new UnsupportedOperationException();
90     }
91 
92     @Override
setScreenOnScanSchedule(int[] scanScheduleSeconds, int[] scanType)93     public void setScreenOnScanSchedule(int[] scanScheduleSeconds, int[] scanType) {
94         throw new UnsupportedOperationException();
95     }
96 
97     @Override
setOneShotScreenOnConnectivityScanDelayMillis(int delayMs)98     public void setOneShotScreenOnConnectivityScanDelayMillis(int delayMs) {
99         throw new UnsupportedOperationException();
100     }
101 
102     @Override
getAllMatchingFqdnsForScanResults( List<ScanResult> scanResults)103     public Map<String, Map<Integer, List<ScanResult>>> getAllMatchingFqdnsForScanResults(
104             List<ScanResult> scanResults) {
105         throw new UnsupportedOperationException();
106     }
107 
108     @Override
setSsidsAllowlist(String packageName, List<WifiSsid> ssids)109     public void setSsidsAllowlist(String packageName, List<WifiSsid> ssids) {
110         throw new UnsupportedOperationException();
111     }
112 
113     @Override
getSsidsAllowlist(String packageName)114     public List<WifiSsid> getSsidsAllowlist(String packageName) {
115         throw new UnsupportedOperationException();
116     }
117 
118     @Override
getMatchingOsuProviders( List<ScanResult> scanResults)119     public Map<OsuProvider, List<ScanResult>> getMatchingOsuProviders(
120             List<ScanResult> scanResults) {
121         throw new UnsupportedOperationException();
122     }
123 
124     @Override
getMatchingPasspointConfigsForOsuProviders( List<OsuProvider> osuProviders)125     public Map<OsuProvider, PasspointConfiguration> getMatchingPasspointConfigsForOsuProviders(
126             List<OsuProvider> osuProviders) {
127         throw new UnsupportedOperationException();
128     }
129 
130     @Override
addOrUpdateNetwork(WifiConfiguration config, String packageName, Bundle extras)131     public int addOrUpdateNetwork(WifiConfiguration config, String packageName, Bundle extras) {
132         throw new UnsupportedOperationException();
133     }
134 
135     /** Deprecated - can be removed */
addOrUpdateNetwork(WifiConfiguration config, String packageName)136     public int addOrUpdateNetwork(WifiConfiguration config, String packageName) {
137         throw new UnsupportedOperationException();
138     }
139 
140     @Override
addOrUpdateNetworkPrivileged(WifiConfiguration config, String packageName)141     public WifiManager.AddNetworkResult addOrUpdateNetworkPrivileged(WifiConfiguration config,
142             String packageName) {
143         throw new UnsupportedOperationException();
144     }
145 
146     @Override
addOrUpdatePasspointConfiguration( PasspointConfiguration config, String packageName)147     public boolean addOrUpdatePasspointConfiguration(
148             PasspointConfiguration config, String packageName) {
149         throw new UnsupportedOperationException();
150     }
151 
152     @Override
removePasspointConfiguration(String fqdn, String packageName)153     public boolean removePasspointConfiguration(String fqdn, String packageName) {
154         throw new UnsupportedOperationException();
155     }
156 
157     @Override
getPasspointConfigurations(String packageName)158     public List<PasspointConfiguration> getPasspointConfigurations(String packageName) {
159         throw new UnsupportedOperationException();
160     }
161 
162     @Override
getWifiConfigsForPasspointProfiles(List<String> fqdnList)163     public List<WifiConfiguration> getWifiConfigsForPasspointProfiles(List<String> fqdnList) {
164         throw new UnsupportedOperationException();
165     }
166 
167     @Override
queryPasspointIcon(long bssid, String fileName)168     public void queryPasspointIcon(long bssid, String fileName) {
169         throw new UnsupportedOperationException();
170     }
171 
172     @Override
matchProviderWithCurrentNetwork(String fqdn)173     public int matchProviderWithCurrentNetwork(String fqdn) {
174         throw new UnsupportedOperationException();
175     }
176 
177     @Override
removeNetwork(int netId, String packageName)178     public boolean removeNetwork(int netId, String packageName) {
179         throw new UnsupportedOperationException();
180     }
181 
182     @Override
removeNonCallerConfiguredNetworks(String packageName)183     public boolean removeNonCallerConfiguredNetworks(String packageName) {
184         throw new UnsupportedOperationException();
185     }
186 
187     @Override
enableNetwork(int netId, boolean disableOthers, String packageName)188     public boolean enableNetwork(int netId, boolean disableOthers, String packageName) {
189         throw new UnsupportedOperationException();
190     }
191 
192     @Override
disableNetwork(int netId, String packageName)193     public boolean disableNetwork(int netId, String packageName) {
194         throw new UnsupportedOperationException();
195     }
196 
197     @Override
allowAutojoinGlobal(boolean choice)198     public void allowAutojoinGlobal(boolean choice) {
199         throw new UnsupportedOperationException();
200     }
201 
202     @Override
queryAutojoinGlobal(@onNull IBooleanListener listener)203     public void queryAutojoinGlobal(@NonNull IBooleanListener listener) {
204         throw new UnsupportedOperationException();
205     }
206 
207     @Override
allowAutojoin(int netId, boolean choice)208     public void allowAutojoin(int netId, boolean choice) {
209         throw new UnsupportedOperationException();
210     }
211 
212     @Override
allowAutojoinPasspoint(String fqdn, boolean enableAutoJoin)213     public void allowAutojoinPasspoint(String fqdn, boolean enableAutoJoin) {
214         throw new UnsupportedOperationException();
215     }
216 
217     @Override
setMacRandomizationSettingPasspointEnabled(String fqdn, boolean enable)218     public void setMacRandomizationSettingPasspointEnabled(String fqdn, boolean enable) {
219         throw new UnsupportedOperationException();
220     }
221 
222     @Override
setPasspointMeteredOverride(String fqdn, int meteredOverride)223     public void setPasspointMeteredOverride(String fqdn, int meteredOverride) {
224         throw new UnsupportedOperationException();
225     }
226 
227     @Override
startScan(String packageName, String featureId)228     public boolean startScan(String packageName, String featureId) {
229         throw new UnsupportedOperationException();
230     }
231 
232     @Override
getScanResults(String callingPackage, String callingFeatureId)233     public List<ScanResult> getScanResults(String callingPackage, String callingFeatureId) {
234         throw new UnsupportedOperationException();
235     }
236 
237     @Override
disconnect(String packageName)238     public boolean disconnect(String packageName) {
239         throw new UnsupportedOperationException();
240     }
241 
242     @Override
reconnect(String packageName)243     public boolean reconnect(String packageName) {
244         throw new UnsupportedOperationException();
245     }
246 
247     @Override
reassociate(String packageName)248     public boolean reassociate(String packageName) {
249         throw new UnsupportedOperationException();
250     }
251 
252     @Override
getConnectionInfo(String callingPackage, String callingFeatureId)253     public WifiInfo getConnectionInfo(String callingPackage, String callingFeatureId) {
254         throw new UnsupportedOperationException();
255     }
256 
257     @Override
setWifiEnabled(String packageName, boolean enable)258     public boolean setWifiEnabled(String packageName, boolean enable) {
259         throw new UnsupportedOperationException();
260     }
261 
262     @Override
registerSubsystemRestartCallback(ISubsystemRestartCallback callback)263     public void registerSubsystemRestartCallback(ISubsystemRestartCallback callback) {
264         throw new UnsupportedOperationException();
265     }
266 
267     @Override
unregisterSubsystemRestartCallback(ISubsystemRestartCallback callback)268     public void unregisterSubsystemRestartCallback(ISubsystemRestartCallback callback) {
269         throw new UnsupportedOperationException();
270     }
271 
272     @Override
restartWifiSubsystem()273     public void restartWifiSubsystem() {
274         throw new UnsupportedOperationException();
275     }
276 
277     @Override
getWifiEnabledState()278     public int getWifiEnabledState() {
279         throw new UnsupportedOperationException();
280     }
281 
282     @Override
registerDriverCountryCodeChangedListener( @onNull IOnWifiDriverCountryCodeChangedListener listener, @Nullable String packageName, @Nullable String featureId)283     public void registerDriverCountryCodeChangedListener(
284             @NonNull IOnWifiDriverCountryCodeChangedListener listener,
285             @Nullable String packageName, @Nullable String featureId) {
286         throw new UnsupportedOperationException();
287     }
288 
289     @Override
unregisterDriverCountryCodeChangedListener( @onNull IOnWifiDriverCountryCodeChangedListener listener)290     public void unregisterDriverCountryCodeChangedListener(
291             @NonNull IOnWifiDriverCountryCodeChangedListener listener) {
292         throw new UnsupportedOperationException();
293     }
294 
295     @Override
getCountryCode(String packageName, String featureId)296     public String getCountryCode(String packageName, String featureId) {
297         throw new UnsupportedOperationException();
298     }
299 
300     @Override
setOverrideCountryCode(@onNull String countryCode)301     public void setOverrideCountryCode(@NonNull String countryCode) {
302         throw new UnsupportedOperationException();
303     }
304 
305     @Override
clearOverrideCountryCode()306     public void clearOverrideCountryCode() {
307         throw new UnsupportedOperationException();
308     }
309 
310     @Override
setDefaultCountryCode(@onNull String countryCode)311     public void setDefaultCountryCode(@NonNull String countryCode) {
312         throw new UnsupportedOperationException();
313     }
314 
315     @Override
is24GHzBandSupported()316     public boolean is24GHzBandSupported() {
317         throw new UnsupportedOperationException();
318     }
319 
320     @Override
is5GHzBandSupported()321     public boolean is5GHzBandSupported() {
322         throw new UnsupportedOperationException();
323     }
324 
325     @Override
is6GHzBandSupported()326     public boolean is6GHzBandSupported() {
327         throw new UnsupportedOperationException();
328     }
329 
330     @Override
is60GHzBandSupported()331     public boolean is60GHzBandSupported() {
332         throw new UnsupportedOperationException();
333     }
334 
335     @Override
isWifiStandardSupported(int standard)336     public boolean isWifiStandardSupported(int standard) {
337         throw new UnsupportedOperationException();
338     }
339 
340     @Override
getDhcpInfo(String packageName)341     public DhcpInfo getDhcpInfo(String packageName) {
342         throw new UnsupportedOperationException();
343     }
344 
345     @Override
setScanAlwaysAvailable(boolean isAvailable, String packageName)346     public void setScanAlwaysAvailable(boolean isAvailable, String packageName) {
347         throw new UnsupportedOperationException();
348     }
349 
350     @Override
isScanAlwaysAvailable()351     public boolean isScanAlwaysAvailable() {
352         throw new UnsupportedOperationException();
353     }
354 
355     @Override
acquireWifiLock(IBinder lock, int lockType, String tag, WorkSource ws)356     public boolean acquireWifiLock(IBinder lock, int lockType, String tag, WorkSource ws) {
357         throw new UnsupportedOperationException();
358     }
359 
360     @Override
updateWifiLockWorkSource(IBinder lock, WorkSource ws)361     public void updateWifiLockWorkSource(IBinder lock, WorkSource ws) {
362         throw new UnsupportedOperationException();
363     }
364 
365     @Override
releaseWifiLock(IBinder lock)366     public boolean releaseWifiLock(IBinder lock) {
367         throw new UnsupportedOperationException();
368     }
369 
370     @Override
initializeMulticastFiltering()371     public void initializeMulticastFiltering() {
372         throw new UnsupportedOperationException();
373     }
374 
375     @Override
isMulticastEnabled()376     public boolean isMulticastEnabled() {
377         throw new UnsupportedOperationException();
378     }
379 
380     @Override
acquireMulticastLock(IBinder binder, String tag)381     public void acquireMulticastLock(IBinder binder, String tag) {
382         throw new UnsupportedOperationException();
383     }
384 
385     @Override
releaseMulticastLock(String tag)386     public void releaseMulticastLock(String tag) {
387         throw new UnsupportedOperationException();
388     }
389 
390     @Override
updateInterfaceIpState(String ifaceName, int mode)391     public void updateInterfaceIpState(String ifaceName, int mode) {
392         throw new UnsupportedOperationException();
393     }
394 
395     @Override
isDefaultCoexAlgorithmEnabled()396     public boolean isDefaultCoexAlgorithmEnabled() {
397         throw new UnsupportedOperationException();
398     }
399 
400     @Override
setCoexUnsafeChannels(List<CoexUnsafeChannel> unsafeChannels, int restrictions)401     public void setCoexUnsafeChannels(List<CoexUnsafeChannel> unsafeChannels, int restrictions) {
402         throw new UnsupportedOperationException();
403     }
404 
405     @Override
registerCoexCallback(ICoexCallback callback)406     public void registerCoexCallback(ICoexCallback callback) {
407         throw new UnsupportedOperationException();
408     }
409 
410     @Override
unregisterCoexCallback(ICoexCallback callback)411     public void unregisterCoexCallback(ICoexCallback callback) {
412         throw new UnsupportedOperationException();
413     }
414 
415     @Override
startSoftAp(WifiConfiguration wifiConfig, String packageName)416     public boolean startSoftAp(WifiConfiguration wifiConfig, String packageName) {
417         throw new UnsupportedOperationException();
418     }
419 
420     @Override
startTetheredHotspot(SoftApConfiguration softApConfig, String packageName)421     public boolean startTetheredHotspot(SoftApConfiguration softApConfig, String packageName) {
422         throw new UnsupportedOperationException();
423     }
424 
425     @Override
stopSoftAp()426     public boolean stopSoftAp() {
427         throw new UnsupportedOperationException();
428     }
429 
430     @Override
startLocalOnlyHotspot(ILocalOnlyHotspotCallback callback, String packageName, String featureId, SoftApConfiguration customConfig, Bundle extras)431     public int startLocalOnlyHotspot(ILocalOnlyHotspotCallback callback, String packageName,
432             String featureId, SoftApConfiguration customConfig, Bundle extras) {
433         throw new UnsupportedOperationException();
434     }
435 
436     @Override
stopLocalOnlyHotspot()437     public void stopLocalOnlyHotspot() {
438         throw new UnsupportedOperationException();
439     }
440 
441     @Override
registerLocalOnlyHotspotSoftApCallback(ISoftApCallback callback, Bundle extras)442     public void registerLocalOnlyHotspotSoftApCallback(ISoftApCallback callback, Bundle extras) {
443         throw new UnsupportedOperationException();
444     }
445 
446     @Override
unregisterLocalOnlyHotspotSoftApCallback(ISoftApCallback callback, Bundle extras)447     public void unregisterLocalOnlyHotspotSoftApCallback(ISoftApCallback callback, Bundle extras) {
448         throw new UnsupportedOperationException();
449     }
450 
451     @Override
startWatchLocalOnlyHotspot(ILocalOnlyHotspotCallback callback)452     public void startWatchLocalOnlyHotspot(ILocalOnlyHotspotCallback callback) {
453         throw new UnsupportedOperationException();
454     }
455 
456     @Override
stopWatchLocalOnlyHotspot()457     public void stopWatchLocalOnlyHotspot() {
458         throw new UnsupportedOperationException();
459     }
460 
461     @Override
getWifiApEnabledState()462     public int getWifiApEnabledState() {
463         throw new UnsupportedOperationException();
464     }
465 
466     @Override
getWifiApConfiguration()467     public WifiConfiguration getWifiApConfiguration() {
468         throw new UnsupportedOperationException();
469     }
470 
471     @Override
getSoftApConfiguration()472     public SoftApConfiguration getSoftApConfiguration() {
473         throw new UnsupportedOperationException();
474     }
475 
476     @Override
setWifiApConfiguration(WifiConfiguration wifiConfig, String packageName)477     public boolean setWifiApConfiguration(WifiConfiguration wifiConfig, String packageName) {
478         throw new UnsupportedOperationException();
479     }
480 
481     @Override
setSoftApConfiguration(SoftApConfiguration softApConfig, String packageName)482     public boolean setSoftApConfiguration(SoftApConfiguration softApConfig, String packageName) {
483         throw new UnsupportedOperationException();
484     }
485 
486     @Override
notifyUserOfApBandConversion(String packageName)487     public void notifyUserOfApBandConversion(String packageName) {
488         throw new UnsupportedOperationException();
489     }
490 
491     @Override
enableTdls(String remoteIPAddress, boolean enable)492     public void enableTdls(String remoteIPAddress, boolean enable) {
493         throw new UnsupportedOperationException();
494     }
495 
496     @Override
enableTdlsWithMacAddress(String remoteMacAddress, boolean enable)497     public void enableTdlsWithMacAddress(String remoteMacAddress, boolean enable) {
498         throw new UnsupportedOperationException();
499     }
500 
501     @Override
getCurrentNetworkWpsNfcConfigurationToken()502     public String getCurrentNetworkWpsNfcConfigurationToken() {
503         throw new UnsupportedOperationException();
504     }
505 
506     @Override
enableVerboseLogging(int verbose)507     public void enableVerboseLogging(int verbose) {
508         throw new UnsupportedOperationException();
509     }
510 
511     @Override
getVerboseLoggingLevel()512     public int getVerboseLoggingLevel() {
513         throw new UnsupportedOperationException();
514     }
515 
516     @Override
disableEphemeralNetwork(String SSID, String packageName)517     public void disableEphemeralNetwork(String SSID, String packageName) {
518         throw new UnsupportedOperationException();
519     }
520 
521     @Override
factoryReset(String packageName)522     public void factoryReset(String packageName) {
523         throw new UnsupportedOperationException();
524     }
525 
526     @Override
getCurrentNetwork()527     public Network getCurrentNetwork() {
528         throw new UnsupportedOperationException();
529     }
530 
531     @Override
retrieveBackupData()532     public byte[] retrieveBackupData() {
533         throw new UnsupportedOperationException();
534     }
535 
536     @Override
restoreBackupData(byte[] data)537     public void restoreBackupData(byte[] data) {
538         throw new UnsupportedOperationException();
539     }
540 
541     @Override
retrieveSoftApBackupData()542     public byte[] retrieveSoftApBackupData() {
543         throw new UnsupportedOperationException();
544     }
545 
546     @Override
restoreSoftApBackupData(byte[] data)547     public SoftApConfiguration restoreSoftApBackupData(byte[] data) {
548         throw new UnsupportedOperationException();
549     }
550 
551     @Override
restoreSupplicantBackupData(byte[] supplicantData, byte[] ipConfigData)552     public void restoreSupplicantBackupData(byte[] supplicantData, byte[] ipConfigData) {
553         throw new UnsupportedOperationException();
554     }
555 
556     @Override
startSubscriptionProvisioning( OsuProvider provider, IProvisioningCallback callback)557     public void startSubscriptionProvisioning(
558             OsuProvider provider, IProvisioningCallback callback) {
559         throw new UnsupportedOperationException();
560     }
561 
562     @Override
addWifiVerboseLoggingStatusChangedListener( IWifiVerboseLoggingStatusChangedListener callback)563     public void addWifiVerboseLoggingStatusChangedListener(
564             IWifiVerboseLoggingStatusChangedListener callback) {
565         throw new UnsupportedOperationException();
566     }
567 
568     @Override
removeWifiVerboseLoggingStatusChangedListener( IWifiVerboseLoggingStatusChangedListener callback)569     public void removeWifiVerboseLoggingStatusChangedListener(
570             IWifiVerboseLoggingStatusChangedListener callback) {
571         throw new UnsupportedOperationException();
572     }
573 
574     @Override
registerSoftApCallback(ISoftApCallback callback)575     public void registerSoftApCallback(ISoftApCallback callback) {
576         throw new UnsupportedOperationException();
577     }
578 
579     @Override
unregisterSoftApCallback(ISoftApCallback callback)580     public void unregisterSoftApCallback(ISoftApCallback callback) {
581         throw new UnsupportedOperationException();
582     }
583 
584     @Override
registerTrafficStateCallback(ITrafficStateCallback callback)585     public void registerTrafficStateCallback(ITrafficStateCallback callback) {
586         throw new UnsupportedOperationException();
587     }
588 
589     @Override
unregisterTrafficStateCallback(ITrafficStateCallback callback)590     public void unregisterTrafficStateCallback(ITrafficStateCallback callback) {
591         throw new UnsupportedOperationException();
592     }
593 
594     @Override
registerNetworkRequestMatchCallback(INetworkRequestMatchCallback callback)595     public void registerNetworkRequestMatchCallback(INetworkRequestMatchCallback callback) {
596         throw new UnsupportedOperationException();
597     }
598 
599     @Override
unregisterNetworkRequestMatchCallback(INetworkRequestMatchCallback callback)600     public void unregisterNetworkRequestMatchCallback(INetworkRequestMatchCallback callback) {
601         throw new UnsupportedOperationException();
602     }
603 
604     @Override
addNetworkSuggestions( List<WifiNetworkSuggestion> networkSuggestions, String callingPackageName, String callingFeatureId)605     public int addNetworkSuggestions(
606             List<WifiNetworkSuggestion> networkSuggestions, String callingPackageName,
607             String callingFeatureId) {
608         throw new UnsupportedOperationException();
609     }
610 
611     @Override
removeNetworkSuggestions( List<WifiNetworkSuggestion> networkSuggestions, String callingPackageName, int action)612     public int removeNetworkSuggestions(
613             List<WifiNetworkSuggestion> networkSuggestions, String callingPackageName, int action) {
614         throw new UnsupportedOperationException();
615     }
616     /**
617      * @deprecated Replaced by {@link #removeNetworkSuggestions(List, String, int)}
618      */
619     @Deprecated
removeNetworkSuggestions( List<WifiNetworkSuggestion> networkSuggestions, String callingPackageName)620     public int removeNetworkSuggestions(
621             List<WifiNetworkSuggestion> networkSuggestions, String callingPackageName) {
622         throw new UnsupportedOperationException();
623     }
624 
625     @Override
getNetworkSuggestions(String packageName)626     public List<WifiNetworkSuggestion> getNetworkSuggestions(String packageName) {
627         throw new UnsupportedOperationException();
628     }
629 
630     @Override
setCarrierNetworkOffloadEnabled(int subId, boolean merged, boolean enabled)631     public void setCarrierNetworkOffloadEnabled(int subId, boolean merged, boolean enabled)
632             throws RemoteException {
633         throw new UnsupportedOperationException();
634     }
635 
636     @Override
isCarrierNetworkOffloadEnabled(int subId, boolean merged)637     public boolean isCarrierNetworkOffloadEnabled(int subId, boolean merged)
638             throws RemoteException {
639         throw new UnsupportedOperationException();
640     }
641 
642     @Override
getFactoryMacAddresses()643     public String[] getFactoryMacAddresses() {
644         throw new UnsupportedOperationException();
645     }
646 
647     @Override
setDeviceMobilityState(int state)648     public void setDeviceMobilityState(int state) {
649         throw new UnsupportedOperationException();
650     }
651 
652     @Override
startDppAsConfiguratorInitiator(IBinder binder, String packageName, String enrolleeUri, int selectedNetworkId, int netRole, IDppCallback callback)653     public void startDppAsConfiguratorInitiator(IBinder binder, String packageName,
654             String enrolleeUri, int selectedNetworkId, int netRole, IDppCallback callback) {
655         throw new UnsupportedOperationException();
656     }
657 
658     @Override
startDppAsEnrolleeInitiator(IBinder binder, String configuratorUri, IDppCallback callback)659     public void startDppAsEnrolleeInitiator(IBinder binder, String configuratorUri,
660             IDppCallback callback) {
661         throw new UnsupportedOperationException();
662     }
663 
664     @Override
startDppAsEnrolleeResponder(IBinder binder, String deviceInfo, int curve, IDppCallback callback)665     public void startDppAsEnrolleeResponder(IBinder binder, String deviceInfo,
666             int curve, IDppCallback callback) {
667         throw new UnsupportedOperationException();
668     }
669 
670     @Override
stopDppSession()671     public void stopDppSession() throws RemoteException {
672         throw new UnsupportedOperationException();
673     }
674 
675     @Override
addOnWifiUsabilityStatsListener(IOnWifiUsabilityStatsListener listener)676     public void addOnWifiUsabilityStatsListener(IOnWifiUsabilityStatsListener listener) {
677         throw new UnsupportedOperationException();
678     }
679 
680     @Override
removeOnWifiUsabilityStatsListener(IOnWifiUsabilityStatsListener listener)681     public void removeOnWifiUsabilityStatsListener(IOnWifiUsabilityStatsListener listener) {
682         throw new UnsupportedOperationException();
683     }
684 
685     @Override
updateWifiUsabilityScore(int seqNum, int score, int predictionHorizonSec)686     public void updateWifiUsabilityScore(int seqNum, int score, int predictionHorizonSec) {
687         throw new UnsupportedOperationException();
688     }
689 
690     /** TO BE REMOVED */
connect(WifiConfiguration config, int netId, IActionListener callback)691     public void connect(WifiConfiguration config, int netId, IActionListener callback) {
692         throw new UnsupportedOperationException();
693     }
694 
695     @Override
connect(WifiConfiguration config, int netId, IActionListener callback, @NonNull String packageName)696     public void connect(WifiConfiguration config, int netId, IActionListener callback,
697             @NonNull String packageName) {
698         throw new UnsupportedOperationException();
699     }
700 
701     @Override
startRestrictingAutoJoinToSubscriptionId(int subId)702     public void startRestrictingAutoJoinToSubscriptionId(int subId) {
703         throw new UnsupportedOperationException();
704     }
705 
706     @Override
stopRestrictingAutoJoinToSubscriptionId()707     public void stopRestrictingAutoJoinToSubscriptionId() {
708         throw new UnsupportedOperationException();
709     }
710 
711     /** TO BE REMOVED */
save(WifiConfiguration config, IActionListener callback)712     public void save(WifiConfiguration config, IActionListener callback) {
713         throw new UnsupportedOperationException();
714     }
715 
716     @Override
save(WifiConfiguration config, IActionListener callback, @NonNull String packageName)717     public void save(WifiConfiguration config, IActionListener callback,
718             @NonNull String packageName) {
719         throw new UnsupportedOperationException();
720     }
721 
722     @Override
forget(int netId, IActionListener callback)723     public void forget(int netId, IActionListener callback) {
724         throw new UnsupportedOperationException();
725     }
726 
727     @Override
registerScanResultsCallback(IScanResultsCallback callback)728     public void registerScanResultsCallback(IScanResultsCallback callback) {
729         throw new UnsupportedOperationException();
730     }
731 
732     @Override
unregisterScanResultsCallback(IScanResultsCallback callback)733     public void unregisterScanResultsCallback(IScanResultsCallback callback) {
734         throw new UnsupportedOperationException();
735     }
736 
737     @Override
registerSuggestionConnectionStatusListener( ISuggestionConnectionStatusListener listener, String packageName, String featureId)738     public void registerSuggestionConnectionStatusListener(
739             ISuggestionConnectionStatusListener listener, String packageName, String featureId) {
740         throw new UnsupportedOperationException();
741     }
742 
743     @Override
unregisterSuggestionConnectionStatusListener( ISuggestionConnectionStatusListener listener, String packageName)744     public void unregisterSuggestionConnectionStatusListener(
745             ISuggestionConnectionStatusListener listener, String packageName) {
746         throw new UnsupportedOperationException();
747     }
748 
749     @Override
calculateSignalLevel(int rssi)750     public int calculateSignalLevel(int rssi) {
751         throw new UnsupportedOperationException();
752     }
753 
754     @Override
getWifiConfigForMatchedNetworkSuggestionsSharedWithUser( List<ScanResult> scanResults)755     public List<WifiConfiguration> getWifiConfigForMatchedNetworkSuggestionsSharedWithUser(
756             List<ScanResult> scanResults) {
757         throw new UnsupportedOperationException();
758     }
759 
760     @Override
setExternalPnoScanRequest(@onNull IBinder binder, @NonNull IPnoScanResultsCallback callback, @NonNull List<WifiSsid> ssids, @NonNull int[] frequencies, @NonNull String packageName, @NonNull String featureId)761     public void setExternalPnoScanRequest(@NonNull IBinder binder,
762             @NonNull IPnoScanResultsCallback callback,
763             @NonNull List<WifiSsid> ssids, @NonNull int[] frequencies,
764             @NonNull String packageName, @NonNull String featureId) {
765         throw new UnsupportedOperationException();
766     }
767 
768     @Override
clearExternalPnoScanRequest()769     public void clearExternalPnoScanRequest() {
770         throw new UnsupportedOperationException();
771     }
772 
773     @Override
getLastCallerInfoForApi(int apiType, @NonNull ILastCallerListener listener)774     public void getLastCallerInfoForApi(int apiType, @NonNull ILastCallerListener listener) {
775         throw new UnsupportedOperationException();
776     }
777 
778     @Override
setWifiConnectedNetworkScorer(IBinder binder, IWifiConnectedNetworkScorer scorer)779     public boolean setWifiConnectedNetworkScorer(IBinder binder,
780             IWifiConnectedNetworkScorer scorer) {
781         throw new UnsupportedOperationException();
782     }
783 
784     @Override
clearWifiConnectedNetworkScorer()785     public void clearWifiConnectedNetworkScorer() {
786         throw new UnsupportedOperationException();
787     }
788 
789     @Override
getMatchingScanResults( List<WifiNetworkSuggestion> networkSuggestions, List<ScanResult> scanResults, String callingPackage, String callingFeatureId)790     public Map<WifiNetworkSuggestion, List<ScanResult>> getMatchingScanResults(
791             List<WifiNetworkSuggestion> networkSuggestions,
792             List<ScanResult> scanResults,
793             String callingPackage, String callingFeatureId) {
794         throw new UnsupportedOperationException();
795     }
796 
797     @Override
setScanThrottleEnabled(boolean enable)798     public void setScanThrottleEnabled(boolean enable) {
799         throw new UnsupportedOperationException();
800     }
801 
802     @Override
isScanThrottleEnabled()803     public boolean isScanThrottleEnabled() {
804         throw new UnsupportedOperationException();
805     }
806 
807     @Override
808     public Map<String, Map<Integer, List<ScanResult>>>
getAllMatchingPasspointProfilesForScanResults(List<ScanResult> scanResults)809             getAllMatchingPasspointProfilesForScanResults(List<ScanResult> scanResults) {
810         throw new UnsupportedOperationException();
811     }
812 
813     @Override
setAutoWakeupEnabled(boolean enable)814     public void setAutoWakeupEnabled(boolean enable) {
815         throw new UnsupportedOperationException();
816     }
817 
818     @Override
isAutoWakeupEnabled()819     public boolean isAutoWakeupEnabled() {
820         throw new UnsupportedOperationException();
821     }
822 
823     @Override
addSuggestionUserApprovalStatusListener( ISuggestionUserApprovalStatusListener listener, String packageName)824     public void addSuggestionUserApprovalStatusListener(
825             ISuggestionUserApprovalStatusListener listener, String packageName) {
826         throw new UnsupportedOperationException();
827     }
828 
829     @Override
removeSuggestionUserApprovalStatusListener( ISuggestionUserApprovalStatusListener listener, String packageName)830     public void removeSuggestionUserApprovalStatusListener(
831             ISuggestionUserApprovalStatusListener listener, String packageName) {
832         throw new UnsupportedOperationException();
833     }
834 
835     @Override
setEmergencyScanRequestInProgress(boolean inProgress)836     public void setEmergencyScanRequestInProgress(boolean inProgress) {
837         throw new UnsupportedOperationException();
838     }
839 
840     @Override
removeAppState(int targetAppUid, @NonNull String targetAppPackageName)841     public void removeAppState(int targetAppUid, @NonNull String targetAppPackageName) {
842         throw new UnsupportedOperationException();
843     }
844 
845     @Override
setWifiScoringEnabled(boolean enabled)846     public boolean setWifiScoringEnabled(boolean enabled) {
847         throw new UnsupportedOperationException();
848     }
849 
850     @Override
flushPasspointAnqpCache(@onNull String packageName)851     public void flushPasspointAnqpCache(@NonNull String packageName) {
852         throw new UnsupportedOperationException();
853     }
854 
855     @Override
getUsableChannels( int band, int mode, int filter)856     public List<WifiAvailableChannel> getUsableChannels(
857             int band, int mode, int filter) {
858         throw new UnsupportedOperationException();
859     }
860 
861     @Override
isWifiPasspointEnabled()862     public boolean isWifiPasspointEnabled() {
863         throw new UnsupportedOperationException();
864     }
865 
866     @Override
setWifiPasspointEnabled(boolean enabled)867     public void setWifiPasspointEnabled(boolean enabled) {
868         throw new UnsupportedOperationException();
869     }
870 
871     @Override
getStaConcurrencyForMultiInternetMode()872     public @WifiManager.WifiMultiInternetMode int getStaConcurrencyForMultiInternetMode() {
873         throw new UnsupportedOperationException();
874     }
875 
876     @Override
setStaConcurrencyForMultiInternetMode( @ifiManager.WifiMultiInternetMode int mode)877     public boolean setStaConcurrencyForMultiInternetMode(
878             @WifiManager.WifiMultiInternetMode int mode) {
879         throw new UnsupportedOperationException();
880     }
881 
882     @Override
notifyMinimumRequiredWifiSecurityLevelChanged(int level)883     public void notifyMinimumRequiredWifiSecurityLevelChanged(int level) {
884         throw new UnsupportedOperationException();
885     }
886 
887     @Override
notifyWifiSsidPolicyChanged(int policyType, @NonNull List<WifiSsid> ssids)888     public void notifyWifiSsidPolicyChanged(int policyType, @NonNull List<WifiSsid> ssids) {
889         throw new UnsupportedOperationException();
890     }
891 
892     @Override
getOemPrivilegedWifiAdminPackages()893     public String[] getOemPrivilegedWifiAdminPackages() {
894         throw new UnsupportedOperationException();
895     }
896 
897     @Override
replyToP2pInvitationReceivedDialog( int dialogId, boolean accepted, @Nullable String optionalPin)898     public void replyToP2pInvitationReceivedDialog(
899             int dialogId, boolean accepted, @Nullable String optionalPin) {
900         throw new UnsupportedOperationException();
901     }
902 
903     @Override
replyToSimpleDialog(int dialogId, int button)904     public void replyToSimpleDialog(int dialogId, int button) {
905         throw new UnsupportedOperationException();
906     }
907 
908     @Override
addCustomDhcpOptions(WifiSsid ssid, byte[] oui, @NonNull List<DhcpOption> options)909     public void addCustomDhcpOptions(WifiSsid ssid, byte[] oui, @NonNull List<DhcpOption> options) {
910         throw new UnsupportedOperationException();
911     }
912 
913     @Override
removeCustomDhcpOptions(WifiSsid ssid, byte[] oui)914     public void removeCustomDhcpOptions(WifiSsid ssid, byte[] oui) {
915         throw new UnsupportedOperationException();
916     }
917 
918     @Override
reportCreateInterfaceImpact(String packageName, int interfaceType, boolean requireNewInterface, IInterfaceCreationInfoCallback callback)919     public void reportCreateInterfaceImpact(String packageName, int interfaceType,
920             boolean requireNewInterface, IInterfaceCreationInfoCallback callback) {
921         throw new UnsupportedOperationException();
922     }
923 }
924