Lines Matching defs:client

209         final ClientState client;
215 return "SessionState{uid " + client.uid + " pid " + client.pid
225 client = _client;
232 final IInputMethodClient client;
250 client = _client;
278 * The client that is currently bound to an input method.
288 * The input context last provided by the current client.
293 * The attributes last provided by the current client.
320 * Set if the client has asked for the input method to be shown.
411 // Inform the current client of the change in active status
412 if (mCurClient != null && mCurClient.client != null) {
413 executeOrSendMessage(mCurClient.client, mCaller.obtainMessageIO(
995 public void addClient(IInputMethodClient client,
1001 mClients.put(client.asBinder(), new ClientState(client,
1007 public void removeClient(IInputMethodClient client) {
1012 mClients.remove(client.asBinder());
1027 if (DEBUG) Slog.v(TAG, "unbindCurrentInputLocked: client = "
1028 + mCurClient.client.asBinder());
1037 executeOrSendMessage(mCurClient.client, mCaller.obtainMessageIO(
1039 executeOrSendMessage(mCurClient.client, mCaller.obtainMessageIO(
1040 MSG_UNBIND_METHOD, mCurSeq, mCurClient.client));
1090 InputBindResult startInputLocked(IInputMethodClient client,
1097 ClientState cs = mClients.get(client.asBinder());
1099 throw new IllegalArgumentException("unknown client "
1100 + client.asBinder());
1104 if (!mIWindowManager.inputMethodClientHasFocus(cs.client)) {
1105 // Check with the window manager to make sure this client actually
1108 // next client receiving focus that has any interest in input will
1110 Slog.w(TAG, "Starting input on non-focused client " + cs.client
1128 // If the client is changing, we need to switch over to the new
1131 if (DEBUG) Slog.v(TAG, "switching to client: client = "
1132 + cs.client.asBinder());
1134 // If the screen is on, inform the new client it is active
1136 executeOrSendMessage(cs.client, mCaller.obtainMessageIO(
1141 // Bump up the sequence for this client and attach it.
1160 if (DEBUG) Slog.v(TAG, "Creating new session for client " + cs);
1165 // Return to client, and we will get back with it when
1173 // the client and wait to get the service interface so
1234 public InputBindResult startInput(IInputMethodClient client,
1242 return startInputLocked(client, inputContext, attribute, controlFlags);
1250 public void finishInput(IInputMethodClient client) {
1267 if (DEBUG) Slog.v(TAG, "Creating first session while with client "
1287 executeOrSendMessage(mCurClient.client, mCaller.obtainMessageOO(
1288 MSG_BIND_METHOD, mCurClient.client, res));
1323 executeOrSendMessage(mCurClient.client, mCaller.obtainMessageIO(
1324 MSG_UNBIND_METHOD, mCurSeq, mCurClient.client));
1370 executeOrSendMessage(mCurClient.client, mCaller.obtainMessageIO(
1371 MSG_UNBIND_METHOD, mCurSeq, mCurClient.client));
1666 public boolean showSoftInput(IInputMethodClient client, int flags,
1675 if (mCurClient == null || client == null
1676 || mCurClient.client.asBinder() != client.asBinder()) {
1678 // We need to check if this is the current client with
1681 if (!mIWindowManager.inputMethodClientHasFocus(client)) {
1682 Slog.w(TAG, "Ignoring showSoftInput of uid " + uid + ": " + client);
1726 // The client has asked to have the input method shown, but
1747 public boolean hideSoftInput(IInputMethodClient client, int flags,
1756 if (mCurClient == null || client == null
1757 || mCurClient.client.asBinder() != client.asBinder()) {
1759 // We need to check if this is the current client with
1762 if (!mIWindowManager.inputMethodClientHasFocus(client)) {
1764 + uid + ": " + client);
1814 public InputBindResult windowGainedFocus(IInputMethodClient client, IBinder windowToken,
1824 if (DEBUG) Slog.v(TAG, "windowGainedFocus: " + client.asBinder()
1829 ClientState cs = mClients.get(client.asBinder());
1831 throw new IllegalArgumentException("unknown client "
1832 + client.asBinder());
1836 if (!mIWindowManager.inputMethodClientHasFocus(cs.client)) {
1837 // Check with the window manager to make sure this client actually
1840 // next client receiving focus that has any interest in input will
1842 Slog.w(TAG, "Focus gain on non-focused client " + cs.client
1850 Slog.w(TAG, "Window already focused, ignoring focus gain of: " + client
1959 public void showInputMethodPickerFromClient(IInputMethodClient client) {
1964 if (mCurClient == null || client == null
1965 || mCurClient.client.asBinder() != client.asBinder()) {
1967 + Binder.getCallingUid() + ": " + client);
2001 IInputMethodClient client, String inputMethodId) {
2006 if (mCurClient == null || client == null
2007 || mCurClient.client.asBinder() != client.asBinder()) {
2008 Slog.w(TAG, "Ignoring showInputMethodAndSubtypeEnablerFromClient of: " + client);
2354 // There is nothing interesting about the last client dying.
2369 ((ClientState)msg.obj).client.setActive(msg.arg1 != 0);
4079 ClientState client;
4095 p.println(" client=" + ci.client);
4101 client = mCurClient;
4102 p.println(" mCurClient=" + client + " mCurSeq=" + mCurSeq);
4119 if (client != null) {
4122 client.client.asBinder().dump(fd, args);
4124 p.println("Input method client dead: " + e);
4127 p.println("No input method client.");