Update screenshot class visibilities for app clips.
Bug:269403503 Test: build Change-Id: Ib364c11bdf94d9364e52393722a5012614ee2a35
This commit is contained in:
@@ -57,7 +57,8 @@ import java.util.concurrent.Executor;
|
||||
|
||||
import javax.inject.Inject;
|
||||
|
||||
class ImageExporter {
|
||||
/** A class to help with exporting screenshot to storage. */
|
||||
public class ImageExporter {
|
||||
private static final String TAG = LogConfig.logTag(ImageExporter.class);
|
||||
|
||||
static final Duration PENDING_ENTRY_TTL = Duration.ofHours(24);
|
||||
@@ -90,7 +91,7 @@ class ImageExporter {
|
||||
private final FeatureFlags mFlags;
|
||||
|
||||
@Inject
|
||||
ImageExporter(ContentResolver resolver, FeatureFlags flags) {
|
||||
public ImageExporter(ContentResolver resolver, FeatureFlags flags) {
|
||||
mResolver = resolver;
|
||||
mFlags = flags;
|
||||
}
|
||||
@@ -148,7 +149,7 @@ class ImageExporter {
|
||||
*
|
||||
* @return a listenable future result
|
||||
*/
|
||||
ListenableFuture<Result> export(Executor executor, UUID requestId, Bitmap bitmap,
|
||||
public ListenableFuture<Result> export(Executor executor, UUID requestId, Bitmap bitmap,
|
||||
UserHandle owner) {
|
||||
return export(executor, requestId, bitmap, ZonedDateTime.now(), owner);
|
||||
}
|
||||
@@ -181,13 +182,14 @@ class ImageExporter {
|
||||
);
|
||||
}
|
||||
|
||||
static class Result {
|
||||
Uri uri;
|
||||
UUID requestId;
|
||||
String fileName;
|
||||
long timestamp;
|
||||
CompressFormat format;
|
||||
boolean published;
|
||||
/** The result returned by the task exporting screenshots to storage. */
|
||||
public static class Result {
|
||||
public Uri uri;
|
||||
public UUID requestId;
|
||||
public String fileName;
|
||||
public long timestamp;
|
||||
public CompressFormat format;
|
||||
public boolean published;
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
|
||||
@@ -93,13 +93,7 @@ public enum ScreenshotEvent implements UiEventLogger.UiEventEnum {
|
||||
@UiEvent(doc = "User has discarded the result of a long screenshot")
|
||||
SCREENSHOT_LONG_SCREENSHOT_EXIT(911),
|
||||
@UiEvent(doc = "A screenshot has been taken and saved to work profile")
|
||||
SCREENSHOT_SAVED_TO_WORK_PROFILE(1240),
|
||||
@UiEvent(doc = "Notes application triggered the screenshot for notes")
|
||||
SCREENSHOT_FOR_NOTE_TRIGGERED(1308),
|
||||
@UiEvent(doc = "User accepted the screenshot to be sent to the notes app")
|
||||
SCREENSHOT_FOR_NOTE_ACCEPTED(1309),
|
||||
@UiEvent(doc = "User cancelled the screenshot for notes app flow")
|
||||
SCREENSHOT_FOR_NOTE_CANCELLED(1310);
|
||||
SCREENSHOT_SAVED_TO_WORK_PROFILE(1240);
|
||||
|
||||
private final int mId;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user