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.java20 import static com.android.settings.vpn2.AppManagementFragment.appHasVpnPermission;
80 assertTrue(appHasVpnPermission(mContext, mockApp)); in testAppOpsRequiredToOpenFragment()
85 assertTrue(appHasVpnPermission(mContext, mockApp)); in testAppOpsRequiredToOpenFragment()
90 assertFalse(appHasVpnPermission(mContext, mockApp)); in testAppOpsRequiredToOpenFragment()
95 assertFalse(appHasVpnPermission(mContext, mockApp)); in testAppOpsRequiredToOpenFragment()
/packages/apps/Settings/src/com/android/settings/vpn2/
DAppManagementFragment.java310 if (!appHasVpnPermission(getContext(), mPackageInfo.applicationInfo)) { in loadInfo()
319 static boolean appHasVpnPermission(Context context, @NonNull ApplicationInfo application) { in appHasVpnPermission() method in AppManagementFragment