Loading core/java/android/view/textclassifier/TextClassificationContext.java +1 −6 Original line number Diff line number Diff line Loading @@ -31,7 +31,6 @@ import java.util.Objects; */ public final class TextClassificationContext implements Parcelable { // NOTE: Modify packageName only in the constructor or in setSystemTextClassifierMetadata() private String mPackageName; private final String mWidgetType; @Nullable private final String mWidgetVersion; Loading @@ -47,7 +46,7 @@ public final class TextClassificationContext implements Parcelable { } /** * Returns the package name for the calling package. * Returns the package name of the app that this context originated in. */ @NonNull public String getPackageName() { Loading @@ -57,14 +56,10 @@ public final class TextClassificationContext implements Parcelable { /** * Sets the information about the {@link SystemTextClassifier} that sent this request. * * <p><b>NOTE: </b>This will override the value returned in {@link getPackageName()}. * @hide */ void setSystemTextClassifierMetadata(@Nullable SystemTextClassifierMetadata systemTcMetadata) { mSystemTcMetadata = systemTcMetadata; if (mSystemTcMetadata != null) { mPackageName = mSystemTcMetadata.getCallingPackageName(); } } /** Loading services/core/java/com/android/server/textclassifier/TextClassificationManagerService.java +2 −2 Original line number Diff line number Diff line Loading @@ -234,7 +234,7 @@ public final class TextClassificationManagerService extends ITextClassifierServi handleRequest( event.getSystemTextClassifierMetadata(), /* verifyCallingPackage= */ false, /* verifyCallingPackage= */ true, /* attemptToBind= */ false, service -> service.onSelectionEvent(sessionId, event), "onSelectionEvent", Loading @@ -253,7 +253,7 @@ public final class TextClassificationManagerService extends ITextClassifierServi handleRequest( systemTcMetadata, /* verifyCallingPackage= */ false, /* verifyCallingPackage= */ true, /* attemptToBind= */ false, service -> service.onTextClassifierEvent(sessionId, event), "onTextClassifierEvent", Loading Loading
core/java/android/view/textclassifier/TextClassificationContext.java +1 −6 Original line number Diff line number Diff line Loading @@ -31,7 +31,6 @@ import java.util.Objects; */ public final class TextClassificationContext implements Parcelable { // NOTE: Modify packageName only in the constructor or in setSystemTextClassifierMetadata() private String mPackageName; private final String mWidgetType; @Nullable private final String mWidgetVersion; Loading @@ -47,7 +46,7 @@ public final class TextClassificationContext implements Parcelable { } /** * Returns the package name for the calling package. * Returns the package name of the app that this context originated in. */ @NonNull public String getPackageName() { Loading @@ -57,14 +56,10 @@ public final class TextClassificationContext implements Parcelable { /** * Sets the information about the {@link SystemTextClassifier} that sent this request. * * <p><b>NOTE: </b>This will override the value returned in {@link getPackageName()}. * @hide */ void setSystemTextClassifierMetadata(@Nullable SystemTextClassifierMetadata systemTcMetadata) { mSystemTcMetadata = systemTcMetadata; if (mSystemTcMetadata != null) { mPackageName = mSystemTcMetadata.getCallingPackageName(); } } /** Loading
services/core/java/com/android/server/textclassifier/TextClassificationManagerService.java +2 −2 Original line number Diff line number Diff line Loading @@ -234,7 +234,7 @@ public final class TextClassificationManagerService extends ITextClassifierServi handleRequest( event.getSystemTextClassifierMetadata(), /* verifyCallingPackage= */ false, /* verifyCallingPackage= */ true, /* attemptToBind= */ false, service -> service.onSelectionEvent(sessionId, event), "onSelectionEvent", Loading @@ -253,7 +253,7 @@ public final class TextClassificationManagerService extends ITextClassifierServi handleRequest( systemTcMetadata, /* verifyCallingPackage= */ false, /* verifyCallingPackage= */ true, /* attemptToBind= */ false, service -> service.onTextClassifierEvent(sessionId, event), "onTextClassifierEvent", Loading