/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/location/ |
D | RecentLocationAccessesTest.java | 11 import android.app.AppOpsManager.PackageOps; 77 List<PackageOps> appOps = createTestPackageOpsList(TEST_PACKAGE_NAMES, testRequestTime); in setUp() 103 PackageOps androidSystemPackageOps = in testGetAppList_shouldNotShowAndroidOS() 111 List<PackageOps> appOps = createTestPackageOpsList(TEST_PACKAGE_NAMES, testRequestTime); in testGetAppList_shouldNotShowAndroidOS() 138 private List<PackageOps> createTestPackageOpsList(String[] packageNameList, long[] time) { in createTestPackageOpsList() 139 List<PackageOps> packageOpsList = new ArrayList<>(); in createTestPackageOpsList() 141 PackageOps packageOps = createPackageOps( in createTestPackageOpsList() 151 private PackageOps createPackageOps(String packageName, int uid, int op, long time) { in createPackageOps() 152 return new PackageOps( in createPackageOps()
|
D | RecentLocationAppsTest.java | 10 import android.app.AppOpsManager.PackageOps; 77 List<PackageOps> appOps = createTestPackageOpsList(TEST_PACKAGE_NAMES, testRequestTime); in setUp() 100 PackageOps androidSystemPackageOps = in testGetAppList_shouldNotShowAndroidOS() 109 List<PackageOps> appOps = createTestPackageOpsList(TEST_PACKAGE_NAMES, testRequestTime); in testGetAppList_shouldNotShowAndroidOS() 136 private List<PackageOps> createTestPackageOpsList(String[] packageNameList, long[] time) { in createTestPackageOpsList() 137 List<PackageOps> packageOpsList = new ArrayList<>(); in createTestPackageOpsList() 139 PackageOps packageOps = createPackageOps( in createTestPackageOpsList() 150 private PackageOps createPackageOps( in createPackageOps() 152 return new PackageOps( in createPackageOps()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/appop/ |
D | AppOpsServiceTest.java | 34 import android.app.AppOpsManager.PackageOps; 133 List<PackageOps> loggedOps = getLoggedOps(); in testNoteOperationAndGetOpsForPackage() 183 List<PackageOps> loggedOps = getLoggedOps(); in testStatePersistence() 201 List<PackageOps> loggedOps = getLoggedOps(); in testShutdown() 211 List<PackageOps> loggedOps = mAppOpsService.getOpsForPackage( in testGetOpsForPackage() 239 List<PackageOps> loggedOps = getLoggedOps(); in testPackageRemoved() 291 List<PackageOps> loggedOps = getLoggedOps(); in testUidRemoved() 400 private List<PackageOps> getLoggedOps() { in getLoggedOps() 404 private void assertContainsOp(List<PackageOps> loggedOps, int opCode, long minMillis, in assertContainsOp() 408 for (PackageOps pkgOps : loggedOps) { in assertContainsOp()
|
D | AppOpsActiveWatcherTest.java | 130 List<AppOpsManager.PackageOps> packages in isCameraOn() 136 AppOpsManager.PackageOps packageOp = packages.get(packageInd); in isCameraOn()
|
/frameworks/base/core/java/com/android/internal/app/ |
D | IAppOpsService.aidl | 52 List<AppOpsManager.PackageOps> getPackagesForOps(in int[] ops); in getPackagesForOps() 54 List<AppOpsManager.PackageOps> getOpsForPackage(int uid, String packageName, in int[] ops); in getOpsForPackage() 64 List<AppOpsManager.PackageOps> getUidOps(int uid, in int[] ops); in getUidOps()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/location/ |
D | RecentLocationAccesses.java | 88 List<AppOpsManager.PackageOps> appOps = aoManager.getPackagesForOps(LOCATION_OPS); in getAppList() 99 AppOpsManager.PackageOps ops = appOps.get(i); in getAppList() 159 AppOpsManager.PackageOps ops) { in getAccessFromOps()
|
D | RecentLocationApps.java | 81 List<AppOpsManager.PackageOps> appOps = aoManager.getPackagesForOps(LOCATION_REQUEST_OPS); in getAppList() 92 AppOpsManager.PackageOps ops = appOps.get(i); in getAppList() 163 AppOpsManager.PackageOps ops) { in getRequestFromOps()
|
/frameworks/base/core/java/android/app/ |
D | AppOpsManager.aidl | 19 parcelable AppOpsManager.PackageOps;
|
D | AppOpsManager.java | 2162 public static final class PackageOps implements Parcelable { class in AppOpsManager 2171 public PackageOps(String packageName, int uid, List<OpEntry> entries) { in PackageOps() method in AppOpsManager.PackageOps 2213 PackageOps(Parcel source) { in PackageOps() method in AppOpsManager.PackageOps 2223 …blic static final @android.annotation.NonNull Creator<PackageOps> CREATOR = new Creator<PackageOps… 2224 @Override public PackageOps createFromParcel(Parcel source) { 2225 return new PackageOps(source); 2228 @Override public PackageOps[] newArray(int size) { 2229 return new PackageOps[size]; 4333 public @NonNull List<AppOpsManager.PackageOps> getPackagesForOps(@Nullable String[] ops) { in getPackagesForOps() 4339 final List<AppOpsManager.PackageOps> result = getPackagesForOps(opCodes); in getPackagesForOps() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | LocationControllerImpl.java | 154 List<AppOpsManager.PackageOps> packages in areActiveHighPowerLocationRequests() 160 AppOpsManager.PackageOps packageOp = packages.get(packageInd); in areActiveHighPowerLocationRequests()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/ |
D | AppStateTrackerTest.java | 43 import android.app.AppOpsManager.PackageOps; 196 private Answer<List<PackageOps>> mGetPackagesForOps = 197 inv -> new ArrayList<PackageOps>(); 682 final List<PackageOps> ops = new ArrayList<>(); in loadPersistedAppOps() 693 ops.add(new PackageOps(PACKAGE_1, UID_1, entries)); in loadPersistedAppOps() 701 ops.add(new PackageOps(PACKAGE_2, UID_2, entries)); in loadPersistedAppOps() 709 ops.add(new PackageOps(PACKAGE_1, UID_10_1, entries)); in loadPersistedAppOps() 720 ops.add(new PackageOps(PACKAGE_3, UID_10_3, entries)); in loadPersistedAppOps()
|
/frameworks/base/services/core/java/com/android/server/appop/ |
D | AppOpsService.java | 1054 public List<AppOpsManager.PackageOps> getPackagesForOps(int[] ops) { in getPackagesForOps() 1057 ArrayList<AppOpsManager.PackageOps> res = null; in getPackagesForOps() 1072 res = new ArrayList<AppOpsManager.PackageOps>(); in getPackagesForOps() 1074 AppOpsManager.PackageOps resPackage = new AppOpsManager.PackageOps( in getPackagesForOps() 1085 public List<AppOpsManager.PackageOps> getOpsForPackage(int uid, String packageName, in getOpsForPackage() 1103 ArrayList<AppOpsManager.PackageOps> res = new ArrayList<AppOpsManager.PackageOps>(); in getOpsForPackage() 1104 AppOpsManager.PackageOps resPackage = new AppOpsManager.PackageOps( in getOpsForPackage() 1170 public List<AppOpsManager.PackageOps> getUidOps(int uid, int[] ops) { in getUidOps() 1182 ArrayList<AppOpsManager.PackageOps> res = new ArrayList<AppOpsManager.PackageOps>(); in getUidOps() 1183 AppOpsManager.PackageOps resPackage = new AppOpsManager.PackageOps( in getUidOps() [all …]
|
/frameworks/base/services/core/java/com/android/server/ |
D | AppStateTracker.java | 22 import android.app.AppOpsManager.PackageOps; 518 final List<PackageOps> ops = mAppOpsManager.getPackagesForOps( in refreshForcedAppStandbyUidPackagesLocked() 526 final AppOpsManager.PackageOps pkg = ops.get(i); in refreshForcedAppStandbyUidPackagesLocked()
|
D | StorageManagerService.java | 1640 final List<AppOpsManager.PackageOps> pkgs = manager.getOpsForPackage(uid, packageName, ops); in getLastAccessTime() 1641 for (AppOpsManager.PackageOps pkg : CollectionUtils.emptyIfNull(pkgs)) { in getLastAccessTime()
|
/frameworks/base/api/ |
D | system-removed.txt | 13 …ion.GET_APP_OPS_STATS) public java.util.List<android.app.AppOpsManager.PackageOps> getOpsForPackag…
|
D | system-current.txt | 320 …ion.GET_APP_OPS_STATS) public java.util.List<android.app.AppOpsManager.PackageOps> getOpsForPackag… 321 …ion.GET_APP_OPS_STATS) public java.util.List<android.app.AppOpsManager.PackageOps> getPackagesForO… 471 public static final class AppOpsManager.PackageOps implements android.os.Parcelable { 477 …ll public static final android.os.Parcelable.Creator<android.app.AppOpsManager.PackageOps> CREATOR;
|