/platform_testing/libraries/flicker/src/com/android/server/wm/flicker/ |
D | WmTraceSubject.java | 58 public static WmTraceSubject assertThat(@Nullable WindowManagerTrace entry) { in assertThat() argument 59 return assertAbout(FACTORY).that(entry); in assertThat() 147 entry -> entry.isAboveAppWindowVisible(partialWindowTitle), in showsAboveAppWindow() 154 entry -> entry.isAboveAppWindowVisible(partialWindowTitle).negate(), in hidesAboveAppWindow() 161 entry -> entry.isBelowAppWindowVisible(partialWindowTitle), in showsBelowAppWindow() 168 entry -> entry.isBelowAppWindowVisible(partialWindowTitle).negate(), in hidesBelowAppWindow() 175 entry -> entry.isImeWindowVisible(partialWindowTitle), in showsImeWindow() 182 entry -> entry.isImeWindowVisible(partialWindowTitle).negate(), in hidesImeWindow() 189 entry -> { in showsAppWindowOnTop() 190 Result result = entry.isAppWindowVisible(partialWindowTitle); in showsAppWindowOnTop() [all …]
|
D | LayersTraceSubject.java | 63 public static LayersTraceSubject assertThat(@Nullable LayersTrace entry) { in assertThat() argument 64 return assertAbout(FACTORY).that(entry); in assertThat() 164 addAssertion(entry -> entry.coversRegion(rect), "coversRegion(" + rect + ")"); in coversRegion() 170 entry -> entry.hasVisibleRegion(layerName, size), in hasVisibleRegion() 176 addAssertion(entry -> entry.exists(layerName).negate(), "hasNotLayer(" + layerName + ")"); in hasNotLayer() 181 addAssertion(entry -> entry.exists(layerName), "hasLayer(" + layerName + ")"); in hasLayer() 186 addAssertion(entry -> entry.isVisible(layerName), "showsLayer(" + layerName + ")"); in showsLayer() 196 addAssertion(entry -> entry.isVisible(layerName).negate(), "hidesLayer(" + layerName + ")"); in hidesLayer()
|
D | WindowManagerTrace.java | 71 for (WindowManagerTraceProto entryProto : fileProto.entry) { in parseFrom() 86 Optional<Entry> entry = in getEntry() local 88 if (!entry.isPresent()) { in getEntry() 91 return entry.get(); in getEntry()
|
D | LayersTrace.java | 85 for (LayersTraceProto traceProto : fileProto.entry) { in parseFrom() 86 Entry entry = in parseFrom() local 90 entries.add(entry); in parseFrom() 132 Optional<Entry> entry = in getEntry() local 134 if (!entry.isPresent()) { in getEntry() 137 return entry.get(); in getEntry()
|
D | AssertionsChecker.java | 207 private List<Result> assertEntry(T entry) { in assertEntry() argument 210 Result result = assertion.apply(entry); in assertEntry()
|
/platform_testing/libraries/flicker/test/src/com/android/server/wm/flicker/ |
D | WindowManagerTraceTest.java | 64 WindowManagerTrace.Entry entry = mTrace.getEntry(241777211939236L); in canDetectAboveAppWindowVisibility() local 65 Result result = entry.isAboveAppWindowVisible("NavigationBar"); in canDetectAboveAppWindowVisibility() 71 WindowManagerTrace.Entry entry = mTrace.getEntry(241777211939236L); in canDetectBelowAppWindowVisibility() local 72 Result result = entry.isBelowAppWindowVisible("wallpaper"); in canDetectBelowAppWindowVisibility() 78 WindowManagerTrace.Entry entry = mTrace.getEntry(241777211939236L); in canDetectAppWindowVisibility() local 79 Result result = entry.isAppWindowVisible("com.google.android.apps.nexuslauncher"); in canDetectAppWindowVisibility() 85 WindowManagerTrace.Entry entry = mTrace.getEntry(241777211939236L); in canFailWithReasonForVisibilityChecks_windowNotFound() local 86 Result result = entry.isAboveAppWindowVisible("ImaginaryWindow"); in canFailWithReasonForVisibilityChecks_windowNotFound() 93 WindowManagerTrace.Entry entry = mTrace.getEntry(241777211939236L); in canFailWithReasonForVisibilityChecks_windowNotVisible() local 94 Result result = entry.isAboveAppWindowVisible("AssistPreviewPanel"); in canFailWithReasonForVisibilityChecks_windowNotVisible() [all …]
|
D | LayersTraceTest.java | 139 LayersTrace.Entry entry = trace.getEntry(2308008331271L); in canDetectUncoveredRegion() local 141 Assertions.Result result = entry.coversRegion(getDisplayBounds()); in canDetectUncoveredRegion() 156 LayersTrace.Entry entry = trace.getEntry(2308008331271L); in canTestLayerVisibleRegion_layerDoesNotExist() local 159 Assertions.Result result = entry.hasVisibleRegion("ImaginaryLayer", expectedVisibleRegion); in canTestLayerVisibleRegion_layerDoesNotExist() 168 LayersTrace.Entry entry = trace.getEntry(2307993020072L); in canTestLayerVisibleRegion_layerDoesNotHaveExpectedVisibleRegion() local 172 entry.hasVisibleRegion("NexusLauncherActivity#2", expectedVisibleRegion); in canTestLayerVisibleRegion_layerDoesNotHaveExpectedVisibleRegion() 185 LayersTrace.Entry entry = trace.getEntry(2308455948035L); in canTestLayerVisibleRegion_layerIsHiddenByParent() local 189 entry.hasVisibleRegion( in canTestLayerVisibleRegion_layerIsHiddenByParent() 204 LayersTrace.Entry entry = trace.getEntry(2308008331271L); in canTestLayerVisibleRegion_incorrectRegionSize() local 207 Assertions.Result result = entry.hasVisibleRegion("StatusBar", expectedVisibleRegion); in canTestLayerVisibleRegion_incorrectRegionSize() [all …]
|
D | LayersTraceSubjectTest.java | 111 for (LayersTrace.Entry entry : layersTrace.getEntries()) { in detectRootLayer() 112 List<LayersTrace.Layer> flattened = entry.asFlattenedLayers(); in detectRootLayer()
|
/platform_testing/libraries/app-helpers/core/src/android/platform/helpers/exceptions/ |
D | MappedMultiException.java | 48 private String entryToString(Map.Entry<Object, Throwable> entry) { in entryToString() argument 49 return String.format("%s:\n%s", entry.getKey(), stackTraceToString(entry.getValue())); in entryToString() 66 .map(entry -> entryToString(entry)) in getMessage()
|
/platform_testing/libraries/aupt-lib/src/android/support/test/aupt/ |
D | DataCollector.java | 82 for (Map.Entry<LogGenerator, Long> entry : generatorsWithIntervals.entrySet()) { in start() 83 if (entry.getValue() > 0) { in start() 84 Log.d(TAG, "Collecting " + entry.getKey() + " logs every " + in start() 85 entry.getValue() + " milliseconds"); in start() 87 mLastUpdate.put(entry.getKey(), SystemClock.uptimeMillis()); in start() 124 for (Map.Entry<LogGenerator, Long> entry : generatorsWithIntervals.entrySet()) { in loop() 125 Long t = SystemClock.uptimeMillis() - mLastUpdate.get(entry.getKey()); in loop() 127 if (entry.getValue() > 0 && t >= entry.getValue()) { in loop() 129 entry.getKey().save(instrumentation, resultsDirectory); in loop() 135 mLastUpdate.put(entry.getKey(), SystemClock.uptimeMillis()); in loop()
|
D | MemHealthRecord.java | 127 for (Map.Entry<String, List<MemHealthRecord>> entry : fgRecords.entrySet()) { in saveVerbose() 128 String procName = entry.getKey(); in saveVerbose() 129 List<MemHealthRecord> records = entry.getValue(); in saveVerbose() 168 for (Map.Entry<String, List<MemHealthRecord>> entry : bgRecords.entrySet()) { in saveVerbose() 169 String procName = entry.getKey(); in saveVerbose() 170 List<MemHealthRecord> records = entry.getValue(); in saveVerbose()
|
/platform_testing/libraries/device-collectors/src/main/java/android/device/collectors/ |
D | BaseCollectionListener.java | 103 for (Map.Entry<String, T> entry : metrics.entrySet()) { in onTestEnd() 104 testData.addStringMetric(entry.getKey(), entry.getValue().toString()); in onTestEnd() 115 for (Map.Entry<String, T> entry : metrics.entrySet()) { in onTestRunEnd() 116 runData.addStringMetric(entry.getKey(), entry.getValue().toString()); in onTestRunEnd()
|
D | DataRecord.java | 79 for (Map.Entry<String, File> entry : mCurrentFileMetrics.entrySet()) { in getStringMetrics() 80 res.put(entry.getKey(), entry.getValue().getAbsolutePath()); in getStringMetrics()
|
D | ScheduledRunCollectionListener.java | 198 for (Map.Entry<String, String> entry : mTimeSeriesStatistics.getStatistics().entrySet()) { in onEnd() 199 runData.addStringMetric(entry.getKey(), entry.getValue()); in onEnd()
|
/platform_testing/tests/functional/devicehealthtests/src/com/android/devicehealth/tests/ |
D | HealthCheckBase.java | 54 DropBoxManager.Entry entry; in checkCrash() local 57 while (null != (entry = dropbox.getNextEntry(label, timestamp))) { in checkCrash() 60 dropboxSnippet = entry.getText(MAX_DROPBOX_READ); in checkCrash() 62 entry.close(); in checkCrash() 76 timestamp = entry.getTimeMillis(); in checkCrash()
|
/platform_testing/tests/functional/devicehealthchecks/src/com/android/devicehealthchecks/ |
D | CrashCheckBase.java | 55 DropBoxManager.Entry entry; in checkCrash() local 58 while (null != (entry = dropbox.getNextEntry(label, timestamp))) { in checkCrash() 61 dropboxSnippet = entry.getText(MAX_DROPBOX_READ); in checkCrash() 63 entry.close(); in checkCrash() 77 timestamp = entry.getTimeMillis(); in checkCrash()
|
/platform_testing/libraries/health/composers/host/tests/src/android/host/test/composer/ |
D | IterateTestBase.java | 66 .allMatch(entry -> (entry.getValue() == EXPECTED_ITERATIONS)); in testIterationsRespected() 130 .allMatch(entry -> (entry.getValue() == EXPECTED_ITERATIONS)); in testOverrideOptionName()
|
/platform_testing/libraries/collectors-helper/memory/src/com/android/helpers/ |
D | ShowmapSnapshotHelper.java | 259 for (Map.Entry<Integer, String> entry : mMetricNameIndexMap.entrySet()) { in parseAndUpdateMemoryInfo() 260 String metricKey = constructKey(String.format(OUTPUT_METRIC_PATTERN, entry.getValue()), in parseAndUpdateMemoryInfo() 267 (Long.parseLong(summarySplit[entry.getKey() + 1]) * 1024))); in parseAndUpdateMemoryInfo() 270 summarySplit[entry.getKey() + 1]) * 1024)); in parseAndUpdateMemoryInfo()
|
/platform_testing/libraries/collectors-helper/statsd/src/com/android/helpers/ |
D | AppStartupHelper.java | 217 for (Entry<String, Integer> entry : tempResultCountMap.entrySet()) { in getMetrics() 218 Log.i(LOG_TAG, String.format("Process_delay_key: %s, Count: %d", entry.getKey(), in getMetrics() 219 entry.getValue())); in getMetrics()
|
/platform_testing/libraries/collectors-helper/jank/src/com/android/helpers/ |
D | SfStatsCollectionHelper.java | 239 .mapToLong(entry -> entry.getKey() * entry.getValue()) in mean()
|