Loading packages/SystemUI/src/com/android/systemui/screenshot/RequestProcessor.kt +1 −1 Original line number Diff line number Diff line Loading @@ -76,7 +76,7 @@ class RequestProcessor @Inject constructor( ) } else { // Create a new request of the same type which includes the top component ScreenshotRequest(request.source, request.type, info.component) ScreenshotRequest(request.type, request.source, info.component) } } Loading packages/SystemUI/tests/src/com/android/systemui/screenshot/RequestProcessorTest.kt +2 −1 Original line number Diff line number Diff line Loading @@ -99,13 +99,14 @@ class RequestProcessorTest { policy.getDefaultDisplayId(), DisplayContentInfo(component, bounds, UserHandle.of(USER_ID), TASK_ID)) val request = ScreenshotRequest(TAKE_SCREENSHOT_FULLSCREEN, SCREENSHOT_KEY_CHORD) val request = ScreenshotRequest(TAKE_SCREENSHOT_FULLSCREEN, SCREENSHOT_OTHER) val processor = RequestProcessor(imageCapture, policy, flags, scope) val processedRequest = processor.process(request) // Request has topComponent added, but otherwise unchanged. assertThat(processedRequest.type).isEqualTo(TAKE_SCREENSHOT_FULLSCREEN) assertThat(processedRequest.source).isEqualTo(SCREENSHOT_OTHER) assertThat(processedRequest.topComponent).isEqualTo(component) } Loading Loading
packages/SystemUI/src/com/android/systemui/screenshot/RequestProcessor.kt +1 −1 Original line number Diff line number Diff line Loading @@ -76,7 +76,7 @@ class RequestProcessor @Inject constructor( ) } else { // Create a new request of the same type which includes the top component ScreenshotRequest(request.source, request.type, info.component) ScreenshotRequest(request.type, request.source, info.component) } } Loading
packages/SystemUI/tests/src/com/android/systemui/screenshot/RequestProcessorTest.kt +2 −1 Original line number Diff line number Diff line Loading @@ -99,13 +99,14 @@ class RequestProcessorTest { policy.getDefaultDisplayId(), DisplayContentInfo(component, bounds, UserHandle.of(USER_ID), TASK_ID)) val request = ScreenshotRequest(TAKE_SCREENSHOT_FULLSCREEN, SCREENSHOT_KEY_CHORD) val request = ScreenshotRequest(TAKE_SCREENSHOT_FULLSCREEN, SCREENSHOT_OTHER) val processor = RequestProcessor(imageCapture, policy, flags, scope) val processedRequest = processor.process(request) // Request has topComponent added, but otherwise unchanged. assertThat(processedRequest.type).isEqualTo(TAKE_SCREENSHOT_FULLSCREEN) assertThat(processedRequest.source).isEqualTo(SCREENSHOT_OTHER) assertThat(processedRequest.topComponent).isEqualTo(component) } Loading