Home
last modified time | relevance | path

Searched refs:beginTimeMillis (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/app/usage/
DUsageEventsQueryTest.java49 long beginTimeMillis = -100; in testQueryDuration() local
52 UsageEventsQuery query = new UsageEventsQuery.Builder(beginTimeMillis, endTimeMillis) in testQueryDuration()
61 beginTimeMillis = 1001; in testQueryDuration()
64 UsageEventsQuery query = new UsageEventsQuery.Builder(beginTimeMillis, endTimeMillis) in testQueryDuration()
73 beginTimeMillis = 2001; in testQueryDuration()
76 UsageEventsQuery query = new UsageEventsQuery.Builder(beginTimeMillis, endTimeMillis) in testQueryDuration()
84 beginTimeMillis = 1001; in testQueryDuration()
87 UsageEventsQuery query = new UsageEventsQuery.Builder(beginTimeMillis, endTimeMillis) in testQueryDuration()
92 fail("Valid duration for beginTimeMillis=" + beginTimeMillis in testQueryDuration()
96 beginTimeMillis = 2001; in testQueryDuration()
[all …]
/frameworks/base/core/java/android/app/usage/
DUsageEventsQuery.java176 public Builder(@CurrentTimeMillisLong long beginTimeMillis, in Builder() argument
178 if (beginTimeMillis < 0 || endTimeMillis < beginTimeMillis) { in Builder()
181 mBeginTimeMillis = beginTimeMillis; in Builder()
/frameworks/base/services/core/java/com/android/server/appop/
DDiscreteRegistry.java279 long beginTimeMillis, long endTimeMillis, in addFilteredDiscreteOpsToHistoricalOps() argument
290 beginTimeMillis = max(beginTimeMillis, Instant.now().minus(sDiscreteHistoryCutoff, in addFilteredDiscreteOpsToHistoricalOps()
292 discreteOps.filter(beginTimeMillis, endTimeMillis, filter, uidFilter, packageNameFilter, in addFilteredDiscreteOpsToHistoricalOps()
388 long beginTimeMillis = Instant.now().minus(sDiscreteHistoryCutoff, in readDiscreteOpsFromDisk() local
400 if (timestamp < beginTimeMillis) { in readDiscreteOpsFromDisk()
403 discreteOps.readFromFile(f, beginTimeMillis); in readDiscreteOpsFromDisk()
654 private void filter(long beginTimeMillis, long endTimeMillis, in filter() argument
666 mUids.valueAt(i).filter(beginTimeMillis, endTimeMillis, filter, packageNameFilter, in filter()
739 private void readFromFile(File f, long beginTimeMillis) { in readFromFile() argument
760 getOrCreateDiscreteUidOps(uid).deserialize(parser, beginTimeMillis); in readFromFile()
[all …]
DHistoricalRegistry.java365 long beginTimeMillis, long endTimeMillis, @OpFlags int flags, in getHistoricalOpsFromDiskRaw() argument
367 final HistoricalOps result = new HistoricalOps(beginTimeMillis, endTimeMillis); in getHistoricalOpsFromDiskRaw()
380 opNames, filter, beginTimeMillis, endTimeMillis, flags); in getHistoricalOpsFromDiskRaw()
385 mDiscreteRegistry.addFilteredDiscreteOpsToHistoricalOps(result, beginTimeMillis, in getHistoricalOpsFromDiskRaw()
397 @HistoricalOpsRequestFilter int filter, long beginTimeMillis, long endTimeMillis, in getHistoricalOps() argument
410 final long inMemoryAdjEndTimeMillis = Math.max(currentTimeMillis - beginTimeMillis, 0); in getHistoricalOps()
415 mDiscreteRegistry.addFilteredDiscreteOpsToHistoricalOps(result, beginTimeMillis, in getHistoricalOps()
467 result.setBeginAndEndTime(beginTimeMillis, endTimeMillis); in getHistoricalOps()
1289 final long beginTimeMillis = parser.getAttributeLong(null, ATTR_BEGIN_TIME, 0) in readeHistoricalOpsDLocked() local
1294 if (filterEndTimeMillis < beginTimeMillis) { in readeHistoricalOpsDLocked()
[all …]
DAppOpsService.java1824 String attributionTag, List<String> opNames, int filter, long beginTimeMillis, in ensureHistoricalOpRequestIsValid() argument
1851 Preconditions.checkArgumentNonnegative(beginTimeMillis); in ensureHistoricalOpRequestIsValid()
1852 Preconditions.checkArgument(endTimeMillis > beginTimeMillis); in ensureHistoricalOpRequestIsValid()
1858 List<String> opNames, int dataType, int filter, long beginTimeMillis, in getHistoricalOps() argument
1863 beginTimeMillis, endTimeMillis, flags); in getHistoricalOps()
1912 filter, beginTimeMillis, endTimeMillis, flags, chainExemptPkgArray, in getHistoricalOps()
1918 List<String> opNames, int dataType, int filter, long beginTimeMillis, in getHistoricalOpsFromDiskRaw() argument
1921 beginTimeMillis, endTimeMillis, flags); in getHistoricalOpsFromDiskRaw()
1943 filter, beginTimeMillis, endTimeMillis, flags, chainExemptPkgArray, in getHistoricalOpsFromDiskRaw()
/frameworks/base/core/java/com/android/internal/app/
DIAppOpsService.aidl89 int historyFlags, int filter, long beginTimeMillis, long endTimeMillis, int flags, in getHistoricalOps() argument
92 in List<String> ops, int historyFlags, int filter, long beginTimeMillis, in getHistoricalOpsFromDiskRaw() argument
/frameworks/base/core/java/android/app/
DAppOpsManager.java5217 long beginTimeMillis, long endTimeMillis, @OpFlags int flags) { in HistoricalOpsRequest() argument
5224 mBeginTimeMillis = beginTimeMillis; in HistoricalOpsRequest()
5257 public Builder(long beginTimeMillis, long endTimeMillis) { in Builder() argument
5258 Preconditions.checkArgument(beginTimeMillis >= 0 && beginTimeMillis < endTimeMillis, in Builder()
5260 mBeginTimeMillis = beginTimeMillis; in Builder()
5396 public HistoricalOps(long beginTimeMillis, long endTimeMillis) { in HistoricalOps() argument
5397 Preconditions.checkState(beginTimeMillis <= endTimeMillis); in HistoricalOps()
5398 mBeginTimeMillis = beginTimeMillis; in HistoricalOps()
5547 long beginTimeMillis, long endTimeMillis) { in filter() argument
5549 mBeginTimeMillis = Math.max(mBeginTimeMillis, beginTimeMillis); in filter()
[all …]