Java Code Examples for android.view.accessibility.AccessibilityManager#getInstalledAccessibilityServiceList()

The following examples show how to use android.view.accessibility.AccessibilityManager#getInstalledAccessibilityServiceList() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: USSDController.java    From VoIpUSSD with Apache License 2.0 5 votes vote down vote up
protected static boolean isAccessiblityServicesEnable(Context context) {
    AccessibilityManager am = (AccessibilityManager) context
            .getSystemService(Context.ACCESSIBILITY_SERVICE);
    if (am != null) {
        for (AccessibilityServiceInfo service : am.getInstalledAccessibilityServiceList()) {
            if (service.getId().contains(context.getPackageName())) {
                return USSDController.isAccessibilitySettingsOn(context, service.getId());
            }
        }
    }
    return false;
}
 
Example 2
Source File: ButlerService.java    From test-butler with Apache License 2.0 5 votes vote down vote up
@Override
public void onCreate() {
    super.onCreate();

    Log.d(TAG, "ButlerService starting up...");

    AppSettingsAccessor settings = new AppSettingsAccessor(getContentResolver());

    gsmDataDisabler = new GsmDataDisabler();
    permissionGranter = new PermissionGranter();
    InstalledAccessibilityServiceProvider serviceProvider = new InstalledAccessibilityServiceProvider() {
        @NonNull
        @Override
        public List<AccessibilityServiceInfo> getInstalledAccessibilityServiceList() {
            AccessibilityManager manager = (AccessibilityManager) getApplicationContext()
                    .getSystemService(ACCESSIBILITY_SERVICE);
            if (manager == null) {
                return Collections.emptyList();
            }
            return manager.getInstalledAccessibilityServiceList();
        }
    };
    accessibilityServiceEnabler = new AccessibilityServiceEnabler(serviceProvider, settings);
    accessibilityServiceWaiter = new AccessibilityServiceWaiter();
    locks = new CommonDeviceLocks();
    locks.acquire(this);

    butlerApi.onCreate(settings);

    // Install custom IActivityController to prevent system dialogs from appearing if apps crash or ANR
    NoDialogActivityController.install();
}
 
Example 3
Source File: i.java    From MiBandDecompiled with Apache License 2.0 4 votes vote down vote up
public static List a(AccessibilityManager accessibilitymanager)
{
    return accessibilitymanager.getInstalledAccessibilityServiceList();
}
 
Example 4
Source File: AccessibilityManagerCompatIcs.java    From CodenameOne with GNU General Public License v2.0 4 votes vote down vote up
public static List<AccessibilityServiceInfo> getInstalledAccessibilityServiceList(
        AccessibilityManager manager) {
    return manager.getInstalledAccessibilityServiceList();
}
 
Example 5
Source File: AccessibilityManagerCompatIcs.java    From adt-leanback-support with Apache License 2.0 4 votes vote down vote up
public static List<AccessibilityServiceInfo> getInstalledAccessibilityServiceList(
        AccessibilityManager manager) {
    return manager.getInstalledAccessibilityServiceList();
}
 
Example 6
Source File: AccessibilityManagerCompatIcs.java    From V.FlyoutTest with MIT License 4 votes vote down vote up
public static List<AccessibilityServiceInfo> getInstalledAccessibilityServiceList(
        AccessibilityManager manager) {
    return manager.getInstalledAccessibilityServiceList();
}
 
Example 7
Source File: AccessibilityManagerCompatIcs.java    From guideshow with MIT License 4 votes vote down vote up
public static List<AccessibilityServiceInfo> getInstalledAccessibilityServiceList(
        AccessibilityManager manager) {
    return manager.getInstalledAccessibilityServiceList();
}