Home
last modified time | relevance | path

Searched refs:mServiceUserId (Results 1 – 4 of 4) sorted by relevance

/packages/apps/Nfc/src/com/android/nfc/cardemulation/
DHostNfcFEmulationManager.java75 int mServiceUserId; field in HostNfcFEmulationManager
267 if (mServiceBound && mServiceName.equals(service) && mServiceUserId == userId) { in bindServiceIfNeededLocked()
284 mServiceUserId = userId; in bindServiceIfNeededLocked()
301 mServiceUserId = -1; in unbindServiceIfNeededLocked()
461 return mServiceUserId; in getServiceUserId()
DHostEmulationManager.java129 int mServiceUserId; // The UserId of the non-payment service field in HostEmulationManager
902 && mServiceUserId == userId) { in bindServiceIfNeededLocked()
920 mServiceUserId = userId; in bindServiceIfNeededLocked()
939 mActiveServiceUserId = mServiceUserId; in sendDataToServiceLocked()
964 mActiveServiceUserId = mServiceUserId; in sendPollingFramesToServiceLocked()
1045 mServiceUserId = -1; in unbindServiceIfNeededLocked()
/packages/apps/Nfc/tests/unit/src/com/android/nfc/cardemulation/
DHostNfcFEmulationManagerTest.java150 assertThat(manager.mServiceUserId).isEqualTo(-1); in testOnEnabledForegroundNfcFServiceChangedWithNullService()
187 manager.mServiceUserId = 0; in testOnHostEmulationDataWithEnabledResolvedServiceFromCache_BindToService()
205 manager.mServiceUserId = USER_ID; in testOnHostEmulationDataWithValidExistingService_BindToService()
370 assertThat(manager.mServiceUserId).isEqualTo(USER_ID); in testBindServiceWithNewService_SuccessfullyBindsToService()
383 assertThat(manager.mServiceUserId).isEqualTo(0); in testBindServiceWithNewService_FailsToBindToService()
394 manager.mServiceUserId = USER_ID; in testBindServiceWithExistingService_ServiceAlreadyBound()
413 assertThat(manager.mServiceUserId).isEqualTo(-1); in testUnbindService()
DHostEmulationManagerTest.java383 Assert.assertEquals(mHostEmulationManager.mServiceUserId, USER_ID); in testOnPreferredForegroundServiceChanged_noPreviouslyBoundService()
418 Assert.assertEquals(mHostEmulationManager.mServiceUserId, USER_ID); in testOnPreferredForegroundServiceChanged_nullService_previouslyBoundService()
788 Assert.assertEquals(USER_ID, mHostEmulationManager.mServiceUserId); in testOnHostEmulationData_stateW4Select_noDefaultService_noBoundActiveService()
921 Assert.assertEquals(USER_ID, mHostEmulationManager.mServiceUserId); in testOnHostEmulationData_stateXfer_selectAid_noActiveService()
943 mHostEmulationManager.mServiceUserId = USER_ID; in testOnHostEmulationDeactivated_activeService_enableObserveModeAfterTransaction()
956 Assert.assertEquals(-1, mHostEmulationManager.mServiceUserId); in testOnHostEmulationDeactivated_activeService_enableObserveModeAfterTransaction()
982 mHostEmulationManager.mServiceUserId = USER_ID; in testOnHostEmulationDeactivated_noActiveService()
993 Assert.assertEquals(-1, mHostEmulationManager.mServiceUserId); in testOnHostEmulationDeactivated_noActiveService()