Home
last modified time | relevance | path

Searched refs:opState (Results 1 – 2 of 2) sorted by relevance

/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DAppOpsUtils.java95 String opState = getOpState(packageName, opStr); in getOpMode() local
96 if (opState.contains(" allow")) { in getOpMode()
98 } else if (opState.contains(" deny")) { in getOpMode()
100 } else if (opState.contains(" ignore")) { in getOpMode()
102 } else if (opState.contains(" default")) { in getOpMode()
105 throw new IllegalStateException("Unexpected app op mode returned " + opState); in getOpMode()
/cts/tests/tests/appop/appopsTestUtilLib/src/android/app/appops/cts/
DAppOpsUtils.kt69 val opState = getOpState(packageName, opStr) in getOpMode() constant
71 opState.contains(" allow") -> MODE_ALLOWED in getOpMode()
72 opState.contains(" deny") -> MODE_ERRORED in getOpMode()
73 opState.contains(" ignore") -> MODE_IGNORED in getOpMode()
74 opState.contains(" default") -> MODE_DEFAULT in getOpMode()
75 else -> throw IllegalStateException("Unexpected app op mode returned $opState") in getOpMode()