Home
last modified time | relevance | path

Searched refs:appOpModes (Results 1 – 9 of 9) sorted by relevance

/frameworks/base/services/permission/java/com/android/server/permission/access/appop/
DAppIdAppOpPersistence.kt67 val appOpModes = MutableIndexedMap<String, Int>() in <lambda>() constant
68 appIdAppOpModes[appId] = appOpModes in <lambda>()
69 parseAppOps(appOpModes) in <lambda>()
78 appIdAppOpModes.forEachIndexed { _, appId, appOpModes -> in <lambda>() method
79 serializeAppId(appId, appOpModes) in <lambda>()
86 appOpModes: IndexedMap<String, Int> in <lambda>()
90 serializeAppOps(appOpModes) in <lambda>()
DPackageAppOpPersistence.kt63 val appOpModes = MutableIndexedMap<String, Int>() in <lambda>() constant
64 packageAppOpModes[packageName] = appOpModes in <lambda>()
65 parseAppOps(appOpModes) in <lambda>()
74 packageAppOpModes.forEachIndexed { _, packageName, appOpModes -> in <lambda>() method
75 serializePackage(packageName, appOpModes) in <lambda>()
82 appOpModes: IndexedMap<String, Int> in <lambda>()
86 serializeAppOps(appOpModes) in <lambda>()
DBaseAppOpPersistence.kt39 protected fun BinaryXmlPullParser.parseAppOps(appOpModes: MutableIndexedMap<String, Int>) { in <lambda>()
42 TAG_APP_OP -> parseAppOp(appOpModes) in <lambda>()
48 private fun BinaryXmlPullParser.parseAppOp(appOpModes: MutableIndexedMap<String, Int>) { in <lambda>()
51 appOpModes[name] = mode in <lambda>()
54 protected fun BinaryXmlSerializer.serializeAppOps(appOpModes: IndexedMap<String, Int>) { in <lambda>()
55 appOpModes.forEachIndexed { _, name, mode -> serializeAppOp(name, mode) } in <lambda>()
DPackageAppOpMigration.kt45 val appOpModes = MutableIndexedMap<String, Int>() in <lambda>() constant
46 packageAppOpModes[packageName] = appOpModes in <lambda>()
47 legacyAppOpModes.forEach { (appOpName, appOpMode) -> appOpModes[appOpName] = appOpMode } in <lambda>()
DAppIdAppOpMigration.kt47 val appOpModes = MutableIndexedMap<String, Int>() in <lambda>() constant
48 appIdAppOpModes[appId] = appOpModes in <lambda>()
49 legacyAppOpModes.forEach { (appOpName, appOpMode) -> appOpModes[appOpName] = appOpMode } in <lambda>()
DPackageAppOpPolicy.kt104 val appOpModes = packageAppOpModes.mutateOrPut(packageName) { MutableIndexedMap() } in <lambda>() constant
105 appOpModes.putWithDefault(appOpName, mode, defaultMode) in <lambda>()
106 if (appOpModes.isEmpty()) { in <lambda>()
DAppIdAppOpPolicy.kt101 val appOpModes = appIdAppOpModes.mutateOrPut(appId) { MutableIndexedMap() } in <lambda>() constant
102 appOpModes.putWithDefault(appOpName, mode, defaultMode) in <lambda>()
103 if (appOpModes.isEmpty()) { in <lambda>()
/frameworks/base/services/core/java/com/android/server/appop/
DAppOpMigrationHelperImpl.java111 SparseIntArray appOpModes = uidAppOpModes.valueAt(uidIndex); in getAppIdAppOpModes() local
112 appIdAppOpModes.put(UserHandle.getAppId(uid), getAppOpModesForOpName(appOpModes)); in getAppIdAppOpModes()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/alarm/
DAlarmManagerServiceTest.java3158 final int[] appOpModes = new int[]{MODE_ALLOWED, MODE_IGNORED, MODE_ERRORED};
3169 packageNames[i])).thenReturn(appOpModes[i]);
3181 assertEquals(appOpModes[i], mService.mLastOpScheduleExactAlarm.get(uid, -1));