Home
last modified time | relevance | path

Searched refs:PackageOps (Results 1 – 25 of 26) sorted by relevance

12

/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/location/
DRecentLocationAppsTest.java11 import android.app.AppOpsManager.PackageOps;
78 List<PackageOps> appOps = createTestPackageOpsList(TEST_PACKAGE_NAMES, testRequestTime); in setUp()
101 PackageOps androidSystemPackageOps = in testGetAppList_shouldNotShowAndroidOS()
110 List<PackageOps> appOps = createTestPackageOpsList(TEST_PACKAGE_NAMES, testRequestTime); in testGetAppList_shouldNotShowAndroidOS()
137 private List<PackageOps> createTestPackageOpsList(String[] packageNameList, long[] time) { in createTestPackageOpsList()
138 List<PackageOps> packageOpsList = new ArrayList<>(); in createTestPackageOpsList()
140 PackageOps packageOps = createPackageOps( in createTestPackageOpsList()
151 private PackageOps createPackageOps( in createPackageOps()
153 return new PackageOps( in createPackageOps()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/applications/
DRecentAppOpsAccessesTest.java29 import android.app.AppOpsManager.PackageOps;
119 List<PackageOps> appOps = createTestPackageOpsList(TEST_PACKAGE_NAMES, testRequestTime); in setUp()
196 PackageOps androidSystemPackageOps = in testGetAppList_shouldNotShowAndroidOS()
204 List<PackageOps> appOps = createTestPackageOpsList(TEST_PACKAGE_NAMES, testRequestTime); in testGetAppList_shouldNotShowAndroidOS()
231 private List<PackageOps> createTestPackageOpsList(String[] packageNameList, long[] time) { in createTestPackageOpsList()
232 List<PackageOps> packageOpsList = new ArrayList<>(); in createTestPackageOpsList()
234 PackageOps packageOps = createPackageOps( in createTestPackageOpsList()
244 private PackageOps createPackageOps(String packageName, int uid, int op, long time) { in createPackageOps()
245 return new PackageOps( in createPackageOps()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/appop/
DAppOpsServiceTest.java53 import android.app.AppOpsManager.PackageOps;
261 List<PackageOps> loggedOps = getLoggedOps(); in testNoteOperationAndGetOpsForPackage()
328 List<PackageOps> loggedOps = getLoggedOps(); in testStatePersistence()
344 List<PackageOps> loggedOps = getLoggedOps(); in testShutdown()
354 List<PackageOps> loggedOps = mAppOpsService.getOpsForPackage( in testGetOpsForPackage()
382 List<PackageOps> loggedOps = getLoggedOps(); in testPackageRemoved()
437 List<PackageOps> loggedOps = getLoggedOps(); in testUidRemoved()
449 List<PackageOps> ops = mAppOpsService.getOpsForPackage(mMyUid, sMyPackageName, in testUidStateInitializationDoesntClearState()
463 private List<PackageOps> getLoggedOps() { in getLoggedOps()
467 private void assertContainsOp(List<PackageOps> loggedOps, int opCode, long minMillis, in assertContainsOp()
[all …]
/frameworks/base/core/java/com/android/internal/app/
DIAppOpsService.aidl85 List<AppOpsManager.PackageOps> getPackagesForOps(in int[] ops); in getPackagesForOps()
87 List<AppOpsManager.PackageOps> getOpsForPackage(int uid, String packageName, in int[] ops); in getOpsForPackage()
108 List<AppOpsManager.PackageOps> getUidOps(int uid, in int[] ops); in getUidOps()
165 …List<AppOpsManager.PackageOps> getPackagesForOpsForDevice(in int[] ops, String persistentDeviceId); in getPackagesForOpsForDevice()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/appops/
DAppOpsControllerTest.java197 AppOpsManager.PackageOps packageOps = createPackageOp( in startListening_fetchesCurrentActive_oneActive()
220 AppOpsManager.PackageOps packageOps1 = createPackageOp( in startListening_fetchesCurrentActive_multiplePackages()
225 AppOpsManager.PackageOps packageOps2 = createPackageOp( in startListening_fetchesCurrentActive_multiplePackages()
230 AppOpsManager.PackageOps packageOps3 = createPackageOp( in startListening_fetchesCurrentActive_multiplePackages()
259 AppOpsManager.PackageOps packageOps = mock(AppOpsManager.PackageOps.class); in startListening_fetchesCurrentActive_multipleEntries()
307 AppOpsManager.PackageOps packageOps = mock(AppOpsManager.PackageOps.class); in startListening_fetchesCurrentActive_multipleAttributes()
344 AppOpsManager.PackageOps packageOps1 = createPackageOp( in addCallback_existingCallbacksNotifiedOfCurrentActive()
349 AppOpsManager.PackageOps packageOps2 = createPackageOp( in addCallback_existingCallbacksNotifiedOfCurrentActive()
354 AppOpsManager.PackageOps packageOps3 = createPackageOp( in addCallback_existingCallbacksNotifiedOfCurrentActive()
1030 private AppOpsManager.PackageOps createPackageOp( in createPackageOp()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/location/
DRecentLocationApps.java81 List<AppOpsManager.PackageOps> appOps = aoManager.getPackagesForOps(LOCATION_REQUEST_OPS); in getAppList()
92 AppOpsManager.PackageOps ops = appOps.get(i); in getAppList()
167 AppOpsManager.PackageOps ops) { in getRequestFromOps()
/frameworks/base/core/java/android/app/
DAppOpsManager.aidl19 parcelable AppOpsManager.PackageOps;
DAppOpsManager.java3407 public static final class PackageOps implements Parcelable { class in AppOpsManager
3416 public PackageOps(String packageName, int uid, List<OpEntry> entries) { in PackageOps() method in AppOpsManager.PackageOps
3458 PackageOps(Parcel source) { in PackageOps() method in AppOpsManager.PackageOps
3468 public static final @android.annotation.NonNull Creator<PackageOps> CREATOR =
3469 new Creator<PackageOps>() {
3470 @Override public PackageOps createFromParcel(Parcel source) {
3471 return new PackageOps(source);
3474 @Override public PackageOps[] newArray(int size) {
3475 return new PackageOps[size];
7819 public @NonNull List<AppOpsManager.PackageOps> getPackagesForOps(@Nullable String[] ops) { in getPackagesForOps()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/
DRecentAppOpsAccess.java122 List<AppOpsManager.PackageOps> appOps = aoManager.getPackagesForOps(mOps); in getAppList()
134 AppOpsManager.PackageOps ops = appOps.get(i); in getAppList()
227 AppOpsManager.PackageOps ops) { in getAccessFromOps()
/frameworks/base/services/tests/servicestests/src/com/android/server/appop/
DAppOpsDeviceAwareServiceTest.java127 List<AppOpsManager.PackageOps> packagesOps = in noteProxyOpWithDeviceId()
132 AppOpsManager.PackageOps packageOps = in noteProxyOpWithDeviceId()
DAppOpsActiveWatcherTest.java235 List<AppOpsManager.PackageOps> packages in isCameraOn()
241 AppOpsManager.PackageOps packageOp = packages.get(packageInd); in isCameraOn()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/
DAppStateTrackerTest.java43 import android.app.AppOpsManager.PackageOps;
203 private Answer<List<PackageOps>> mGetPackagesForOps =
204 inv -> new ArrayList<PackageOps>();
972 final List<PackageOps> ops = new ArrayList<>(); in loadPersistedAppOps()
985 ops.add(new PackageOps(PACKAGE_1, UID_1, entries)); in loadPersistedAppOps()
994 ops.add(new PackageOps(PACKAGE_2, UID_2, entries)); in loadPersistedAppOps()
1003 ops.add(new PackageOps(PACKAGE_1, UID_10_1, entries)); in loadPersistedAppOps()
1016 ops.add(new PackageOps(PACKAGE_3, UID_10_3, entries)); in loadPersistedAppOps()
/frameworks/base/services/core/java/com/android/server/appop/
DAppOpsService.java1731 public List<AppOpsManager.PackageOps> getPackagesForOps(int[] ops) { in getPackagesForOps()
1736 public List<AppOpsManager.PackageOps> getPackagesForOpsForDevice(int[] ops, in getPackagesForOpsForDevice()
1743 ArrayList<AppOpsManager.PackageOps> res = null; in getPackagesForOpsForDevice()
1766 AppOpsManager.PackageOps resPackage = new AppOpsManager.PackageOps( in getPackagesForOpsForDevice()
1777 public List<AppOpsManager.PackageOps> getOpsForPackage(int uid, String packageName, in getOpsForPackage()
1795 ArrayList<AppOpsManager.PackageOps> res = new ArrayList<AppOpsManager.PackageOps>(); in getOpsForPackage()
1796 AppOpsManager.PackageOps resPackage = new AppOpsManager.PackageOps( in getOpsForPackage()
1961 public List<AppOpsManager.PackageOps> getUidOps(int uid, int[] ops) { in getUidOps()
1973 ArrayList<AppOpsManager.PackageOps> res = new ArrayList<AppOpsManager.PackageOps>(); in getUidOps()
1974 AppOpsManager.PackageOps resPackage = new AppOpsManager.PackageOps( in getUidOps()
[all …]
/frameworks/base/apex/jobscheduler/service/java/com/android/server/
DAppStateTrackerImpl.java23 import android.app.AppOpsManager.PackageOps;
591 final List<PackageOps> ops = mAppOpsManager.getPackagesForOps( in refreshForcedAppStandbyUidPackagesLocked()
599 final AppOpsManager.PackageOps pkg = ops.get(i); in refreshForcedAppStandbyUidPackagesLocked()
/frameworks/base/packages/SystemUI/src/com/android/systemui/appops/
DAppOpsControllerImpl.java231 List<AppOpsManager.PackageOps> packageOps = mAppOps.getPackagesForOps(OPS); in fetchCurrentActiveOps()
235 for (AppOpsManager.PackageOps op : packageOps) { in fetchCurrentActiveOps()
/frameworks/base/core/java/android/permission/
DPermissionUsageHelper.java486 List<AppOpsManager.PackageOps> ops; in getOpUsagesByDevice()
513 AppOpsManager.PackageOps pkgOps = ops.get(pkgOpNum); in getOpUsagesByDevice()
/frameworks/base/core/api/
Dsystem-removed.txt5 …ion.GET_APP_OPS_STATS) public java.util.List<android.app.AppOpsManager.PackageOps> getOpsForPackag…
Dsystem-current.txt629 …ion.GET_APP_OPS_STATS) public java.util.List<android.app.AppOpsManager.PackageOps> getOpsForPackag…
630 …ion.GET_APP_OPS_STATS) public java.util.List<android.app.AppOpsManager.PackageOps> getPackagesForO…
631 …ion.GET_APP_OPS_STATS) public java.util.List<android.app.AppOpsManager.PackageOps> getPackagesForO…
882 public static final class AppOpsManager.PackageOps implements android.os.Parcelable {
888 …ll public static final android.os.Parcelable.Creator<android.app.AppOpsManager.PackageOps> CREATOR;
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDevicePolicyManagerTest.java8601 final AppOpsManager.PackageOps vpnOp = new AppOpsManager.PackageOps(userVpnPackage, in setupVpnAuthorization()
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DDevicePolicyManagerService.java1369 final List<AppOpsManager.PackageOps> allVpnOps = mInjector.getAppOpsManager() in clearUserConfiguredVpns()
1374 for (AppOpsManager.PackageOps pkgOps : allVpnOps) { in clearUserConfiguredVpns()
/frameworks/base/boot/
Dboot-image-profile.txt1090 HSPLandroid/app/AppOpsManager$PackageOps$1;->createFromParcel(Landroid/os/Parcel;)Landroid/app/AppO…
1091 HSPLandroid/app/AppOpsManager$PackageOps$1;->createFromParcel(Landroid/os/Parcel;)Ljava/lang/Object;
1092 HSPLandroid/app/AppOpsManager$PackageOps;-><init>(Landroid/os/Parcel;)V
1093 HSPLandroid/app/AppOpsManager$PackageOps;->getOps()Ljava/util/List;
1094 HSPLandroid/app/AppOpsManager$PackageOps;->getPackageName()Ljava/lang/String;
22728 Landroid/app/AppOpsManager$PackageOps$1;
22729 Landroid/app/AppOpsManager$PackageOps;
Dpreloaded-classes354 android.app.AppOpsManager$PackageOps$1
355 android.app.AppOpsManager$PackageOps
/frameworks/base/config/
Dpreloaded-classes354 android.app.AppOpsManager$PackageOps$1
355 android.app.AppOpsManager$PackageOps
Dboot-image-profile.txt1090 HSPLandroid/app/AppOpsManager$PackageOps$1;->createFromParcel(Landroid/os/Parcel;)Landroid/app/AppO…
1091 HSPLandroid/app/AppOpsManager$PackageOps$1;->createFromParcel(Landroid/os/Parcel;)Ljava/lang/Object;
1092 HSPLandroid/app/AppOpsManager$PackageOps;-><init>(Landroid/os/Parcel;)V
1093 HSPLandroid/app/AppOpsManager$PackageOps;->getOps()Ljava/util/List;
1094 HSPLandroid/app/AppOpsManager$PackageOps;->getPackageName()Ljava/lang/String;
32858 Landroid/app/AppOpsManager$PackageOps$1;
32859 Landroid/app/AppOpsManager$PackageOps;
/frameworks/base/services/
Dart-profile1215 …anager$OpEventProxyInfo;]Landroid/app/AppOpsManager$PackageOps;Landroid/app/AppOpsManager$PackageO…

12