Home
last modified time | relevance | path

Searched refs:opEntry (Results 1 – 5 of 5) sorted by relevance

/cts/tests/tests/appop/src/android/app/appops/cts/
DAppOpEventCollectionTest.kt98 val opEntry = getOpEntry(myUid, myPackage, OPSTR_WIFI_SCAN)!! in ensureCorrectOpStr() constant
99 assertThat(opEntry.opStr).isEqualTo(OPSTR_WIFI_SCAN) in ensureCorrectOpStr()
139 val opEntry = getOpEntry(myUid, myPackage, OPSTR_WIFI_SCAN)!! in noteWithAttributionAndCheckOpEntries() constant
140 val attributionOpEntry = opEntry.attributedOpEntries[TEST_ATTRIBUTION_TAG]!! in noteWithAttributionAndCheckOpEntries()
143 assertThat(opEntry.getLastAccessForegroundTime(OP_FLAG_SELF)).isIn(before..after) in noteWithAttributionAndCheckOpEntries()
147 assertThat(opEntry.getLastAccessForegroundTime(OP_FLAGS_ALL)).isIn(before..after) in noteWithAttributionAndCheckOpEntries()
151 assertThat(opEntry.getLastAccessTime(OP_FLAG_SELF)).isIn(before..after) in noteWithAttributionAndCheckOpEntries()
153 assertThat(opEntry.getLastAccessTime(OP_FLAGS_ALL)).isIn(before..after) in noteWithAttributionAndCheckOpEntries()
157 assertThat(opEntry.getLastAccessBackgroundTime(OP_FLAG_SELF)).isLessThan(before) in noteWithAttributionAndCheckOpEntries()
159 assertThat(opEntry.getLastAccessBackgroundTime(OP_FLAGS_ALL)).isLessThan(before) in noteWithAttributionAndCheckOpEntries()
[all …]
DAttributionTest.kt158 val opEntry = getOpEntry(appUid, APP_PKG, OPSTR_WIFI_SCAN)!! in canUseUndeclaredAttributionTagButTreatedAsNull() constant
159 assertThat(opEntry.attributedOpEntries["invalid attribution tag"]).isNull() in canUseUndeclaredAttributionTagButTreatedAsNull()
/cts/tests/tests/activityrecognition/src/android/activityrecognition/cts/
DActivityRecognizerAttributionTags.kt127 val opEntry = opEntries[j] in assertNotedOpsSinceLastArAccess() constant
128 if (unexpectedOp == opEntry.opStr) { in assertNotedOpsSinceLastArAccess()
130 } else if (expectedOp == opEntry.opStr) { in assertNotedOpsSinceLastArAccess()
131 if (opEntry.getLastAccessTime(AppOpsManager.OP_FLAGS_ALL_TRUSTED) >= in assertNotedOpsSinceLastArAccess()
/cts/tests/tests/permission5/src/android/permission5/cts/
DRuntimePermissionsAppOpTrackingTest.kt833 for (opEntry in accessorPackageOps!!.ops) { in <lambda>() constant
834 if (!op.equals(opEntry.opStr)) { in <lambda>()
837 val attributedOpEntry = opEntry.attributedOpEntries[ in <lambda>()
871 for (opEntry in accessorPackageOps.ops) { in <lambda>() constant
872 if (!op.equals(opEntry.opStr)) { in <lambda>()
875 val attributedOpEntry = opEntry.attributedOpEntries[ in <lambda>()
964 for (opEntry in receiverPackageOps!!.ops) { in <lambda>() constant
965 if (op != opEntry.opStr) { in <lambda>()
968 val attributedOpEntry = opEntry.attributedOpEntries[ in <lambda>()
1019 opEntry: AppOpsManager.AttributedOpEntry, in <lambda>()
[all …]
/cts/tests/location/location_fine/src/android/location/cts/fine/
DLocationManagerFineTest.java1750 for (AppOpsManager.OpEntry opEntry : packageOps.getOps()) { in assertNotedOpsSinceLastLocationAccess()
1751 if (unexpectedOp.equals(opEntry.getOpStr())) { in assertNotedOpsSinceLastLocationAccess()
1753 } else if (expectedOp.equals(opEntry.getOpStr()) in assertNotedOpsSinceLastLocationAccess()
1754 && opEntry.getAttributedOpEntries().containsKey(attributionTag) in assertNotedOpsSinceLastLocationAccess()
1755 && opEntry in assertNotedOpsSinceLastLocationAccess()
1783 for (AppOpsManager.OpEntry opEntry : packageOps.getOps()) { in assertNoOpsNotedSinceLastLocationAccess()
1784 if (unexpectedOp.equals(opEntry.getOpStr()) in assertNoOpsNotedSinceLastLocationAccess()
1785 && opEntry.getAttributedOpEntries().containsKey(attributionTag) in assertNoOpsNotedSinceLastLocationAccess()
1786 && opEntry in assertNoOpsNotedSinceLastLocationAccess()