Home
last modified time | relevance | path

Searched refs:obtain (Results 1 – 25 of 855) sorted by relevance

12345678910>>...35

/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/mapclient/
DMapClientStateMachineTest.java171 Message msg = Message.obtain(mHandler, MceStateMachine.MSG_MAS_DISCONNECTED); in testStateTransitionFromConnectingToDisconnected()
192 Message msg = Message.obtain(mHandler, MceStateMachine.MSG_MAS_CONNECTED); in testStateTransitionFromConnectingToConnected()
214 Message msg = Message.obtain(mHandler, MceStateMachine.MSG_MAS_CONNECTED); in testStateTransitionFromConnectedWithMasDisconnected()
226 msg = Message.obtain(mHandler, MceStateMachine.MSG_MAS_DISCONNECTED); in testStateTransitionFromConnectedWithMasDisconnected()
243 Message msg = Message.obtain(mHandler, MceStateMachine.MSG_MAS_CONNECTED); in testReceiveEmptyEvent()
256 Message notification = Message.obtain(mHandler, MceStateMachine.MSG_NOTIFICATION); in testReceiveEmptyEvent()
267 Message msg = Message.obtain(mHandler, MceStateMachine.MSG_MAS_CONNECTED); in testSetMessageStatus()
293 Message msg = Message.obtain(mHandler, MceStateMachine.MSG_MAS_CONNECTED); in testDisconnect()
319 Message msg = Message.obtain(mHandler, MceStateMachine.MSG_MAS_CONNECTED); in testDisconnectTimeout()
351 Message msg = Message.obtain(mHandler, MceStateMachine.MSG_MAS_CONNECTED); in testSendSMSMessage()
[all …]
/packages/modules/Wifi/framework/tests/src/android/net/wifi/rtt/
DWifiRttManagerTest.java158 Parcel parcelW = Parcel.obtain(); in testRangingRequestParcel()
163 Parcel parcelR = Parcel.obtain(); in testRangingRequestParcel()
360 Parcel parcelW = Parcel.obtain(); in testRangingResultsParcel()
365 Parcel parcelR = Parcel.obtain(); in testRangingResultsParcel()
376 parcelW = Parcel.obtain(); in testRangingResultsParcel()
381 parcelR = Parcel.obtain(); in testRangingResultsParcel()
426 Parcel parcelW = Parcel.obtain(); in testResponderConfigParcel()
431 Parcel parcelR = Parcel.obtain(); in testResponderConfigParcel()
443 parcelW = Parcel.obtain(); in testResponderConfigParcel()
448 parcelR = Parcel.obtain(); in testResponderConfigParcel()
/packages/modules/Wifi/service/java/com/android/server/wifi/p2p/
DWifiP2pMonitor.java158 sendMessage(iface, Message.obtain(null, what)); in sendMessage()
162 sendMessage(iface, Message.obtain(null, what, obj)); in sendMessage()
166 sendMessage(iface, Message.obtain(null, what, arg1, 0)); in sendMessage()
170 sendMessage(iface, Message.obtain(null, what, arg1, arg2)); in sendMessage()
174 sendMessage(iface, Message.obtain(null, what, arg1, arg2, obj)); in sendMessage()
185 sendMessage(handler, Message.obtain(message)); in sendMessage()
203 sendMessage(handler, Message.obtain(message)); in sendMessage()
/packages/apps/DocumentsUI/src/com/android/documentsui/
DThumbnailCache.java86 return Result.obtain(Result.CACHE_HIT_EXACT, size, entry); in getThumbnail()
98 return Result.obtain(Result.CACHE_HIT_LARGER, otherSize, entry); in getThumbnail()
111 return Result.obtain(Result.CACHE_HIT_SMALLER, otherSize, entry); in getThumbnail()
222 return obtain(CACHE_MISS, null, null, 0); in obtainMiss()
225 private static Result obtain(@Status int status, Point size, Entry entry) { in obtain() method in ThumbnailCache.Result
226 return obtain(status, entry.mThumbnail, size, entry.mLastModified); in obtain()
229 private static Result obtain(@Status int status, @Nullable Bitmap thumbnail, in obtain() method in ThumbnailCache.Result
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/scanner/
DWifiScanningServiceTest.java309 controlChannel.sendMessage(Message.obtain(null, WifiScanner.CMD_START_BACKGROUND_SCAN, 0, in sendBackgroundScanRequest()
318 controlChannel.sendMessage(Message.obtain(null, WifiScanner.CMD_START_SINGLE_SCAN, 0, in sendSingleScanRequest()
324 controlChannel.sendMessage(Message.obtain(null, WifiScanner.CMD_REGISTER_SCAN_LISTENER, 0, in registerScanListener()
330 controlChannel.sendMessage(Message.obtain(null, WifiScanner.CMD_DEREGISTER_SCAN_LISTENER, 0, in deregisterScanListener()
473 controlChannel.sendMessage(Message.obtain(null, WifiScanner.CMD_ENABLE)); in setupAndLoadDriver()
572 controlChannel.sendMessage(Message.obtain(null, WifiScanner.CMD_ENABLE)); in duplicateScanEnableIsIgnored()
613 controlChannel.sendMessage(Message.obtain(null, Protocol.BASE_WIFI_MANAGER)); in sendInvalidCommand()
1251 controlChannel.sendMessage(Message.obtain(null, WifiScanner.CMD_DISABLE)); in sendSingleScanRequestThenDisableWifi()
1288 controlChannel.sendMessage(Message.obtain(null, WifiScanner.CMD_DISABLE)); in sendSingleScanRequestThenDisableWifiAfterScanCompleteButBeforeReportingResults()
1342 controlChannel.sendMessage(Message.obtain(null, WifiScanner.CMD_DISABLE)); in sendSingleScanAndPendingScanAndListenerThenDisableWifi()
[all …]
/packages/modules/Wifi/framework/tests/src/android/net/wifi/
DWifiScannerTest.java161 Parcel parcel = Parcel.obtain(); in parcelWriteRead()
187 Parcel parcel = Parcel.obtain(); in canSerializeAndDeserializePnoSettings()
242 Parcel parcel = Parcel.obtain(); in parcelWriteRead()
348 Message responseMessage = Message.obtain(); in testStartScanListenerOnSuccess()
380 Message responseMessage = Message.obtain(); in testStartScanListenerOnResults()
499 Parcel parcel = Parcel.obtain(); in testScanDataParcel()
525 Message responseMessage = Message.obtain(); in testRegisterScanListenerSuccess()
553 Message responseMessage = Message.obtain(); in testRegisterScanListenerFailed()
568 Message responseMessage = Message.obtain(); in testRegisterScanListenerFailed()
599 Message responseMessage = Message.obtain(); in testRegisterScanListenerReceiveScanResults()
[all …]
DWifiInfoTest.java146 Parcel parcel = Parcel.obtain(); in testWifiInfoRedactNoRedactions()
227 Parcel parcel = Parcel.obtain(); in testWifiInfoRedactLocationSensitiveInfo()
253 Parcel parcel = Parcel.obtain(); in testWifiInfoRedactLocalMacAddressInfo()
293 Parcel parcel = Parcel.obtain(); in testWifiInfoRedactNetworkSettingsInfo()
352 Parcel parcel = Parcel.obtain(); in testWifiInfoRedactLocationAndLocalMacAddressSensitiveInfo()
380 Parcel parcel = Parcel.obtain(); in testWifiInfoParcelWriteReadWithNullInfoElements()
401 Parcel parcel = Parcel.obtain(); in testWifiInfoParcelWriteReadWithEmptyInfoElements()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiMonitor.java231 sendMessage(iface, Message.obtain(null, what)); in sendMessage()
235 sendMessage(iface, Message.obtain(null, what, obj)); in sendMessage()
239 sendMessage(iface, Message.obtain(null, what, arg1, 0)); in sendMessage()
243 sendMessage(iface, Message.obtain(null, what, arg1, arg2)); in sendMessage()
247 sendMessage(iface, Message.obtain(null, what, arg1, arg2, obj)); in sendMessage()
258 sendMessage(iface, handler, Message.obtain(message)); in sendMessage()
278 sendMessage(iface, handler, Message.obtain(message)); in sendMessage()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/dirlist/
DAccessibilityTest.java59 AccessibilityNodeInfoCompat info = AccessibilityNodeInfoCompat.obtain(); in test_announceSelected()
66 AccessibilityNodeInfoCompat info = AccessibilityNodeInfoCompat.obtain(); in testNullItemDetails_NoActionClick()
84 AccessibilityNodeInfoCompat info = AccessibilityNodeInfoCompat.obtain(); in test_routesAccessibilityClicks()
93 AccessibilityNodeInfoCompat info = AccessibilityNodeInfoCompat.obtain(); in test_routesAccessibilityLongClicks()
/packages/apps/Launcher3/src/com/android/launcher3/util/
DUiThreadHelper.java57 Message.obtain( in hideKeyboardAsync()
66 Message mHideKeyboardMsg = Message.obtain(HANDLER.get(root.getContext()), MSG_HIDE_KEYBOARD, in hideKeyboardAsync()
73 Message.obtain(HANDLER.get(activity), MSG_SET_ORIENTATION, orientation, 0, activity) in setOrientationAsync()
83 Message.obtain(HANDLER.get(context), MSG_RUN_COMMAND, arg1, arg2, command).sendToTarget(); in runAsyncCommand()
DWallpaperOffsetInterpolator.java135 Message msg = Message.obtain(mHandler, MSG_UPDATE_OFFSET, sTempInt[0], sTempInt[1], in syncWithScroll()
158 Message.obtain(mHandler, MSG_SET_NUM_PARALLAX, getNumPagesForWallpaperParallax(), 0, in updateOffset()
163 Message.obtain(mHandler, MSG_JUMP_TO_FINAL, mWindowToken).sendToTarget(); in jumpToFinal()
250 Message.obtain(this, MSG_APPLY_OFFSET, token).sendToTarget(); in handleMessage()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/aware/
DWifiAwareDataPathStateManagerTest.java306 Message reqNetworkMsg = Message.obtain(); in testDataPathWithPortInfoOnPublisher()
345 Message reqNetworkMsg = Message.obtain(); in testDataPathWithPortInfoInvalidPort()
379 Message reqNetworkMsg = Message.obtain(); in testDataPathWithPortInfoButNoSecurityOnSubscriber()
417 Message reqNetworkMsg = Message.obtain(); in testDestroyNdiDuringNdpSetupResponder()
505 Message reqNetworkMsg = Message.obtain(); in testMultipleNdpsOnSingleNdi()
550 Message endNetworkReqMsg = Message.obtain(); in testMultipleNdpsOnSingleNdi()
612 Message reqNetworkMsg = Message.obtain(); in testMultipleIdenticalRequests()
627 Message endNetworkReqMsg = Message.obtain(); in testMultipleIdenticalRequests()
638 endNetworkReqMsg = Message.obtain(); in testMultipleIdenticalRequests()
675 Message reqNetworkMsg = Message.obtain(); in testMultipleIdenticalRequests()
[all …]
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/p2p/
DWifiP2pServiceImplTest.java306 Message msg = Message.obtain(); in sendChannelInfoUpdateMsg()
314 mP2pStateMachineMessenger.send(Message.obtain(msg)); in sendChannelInfoUpdateMsg()
324 Message msg = Message.obtain(); in sendAddLocalServiceMsg()
328 mP2pStateMachineMessenger.send(Message.obtain(msg)); in sendAddLocalServiceMsg()
357 Message msg = Message.obtain(); in sendDiscoverPeersMsg()
360 mP2pStateMachineMessenger.send(Message.obtain(msg)); in sendDiscoverPeersMsg()
370 Message msg = Message.obtain(); in sendAddServiceRequestMsg()
374 mP2pStateMachineMessenger.send(Message.obtain(msg)); in sendAddServiceRequestMsg()
384 Message msg = Message.obtain(); in sendDiscoverServiceMsg()
387 mP2pStateMachineMessenger.send(Message.obtain(msg)); in sendDiscoverServiceMsg()
[all …]
DMockWifiP2pMonitor.java55 sendMessage(iface, Message.obtain(null, what)); in sendMessage()
66 if (sendMessage(entry.getValue(), Message.obtain(message))) { in sendMessage()
/packages/apps/Launcher3/src/com/android/launcher3/icons/
DLauncherIcons.java35 public static LauncherIcons obtain(Context context) { in obtain() method in LauncherIcons
36 return obtain(context, IconShape.getShape().enableShapeDetection()); in obtain()
43 public static LauncherIcons obtain(Context context, boolean shapeDetection) { in obtain() method in LauncherIcons
/packages/apps/Settings/src/com/android/settings/development/
DShowRefreshRatePreferenceController.java92 final Parcel data = Parcel.obtain(); in updateShowRefreshRateSetting()
93 final Parcel reply = Parcel.obtain(); in updateShowRefreshRateSetting()
111 final Parcel data = Parcel.obtain(); in writeShowRefreshRateSetting()
DShowSurfaceUpdatesPreferenceController.java89 final Parcel data = Parcel.obtain(); in updateShowUpdatesSetting()
90 final Parcel reply = Parcel.obtain(); in updateShowUpdatesSetting()
109 final Parcel data = Parcel.obtain(); in writeShowUpdatesSetting()
DHardwareOverlaysPreferenceController.java90 final Parcel data = Parcel.obtain(); in updateHardwareOverlaysSetting()
91 final Parcel reply = Parcel.obtain(); in updateHardwareOverlaysSetting()
113 final Parcel data = Parcel.obtain(); in writeHardwareOverlaysSetting()
/packages/services/Telecomm/src/com/android/server/telecom/bluetooth/
DBluetoothRouteManager.java223 SomeArgs args = SomeArgs.obtain(); in enter()
507 SomeArgs args = SomeArgs.obtain(); in isBluetoothAudioConnectedOrPending()
535 SomeArgs args = SomeArgs.obtain(); in connectBluetoothAudio()
545 SomeArgs args = SomeArgs.obtain(); in disconnectBluetoothAudio()
567 SomeArgs args = SomeArgs.obtain(); in onDeviceAdded()
576 SomeArgs args = SomeArgs.obtain(); in onDeviceLost()
663 SomeArgs args = SomeArgs.obtain(); in connectBtAudio()
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/search/
DResultPayloadUtils.java31 Parcel parcel = Parcel.obtain(); in marshall()
47 Parcel parcel = Parcel.obtain(); in unmarshall()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/
DParcelables.java45 Parcel write = Parcel.obtain(); in parcel()
46 Parcel read = Parcel.obtain(); in parcel()
/packages/modules/Wifi/framework/tests/src/android/net/wifi/p2p/
DWifiP2pInfoTest.java70 Parcel parcelW = Parcel.obtain(); in testParcelOperation()
75 Parcel parcelR = Parcel.obtain(); in testParcelOperation()
DWifiP2pDeviceListTest.java63 Parcel parcelW = Parcel.obtain(); in testListOperations()
68 Parcel parcelR = Parcel.obtain(); in testListOperations()
/packages/apps/Car/RotaryController/tests/unit/src/com/android/car/rotary/
DRotaryServiceTest.java919 .thenReturn(AccessibilityNodeInfo.obtain(appFocusArea1Node)); in testNudgeTo_nudgeToNearestTarget()
990 .thenReturn(AccessibilityNodeInfo.obtain(appFocusArea1Node)); in testOnKeyEvents_nudgeUp_moveFocus()
1159 .thenReturn(AccessibilityNodeInfo.obtain(appFocusArea3Node)); in testOnKeyEvents_nudgeToHunEscapeNudgeDirection_leaveTheHun()
1252 .thenReturn(AccessibilityNodeInfo.obtain(appFocusArea3Node)); in testOnKeyEvents_nudgeToNonHunEscapeNudgeDirection_stayInTheHun()
1844 when(event.getSource()).thenReturn(AccessibilityNodeInfo.obtain(appDefaultFocusNode)); in testOnAccessibilityEvent_typeViewFocused()
1910 when(event.getSource()).thenReturn(AccessibilityNodeInfo.obtain(fpvNode)); in testOnAccessibilityEvent_typeViewFocused2()
1971 mRotaryService.mIgnoreViewClickedNode = AccessibilityNodeInfo.obtain(appDefaultFocusNode); in testOnAccessibilityEvent_typeViewClicked()
1974 when(event.getSource()).thenReturn(AccessibilityNodeInfo.obtain(appDefaultFocusNode)); in testOnAccessibilityEvent_typeViewClicked()
2041 when(event.getSource()).thenReturn(AccessibilityNodeInfo.obtain(appButton3Node)); in testOnAccessibilityEvent_typeViewClicked2()
2239 when(event.getSource()).thenReturn(AccessibilityNodeInfo.obtain(appButton3Node)); in testDirectManipulationMode2()
[all …]
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DMockWifiMonitor.java55 sendMessage(iface, Message.obtain(null, what)); in sendMessage()
66 if (sendMessage(entry.getValue(), Message.obtain(message))) { in sendMessage()

12345678910>>...35