Example usage for android.view.accessibility AccessibilityManager AUTOCLICK_DELAY_DEFAULT

List of usage examples for android.view.accessibility AccessibilityManager AUTOCLICK_DELAY_DEFAULT

Introduction

In this page you can find the example usage for android.view.accessibility AccessibilityManager AUTOCLICK_DELAY_DEFAULT.

Prototype

int AUTOCLICK_DELAY_DEFAULT

To view the source code for android.view.accessibility AccessibilityManager AUTOCLICK_DELAY_DEFAULT.

Click Source Link

Usage

From source file:com.android.settings.accessibility.AccessibilitySettings.java

private void updateAutoclickSummary(Preference pref) {
    final boolean enabled = Settings.Secure.getInt(getContentResolver(),
            Settings.Secure.ACCESSIBILITY_AUTOCLICK_ENABLED, 0) == 1;
    if (!enabled) {
        pref.setSummary(R.string.accessibility_feature_state_off);
        return;/*w w  w  .  j av a  2 s. c  o m*/
    }
    int delay = Settings.Secure.getInt(getContentResolver(), Settings.Secure.ACCESSIBILITY_AUTOCLICK_DELAY,
            AccessibilityManager.AUTOCLICK_DELAY_DEFAULT);
    pref.setSummary(ToggleAutoclickPreferenceFragment.getAutoclickPreferenceSummary(getResources(), delay));
}