Home
last modified time | relevance | path

Searched refs:appHasVpnPermission (Results 1 – 2 of 2) sorted by relevance

/packages/apps/Settings/tests/unit/src/com/android/settings/vpn2/
DAppSettingsTest.java19 import static com.android.settings.vpn2.AppManagementFragment.appHasVpnPermission;
63 assertTrue(appHasVpnPermission(mContext, mockApp)); in testAppOpsRequiredToOpenFragment()
68 assertTrue(appHasVpnPermission(mContext, mockApp)); in testAppOpsRequiredToOpenFragment()
73 assertFalse(appHasVpnPermission(mContext, mockApp)); in testAppOpsRequiredToOpenFragment()
78 assertFalse(appHasVpnPermission(mContext, mockApp)); in testAppOpsRequiredToOpenFragment()
/packages/apps/Settings/src/com/android/settings/vpn2/
DAppManagementFragment.java296 if (!appHasVpnPermission(getContext(), mPackageInfo.applicationInfo)) { in loadInfo()
305 static boolean appHasVpnPermission(Context context, @NonNull ApplicationInfo application) { in appHasVpnPermission() method in AppManagementFragment