Home
last modified time | relevance | path

Searched refs:OPSTR_CHANGE_WIFI_STATE (Results 1 – 10 of 10) sorted by relevance

/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiNetworkSuggestionsManagerTest.java21 import static android.app.AppOpsManager.OPSTR_CHANGE_WIFI_STATE;
1605 mInorder.verify(mAppOpsManager).startWatchingMode(eq(OPSTR_CHANGE_WIFI_STATE), in testAddRemoveNetworkSuggestionsStartStopAppOpsWatch()
1652 verify(mAppOpsManager).startWatchingMode(eq(OPSTR_CHANGE_WIFI_STATE), eq(TEST_PACKAGE_1), in testAppOpsChangeAfterSuggestionsAdd()
1659 OPSTR_CHANGE_WIFI_STATE, TEST_UID_1, in testAppOpsChangeAfterSuggestionsAdd()
1662 listener.onOpChanged(OPSTR_CHANGE_WIFI_STATE, TEST_PACKAGE_1); in testAppOpsChangeAfterSuggestionsAdd()
1669 OPSTR_CHANGE_WIFI_STATE, TEST_UID_1, in testAppOpsChangeAfterSuggestionsAdd()
1672 listener.onOpChanged(OPSTR_CHANGE_WIFI_STATE, TEST_PACKAGE_1); in testAppOpsChangeAfterSuggestionsAdd()
1701 verify(mAppOpsManager).startWatchingMode(eq(OPSTR_CHANGE_WIFI_STATE), eq(TEST_PACKAGE_1), in testAppOpsChangeAfterConfigStoreLoad()
1708 OPSTR_CHANGE_WIFI_STATE, TEST_UID_1, in testAppOpsChangeAfterConfigStoreLoad()
1711 listener.onOpChanged(OPSTR_CHANGE_WIFI_STATE, TEST_PACKAGE_1); in testAppOpsChangeAfterConfigStoreLoad()
[all …]
DWifiServiceImplTest.java552 .noteOp(AppOpsManager.OPSTR_CHANGE_WIFI_STATE, Process.myUid(), TEST_PACKAGE_NAME); in testSetWifiEnabledMetricsNormalAppBelowQSDK()
571 .noteOp(AppOpsManager.OPSTR_CHANGE_WIFI_STATE, Process.myUid(), TEST_PACKAGE_NAME); in testSetWifiEnabledMetricsNormalAppTargetingQSDKNoIncrement()
615 .noteOp(AppOpsManager.OPSTR_CHANGE_WIFI_STATE, Process.myUid(), TEST_PACKAGE_NAME); in testSetWifiEnabledSuccessForDOAppsTargetingQSDK()
635 .noteOp(AppOpsManager.OPSTR_CHANGE_WIFI_STATE, Process.myUid(), TEST_PACKAGE_NAME); in testSetWifiEnabledSuccessForSystemAppsTargetingQSDK()
653 .noteOp(AppOpsManager.OPSTR_CHANGE_WIFI_STATE, Process.myUid(), TEST_PACKAGE_NAME); in testSetWifiEnabledSuccessForAppsTargetingBelowQSDK()
684 .noteOp(AppOpsManager.OPSTR_CHANGE_WIFI_STATE, Process.myUid(), TEST_PACKAGE_NAME); in testSetWifiEnabledFailureForAppsTargetingQSDK()
701 .noteOp(AppOpsManager.OPSTR_CHANGE_WIFI_STATE, Process.myUid(), TEST_PACKAGE_NAME); in testSetWifiEnableAppOpsRejected()
721 .noteOp(AppOpsManager.OPSTR_CHANGE_WIFI_STATE, Process.myUid(), TEST_PACKAGE_NAME); in testSetWifiEnableAppOpsIgnored()
753 .noteOp(AppOpsManager.OPSTR_CHANGE_WIFI_STATE, Process.myUid(), TEST_PACKAGE_NAME); in testSetWifiEnabledFromAppFailsWhenInAirplaneMode()
797 .noteOp(AppOpsManager.OPSTR_CHANGE_WIFI_STATE, Process.myUid(), TEST_PACKAGE_NAME); in testSetWifiEnabledFromAppFailsWhenApEnabled()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiNetworkSuggestionsManager.java20 import static android.app.AppOpsManager.OPSTR_CHANGE_WIFI_STATE;
285 if (!OPSTR_CHANGE_WIFI_STATE.equals(op)) return; in onOpChanged()
295 if (mAppOps.unsafeCheckOpNoThrow(OPSTR_CHANGE_WIFI_STATE, mUid, mPackageName) in onOpChanged()
532 mAppOps.startWatchingMode(OPSTR_CHANGE_WIFI_STATE, packageName, appOpsChangedListener); in startTrackingAppOpsChange()
DWifiServiceImpl.java842 AppOpsManager.OPSTR_CHANGE_WIFI_STATE, Binder.getCallingUid(), callingPackage); in enforceChangePermission()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
DPasspointManager.java19 import static android.app.AppOpsManager.OPSTR_CHANGE_WIFI_STATE;
262 if (!OPSTR_CHANGE_WIFI_STATE.equals(op)) return; in onOpChanged()
271 if (mAppOps.unsafeCheckOpNoThrow(OPSTR_CHANGE_WIFI_STATE, mUid, mPackageName) in onOpChanged()
309 mAppOps.startWatchingMode(OPSTR_CHANGE_WIFI_STATE, packageName, appOpsChangedListener); in startTrackingAppOpsChange()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/
DPasspointManagerTest.java20 import static android.app.AppOpsManager.OPSTR_CHANGE_WIFI_STATE;
644 verify(mAppOpsManager).startWatchingMode(eq(OPSTR_CHANGE_WIFI_STATE), eq(TEST_PACKAGE), any( in addRemoveProviderWithValidUserCredential()
1695 verify(mAppOpsManager, never()).startWatchingMode(eq(OPSTR_CHANGE_WIFI_STATE), in verifyInstallEphemeralPasspointConfiguration()
1803 verify(mAppOpsManager).startWatchingMode(eq(OPSTR_CHANGE_WIFI_STATE), eq(TEST_PACKAGE), in verifyRemovingPasspointProfilesWhenAppIsDisabled()
1811 OPSTR_CHANGE_WIFI_STATE, TEST_CREATOR_UID, in verifyRemovingPasspointProfilesWhenAppIsDisabled()
1814 listener.onOpChanged(OPSTR_CHANGE_WIFI_STATE, TEST_PACKAGE); in verifyRemovingPasspointProfilesWhenAppIsDisabled()
/frameworks/base/core/java/android/app/
DAppOpsManager.java1096 public static final String OPSTR_CHANGE_WIFI_STATE = "android:change_wifi_state"; field in AppOpsManager
1390 OPSTR_CHANGE_WIFI_STATE,
/frameworks/base/api/
Dtest-current.txt179 field public static final String OPSTR_CHANGE_WIFI_STATE = "android:change_wifi_state";
Dsystem-current.txt354 field public static final String OPSTR_CHANGE_WIFI_STATE = "android:change_wifi_state";
/frameworks/base/non-updatable-api/
Dsystem-current.txt354 field public static final String OPSTR_CHANGE_WIFI_STATE = "android:change_wifi_state";