Lines Matching refs:client

241         final ClientState client;
249 return "SessionState{uid " + client.uid + " pid " + client.pid
260 client = _client;
268 final IInputMethodClient client;
286 client = _client;
324 * The client that is currently bound to an input method.
330 * from the input method client. If the window state is already changed before the report is
336 * The client by which {@link #mCurFocusedWindow} was reported. Used only for debugging.
341 * The input context last provided by the current client.
346 * The missing method flags for the input context last provided by the current client.
353 * The attributes last provided by the current client.
377 // Was the keyguard locked when this client became current?
387 * Set if the client has asked for the input method to be shown.
1226 public void addClient(IInputMethodClient client,
1232 mClients.put(client.asBinder(), new ClientState(client,
1238 public void removeClient(IInputMethodClient client) {
1243 ClientState cs = mClients.remove(client.asBinder());
1268 if (DEBUG) Slog.v(TAG, "unbindCurrentInputLocked: client="
1269 + mCurClient.client.asBinder());
1278 executeOrSendMessage(mCurClient.client, mCaller.obtainMessageIO(
1280 executeOrSendMessage(mCurClient.client, mCaller.obtainMessageIIO(
1281 MSG_UNBIND_CLIENT, mCurSeq, unbindClientReason, mCurClient.client));
1337 IInputMethodClient client, IInputContext inputContext,
1345 ClientState cs = mClients.get(client.asBinder());
1347 throw new IllegalArgumentException("unknown client "
1348 + client.asBinder());
1358 if (!mIWindowManager.inputMethodClientHasFocus(cs.client)) {
1359 // Check with the window manager to make sure this client actually
1362 // next client receiving focus that has any interest in input will
1364 Slog.w(TAG, "Starting input on non-focused client " + cs.client
1385 Slog.e(TAG, "Rejecting this client as it reported an invalid package name."
1391 // Was the keyguard locked when switching over to the new client?
1393 // If the client is changing, we need to switch over to the new
1396 if (DEBUG) Slog.v(TAG, "switching to client: client="
1397 + cs.client.asBinder() + " keyguard=" + mCurClientInKeyguard);
1399 // If the screen is on, inform the new client it is active
1401 executeOrSendMessage(cs.client, mCaller.obtainMessageIO(
1406 // Bump up the sequence for this client and attach it.
1424 // Return to client, and we will get back with it when
1434 // the client and wait to get the service interface so
1500 IInputMethodClient client, IInputContext inputContext,
1510 + " client = " + client.asBinder()
1519 return startInputLocked(startInputReason, client, inputContext, missingMethods,
1528 public void finishInput(IInputMethodClient client) {
1563 executeOrSendMessage(mCurClient.client, mCaller.obtainMessageOO(
1564 MSG_BIND_CLIENT, mCurClient.client, res));
1612 if (DEBUG) Slog.v(TAG, "Creating new session for client " + cs);
1674 executeOrSendMessage(mCurClient.client, mCaller.obtainMessageIIO(
1676 mCurSeq, mCurClient.client));
2069 public boolean showSoftInput(IInputMethodClient client, int flags,
2078 if (mCurClient == null || client == null
2079 || mCurClient.client.asBinder() != client.asBinder()) {
2081 // We need to check if this is the current client with
2084 if (!mIWindowManager.inputMethodClientHasFocus(client)) {
2085 Slog.w(TAG, "Ignoring showSoftInput of uid " + uid + ": " + client);
2135 // The client has asked to have the input method shown, but
2156 public boolean hideSoftInput(IInputMethodClient client, int flags,
2165 if (mCurClient == null || client == null
2166 || mCurClient.client.asBinder() != client.asBinder()) {
2168 // We need to check if this is the current client with
2171 if (!mIWindowManager.inputMethodClientHasFocus(client)) {
2173 + uid + ": " + client);
2236 IInputMethodClient client, IBinder windowToken, int controlFlags, int softInputMode,
2240 return windowGainedFocus(startInputReason, client, windowToken, controlFlags,
2243 return startInput(startInputReason, client, inputContext, missingMethods, attribute,
2250 IInputMethodClient client, IBinder windowToken, int controlFlags, int softInputMode,
2261 + " client=" + client.asBinder()
2270 ClientState cs = mClients.get(client.asBinder());
2272 throw new IllegalArgumentException("unknown client "
2273 + client.asBinder());
2277 if (!mIWindowManager.inputMethodClientHasFocus(cs.client)) {
2278 // Check with the window manager to make sure this client actually
2281 // next client receiving focus that has any interest in input will
2283 Slog.w(TAG, "Focus gain on non-focused client " + cs.client
2299 Slog.w(TAG, "Window already focused, ignoring focus gain of: " + client
2410 IInputMethodClient client, int auxiliarySubtypeMode) {
2415 if (mCurClient == null || client == null
2416 || mCurClient.client.asBinder() != client.asBinder()) {
2418 + Binder.getCallingUid() + ": " + client);
2454 IInputMethodClient client, String inputMethodId) {
2920 // There is nothing interesting about the last client dying.
2925 IInputMethodClient client = (IInputMethodClient)args.arg1;
2928 client.onBindMethod(res);
2934 if (res.channel != null && Binder.isProxy(client)) {
2943 ((ClientState)msg.obj).client.setActive(msg.arg1 != 0);
2960 clientState.client.setUserActionNotificationSequenceNumber(sequenceNumber);
2988 // Inform the current client of the change in active status
2989 if (mCurClient != null && mCurClient.client != null) {
2990 executeOrSendMessage(mCurClient.client, mCaller.obtainMessageIO(
3438 if (mCurClient != null && mCurClient.client != null) {
3439 executeOrSendMessage(mCurClient.client, mCaller.obtainMessageIO(
3979 ClientState client;
3996 p.println(" client=" + ci.client);
4002 client = mCurClient;
4003 p.println(" mCurClient=" + client + " mCurSeq=" + mCurSeq);
4030 if (client != null) {
4033 client.client.asBinder().dump(fd, args);
4035 p.println("Input method client dead: " + e);
4038 p.println("No input method client.");
4041 if (focusedWindowClient != null && client != focusedWindowClient) {
4043 p.println("Warning: Current input method client doesn't match the last focused. "
4045 p.println("Dumping input method client in the last focused window just in case.");
4049 focusedWindowClient.client.asBinder().dump(fd, args);
4051 p.println("Input method client in focused window dead: " + e);