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

Commit 366f8e70 authored by Yi Jiang's avatar Yi Jiang Committed by Android (Google) Code Review
Browse files

Merge "Modified 3 methods to private methods. They should not be public."

parents 65a4fe0f 99a84794
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -122,7 +122,7 @@ public class AttentionManagerService extends SystemService {
    /**
     * Returns {@code true} if attention service is supported on this device.
     */
    public boolean isAttentionServiceSupported() {
    private boolean isAttentionServiceSupported() {
        return isServiceEnabled() && isServiceAvailable();
    }

@@ -135,7 +135,7 @@ public class AttentionManagerService extends SystemService {
     *
     * @return {@code true} if the framework was able to send the provided callback to the service
     */
    public boolean checkAttention(int requestCode, long timeout,
    private boolean checkAttention(int requestCode, long timeout,
            AttentionCallbackInternal callback) {
        Preconditions.checkNotNull(callback);

@@ -213,7 +213,7 @@ public class AttentionManagerService extends SystemService {
    }

    /** Cancels the specified attention check. */
    public void cancelAttentionCheck(int requestCode) {
    private void cancelAttentionCheck(int requestCode) {
        synchronized (mLock) {
            final UserState userState = peekCurrentUserStateLocked();
            if (userState == null) {