List of usage examples for android.view.accessibility AccessibilityEvent setPassword
public void setPassword(boolean isPassword)
From source file:org.mozilla.gecko.GeckoAppShell.java
public static void emitGeckoAccessibilityEvent(int eventType, String role, String text, String description, boolean enabled, boolean checked, boolean password) { AccessibilityManager accessibilityManager = (AccessibilityManager) GeckoApp.mAppContext .getSystemService(Context.ACCESSIBILITY_SERVICE); if (!accessibilityManager.isEnabled()) return;//from ww w. j a v a 2s. co m LayerController layerController = GeckoApp.mAppContext.getLayerController(); LayerView layerView = layerController.getView(); AccessibilityEvent event = AccessibilityEvent.obtain(eventType); event.setClassName(layerView.getClass().getName() + "$" + role); event.setPackageName(GeckoApp.mAppContext.getPackageName()); event.setEnabled(enabled); event.setChecked(checked); event.setPassword(password); event.setContentDescription(description); event.getText().add(text); accessibilityManager.sendAccessibilityEvent(event); }