Lines Matching refs:client

149             // really bad.  The result will be a 3-second delay in starting each new client.
157 + " failed to respond to cancel, starting client "
220 ClientMonitor client = mCurrentClient;
221 if (client != null && client.onError(error)) {
222 removeClient(client);
224 if (DEBUG) Slog.v(TAG, "handleError(client="
225 + (client != null ? client.getOwnerString() : "null") + ", error = " + error + ")");
226 // This is the magic code that starts the next client when the old client finishes.
230 if (DEBUG) Slog.v(TAG, "start pending client " + mPendingClient.getOwnerString());
238 ClientMonitor client = mCurrentClient;
239 if (client != null && client.onRemoved(fingerId, groupId)) {
240 removeClient(client);
245 ClientMonitor client = mCurrentClient;
246 if (client != null && client.onAuthenticated(fingerId, groupId)) {
247 removeClient(client);
252 ClientMonitor client = mCurrentClient;
253 if (client != null && client.onAcquired(acquiredInfo)) {
254 removeClient(client);
259 ClientMonitor client = mCurrentClient;
260 if (client != null && client.onEnrollResult(fingerId, groupId, remaining)) {
261 removeClient(client);
274 private void removeClient(ClientMonitor client) {
275 if (client != null) {
276 client.destroy();
277 if (client != mCurrentClient && mCurrentClient != null) {
278 Slog.w(TAG, "Unexpected client: " + client.getOwnerString() + "expected: "
283 if (DEBUG) Slog.v(TAG, "Done with client: " + client.getOwnerString());
338 * @param newClient the new client that wants to connect
344 if (DEBUG) Slog.v(TAG, "request stop current client " + currentClient.getOwnerString());
351 if (DEBUG) Slog.v(TAG, "starting client "
366 RemovalClient client = new RemovalClient(getContext(), mHalDeviceId, token,
378 startClient(client, true);
503 AuthenticationClient client = new AuthenticationClient(getContext(), mHalDeviceId, token,
534 // Don't bother starting the client. Just send the error message.
535 if (!client.onError(FingerprintManager.FINGERPRINT_ERROR_LOCKOUT)) {
536 Slog.w(TAG, "Cannot send timeout message to client");
540 startClient(client, true /* initiatedByClient */);
550 EnrollClient client = new EnrollClient(getContext(), mHalDeviceId, token, receiver,
563 startClient(client, true /* initiatedByClient */);
726 ClientMonitor client = mCurrentClient;
727 if (client instanceof EnrollClient && client.getToken() == token) {
728 client.stop(client.getToken() == token);
767 ClientMonitor client = mCurrentClient;
768 if (client instanceof AuthenticationClient) {
769 if (client.getToken() == token) {
770 if (DEBUG) Slog.v(TAG, "stop client " + client.getOwnerString());
771 client.stop(client.getToken() == token);
773 if (DEBUG) Slog.v(TAG, "can't stop client "
774 + client.getOwnerString() + " since tokens don't match");
776 } else if (client != null) {
777 if (DEBUG) Slog.v(TAG, "can't cancel non-authenticating client "
778 + client.getOwnerString());