-
大小: 36.58MB文件类型: .zip金币: 2下载: 1 次发布日期: 2023-08-08
- 语言: Java
- 标签: android.jar
资源简介
代码片段和文件信息
/*
* Copyright (C) 2017 The Android Open Source Project
*
* Licensed under the Apache License Version 2.0 (the “License“);
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing software
* distributed under the License is distributed on an “AS IS“ BASIS
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package android.accessibilityservice;
import android.annotation.NonNull;
import android.os.Handler;
import android.os.Looper;
import android.os.RemoteException;
import android.util.ArrayMap;
import android.util.Slog;
import com.android.internal.util.Preconditions;
/**
* Controller for the accessibility button within the system‘s navigation area
*
* This class may be used to query the accessibility button‘s state and register
* callbacks for interactions with and state changes to the accessibility button when
* {@link AccessibilityServiceInfo#FLAG_REQUEST_ACCESSIBILITY_BUTTON} is set.
*
*
* Note: This class and
* {@link AccessibilityServiceInfo#FLAG_REQUEST_ACCESSIBILITY_BUTTON} should not be used as
* the sole means for offering functionality to users via an {@link AccessibilityService}.
* Some device implementations may choose not to provide a software-rendered system
* navigation area making this affordance permanently unavailable.
*
*
* Note: On device implementations where the accessibility button is
* supported it may not be available at all times such as when a foreground application uses
* {@link android.view.View#SYSTEM_UI_FLAG_HIDE_NAVIGATION}. A user may also choose to assign
* this button to another accessibility service or feature. In each of these cases a
* registered {@link AccessibilityButtonCallback}‘s
* {@link AccessibilityButtonCallback#onAvailabilityChanged(AccessibilityButtonController boolean)}
* method will be invoked to provide notifications of changes in the accessibility button‘s
* availability to the registering service.
*
*/
public final class AccessibilityButtonController {
private static final String LOG_TAG = “A11yButtonController“;
private final IAccessibilityServiceConnection mServiceConnection;
private final object mLock;
private ArrayMap mCallbacks;
AccessibilityButtonController(@NonNull IAccessibilityServiceConnection serviceConnection) {
mServiceConnection = serviceConnection;
mLock = new object();
}
/**
* Retrieves whether the accessibility button in the system‘s navigation area is
* available to the calling service.
*
* Note: If the service is not yet connected (e.g.
* {@link Acce
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2019-09-17 12:15 android-29\
目录 0 2019-09-17 12:15 android-29\android\
目录 0 2019-09-17 12:15 android-29\androidx\
目录 0 2019-09-17 12:15 android-29\androidx\multidex\
文件 34921 2019-09-17 12:15 android-29\androidx\multidex\MultiDex.java
文件 1399 2019-09-17 12:15 android-29\androidx\multidex\MultiDexApplication.java
文件 17397 2019-09-17 12:15 android-29\androidx\multidex\MultiDexExtractor.java
文件 2039 2019-09-17 12:15 android-29\androidx\multidex\MultiDexTest.java
文件 4445 2019-09-17 12:15 android-29\androidx\multidex\ZipEntryReader.java
文件 4428 2019-09-17 12:15 android-29\androidx\multidex\ZipUtil.java
文件 6543 2019-09-17 12:15 android-29\androidx\multidex\ZipUtilTest.java
目录 0 2019-09-17 12:15 android-29\androidx\rendersc
文件 132701 2019-09-17 12:15 android-29\androidx\rendersc
文件 4136 2019-09-17 12:15 android-29\androidx\rendersc
文件 981 2019-09-17 12:15 android-29\androidx\rendersc
文件 1031 2019-09-17 12:15 android-29\androidx\rendersc
文件 1080 2019-09-17 12:15 android-29\androidx\rendersc
文件 1000 2019-09-17 12:15 android-29\androidx\rendersc
文件 1054 2019-09-17 12:15 android-29\androidx\rendersc
文件 1107 2019-09-17 12:15 android-29\androidx\rendersc
文件 33037 2019-09-17 12:15 android-29\androidx\rendersc
文件 21881 2019-09-17 12:15 android-29\androidx\rendersc
文件 989 2019-09-17 12:15 android-29\androidx\rendersc
文件 1040 2019-09-17 12:15 android-29\androidx\rendersc
文件 1092 2019-09-17 12:15 android-29\androidx\rendersc
文件 973 2019-09-17 12:15 android-29\androidx\rendersc
文件 1021 2019-09-17 12:15 android-29\androidx\rendersc
文件 1068 2019-09-17 12:15 android-29\androidx\rendersc
文件 978 2019-09-17 12:15 android-29\androidx\rendersc
文件 1028 2019-09-17 12:15 android-29\androidx\rendersc
文件 1077 2019-09-17 12:15 android-29\androidx\rendersc
............此处省略12371个文件信息
评论
共有 条评论