/packages/modules/NetworkStack/tests/unit/src/android/net/testutils/ |
D | TestableNetworkCallbackTest.kt | 37 private lateinit var mCallback: TestableNetworkCallback in <lambda>() variable in android.net.testutils.TestableNetworkCallbackTest 45 mCallback = TestableNetworkCallback() in <lambda>() 53 assertNull(mCallback.lastAvailableNetwork) in <lambda>() 54 mCallback.onAvailable(net2097) in <lambda>() 55 assertEquals(mCallback.lastAvailableNetwork, net2097) in <lambda>() 59 mCallback.onCapabilitiesChanged(net2097, NetworkCapabilities()) in <lambda>() 60 mCallback.onLinkPropertiesChanged(net2097, LinkProperties()) in <lambda>() 61 assertEquals(mCallback.lastAvailableNetwork, net2097) in <lambda>() 64 mCallback.onLost(net2097) in <lambda>() 65 assertNull(mCallback.lastAvailableNetwork) in <lambda>() [all …]
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/task/ |
D | SetDevicePolicyTaskTest.java | 57 @Mock private AbstractProvisioningTask.Callback mCallback; field in SetDevicePolicyTaskTest 101 verify(mCallback).onSuccess(mTask); in testEnableDevicePolicyApp_DefaultToDefault() 102 verifyNoMoreInteractions(mCallback); in testEnableDevicePolicyApp_DefaultToDefault() 120 verify(mCallback).onSuccess(mTask); in testEnableDevicePolicyApp_DisabledToDefault() 121 verifyNoMoreInteractions(mCallback); in testEnableDevicePolicyApp_DisabledToDefault() 138 verify(mCallback).onSuccess(mTask); in testEnableDevicePolicyApp_EnabledToEnabled() 139 verifyNoMoreInteractions(mCallback); in testEnableDevicePolicyApp_EnabledToEnabled() 154 verify(mCallback).onError(mTask, 0); in testEnableDevicePolicyApp_PackageNotFound() 155 verifyNoMoreInteractions(mCallback); in testEnableDevicePolicyApp_PackageNotFound() 168 verify(mCallback).onSuccess(mTask); in testSetActiveAdmin() [all …]
|
D | VerifyPackageTaskTest.java | 70 @Mock private AbstractProvisioningTask.Callback mCallback; field in VerifyPackageTaskTest 106 verify(mCallback).onSuccess(mTask); in testDownloadLocationNull() 107 verifyNoMoreInteractions(mCallback); in testDownloadLocationNull() 120 verify(mCallback).onError(mTask, ERROR_DEVICE_ADMIN_MISSING); in testMissingDeviceAdminComponent() 121 verifyNoMoreInteractions(mCallback); in testMissingDeviceAdminComponent() 134 verify(mCallback).onSuccess(mTask); in testPackageChecksumSha256_success() 135 verifyNoMoreInteractions(mCallback); in testPackageChecksumSha256_success() 148 verify(mCallback).onSuccess(mTask); in testSignatureHash_success() 149 verifyNoMoreInteractions(mCallback); in testSignatureHash_success() 162 verify(mCallback).onError(mTask, ERROR_HASH_MISMATCH); in testSignatureHash_failure() [all …]
|
D | AddWifiNetworkTaskTest.java | 76 @Mock private AbstractProvisioningTask.Callback mCallback; field in AddWifiNetworkTaskTest 98 NO_WIFI_INFO_PARAMS, mCallback, mUtils, mTestInjector, in testNoWifiInfo() 105 verify(mCallback).onSuccess(mTask); in testNoWifiInfo() 112 WIFI_INFO_PARAMS, mCallback, mUtils, mTestInjector, mProvisioningAnalyticsTracker); in testWifiManagerNull() 121 verify(mCallback).onError(mTask, 0); in testWifiManagerNull() 128 WIFI_INFO_PARAMS, mCallback, mUtils, mTestInjector, mProvisioningAnalyticsTracker); in testFailToEnableWifi() 140 verify(mCallback).onError(mTask, 0); in testFailToEnableWifi() 147 WIFI_INFO_PARAMS, mCallback, mUtils, mTestInjector, mProvisioningAnalyticsTracker); in testIsConnectedToSpecifiedWifiTrue() 163 verify(mCallback).onSuccess(mTask); in testIsConnectedToSpecifiedWifiTrue() 170 WIFI_INFO_PARAMS, mCallback, mUtils, mTestInjector, mProvisioningAnalyticsTracker); in testNoWifiInfoInProvider() [all …]
|
D | InstallPackageTaskTest.java | 85 @Mock private AbstractProvisioningTask.Callback mCallback; field in InstallPackageTaskTest 119 mTask = new InstallPackageTask(mDownloadPackageTask, mMockContext, TEST_PARAMS, mCallback, in setUp() 132 verify(mCallback).onSuccess(mTask); in testNoDownloadLocation() 133 verifyNoMoreInteractions(mCallback); in testNoDownloadLocation() 155 verify(mCallback, timeout(TIMEOUT)).onSuccess(mTask); in testSuccess() 156 verifyNoMoreInteractions(mCallback); in testSuccess() 181 verify(mCallback, timeout(TIMEOUT)).onSuccess(mTask); in testSuccess_allowTestOnly() 182 verifyNoMoreInteractions(mCallback); in testSuccess_allowTestOnly() 207 verify(mCallback, timeout(TIMEOUT)).onSuccess(mTask); in testInstallFailedVersionDowngrade() 208 verifyNoMoreInteractions(mCallback); in testInstallFailedVersionDowngrade() [all …]
|
D | StartManagedProfileTaskTest.java | 65 @Mock private AbstractProvisioningTask.Callback mCallback; field in StartManagedProfileTaskTest 82 mTask = new StartManagedProfileTask(mIActivityManager, mContext, TEST_PARAMS, mCallback, in setUp() 89 }).when(mCallback).onSuccess(mTask); in setUp() 118 verifyZeroInteractions(mCallback); in testSuccess() 125 verify(mCallback).onSuccess(mTask); in testSuccess() 126 verifyNoMoreInteractions(mCallback); in testSuccess() 147 verify(mCallback).onError(mTask, 0); in testError() 148 verifyNoMoreInteractions(mCallback); in testError() 170 verify(mCallback).onError(mTask, 0); in testRemoteException() 171 verifyNoMoreInteractions(mCallback); in testRemoteException()
|
D | CopyAccountToUserTaskTest.java | 68 @Mock private AbstractProvisioningTask.Callback mCallback; field in CopyAccountToUserTaskTest 107 verify(mCallback).onSuccess(mTask); in testRun() 108 verifyNoMoreInteractions(mCallback); in testRun() 131 verify(mCallback).onSuccess(mTask); in testRun_error() 132 verifyNoMoreInteractions(mCallback); in testRun_error() 147 verify(mCallback).onSuccess(mTask); in testRun_nullAccount() 148 verifyNoMoreInteractions(mCallback); in testRun_nullAccount() 163 verify(mCallback).onSuccess(mTask); in testRun_sameUser() 164 verifyNoMoreInteractions(mCallback); in testRun_sameUser() 214 mTask = new CopyAccountToUserTask(sourceUserId, mContext, params, mCallback, in createTask()
|
D | DeleteNonRequiredAppsTaskTest.java | 62 private @Mock AbstractProvisioningTask.Callback mCallback; field in DeleteNonRequiredAppsTaskTest 82 mTask = new DeleteNonRequiredAppsTask(mTestContext, TEST_PARAMS, mCallback, mLogic, in setUp() 99 verify(mCallback).onSuccess(mTask); in testNoAppsToDelete() 100 verifyNoMoreInteractions(mCallback); in testNoAppsToDelete() 121 verify(mCallback).onSuccess(mTask); in testAppsToDelete() 122 verifyNoMoreInteractions(mCallback); in testAppsToDelete() 141 verify(mCallback).onSuccess(mTask); in testAllAppsAlreadyDeleted() 142 verifyNoMoreInteractions(mCallback); in testAllAppsAlreadyDeleted() 165 verify(mCallback).onError(mTask, 0); in testDeletionFailed() 166 verifyNoMoreInteractions(mCallback); in testDeletionFailed()
|
D | DisallowAddUserTaskTest.java | 47 @Mock private AbstractProvisioningTask.Callback mCallback; field in DisallowAddUserTaskTest 78 new DisallowAddUserTask(false, mockContext, null, mCallback, in testMaybeDisallowAddUsers_normalSystem() 87 verify(mCallback).onSuccess(task); in testMaybeDisallowAddUsers_normalSystem() 96 new DisallowAddUserTask(false, mockContext, null, mCallback, in testMaybeDisallowAddUsers_normalSystem_restrictionAlreadySetupForOneUser() 110 verify(mCallback).onSuccess(task); in testMaybeDisallowAddUsers_normalSystem_restrictionAlreadySetupForOneUser() 119 new DisallowAddUserTask(true, mockContext, null, mCallback, in testMaybeDisallowAddUsers_splitUserSystem_meatUserDeviceOwner() 130 verify(mCallback).onSuccess(task); in testMaybeDisallowAddUsers_splitUserSystem_meatUserDeviceOwner() 138 new DisallowAddUserTask(true, mockContext, null, mCallback, in testMaybeDisallowAddUsers_splitUserSystem_systemDeviceOwner() 147 verify(mCallback).onSuccess(task); in testMaybeDisallowAddUsers_splitUserSystem_systemDeviceOwner()
|
D | DownloadPackageTaskTest.java | 64 @Mock private AbstractProvisioningTask.Callback mCallback; field in DownloadPackageTaskTest 101 mCallback, in setUp() 116 verifyNoMoreInteractions(mCallback); in testAlreadyInstalled() 128 verify(mCallback).onError(mTask, ERROR_OTHER); in testNotConnected() 129 verifyNoMoreInteractions(mCallback); in testNotConnected() 147 verify(mCallback).onError(mTask, ERROR_DOWNLOAD_FAILED); in testDownloadFailed() 148 verifyNoMoreInteractions(mCallback); in testDownloadFailed() 167 verifyNoMoreInteractions(mCallback); in testDownloadSucceeded() 188 verifyNoMoreInteractions(mCallback); in testSendBroadcastTwice() 218 verify(mCallback).onSuccess(mTask); in verifyOnTaskFinished()
|
D | InstallExistingPackageTaskTest.java | 60 @Mock private AbstractProvisioningTask.Callback mCallback; field in InstallExistingPackageTaskTest 70 mCallback, mock(ProvisioningAnalyticsTracker.class)); in setUp() 84 verify(mCallback).onSuccess(mTask); in testSuccess() 85 verifyNoMoreInteractions(mCallback); in testSuccess() 98 verify(mCallback).onError(mTask, 0); in testPackageNotFound() 99 verifyNoMoreInteractions(mCallback); in testPackageNotFound() 112 verify(mCallback).onError(mTask, 0); in testInstallFailed() 113 verifyNoMoreInteractions(mCallback); in testInstallFailed()
|
/packages/services/Telephony/tests/src/com/android/phone/ |
D | NumberVerificationManagerTest.java | 54 @Mock private INumberVerificationCallback mCallback; field in NumberVerificationManagerTest 79 manager.requestVerification(SAMPLE_RANGE, mCallback, DEFAULT_VERIFICATION_TIMEOUT); in testConcurrentRequestFailure() 80 manager.requestVerification(SAMPLE_RANGE, mCallback, DEFAULT_VERIFICATION_TIMEOUT); in testConcurrentRequestFailure() 81 verify(mCallback, times(1)).onVerificationFailed( in testConcurrentRequestFailure() 91 manager.requestVerification(SAMPLE_RANGE, mCallback, DEFAULT_VERIFICATION_TIMEOUT); in testEcbmFailure() 92 verify(mCallback, times(1)).onVerificationFailed( in testEcbmFailure() 102 manager.requestVerification(SAMPLE_RANGE, mCallback, DEFAULT_VERIFICATION_TIMEOUT); in testEmergencyCallFailure() 103 verify(mCallback, times(1)).onVerificationFailed( in testEmergencyCallFailure() 116 manager.requestVerification(SAMPLE_RANGE, mCallback, DEFAULT_VERIFICATION_TIMEOUT); in testNoPhoneInServiceFailure() 117 verify(mCallback, times(1)).onVerificationFailed( in testNoPhoneInServiceFailure() [all …]
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/provisioning/ |
D | ProvisioningManagerTest.java | 78 @Mock private ProvisioningManagerCallback mCallback; field in ProvisioningManagerTest 138 mManager.registerListener(mCallback); in testListener_error() 142 … verify(mCallback).error(R.string.cant_set_up_device, TEST_ERROR_ID, TEST_FACTORY_RESET_REQUIRED); in testListener_error() 145 mManager.unregisterListener(mCallback); in testListener_error() 146 mManager.registerListener(mCallback); in testListener_error() 148 …verify(mCallback, times(2)).error(R.string.cant_set_up_device, TEST_ERROR_ID, TEST_FACTORY_RESET_R… in testListener_error() 149 verifyNoMoreInteractions(mCallback); in testListener_error() 158 mManager.registerListener(mCallback); in testListener_cleanupCompleted() 162 verifyZeroInteractions(mCallback); in testListener_cleanupCompleted() 171 mManager.registerListener(mCallback); in testListener_preFinalizationCompleted() [all …]
|
/packages/apps/Car/Radio/src/com/android/car/radio/platform/ |
D | TunerCallbackAdapterExt.java | 52 private final RadioTuner.Callback mCallback; field in TunerCallbackAdapterExt 71 mCallback = Objects.requireNonNull(callback); in TunerCallbackAdapterExt() 108 mHandler.post(() -> mCallback.onError(status)); in onError() 117 mHandler.post(() -> mCallback.onTuneFailed(result, selector)); in onTuneFailed() 122 mHandler.post(() -> mCallback.onConfigurationChanged(config)); in onConfigurationChanged() 143 mHandler.post(() -> mCallback.onProgramInfoChanged(info)); in onProgramInfoChanged() 147 mHandler.post(() -> mCallback.onMetadataChanged(metadata)); in onMetadataChanged() 151 mHandler.post(() -> mCallback.onTrafficAnnouncement(active)); in onTrafficAnnouncement() 155 mHandler.post(() -> mCallback.onEmergencyAnnouncement(active)); in onEmergencyAnnouncement() 159 mHandler.post(() -> mCallback.onAntennaState(connected)); in onAntennaState() [all …]
|
/packages/services/Telephony/tests/src/com/android/services/telephony/ |
D | RadioOnStateListenerTest.java | 58 @Mock RadioOnStateListener.Callback mCallback; field in RadioOnStateListenerTest 88 mListener.waitForRadioOn(mMockPhone, mCallback, false, false); in testRegisterForCallback() 112 when(mCallback.isOkToCall(eq(mMockPhone), anyInt())).thenReturn(true); in testPhoneChangeState_OkToCallTrue() 114 mListener.waitForRadioOn(mMockPhone, mCallback, false, false); in testPhoneChangeState_OkToCallTrue() 121 verify(mCallback).onComplete(eq(mListener), eq(true)); in testPhoneChangeState_OkToCallTrue() 135 when(mCallback.isOkToCall(eq(mMockPhone), anyInt())).thenReturn(false); in testPhoneChangeState_NoOkToCall_Timeout() 138 mListener.waitForRadioOn(mMockPhone, mCallback, false, false); in testPhoneChangeState_NoOkToCall_Timeout() 145 verify(mCallback, never()).onComplete(any(RadioOnStateListener.class), anyBoolean()); in testPhoneChangeState_NoOkToCall_Timeout() 161 when(mCallback.isOkToCall(eq(mMockPhone), anyInt())).thenReturn(false); in testTimeout_RetryFailure() 167 mListener.waitForRadioOn(mMockPhone, mCallback, false, false); in testTimeout_RetryFailure() [all …]
|
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer2/ |
D | MpegTsPlayerV2.java | 122 private Callback mCallback; field in MpegTsPlayerV2 145 mCallback = callback; in MpegTsPlayerV2() 263 mCallback = null; in release() 324 if (mCallback != null in onTracksChanged() 328 mCallback.onAudioUnplayable(); in onTracksChanged() 449 if (mCallback == null) { in onPlayerStateChanged() 452 mCallback.onStateChanged(state); in onPlayerStateChanged() 455 mCallback.onVideoSizeChanged(format.width, format.height, format.pixelWidthHeightRatio); in onPlayerStateChanged() 461 if (mCallback != null) { in onPlayerError() 462 mCallback.onError(exception); in onPlayerError() [all …]
|
/packages/apps/Settings/src/com/android/settings/applications/ |
D | ApplicationFeatureProviderImpl.java | 170 private NumberOfAppsCallback mCallback; field in ApplicationFeatureProviderImpl.CurrentUserAndManagedProfilePolicyInstalledAppCounter 175 mCallback = callback; in CurrentUserAndManagedProfilePolicyInstalledAppCounter() 180 mCallback.onNumberOfAppsResult(num); in onCountComplete() 186 private NumberOfAppsCallback mCallback; field in ApplicationFeatureProviderImpl.CurrentUserAndManagedProfileAppWithAdminGrantedPermissionsCounter 193 mCallback = callback; in CurrentUserAndManagedProfileAppWithAdminGrantedPermissionsCounter() 198 mCallback.onNumberOfAppsResult(num); in onCountComplete() 203 private ListOfAppsCallback mCallback; field in ApplicationFeatureProviderImpl.CurrentUserPolicyInstalledAppLister 208 mCallback = callback; in CurrentUserPolicyInstalledAppLister() 213 mCallback.onListOfAppsResult(list); in onAppListBuilt() 219 private ListOfAppsCallback mCallback; field in ApplicationFeatureProviderImpl.CurrentUserAppWithAdminGrantedPermissionsLister [all …]
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/ |
D | ApplicationFeatureProviderImpl.java | 170 private NumberOfAppsCallback mCallback; field in ApplicationFeatureProviderImpl.CurrentUserAndManagedProfilePolicyInstalledAppCounter 175 mCallback = callback; in CurrentUserAndManagedProfilePolicyInstalledAppCounter() 180 mCallback.onNumberOfAppsResult(num); in onCountComplete() 186 private NumberOfAppsCallback mCallback; field in ApplicationFeatureProviderImpl.CurrentUserAndManagedProfileAppWithAdminGrantedPermissionsCounter 193 mCallback = callback; in CurrentUserAndManagedProfileAppWithAdminGrantedPermissionsCounter() 198 mCallback.onNumberOfAppsResult(num); in onCountComplete() 203 private ListOfAppsCallback mCallback; field in ApplicationFeatureProviderImpl.CurrentUserPolicyInstalledAppLister 208 mCallback = callback; in CurrentUserPolicyInstalledAppLister() 213 mCallback.onListOfAppsResult(list); in onAppListBuilt() 219 private ListOfAppsCallback mCallback; field in ApplicationFeatureProviderImpl.CurrentUserAppWithAdminGrantedPermissionsLister [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/hid/ |
D | HidDeviceService.java | 78 private IBluetoothHidDeviceCallback mCallback; field in HidDeviceService 104 if (mCallback != null) { in handleMessage() 105 mCallback.onAppStatusChanged(device, success); in handleMessage() 116 if (mCallback != null) { in handleMessage() 117 IBinder binder = mCallback.asBinder(); in handleMessage() 126 if (mCallback != null) { in handleMessage() 127 IBinder binder = mCallback.asBinder(); in handleMessage() 140 mCallback = null; in handleMessage() 158 if (mCallback != null) { in handleMessage() 159 mCallback.onConnectionStateChanged(device, state); in handleMessage() [all …]
|
/packages/services/Telephony/src/com/android/services/telephony/ |
D | RadioOnStateListener.java | 101 private Callback mCallback; // The callback to notify upon completion. field in RadioOnStateListener 155 mCallback = callback; in startSequenceInternal() 214 return (mCallback == null) ? false : mCallback.isOkToCall(mPhone, serviceState); in isOkToCall() 342 if (mCallback != null) { in onComplete() 343 Callback tempCallback = mCallback; in onComplete() 344 mCallback = null; in onComplete() 374 if (mCallback != null ? !mCallback.equals(that.mCallback) : that.mCallback != null) { in equals()
|
/packages/services/Telephony/src/com/android/phone/ |
D | NumberVerificationManager.java | 46 private INumberVerificationCallback mCallback; field in NumberVerificationManager 69 if (mCurrentRange == null || mCallback == null) { in checkIncomingCall() 76 mCallback.onCallReceived(number); in checkIncomingCall() 85 mCallback = null; in checkIncomingCall() 97 mCallback = callback; in requestVerification() 103 if (mCallback != null && mCurrentRange != null) { in requestVerification() 105 mCallback.onVerificationFailed(NumberVerificationCallback.REASON_TIMED_OUT); in requestVerification() 110 mCallback = null; in requestVerification() 120 if (mCurrentRange != null || mCallback != null) { in checkNumberVerificationFeasibility()
|
/packages/modules/NetworkStack/src/android/net/ip/ |
D | IpClient.java | 186 private final IIpClientCallbacks mCallback; field in IpClient.IpClientCallbacksWrapper 194 mCallback = callback; in IpClientCallbacksWrapper() 214 mCallback.onPreDhcpAction(); in onPreDhcpAction() 227 mCallback.onPostDhcpAction(); in onPostDhcpAction() 239 mCallback.onNewDhcpResults(toStableParcelable(dhcpResults)); in onNewDhcpResults() 251 mCallback.onProvisioningSuccess(mShim.makeSensitiveFieldsParcelingCopy(newLp)); in onProvisioningSuccess() 263 mCallback.onProvisioningFailure(mShim.makeSensitiveFieldsParcelingCopy(newLp)); in onProvisioningFailure() 275 mCallback.onLinkPropertiesChange(mShim.makeSensitiveFieldsParcelingCopy(newLp)); in onLinkPropertiesChange() 288 mCallback.onReachabilityLost(logMsg); in onReachabilityLost() 300 mCallback.onQuit(); in onQuit() [all …]
|
/packages/services/AlternativeNetworkAccess/tests/src/com/android/ons/ |
D | OpportunisticNetworkServiceTest.java | 128 IUpdateAvailableNetworksCallback mCallback = new IUpdateAvailableNetworksCallback.Stub() { in testHandleSimStateChange() local 135 ONSConfigInput onsConfigInput = new ONSConfigInput(availableNetworkInfos, mCallback); in testHandleSimStateChange() 169 IUpdateAvailableNetworksCallback mCallback = new IUpdateAvailableNetworksCallback.Stub() { in testSystemPreferredDataWhileCarrierAppIsActive() local 176 ONSConfigInput onsConfigInput = new ONSConfigInput(availableNetworkInfos, mCallback); in testSystemPreferredDataWhileCarrierAppIsActive() 245 IUpdateAvailableNetworksCallback mCallback = new IUpdateAvailableNetworksCallback.Stub() { in testUpdateAvailableNetworksWithInvalidArguments() local 261 iOpportunisticNetworkService.updateAvailableNetworks(availableNetworkInfos, mCallback, in testUpdateAvailableNetworksWithInvalidArguments() 273 IUpdateAvailableNetworksCallback mCallback = new IUpdateAvailableNetworksCallback.Stub() { in testUpdateAvailableNetworksWithSuccess() local 283 iOpportunisticNetworkService.updateAvailableNetworks(availableNetworkInfos, mCallback, in testUpdateAvailableNetworksWithSuccess() 301 IUpdateAvailableNetworksCallback mCallback = new IUpdateAvailableNetworksCallback.Stub() { in testPriorityRuleOfActivatingAvailableNetworks() local 308 ONSConfigInput onsConfigInput = new ONSConfigInput(availableNetworkInfos, mCallback); in testPriorityRuleOfActivatingAvailableNetworks() [all …]
|
/packages/apps/TV/src/com/android/tv/dvr/ui/playback/ |
D | DvrPlayer.java | 53 private DvrPlayerCallback mCallback; field in DvrPlayer 142 mCallback.onPlaybackStateChanged(mPlaybackState, 1); in prepare() 160 mCallback.onPlaybackStateChanged(mPlaybackState, 1); in play() 181 mCallback.onPlaybackStateChanged(mPlaybackState, 1); in pause() 203 mCallback.onPlaybackStateChanged(mPlaybackState, speed); in fastForward() 225 mCallback.onPlaybackStateChanged(mPlaybackState, speed); in rewind() 244 mCallback.onPlaybackStateChanged(mPlaybackState, 1); in seekTo() 251 mCallback.onPlaybackStateChanged(PlaybackState.STATE_NONE, 1); in reset() 266 mCallback = callback; in setCallback() 268 mCallback = mEmptyCallback; in setCallback() [all …]
|
/packages/apps/Car/Cluster/src/android/car/cluster/ |
D | PhoneFragmentViewModel.java | 43 private PhoneStateCallback mCallback; field in PhoneFragmentViewModel 83 mCallback = callback; in setPhoneStateCallback() 101 if (mCallback != null) { in onCallStateChanged() 102 mCallback.onDisconnect(); in onCallStateChanged() 105 if (mCallback != null) { in onCallStateChanged() 106 mCallback.onCall(); in onCallStateChanged() 110 if (mCallback != null) { in onCallStateChanged() 111 mCallback.onCall(); in onCallStateChanged()
|