/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/ |
D | HeadsetClientService.java | 136 HeadsetClientStateMachine sm = in stop() local 138 sm.doQuit(); in stop() 178 for (HeadsetClientStateMachine sm : mStateMachineMap.values()) { 179 if (sm != null) { 180 sm.sendMessage(HeadsetClientStateMachine.SET_SPEAKER_VOLUME, 485 HeadsetClientStateMachine sm = getStateMachine(device); in connect() local 486 if (sm == null) { in connect() 497 sm.sendMessage(HeadsetClientStateMachine.CONNECT, device); in connect() 509 HeadsetClientStateMachine sm = getStateMachine(device); in disconnect() local 510 if (sm == null) { in disconnect() [all …]
|
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
D | BluetoothRouteManagerTest.java | 84 BluetoothRouteManager sm = setupStateMachine( in testConnectHfpRetryWhileNotConnected() local 90 executeRoutingAction(sm, BluetoothRouteManager.CONNECT_HFP, DEVICE1.getAddress()); in testConnectHfpRetryWhileNotConnected() 93 waitForHandlerAction(sm.getHandler(), TEST_TIMEOUT); in testConnectHfpRetryWhileNotConnected() 94 waitForHandlerAction(sm.getHandler(), TEST_TIMEOUT); in testConnectHfpRetryWhileNotConnected() 95 waitForHandlerAction(sm.getHandler(), TEST_TIMEOUT); in testConnectHfpRetryWhileNotConnected() 96 waitForHandlerAction(sm.getHandler(), TEST_TIMEOUT); in testConnectHfpRetryWhileNotConnected() 98 assertEquals(BluetoothRouteManager.AUDIO_OFF_STATE_NAME, sm.getCurrentState().getName()); in testConnectHfpRetryWhileNotConnected() 99 sm.getHandler().removeMessages(BluetoothRouteManager.CONNECTION_TIMEOUT); in testConnectHfpRetryWhileNotConnected() 100 sm.quitNow(); in testConnectHfpRetryWhileNotConnected() 106 BluetoothRouteManager sm = setupStateMachine( in testAmbiguousActiveDevice() local [all …]
|
D | CallAudioModeStateMachineTest.java | 74 CallAudioModeStateMachine sm = new CallAudioModeStateMachine(mSystemStateHelper, in testNoFocusWhenRingerSilenced() local 76 sm.setCallAudioManager(mCallAudioManager); in testNoFocusWhenRingerSilenced() 77 sm.sendMessage(CallAudioModeStateMachine.ABANDON_FOCUS_FOR_TESTING); in testNoFocusWhenRingerSilenced() 78 waitForHandlerAction(sm.getHandler(), TEST_TIMEOUT); in testNoFocusWhenRingerSilenced() 83 sm.sendMessage(CallAudioModeStateMachine.NEW_RINGING_CALL, new Builder() in testNoFocusWhenRingerSilenced() 91 waitForHandlerAction(sm.getHandler(), TEST_TIMEOUT); in testNoFocusWhenRingerSilenced() 93 assertEquals(CallAudioModeStateMachine.RING_STATE_NAME, sm.getCurrentStateName()); in testNoFocusWhenRingerSilenced() 106 CallAudioModeStateMachine sm = new CallAudioModeStateMachine(mSystemStateHelper, in testNoRingWhenDeviceIsAtEar() local 108 sm.setCallAudioManager(mCallAudioManager); in testNoRingWhenDeviceIsAtEar() 109 sm.sendMessage(CallAudioModeStateMachine.ABANDON_FOCUS_FOR_TESTING); in testNoRingWhenDeviceIsAtEar() [all …]
|
D | BluetoothRouteTransitionTests.java | 263 BluetoothRouteManager sm = setupStateMachine( in testTransitions() local 268 sm.setActiveDeviceCacheForTesting(mParams.activeDevice, in testTransitions() 276 sm.sendMessage(BluetoothRouteManager.BT_AUDIO_LOST, args); in testTransitions() 283 sm.onDeviceAdded(mParams.messageDevice.getAddress()); in testTransitions() 284 sm.onActiveDeviceChanged(mParams.messageDevice, in testTransitions() 287 sm.onActiveDeviceChanged(null, in testTransitions() 294 sm.onDeviceLost(mParams.messageDevice.getAddress()); in testTransitions() 296 executeRoutingAction(sm, mParams.messageType, in testTransitions() 300 waitForHandlerAction(sm.getHandler(), TEST_TIMEOUT); in testTransitions() 301 waitForHandlerAction(sm.getHandler(), TEST_TIMEOUT); in testTransitions() [all …]
|
D | CallAudioModeTransitionTests.java | 132 CallAudioModeStateMachine sm = new CallAudioModeStateMachine(mSystemStateHelper, in modeTransitionTest() local 134 sm.setCallAudioManager(mCallAudioManager); in modeTransitionTest() 135 sm.sendMessage(mParams.initialAudioState); in modeTransitionTest() 136 waitForHandlerAction(sm.getHandler(), TEST_TIMEOUT); in modeTransitionTest() 146 sm.sendMessage(mParams.messageType, mParams.externalState); in modeTransitionTest() 147 waitForHandlerAction(sm.getHandler(), TEST_TIMEOUT); in modeTransitionTest() 151 sm.sendMessage(CallAudioModeStateMachine.AUDIO_OPERATIONS_COMPLETE); in modeTransitionTest() 152 waitForHandlerAction(sm.getHandler(), TEST_TIMEOUT); in modeTransitionTest() 155 assertEquals(mParams.expectedFinalStateName, sm.getCurrentStateName()); in modeTransitionTest()
|
D | CallAudioRouteTransitionTests.java | 201 private void setupMocksForParams(final CallAudioRouteStateMachine sm, in setupMocksForParams() argument 218 sm.sendMessageWithSessionInfo(CallAudioRouteStateMachine.BT_AUDIO_CONNECTED); in setupMocksForParams() 237 private void sendActionToStateMachine(CallAudioRouteStateMachine sm) { in sendActionToStateMachine() argument 240 sm.sendMessageWithSessionInfo( in sendActionToStateMachine() 242 sm.sendMessageWithSessionInfo( in sendActionToStateMachine() 246 sm.sendMessageWithSessionInfo( in sendActionToStateMachine() 248 sm.sendMessageWithSessionInfo( in sendActionToStateMachine() 252 sm.sendMessageWithSessionInfo(mParams.action); in sendActionToStateMachine()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dp/ |
D | A2dpService.java | 196 for (A2dpStateMachine sm : mStateMachines.values()) { in stop() 197 sm.doQuit(); in stop() 198 sm.cleanup(); in stop() 299 A2dpStateMachine sm = mStateMachines.get(device); in disconnect() local 300 if (sm == null) { in disconnect() 304 sm.sendMessage(A2dpStateMachine.DISCONNECT); in disconnect() 313 for (A2dpStateMachine sm : mStateMachines.values()) { in getConnectedDevices() 314 if (sm.isConnected()) { in getConnectedDevices() 315 devices.add(sm.getDevice()); in getConnectedDevices() 333 for (A2dpStateMachine sm : mStateMachines.values()) { in connectionAllowedCheckMaxDevices() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/hearingaid/ |
D | HearingAidService.java | 170 for (HearingAidStateMachine sm : mStateMachines.values()) { in stop() 171 sm.doQuit(); in stop() 172 sm.cleanup(); in stop() 277 HearingAidStateMachine sm = getOrCreateStateMachine(storedDevice); in connect() local 278 if (sm == null) { in connect() 282 sm.sendMessage(HearingAidStateMachine.CONNECT); in connect() 315 HearingAidStateMachine sm = mStateMachines.get(storedDevice); in disconnect() local 316 if (sm == null) { in disconnect() 321 sm.sendMessage(HearingAidStateMachine.DISCONNECT); in disconnect() 336 for (HearingAidStateMachine sm : mStateMachines.values()) { in getConnectedDevices() [all …]
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/ |
D | StateMachineTest.java | 68 private void dumpLogRecs(StateMachine sm) { in dumpLogRecs() argument 69 int size = sm.getLogRecSize(); in dumpLogRecs() 70 tlog("size=" + size + " count=" + sm.getLogRecCount()); in dumpLogRecs() 72 LogRec lr = sm.getLogRec(i); in dumpLogRecs() 1642 StateMachineUnhandledMessage sm = new StateMachineUnhandledMessage("smUnhandledMessage"); in testStateMachineUnhandledMessage() local 1643 sm.start(); in testStateMachineUnhandledMessage() 1644 if (sm.isDbg()) tlog("testStateMachineUnhandledMessage E"); in testStateMachineUnhandledMessage() 1646 synchronized (sm) { in testStateMachineUnhandledMessage() 1649 sm.sendMessage(i); in testStateMachineUnhandledMessage() 1654 sm.wait(); in testStateMachineUnhandledMessage() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/ |
D | BluetoothPbapService.java | 212 PbapStateMachine sm = mPbapStateMachineMap.get(device); in parseIntent() local 213 if (sm == null) { in parseIntent() 217 mSessionStatusHandler.removeMessages(USER_TIMEOUT, sm); in parseIntent() 230 sm.sendMessage(PbapStateMachine.AUTHORIZED); in parseIntent() 238 sm.sendMessage(PbapStateMachine.REJECTED); in parseIntent() 245 PbapStateMachine sm = mPbapStateMachineMap.get(device); in parseIntent() local 246 if (sm == null) { in parseIntent() 249 Message msg = sm.obtainMessage(PbapStateMachine.AUTH_KEY_INPUT, sessionKey); in parseIntent() 250 sm.sendMessage(msg); in parseIntent() 255 PbapStateMachine sm = mPbapStateMachineMap.get(device); in parseIntent() local [all …]
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
D | SystemStateHelper.java | 126 SensorManager sm = context.getSystemService(SensorManager.class); in isDeviceAtEar() local 127 if (sm == null) { in isDeviceAtEar() 130 Sensor grav = sm.getDefaultSensor(Sensor.TYPE_GRAVITY); in isDeviceAtEar() 131 Sensor proximity = sm.getDefaultSensor(Sensor.TYPE_PROXIMITY); in isDeviceAtEar() 176 sm.registerListener(listener, grav, SensorManager.SENSOR_DELAY_FASTEST); in isDeviceAtEar() 177 sm.registerListener(listener, proximity, SensorManager.SENSOR_DELAY_FASTEST); in isDeviceAtEar() 190 sm.unregisterListener(listener); in isDeviceAtEar()
|
/packages/modules/DnsResolver/ |
D | DnsStatsTest.cpp | 109 std::smatch sm; in verifyDumpOutput() local 113 ASSERT_TRUE(std::regex_search(*dumpString, sm, pattern)); in verifyDumpOutput() 114 EXPECT_TRUE(sm[1].str().empty()); in verifyDumpOutput() 115 EXPECT_EQ(sm[2], "<no server>"); in verifyDumpOutput() 116 EXPECT_TRUE(sm[3].str().empty()); in verifyDumpOutput() 117 *dumpString = sm.suffix(); in verifyDumpOutput() 122 ASSERT_TRUE(std::regex_search(*dumpString, sm, pattern)); in verifyDumpOutput() 123 EXPECT_EQ(sm[1], stats.serverSockAddr.ip().toString()); in verifyDumpOutput() 124 EXPECT_FALSE(sm[2].str().empty()); in verifyDumpOutput() 125 EXPECT_FALSE(sm[3].str().empty()); in verifyDumpOutput() [all …]
|
D | DnsQueryLogTest.cpp | 47 std::smatch sm; in verifyDumpOutput() local 50 EXPECT_TRUE(std::regex_search(str, sm, pattern)); in verifyDumpOutput() 51 EXPECT_EQ(sm[1], std::to_string(netId)); in verifyDumpOutput() 52 str = sm.suffix(); in verifyDumpOutput() 56 EXPECT_FALSE(std::regex_search(str, sm, pattern)); in verifyDumpOutput()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/deviceinfo/ |
D | StorageDashboardFragment.java | 87 StorageManager sm = activity.getSystemService(StorageManager.class); in onCreate() local 88 mVolume = Utils.maybeInitializeVolume(sm, getArguments()); in onCreate() 191 StorageManager sm = context.getSystemService(StorageManager.class); in createPreferenceControllers() local 193 mVolume, new StorageManagerVolumeProvider(sm)); in createPreferenceControllers() 239 final StorageManager sm = context.getSystemService(StorageManager.class); 244 null /* volume */, new StorageManagerVolumeProvider(sm))); 376 StorageManager sm = context.getSystemService(StorageManager.class); in onCreateLoader() local 377 StorageManagerVolumeProvider smvp = new StorageManagerVolumeProvider(sm); in onCreateLoader()
|
D | StorageProfileFragment.java | 66 final StorageManager sm = context.getSystemService(StorageManager.class); in onCreate() local 67 mVolume = Utils.maybeInitializeVolume(sm, args); in onCreate() 102 final StorageManager sm = context.getSystemService(StorageManager.class); in createPreferenceControllers() local 108 new StorageManagerVolumeProvider(sm), in createPreferenceControllers()
|
/packages/apps/Settings/src/com/android/settings/deviceinfo/ |
D | StorageDashboardFragment.java | 87 StorageManager sm = activity.getSystemService(StorageManager.class); in onCreate() local 88 mVolume = Utils.maybeInitializeVolume(sm, getArguments()); in onCreate() 191 StorageManager sm = context.getSystemService(StorageManager.class); in createPreferenceControllers() local 193 mVolume, new StorageManagerVolumeProvider(sm)); in createPreferenceControllers() 239 final StorageManager sm = context.getSystemService(StorageManager.class); 244 null /* volume */, new StorageManagerVolumeProvider(sm))); 376 StorageManager sm = context.getSystemService(StorageManager.class); in onCreateLoader() local 377 StorageManagerVolumeProvider smvp = new StorageManagerVolumeProvider(sm); in onCreateLoader()
|
D | StorageProfileFragment.java | 66 final StorageManager sm = context.getSystemService(StorageManager.class); in onCreate() local 67 mVolume = Utils.maybeInitializeVolume(sm, args); in onCreate() 102 final StorageManager sm = context.getSystemService(StorageManager.class); in createPreferenceControllers() local 108 new StorageManagerVolumeProvider(sm), in createPreferenceControllers()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/ |
D | SaveState.java | 96 StateMachine sm = ViewModelProviders in onSuccess() local 98 sm.getListener().onComplete(StateMachine.RESULT_SUCCESS); in onSuccess() 106 StateMachine sm = ViewModelProviders in onFailure() local 108 sm.getListener().onComplete(StateMachine.RESULT_FAILURE); in onFailure()
|
/packages/apps/Settings/src/com/android/settings/shortcut/ |
D | ShortcutsUpdateTask.java | 44 ShortcutManager sm = mContext.getSystemService(ShortcutManager.class); in doInBackground() local 48 for (ShortcutInfo info : sm.getPinnedShortcuts()) { in doInBackground() 62 sm.updateShortcuts(updates); in doInBackground()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/statemachine/ |
D | StateMachine.java | 469 LogRec(StateMachine sm, Message msg, String info, IState state, IState orgState, in LogRec() argument 471 update(sm, msg, info, state, orgState, transToState); in LogRec() 480 public void update(StateMachine sm, Message msg, String info, IState state, IState orgState, in update() argument 482 mSm = sm; in update() 664 synchronized void add(StateMachine sm, Message msg, String messageInfo, IState state, in add() argument 668 mLogRecVector.add(new LogRec(sm, msg, messageInfo, state, orgState, transToState)); in add() 675 pmi.update(sm, msg, messageInfo, state, orgState, transToState); in add() 1219 private SmHandler(Looper looper, StateMachine sm) { in SmHandler() argument 1221 mSm = sm; in SmHandler()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/shortcut/ |
D | ShortcutsUpdateTask.java | 44 ShortcutManager sm = mContext.getSystemService(ShortcutManager.class); in doInBackground() local 48 for (ShortcutInfo info : sm.getPinnedShortcuts()) { in doInBackground() 62 sm.updateShortcuts(updates); in doInBackground()
|
/packages/apps/Settings/src/com/android/settings/network/telephony/ |
D | MobileNetworkUtils.java | 648 final SubscriptionManager sm = context.getSystemService(SubscriptionManager.class); in getCurrentCarrierNameForDisplay() local 649 if (sm != null) { in getCurrentCarrierNameForDisplay() 650 final SubscriptionInfo subInfo = getSubscriptionInfo(sm, subId); in getCurrentCarrierNameForDisplay() 659 final SubscriptionManager sm = context.getSystemService(SubscriptionManager.class); in getCurrentCarrierNameForDisplay() local 660 if (sm != null) { in getCurrentCarrierNameForDisplay() 661 final int subId = sm.getDefaultSubscriptionId(); in getCurrentCarrierNameForDisplay() 662 final SubscriptionInfo subInfo = getSubscriptionInfo(sm, subId); in getCurrentCarrierNameForDisplay()
|
/packages/apps/Launcher3/tests/src/com/android/launcher3/testcomponent/ |
D | RequestPinItemActivity.java | 65 ShortcutManager sm = getSystemService(ShortcutManager.class); in pinShortcut() local 68 int r = sm.getIconMaxWidth() / 2; in pinShortcut() 81 sm.requestPinShortcut(info, callback); in pinShortcut()
|
/packages/apps/Stk/src/com/android/stk/ |
D | StkMenuConfig.java | 116 SubscriptionManager sm = (SubscriptionManager) mContext.getSystemService( in findConfig() local 118 SubscriptionInfo info = (sm != null) ? sm.getActiveSubscriptionInfoForSimSlotIndex(slotId) in findConfig()
|
/packages/apps/Car/Settings/src/com/android/car/settings/storage/ |
D | StorageUtils.java | 34 public static VolumeInfo maybeInitializeVolume(StorageManager sm, @Nullable Bundle bundle) { in maybeInitializeVolume() argument 41 VolumeInfo volume = sm.findVolumeById(volumeId); in maybeInitializeVolume()
|