Home
last modified time | relevance | path

Searched refs:callbackType (Results 1 – 10 of 10) sorted by relevance

/frameworks/base/core/java/android/bluetooth/le/
DScanSettings.java204 private ScanSettings(int scanMode, int callbackType, int scanResultType, in ScanSettings() argument
208 mCallbackType = callbackType; in ScanSettings()
293 public Builder setCallbackType(int callbackType) { in setCallbackType() argument
295 if (!isValidCallbackType(callbackType)) { in setCallbackType()
296 throw new IllegalArgumentException("invalid callback type - " + callbackType); in setCallbackType()
298 mCallbackType = callbackType; in setCallbackType()
303 private boolean isValidCallbackType(int callbackType) { in isValidCallbackType() argument
304 if (callbackType == CALLBACK_TYPE_ALL_MATCHES || in isValidCallbackType()
305 callbackType == CALLBACK_TYPE_FIRST_MATCH || in isValidCallbackType()
306 callbackType == CALLBACK_TYPE_MATCH_LOST) { in isValidCallbackType()
[all …]
DBluetoothLeScanner.java556 final int callbackType = settings.getCallbackType(); in isSettingsConfigAllowedForScan() local
558 if (callbackType == ScanSettings.CALLBACK_TYPE_ALL_MATCHES in isSettingsConfigAllowedForScan()
567 final int callbackType = settings.getCallbackType(); in isSettingsAndFilterComboAllowed() local
569 if ((callbackType & (ScanSettings.CALLBACK_TYPE_FIRST_MATCH in isSettingsAndFilterComboAllowed()
584 final int callbackType = settings.getCallbackType(); in isHardwareResourcesAvailableForScan() local
585 if ((callbackType & ScanSettings.CALLBACK_TYPE_FIRST_MATCH) != 0 in isHardwareResourcesAvailableForScan()
586 || (callbackType & ScanSettings.CALLBACK_TYPE_MATCH_LOST) != 0) { in isHardwareResourcesAvailableForScan()
DScanCallback.java70 public void onScanResult(int callbackType, ScanResult result) { in onScanResult() argument
/frameworks/base/core/java/android/view/
DChoreographer.java369 public void postCallback(int callbackType, Runnable action, Object token) { in postCallback() argument
370 postCallbackDelayed(callbackType, action, token, 0); in postCallback()
387 public void postCallbackDelayed(int callbackType, in postCallbackDelayed() argument
392 if (callbackType < 0 || callbackType > CALLBACK_LAST) { in postCallbackDelayed()
396 postCallbackDelayedInternal(callbackType, action, token, delayMillis); in postCallbackDelayed()
399 private void postCallbackDelayedInternal(int callbackType, in postCallbackDelayedInternal() argument
402 Log.d(TAG, "PostCallback: type=" + callbackType in postCallbackDelayedInternal()
410 mCallbackQueues[callbackType].addCallbackLocked(dueTime, action, token); in postCallbackDelayedInternal()
416 msg.arg1 = callbackType; in postCallbackDelayedInternal()
436 public void removeCallbacks(int callbackType, Runnable action, Object token) { in removeCallbacks() argument
[all …]
/frameworks/base/services/core/java/com/android/server/connectivity/tethering/
DUpstreamNetworkMonitor.java235 private void handleAvailable(int callbackType, Network network) { in handleAvailable() argument
246 switch (callbackType) { in handleAvailable()
349 private void handleSuspended(int callbackType, Network network) { in handleSuspended() argument
350 if (callbackType != CALLBACK_LISTEN_ALL) return; in handleSuspended()
355 private void handleResumed(int callbackType, Network network) { in handleResumed() argument
356 if (callbackType != CALLBACK_LISTEN_ALL) return; in handleResumed()
361 private void handleLost(int callbackType, Network network) { in handleLost() argument
362 if (callbackType == CALLBACK_TRACK_DEFAULT) { in handleLost()
412 UpstreamNetworkCallback(int callbackType) { in UpstreamNetworkCallback() argument
413 mCallbackType = callbackType; in UpstreamNetworkCallback()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkStatsObservers.java294 private void callCallback(int callbackType) { in callCallback() argument
298 msg.what = callbackType; in callCallback()
302 Slog.v(TAG, "sending notification " + callbackTypeToName(callbackType) in callCallback()
321 private String callbackTypeToName(int callbackType) { in callbackTypeToName() argument
322 switch (callbackType) { in callbackTypeToName()
/frameworks/base/packages/CompanionDeviceManager/src/com/android/companiondevicemanager/
DDeviceDiscoveryService.java423 public void onScanResult(int callbackType, ScanResult result) { in onScanResult() argument
426 "BLE.onScanResult(callbackType = " + callbackType + ", result = " + result in onScanResult()
432 if (callbackType == ScanSettings.CALLBACK_TYPE_MATCH_LOST) { in onScanResult()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyboard/
DKeyboardUI.java575 public void onScanResult(int callbackType, ScanResult result) { in onScanResult() argument
577 Slog.d(TAG, "onScanResult(" + callbackType + ", " + result + ")"); in onScanResult()
/frameworks/base/tests/net/java/com/android/server/
DConnectivityServiceTest.java2907 public CallbackType callbackType; field in ConnectivityServiceTest.TestKeepaliveCallback.CallbackValue
2911 this.callbackType = type; in CallbackValue()
2917 this.callbackType = type; in CallbackValue()
2925 this.callbackType == ((CallbackValue) o).callbackType && in equals()
2931 return String.format("%s(%s, %d)", getClass().getSimpleName(), callbackType, error); in toString()
2958 fail(callbackValue.callbackType + " callback not seen after " + TIMEOUT_MS + " ms"); in expectCallback()
/frameworks/base/core/java/android/bluetooth/
DBluetoothAdapter.java2427 public void onScanResult(int callbackType, ScanResult result) { in startLeScan()
2428 if (callbackType != ScanSettings.CALLBACK_TYPE_ALL_MATCHES) { in startLeScan()