Lines Matching refs:ci

203             ClientInfo ci = mClients.get(msg.replyTo);
204 if (ci == null) {
224 logScanRequest("registerScanListener", ci, msg.arg2, null, null, null);
225 mSingleScanListeners.addRequest(ci, msg.arg2, null, null);
229 logScanRequest("deregisterScanListener", ci, msg.arg2, null, null, null);
230 mSingleScanListeners.removeRequest(ci, msg.arg2);
335 private WorkSource computeWorkSource(ClientInfo ci, WorkSource requestedWorkSource) {
344 " from " + ci);
347 WorkSource callingWorkSource = new WorkSource(ci.getUid());
376 void addRequest(ClientInfo ci, int handler, WorkSource reqworkSource, T settings) {
377 add(new RequestInfo<T>(ci, handler, reqworkSource, settings));
380 T removeRequest(ClientInfo ci, int handlerId) {
385 if (entry.clientInfo == ci && entry.handlerId == handlerId) {
403 Collection<T> getAllSettingsForClient(ClientInfo ci) {
408 if (entry.clientInfo == ci) {
415 void removeAllForClient(ClientInfo ci) {
419 if (entry.clientInfo == ci) {
594 ClientInfo ci = mClients.get(msg.replyTo);
602 logCallback("singleScanInvalidRequest", ci, handler, "null params");
611 if (validateScanRequest(ci, handler, scanSettings, workSource)) {
612 logScanRequest("addSingleScanRequest", ci, handler, workSource,
623 mActiveScans.addRequest(ci, handler, workSource, scanSettings);
625 mPendingScans.addRequest(ci, handler, workSource, scanSettings);
628 mPendingScans.addRequest(ci, handler, workSource, scanSettings);
632 logCallback("singleScanInvalidRequest", ci, handler, "bad request");
639 removeSingleScanRequest(ci, msg.arg2);
717 boolean validateScanRequest(ClientInfo ci, int handler, ScanSettings settings,
719 if (ci == null) {
774 void removeSingleScanRequest(ClientInfo ci, int handler) {
775 if (ci != null) {
776 logScanRequest("removeSingleScanRequest", ci, handler, null, null, null);
777 mPendingScans.removeRequest(ci, handler);
778 mActiveScans.removeRequest(ci, handler);
782 void removeSingleScanRequests(ClientInfo ci) {
783 if (ci != null) {
784 logScanRequest("removeSingleScanRequests", ci, -1, null, null, null);
785 mPendingScans.removeAllForClient(ci);
786 mActiveScans.removeAllForClient(ci);
945 public Collection<ScanSettings> getBackgroundScanSettings(ClientInfo ci) {
946 return mActiveBackgroundScans.getAllSettingsForClient(ci);
949 public void removeBackgroundScanSettings(ClientInfo ci) {
950 mActiveBackgroundScans.removeAllForClient(ci);
1074 ClientInfo ci = mClients.get(msg.replyTo);
1093 if (addBackgroundScanRequest(ci, msg.arg2, scanSettings, workSource)) {
1101 removeBackgroundScanRequest(ci, msg.arg2);
1150 private boolean addBackgroundScanRequest(ClientInfo ci, int handler,
1153 if (ci == null) {
1201 logScanRequest("addBackgroundScanRequest", ci, handler, null, settings, null);
1202 mActiveBackgroundScans.addRequest(ci, handler, workSource, settings);
1207 mActiveBackgroundScans.removeRequest(ci, handler);
1270 private void removeBackgroundScanRequest(ClientInfo ci, int handler) {
1271 if (ci != null) {
1272 ScanSettings settings = mActiveBackgroundScans.removeRequest(ci, handler);
1273 logScanRequest("removeBackgroundScanRequest", ci, handler, null, settings, null);
1280 ClientInfo ci = entry.clientInfo;
1292 ci.reportEvent(WifiScanner.CMD_FULL_SCAN_RESULT, 0, handler, newResult);
1312 ClientInfo ci = entry.clientInfo;
1318 logCallback("backgroundScanResults", ci, handler,
1322 ci.reportEvent(WifiScanner.CMD_SCAN_RESULT, 0, handler, parcelableScanData);
1329 ClientInfo ci = entry.clientInfo;
1331 ci.reportEvent(WifiScanner.CMD_OP_FAILED, 0, handler,
1395 public void removePnoSettings(ClientInfo ci) {
1396 mActivePnoScans.removeAllForClient(ci);
1458 ClientInfo ci = mClients.get(msg.replyTo);
1502 ClientInfo ci = mClients.get(msg.replyTo);
1515 if (addHwPnoScanRequest(ci, msg.arg2, scanSettings, pnoSettings)) {
1523 removeHwPnoScanRequest(ci, msg.arg2);
1563 ClientInfo ci = mClients.get(msg.replyTo);
1601 ClientInfo ci = mClients.get(msg.replyTo);
1614 if (addSwPnoScanRequest(ci, msg.arg2, scanSettings, pnoSettings)) {
1622 removeSwPnoScanRequest(ci, msg.arg2);
1688 private void addInternalClient(ClientInfo ci) {
1691 new InternalClientInfo(ci.getUid(), new Messenger(this.getHandler()));
1698 private void addPnoScanRequest(ClientInfo ci, int handler, ScanSettings scanSettings,
1700 mActivePnoScans.addRequest(ci, handler, WifiStateMachine.WIFI_WORK_SOURCE,
1702 addInternalClient(ci);
1705 private Pair<PnoSettings, ScanSettings> removePnoScanRequest(ClientInfo ci, int handler) {
1706 Pair<PnoSettings, ScanSettings> settings = mActivePnoScans.removeRequest(ci, handler);
1710 private boolean addHwPnoScanRequest(ClientInfo ci, int handler, ScanSettings scanSettings,
1712 if (ci == null) {
1725 logScanRequest("addHwPnoScanRequest", ci, handler, null, scanSettings, pnoSettings);
1726 addPnoScanRequest(ci, handler, scanSettings, pnoSettings);
1734 private void removeHwPnoScanRequest(ClientInfo ci, int handler) {
1735 if (ci != null) {
1736 Pair<PnoSettings, ScanSettings> settings = removePnoScanRequest(ci, handler);
1737 logScanRequest("removeHwPnoScanRequest", ci, handler, null,
1742 private boolean addSwPnoScanRequest(ClientInfo ci, int handler, ScanSettings scanSettings,
1744 if (ci == null) {
1752 logScanRequest("addSwPnoScanRequest", ci, handler, null, scanSettings, pnoSettings);
1753 addPnoScanRequest(ci, handler, scanSettings, pnoSettings);
1762 private void removeSwPnoScanRequest(ClientInfo ci, int handler) {
1763 if (ci != null) {
1764 Pair<PnoSettings, ScanSettings> settings = removePnoScanRequest(ci, handler);
1765 logScanRequest("removeSwPnoScanRequest", ci, handler, null,
1774 ClientInfo ci = entry.clientInfo;
1776 logCallback("pnoNetworkFound", ci, handler, describeForLog(results));
1777 ci.reportEvent(
1784 ClientInfo ci = entry.clientInfo;
1786 ci.reportEvent(WifiScanner.CMD_OP_FAILED, 0, handler,
2165 void logScanRequest(String request, ClientInfo ci, int id, WorkSource workSource,
2170 .append((ci == null) ? "ClientInfo[unknown]" : ci.toString())
2187 void logCallback(String callback, ClientInfo ci, int id, String extra) {
2191 .append((ci == null) ? "ClientInfo[unknown]" : ci.toString())