Home
last modified time | relevance | path

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

/cts/tests/tests/appop/src/android/app/appops/cts/
DAppOpEventCollectionTest.kt98 val opEntry = getOpEntry(myUid, myPackage, OPSTR_RESERVED_FOR_TESTING)!! in ensureCorrectOpStr() constant
99 assertThat(opEntry.opStr).isEqualTo(OPSTR_RESERVED_FOR_TESTING) in ensureCorrectOpStr()
139 val opEntry = getOpEntry(myUid, myPackage, OPSTR_RESERVED_FOR_TESTING)!! 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 …]
DAppOpsDeviceAwareTest.kt167 val opEntry = opEntries[0] in getPackagesForOps_isDeviceAware() constant
168 assertThat(opEntry.opStr).isEqualTo(AppOpsManager.OPSTR_CAMERA) in getPackagesForOps_isDeviceAware()
169 assertThat(opEntry.mode).isEqualTo(AppOpsManager.MODE_ALLOWED) in getPackagesForOps_isDeviceAware()
171 val attributedOpEntry = opEntry.attributedOpEntries[null]!! in getPackagesForOps_isDeviceAware()
DAttributionTest.kt163 val opEntry = getOpEntry(appUid, APP_PKG, OPSTR_RESERVED_FOR_TESTING)!! in canUseUndeclaredAttributionTagButTreatedAsNull() constant
164 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/attributionsource/src/android/attributionsource/cts/
DRuntimePermissionsAppOpTrackingTest.kt891 for (opEntry in accessorPackageOps!!.ops) { in <lambda>() constant
892 if (!op.equals(opEntry.opStr)) { in <lambda>()
895 val attributedOpEntry = opEntry.attributedOpEntries[ in <lambda>()
929 for (opEntry in accessorPackageOps.ops) { in <lambda>() constant
930 if (!op.equals(opEntry.opStr)) { in <lambda>()
933 val attributedOpEntry = opEntry.attributedOpEntries[ in <lambda>()
1026 for (opEntry in receiverPackageOps!!.ops) { in <lambda>() constant
1027 if (op != opEntry.opStr) { in <lambda>()
1030 val attributedOpEntry = opEntry.attributedOpEntries[ in <lambda>()
1095 opEntry: AppOpsManager.AttributedOpEntry, in <lambda>()
[all …]
/cts/tests/location/location_fine/src/android/location/cts/fine/
DLocationManagerFineTest.java1700 for (AppOpsManager.OpEntry opEntry : packageOps.getOps()) { in assertFineOpNoted()
1701 if (OPSTR_FINE_LOCATION_SOURCE.equals(opEntry.getOpStr())) { in assertFineOpNoted()
1703 } else if (OPSTR_FINE_LOCATION.equals(opEntry.getOpStr()) in assertFineOpNoted()
1704 && opEntry.getAttributedOpEntries().containsKey(attributionTag) in assertFineOpNoted()
1705 && opEntry in assertFineOpNoted()
1734 for (AppOpsManager.OpEntry opEntry : packageOps.getOps()) { in assertFineOpNotNoted()
1735 if (OPSTR_FINE_LOCATION.equals(opEntry.getOpStr()) in assertFineOpNotNoted()
1736 && opEntry.getAttributedOpEntries().containsKey(attributionTag) in assertFineOpNotNoted()
1737 && opEntry in assertFineOpNotNoted()