Searched refs:opEntry (Results 1 – 5 of 5) sorted by relevance
98 val opEntry = getOpEntry(myUid, myPackage, OPSTR_WIFI_SCAN)!! in ensureCorrectOpStr() constant99 assertThat(opEntry.opStr).isEqualTo(OPSTR_WIFI_SCAN) in ensureCorrectOpStr()139 val opEntry = getOpEntry(myUid, myPackage, OPSTR_WIFI_SCAN)!! in noteWithAttributionAndCheckOpEntries() constant140 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 …]
158 val opEntry = getOpEntry(appUid, APP_PKG, OPSTR_WIFI_SCAN)!! in canUseUndeclaredAttributionTagButTreatedAsNull() constant159 assertThat(opEntry.attributedOpEntries["invalid attribution tag"]).isNull() in canUseUndeclaredAttributionTagButTreatedAsNull()
127 val opEntry = opEntries[j] in assertNotedOpsSinceLastArAccess() constant128 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()
833 for (opEntry in accessorPackageOps!!.ops) { in <lambda>() constant834 if (!op.equals(opEntry.opStr)) { in <lambda>()837 val attributedOpEntry = opEntry.attributedOpEntries[ in <lambda>()871 for (opEntry in accessorPackageOps.ops) { in <lambda>() constant872 if (!op.equals(opEntry.opStr)) { in <lambda>()875 val attributedOpEntry = opEntry.attributedOpEntries[ in <lambda>()964 for (opEntry in receiverPackageOps!!.ops) { in <lambda>() constant965 if (op != opEntry.opStr) { in <lambda>()968 val attributedOpEntry = opEntry.attributedOpEntries[ in <lambda>()1019 opEntry: AppOpsManager.AttributedOpEntry, in <lambda>()[all …]
1750 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()