Lines Matching refs:state

48  * Manages persistent state recorded by the input manager service as an XML file.
53 * <input-mananger-state>
57 * >/input-manager-state>
63 // Input device state by descriptor.
75 mAtomicFile = new AtomicFile(new File("/data/system/input-manager-state.xml"));
86 InputDeviceState state = getInputDeviceState(inputDeviceDescriptor, false);
87 return state != null ? state.getCurrentKeyboardLayout() : null;
92 InputDeviceState state = getInputDeviceState(inputDeviceDescriptor, true);
93 if (state.setCurrentKeyboardLayout(keyboardLayoutDescriptor)) {
101 InputDeviceState state = getInputDeviceState(inputDeviceDescriptor, false);
102 if (state == null) {
105 return state.getKeyboardLayouts();
110 InputDeviceState state = getInputDeviceState(inputDeviceDescriptor, true);
111 if (state.addKeyboardLayout(keyboardLayoutDescriptor)) {
120 InputDeviceState state = getInputDeviceState(inputDeviceDescriptor, true);
121 if (state.removeKeyboardLayout(keyboardLayoutDescriptor)) {
129 InputDeviceState state = getInputDeviceState(inputDeviceDescriptor, false);
130 if (state != null && state.switchKeyboardLayout(direction)) {
139 for (InputDeviceState state : mInputDevices.values()) {
140 if (state.removeUninstalledKeyboardLayouts(availableKeyboardLayouts)) {
154 InputDeviceState state = mInputDevices.get(inputDeviceDescriptor);
155 if (state == null && createIfAbsent) {
156 state = new InputDeviceState();
157 mInputDevices.put(inputDeviceDescriptor, state);
160 return state;
229 XmlUtils.beginDocument(parser, "input-manager-state");
252 InputDeviceState state = new InputDeviceState();
253 state.loadFromXml(parser);
254 mInputDevices.put(descriptor, state);
262 serializer.startTag(null, "input-manager-state");
266 final InputDeviceState state = entry.getValue();
269 state.saveToXml(serializer);
273 serializer.endTag(null, "input-manager-state");