OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
defs:appOps
(Results
1 - 2
of
2
) sorted by null
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
ShadowAppOpsManagerTest.java
52
private AppOpsManager
appOps
;
56
appOps
=
64
assertThat(
appOps
.checkOpNoThrow(OPSTR_GPS, UID_1, PACKAGE_NAME1)).isEqualTo(MODE_ALLOWED);
70
appOps
.setMode(OPSTR_GPS, UID_1, PACKAGE_NAME1, MODE_DEFAULT);
71
assertThat(
appOps
.checkOpNoThrow(OPSTR_GPS, UID_1, PACKAGE_NAME1)).isEqualTo(MODE_DEFAULT);
77
assertThat(
appOps
.checkOpNoThrow(/* op= */ 2, UID_1, PACKAGE_NAME1)).isEqualTo(MODE_ALLOWED);
83
appOps
.setMode(/* op= */ 2, UID_1, PACKAGE_NAME1, MODE_DEFAULT);
84
assertThat(
appOps
.checkOpNoThrow(/* op= */ 2, UID_1, PACKAGE_NAME1)).isEqualTo(MODE_DEFAULT);
90
assertThat(
appOps
.checkOpNoThrow(OP_GPS, UID_1, PACKAGE_NAME1)).isEqualTo(MODE_ALLOWED);
91
appOps
.setMode(OP_GPS, UID_1, PACKAGE_NAME1, MODE_ERRORED)
[
all
...]
/frameworks/av/media/utils/
ServiceUtilities.cpp
84
AppOpsManager
appOps
;
85
const int32_t op =
appOps
.permissionToOpCode(sAndroidPermissionRecordAudio);
87
if (
appOps
.startOpNoThrow(op, uid, resolvedOpPackageName, /*startIfModeDefault*/ false)
93
if (
appOps
.checkOp(op, uid, resolvedOpPackageName) != AppOpsManager::MODE_ALLOWED) {
122
AppOpsManager
appOps
;
123
const int32_t op =
appOps
.permissionToOpCode(sAndroidPermissionRecordAudio);
124
appOps
.finishOp(op, uid, resolvedOpPackageName);
Completed in 144 milliseconds