Home
last modified time | relevance | path

Searched refs:callbackType (Results 1 – 11 of 11) 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()
292 public Builder setCallbackType(int callbackType) { in setCallbackType() argument
294 if (!isValidCallbackType(callbackType)) { in setCallbackType()
295 throw new IllegalArgumentException("invalid callback type - " + callbackType); in setCallbackType()
297 mCallbackType = callbackType; in setCallbackType()
302 private boolean isValidCallbackType(int callbackType) { in isValidCallbackType() argument
303 if (callbackType == CALLBACK_TYPE_ALL_MATCHES in isValidCallbackType()
304 || callbackType == CALLBACK_TYPE_FIRST_MATCH in isValidCallbackType()
305 || callbackType == CALLBACK_TYPE_MATCH_LOST) { in isValidCallbackType()
[all …]
DBluetoothLeScanner.java574 final int callbackType = settings.getCallbackType(); in isSettingsConfigAllowedForScan() local
576 if (callbackType == ScanSettings.CALLBACK_TYPE_ALL_MATCHES in isSettingsConfigAllowedForScan()
585 final int callbackType = settings.getCallbackType(); in isSettingsAndFilterComboAllowed() local
587 if ((callbackType & (ScanSettings.CALLBACK_TYPE_FIRST_MATCH in isSettingsAndFilterComboAllowed()
602 final int callbackType = settings.getCallbackType(); in isHardwareResourcesAvailableForScan() local
603 if ((callbackType & ScanSettings.CALLBACK_TYPE_FIRST_MATCH) != 0 in isHardwareResourcesAvailableForScan()
604 || (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.java418 public void postCallback(int callbackType, Runnable action, Object token) { in postCallback() argument
419 postCallbackDelayed(callbackType, action, token, 0); in postCallback()
438 public void postCallbackDelayed(int callbackType, in postCallbackDelayed() argument
443 if (callbackType < 0 || callbackType > CALLBACK_LAST) { in postCallbackDelayed()
447 postCallbackDelayedInternal(callbackType, action, token, delayMillis); in postCallbackDelayed()
450 private void postCallbackDelayedInternal(int callbackType, in postCallbackDelayedInternal() argument
453 Log.d(TAG, "PostCallback: type=" + callbackType in postCallbackDelayedInternal()
461 mCallbackQueues[callbackType].addCallbackLocked(dueTime, action, token); in postCallbackDelayedInternal()
467 msg.arg1 = callbackType; in postCallbackDelayedInternal()
489 public void removeCallbacks(int callbackType, Runnable action, Object token) { in removeCallbacks() argument
[all …]
/frameworks/base/services/core/java/com/android/server/net/
DNetworkStatsObservers.java291 private void callCallback(int callbackType) { in callCallback() argument
295 msg.what = callbackType; in callCallback()
299 Slog.v(TAG, "sending notification " + callbackTypeToName(callbackType) in callCallback()
318 private String callbackTypeToName(int callbackType) { in callbackTypeToName() argument
319 switch (callbackType) { in callbackTypeToName()
/frameworks/base/packages/CompanionDeviceManager/src/com/android/companiondevicemanager/
DDeviceDiscoveryService.java448 public void onScanResult(int callbackType, ScanResult result) { in onScanResult() argument
451 "BLE.onScanResult(callbackType = " + callbackType + ", result = " + result in onScanResult()
457 if (callbackType == ScanSettings.CALLBACK_TYPE_MATCH_LOST) { in onScanResult()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
DPasspointProvisioner.java677 private void invokeProvisioningCallback(int callbackType, int status) { in invokeProvisioningCallback() argument
679 Log.e(TAG, "Provisioning callback " + callbackType + " with status " + status in invokeProvisioningCallback()
684 if (callbackType == PROVISIONING_STATUS) { in invokeProvisioningCallback()
690 Log.e(TAG, "Remote Exception while posting callback type=" + callbackType in invokeProvisioningCallback()
/frameworks/base/packages/Tethering/src/com/android/networkstack/tethering/
DUpstreamNetworkMonitor.java438 UpstreamNetworkCallback(int callbackType) { in UpstreamNetworkCallback() argument
439 mCallbackType = callbackType; in UpstreamNetworkCallback()
/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.java3872 public CallbackType callbackType; field in ConnectivityServiceTest.TestKeepaliveCallback.CallbackValue
3876 this.callbackType = type; in CallbackValue()
3882 this.callbackType = type; in CallbackValue()
3890 this.callbackType == ((CallbackValue) o).callbackType && in equals()
3896 return String.format("%s(%s, %d)", getClass().getSimpleName(), callbackType, error); in toString()
3939 public CallbackType callbackType; field in ConnectivityServiceTest.TestSocketKeepaliveCallback.CallbackValue
3943 this.callbackType = type; in CallbackValue()
3949 this.callbackType = type; in CallbackValue()
3957 && this.callbackType == ((CallbackValue) o).callbackType in equals()
3963 return String.format("%s(%s, %d)", getClass().getSimpleName(), callbackType, in toString()
/frameworks/base/core/java/android/bluetooth/
DBluetoothAdapter.java3188 public void onScanResult(int callbackType, ScanResult result) { in startLeScan()
3189 if (callbackType != ScanSettings.CALLBACK_TYPE_ALL_MATCHES) { in startLeScan()