Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 576da058 authored by David Brazdil's avatar David Brazdil
Browse files

Add @UnsupportedAppUsage to methods known to be used by apps

Exempted-From-Owner-Approval: Automatic changes to the codebase
affecting only @UnsupportedAppUsage annotations, themselves added
without requiring owners approval earlier.

Bug: 123308819
Bug: 122291025
Test: m appcompat
Change-Id: Iafd62b8ece0d19268fad65086134a1e7369bc0bb
parent 87c1081c
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -16,6 +16,8 @@

package android.os;

import android.annotation.UnsupportedAppUsage;

import java.util.UUID;

/**
@@ -109,6 +111,7 @@ public final class ParcelUuid implements Parcelable {

   public static final Parcelable.Creator<ParcelUuid> CREATOR =
               new Parcelable.Creator<ParcelUuid>() {
        @UnsupportedAppUsage
        public ParcelUuid createFromParcel(Parcel source) {
            long mostSigBits = source.readLong();
            long leastSigBits = source.readLong();
+2 −0
Original line number Diff line number Diff line
@@ -16,6 +16,7 @@

package android.os;

import android.annotation.UnsupportedAppUsage;
import android.util.Slog;

import java.io.File;
@@ -69,6 +70,7 @@ public class SELinux {
     * @param path the pathname of the file object.
     * @return a security context given as a String.
     */
    @UnsupportedAppUsage
    public static final native String getFileContext(String path);

    /**
+5 −0
Original line number Diff line number Diff line
@@ -16,6 +16,7 @@

package com.android.internal.util;

import android.annotation.UnsupportedAppUsage;
import android.os.Handler;
import android.os.HandlerThread;
import android.os.Looper;
@@ -1354,6 +1355,7 @@ public class StateMachine {
     * Add a new state to the state machine, parent will be null
     * @param state to add
     */
    @UnsupportedAppUsage
    public final void addState(State state) {
        mSmHandler.addState(state, null);
    }
@@ -1372,6 +1374,7 @@ public class StateMachine {
     *
     * @param initialState is the state which will receive the first message.
     */
    @UnsupportedAppUsage
    public final void setInitialState(State initialState) {
        mSmHandler.setInitialState(initialState);
    }
@@ -1410,6 +1413,7 @@ public class StateMachine {
     *
     * @param destState will be the state that receives the next message.
     */
    @UnsupportedAppUsage
    public final void transitionTo(IState destState) {
        mSmHandler.transitionTo(destState);
    }
@@ -2053,6 +2057,7 @@ public class StateMachine {
    /**
     * Start the state machine.
     */
    @UnsupportedAppUsage
    public void start() {
        // mSmHandler can be null if the state machine has quit.
        SmHandler smh = mSmHandler;