Home
last modified time | relevance | path

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

/packages/apps/Settings/tests/legacy_unit/src/com/android/settings/vpn2/
DAppSettingsTest.java19 import static com.android.settings.vpn2.AppManagementFragment.appHasVpnPermission;
65 assertTrue(appHasVpnPermission(mContext, mockApp)); in testAppOpsRequiredToOpenFragment()
70 assertTrue(appHasVpnPermission(mContext, mockApp)); in testAppOpsRequiredToOpenFragment()
75 assertFalse(appHasVpnPermission(mContext, mockApp)); in testAppOpsRequiredToOpenFragment()
80 assertFalse(appHasVpnPermission(mContext, mockApp)); in testAppOpsRequiredToOpenFragment()
/packages/apps/Settings/src/com/android/settings/vpn2/
DAppManagementFragment.java330 if (!appHasVpnPermission(getContext(), mPackageInfo.applicationInfo)) { in loadInfo()
339 static boolean appHasVpnPermission(Context context, @NonNull ApplicationInfo application) { in appHasVpnPermission() method in AppManagementFragment