/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/ |
D | HeadsetClientService.java | 146 HeadsetClientStateMachine sm = in stop() local 148 sm.doQuit(); in stop() 188 for (HeadsetClientStateMachine sm : mStateMachineMap.values()) { 189 if (sm != null) { 190 sm.sendMessage(HeadsetClientStateMachine.SET_SPEAKER_VOLUME, 211 for (HeadsetClientStateMachine sm : mStateMachineMap.values()) { 212 if (sm != null) { 213 sm.sendMessage(HeadsetClientStateMachine.SEND_BIEV, 556 HeadsetClientStateMachine sm = getStateMachine(device); in connect() local 557 if (sm == null) { in connect() [all …]
|
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
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 | 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 | 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/le_audio/ |
D | LeAudioService.java | 159 for (LeAudioStateMachine sm : mStateMachines.values()) { in stop() 160 sm.doQuit(); in stop() 161 sm.cleanup(); in stop() 227 LeAudioStateMachine sm = getOrCreateStateMachine(device); in connect() local 228 if (sm == null) { in connect() 232 sm.sendMessage(LeAudioStateMachine.CONNECT, groupId); in connect() 245 LeAudioStateMachine sm = getOrCreateStateMachine(storedDevice); in connect() local 246 if (sm == null) { in connect() 251 sm.sendMessage(LeAudioStateMachine.CONNECT, groupId); in connect() 271 LeAudioStateMachine sm = mStateMachines.get(device); in disconnect() local [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dp/ |
D | A2dpService.java | 201 for (A2dpStateMachine sm : mStateMachines.values()) { in stop() 202 sm.doQuit(); in stop() 203 sm.cleanup(); in stop() 302 A2dpStateMachine sm = mStateMachines.get(device); in disconnect() local 303 if (sm == null) { in disconnect() 307 sm.sendMessage(A2dpStateMachine.DISCONNECT); in disconnect() 315 for (A2dpStateMachine sm : mStateMachines.values()) { in getConnectedDevices() 316 if (sm.isConnected()) { in getConnectedDevices() 317 devices.add(sm.getDevice()); in getConnectedDevices() 335 for (A2dpStateMachine sm : mStateMachines.values()) { in connectionAllowedCheckMaxDevices() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/hearingaid/ |
D | HearingAidService.java | 175 for (HearingAidStateMachine sm : mStateMachines.values()) { in stop() 176 sm.doQuit(); in stop() 177 sm.cleanup(); in stop() 283 HearingAidStateMachine sm = getOrCreateStateMachine(storedDevice); in connect() local 284 if (sm == null) { in connect() 288 sm.sendMessage(HearingAidStateMachine.CONNECT); in connect() 322 HearingAidStateMachine sm = mStateMachines.get(storedDevice); in disconnect() local 323 if (sm == null) { in disconnect() 328 sm.sendMessage(HearingAidStateMachine.DISCONNECT); in disconnect() 342 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 | 216 PbapStateMachine sm = mPbapStateMachineMap.get(device); in parseIntent() local 217 if (sm == null) { in parseIntent() 221 mSessionStatusHandler.removeMessages(USER_TIMEOUT, sm); in parseIntent() 234 sm.sendMessage(PbapStateMachine.AUTHORIZED); in parseIntent() 242 sm.sendMessage(PbapStateMachine.REJECTED); in parseIntent() 249 PbapStateMachine sm = mPbapStateMachineMap.get(device); in parseIntent() local 250 if (sm == null) { in parseIntent() 253 Message msg = sm.obtainMessage(PbapStateMachine.AUTH_KEY_INPUT, sessionKey); in parseIntent() 254 sm.sendMessage(msg); in parseIntent() 259 PbapStateMachine sm = mPbapStateMachineMap.get(device); in parseIntent() local [all …]
|
/packages/apps/Settings/src/com/android/settings/sim/smartForwarding/ |
D | SmartForwardingUtils.java | 83 public static boolean[] getAllSlotCallWaitingStatus(Context context, SubscriptionManager sm, in getAllSlotCallWaitingStatus() argument 89 int subId = sm.getSubscriptionIds(i)[0]; in getAllSlotCallWaitingStatus() 97 Context context, SubscriptionManager sm, TelephonyManager tm) { in getAllSlotCallForwardingStatus() argument 102 int subId = sm.getSubscriptionIds(i)[0]; in getAllSlotCallForwardingStatus() 109 public static void clearAllBackupData(Context context, SubscriptionManager sm, in clearAllBackupData() argument 113 int subId = sm.getSubscriptionIds(i)[0]; in clearAllBackupData()
|
D | SmartForwardingActivity.java | 130 SubscriptionManager sm = getSystemService(SubscriptionManager.class); in disableSmartForwarding() local 132 boolean[] callWaitingStatus = getAllSlotCallWaitingStatus(this, sm, tm); in disableSmartForwarding() 133 CallForwardingInfo[] callForwardingInfo = getAllSlotCallForwardingStatus(this, sm, tm); in disableSmartForwarding() 141 clearAllBackupData(SmartForwardingActivity.this, sm, tm); in disableSmartForwarding()
|
D | EnableSmartForwardingTask.java | 48 private final SubscriptionManager sm; field in EnableSmartForwardingTask 57 sm = context.getSystemService(SubscriptionManager.class); in EnableSmartForwardingTask() 85 if (tm == null || sm == null) { in initObject() 97 int[] subIdList = sm.getSubscriptionIds(i); in initObject() 104 if (!sm.isActiveSubId(subId)) { in initObject()
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
D | SystemStateHelper.java | 188 SensorManager sm = context.getSystemService(SensorManager.class); in isDeviceAtEar() local 189 if (sm == null) { in isDeviceAtEar() 192 Sensor grav = sm.getDefaultSensor(Sensor.TYPE_GRAVITY); in isDeviceAtEar() 193 Sensor proximity = sm.getDefaultSensor(Sensor.TYPE_PROXIMITY); in isDeviceAtEar() 238 sm.registerListener(listener, grav, SensorManager.SENSOR_DELAY_FASTEST); in isDeviceAtEar() 239 sm.registerListener(listener, proximity, SensorManager.SENSOR_DELAY_FASTEST); in isDeviceAtEar() 252 sm.unregisterListener(listener); in isDeviceAtEar()
|
/packages/services/Iwlan/src/com/google/android/iwlan/ |
D | IwlanHelper.java | 87 SubscriptionManager sm = context.getSystemService(SubscriptionManager.class); in getSubInfo() local 88 SubscriptionInfo info = sm.getActiveSubscriptionInfoForSimSlotIndex(slotId); in getSubInfo() 182 SubscriptionManager sm = context.getSystemService(SubscriptionManager.class); in isDefaultDataSlot() local 183 int ddsSlotId = sm.getSlotIndex(sm.getDefaultDataSubscriptionId()); in isDefaultDataSlot() 184 if (ddsSlotId != sm.INVALID_SIM_SLOT_INDEX) { in isDefaultDataSlot()
|
/packages/modules/DnsResolver/ |
D | DnsStatsTest.cpp | 129 std::smatch sm; in verifyDumpOutput() local 133 ASSERT_TRUE(std::regex_search(*dumpString, sm, pattern)); in verifyDumpOutput() 134 EXPECT_TRUE(sm[1].str().empty()); in verifyDumpOutput() 135 EXPECT_EQ(sm[2], "<no server>"); in verifyDumpOutput() 136 EXPECT_TRUE(sm[3].str().empty()); in verifyDumpOutput() 137 *dumpString = sm.suffix(); in verifyDumpOutput() 142 ASSERT_TRUE(std::regex_search(*dumpString, sm, pattern)); in verifyDumpOutput() 143 EXPECT_EQ(sm[1], stats.serverSockAddr.ip().toString()); in verifyDumpOutput() 144 EXPECT_FALSE(sm[2].str().empty()); in verifyDumpOutput() 145 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/modules/Connectivity/tests/cts/hostside/app/src/com/android/cts/net/hostside/ |
D | DataWarningReceiverTest.java | 65 final SubscriptionManager sm = mContext.getSystemService(SubscriptionManager.class); in testSnoozeWarningNotReceived() local 71 final List<SubscriptionPlan> originalPlans = sm.getSubscriptionPlans(subId); in testSnoozeWarningNotReceived() 83 sm.setSubscriptionPlans(subId, Arrays.asList(plan)); in testSnoozeWarningNotReceived() 99 sm.setSubscriptionPlans(subId, originalPlans); in testSnoozeWarningNotReceived()
|
/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/providers/MediaProvider/src/com/android/providers/media/ |
D | VolumeCache.java | 155 final StorageManager sm = mContext.getSystemService(StorageManager.class); in findVolumeForFile() local 156 final StorageVolume volume = sm.getStorageVolume(file); in findVolumeForFile() 172 final StorageManager sm = userContext.getSystemService(StorageManager.class); in updateExternalVolumesForUserLocked() local 176 final StorageVolume storageVolume = sm.getStorageVolume(uri); in updateExternalVolumesForUserLocked()
|
/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/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/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()
|