Searched refs:opEntry (Results 1 – 6 of 6) sorted by relevance
98 val opEntry = getOpEntry(myUid, myPackage, OPSTR_RESERVED_FOR_TESTING)!! in ensureCorrectOpStr() constant99 assertThat(opEntry.opStr).isEqualTo(OPSTR_RESERVED_FOR_TESTING) in ensureCorrectOpStr()139 val opEntry = getOpEntry(myUid, myPackage, OPSTR_RESERVED_FOR_TESTING)!! 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 …]
167 val opEntry = opEntries[0] in getPackagesForOps_isDeviceAware() constant168 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()
163 val opEntry = getOpEntry(appUid, APP_PKG, OPSTR_RESERVED_FOR_TESTING)!! in canUseUndeclaredAttributionTagButTreatedAsNull() constant164 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()
891 for (opEntry in accessorPackageOps!!.ops) { in <lambda>() constant892 if (!op.equals(opEntry.opStr)) { in <lambda>()895 val attributedOpEntry = opEntry.attributedOpEntries[ in <lambda>()929 for (opEntry in accessorPackageOps.ops) { in <lambda>() constant930 if (!op.equals(opEntry.opStr)) { in <lambda>()933 val attributedOpEntry = opEntry.attributedOpEntries[ in <lambda>()1026 for (opEntry in receiverPackageOps!!.ops) { in <lambda>() constant1027 if (op != opEntry.opStr) { in <lambda>()1030 val attributedOpEntry = opEntry.attributedOpEntries[ in <lambda>()1095 opEntry: AppOpsManager.AttributedOpEntry, in <lambda>()[all …]
1700 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()