/aosp14/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
H A D | ReviewNotificationPermissionsReceiverTest.java | 84 assertTrue(mReceiver.mRescheduled); in testReceive_remindMeLater_firstTime() 85 assertTrue(mReceiver.mCanceled); in testReceive_remindMeLater_firstTime() 109 assertTrue(mReceiver.mRescheduled); in testReceive_remindMeLater_laterTimes() 110 assertTrue(mReceiver.mCanceled); in testReceive_remindMeLater_laterTimes() 130 assertFalse(mReceiver.mRescheduled); in testReceive_dismiss() 131 assertTrue(mReceiver.mCanceled); in testReceive_dismiss() 154 assertTrue(mReceiver.mRescheduled); in testReceive_notificationCanceled_firstSwipe() 155 assertFalse(mReceiver.mCanceled); in testReceive_notificationCanceled_firstSwipe() 178 assertFalse(mReceiver.mRescheduled); in testReceive_notificationCanceled_secondSwipe() 179 assertFalse(mReceiver.mCanceled); in testReceive_notificationCanceled_secondSwipe() [all …]
|
/aosp14/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | AssistDataReceiverProxy.java | 40 private IAssistDataReceiver mReceiver; field in AssistDataReceiverProxy 43 mReceiver = receiver; in AssistDataReceiverProxy() 56 if (mReceiver != null) { in onAssistDataReceivedLocked() 58 mReceiver.onHandleAssistData(data); in onAssistDataReceivedLocked() 68 if (mReceiver != null) { in onAssistScreenshotReceivedLocked() 70 mReceiver.onHandleAssistScreenshot(screenshot); in onAssistScreenshotReceivedLocked() 90 mReceiver.asBinder().linkToDeath(this, 0); in linkToDeath() 97 if (mReceiver != null) { in unlinkToDeath() 98 mReceiver.asBinder().unlinkToDeath(this, 0); in unlinkToDeath() 100 mReceiver = null; in unlinkToDeath()
|
/aosp14/frameworks/base/core/java/android/os/ |
H A D | ResultReceiver.java | 38 IResultReceiver mReceiver; field in ResultReceiver 91 if (mReceiver != null) { in send() 93 mReceiver.send(resultCode, resultData); in send() 115 if (mReceiver == null) { in writeToParcel() 116 mReceiver = new MyResultReceiver(); in writeToParcel() 118 out.writeStrongBinder(mReceiver.asBinder()); in writeToParcel() 125 mReceiver = IResultReceiver.Stub.asInterface(in.readStrongBinder()); in ResultReceiver()
|
/aosp14/frameworks/base/core/java/com/android/internal/midi/ |
H A D | MidiFramer.java | 37 private MidiReceiver mReceiver; field in MidiFramer 45 mReceiver = receiver; in MidiFramer() 80 mReceiver.send(data, sysExStartOffset, in onSend() 94 mReceiver.send(data, sysExStartOffset, in onSend() 98 mReceiver.send(data, offset, 1, timestamp); in onSend() 113 mReceiver.send(mBuffer, 0, mCount, timestamp); in onSend() 124 mReceiver.send(data, sysExStartOffset, in onSend()
|
/aosp14/frameworks/base/services/core/java/com/android/server/location/injector/ |
H A D | SystemDeviceIdleHelper.java | 43 private @Nullable BroadcastReceiver mReceiver; field in SystemDeviceIdleHelper 74 if (mRegistrationRequired && mReceiver == null) { in onRegistrationStateChanged() 84 mReceiver = receiver; in onRegistrationStateChanged() 85 } else if (!mRegistrationRequired && mReceiver != null) { in onRegistrationStateChanged() 86 BroadcastReceiver receiver = mReceiver; in onRegistrationStateChanged() 87 mReceiver = null; in onRegistrationStateChanged()
|
H A D | SystemPackageResetHelper.java | 38 private BroadcastReceiver mReceiver; field in SystemPackageResetHelper 46 Preconditions.checkState(mReceiver == null); in onRegister() 47 mReceiver = new Receiver(); in onRegister() 60 mContext.registerReceiver(mReceiver, filter); in onRegister() 65 Preconditions.checkState(mReceiver != null); in onUnregister() 66 mContext.unregisterReceiver(mReceiver); in onUnregister() 67 mReceiver = null; in onUnregister()
|
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/magnification/ |
H A D | WindowMagnificationPromptControllerTest.java | 71 private BroadcastReceiver mReceiver; field in WindowMagnificationPromptControllerTest 101 mReceiver.onReceive(mTestableContext, intent); in tapTurnOnAction_isShown_cancelNotificationAndLaunchMagnificationSettings() 112 mReceiver.onReceive(mTestableContext, intent); in tapTurnOnAction_isShown_settingsValueIsFalseAndUnregisterReceiver() 116 verify(mTestableContext.getSpyContext()).unregisterReceiver(mReceiver); in tapTurnOnAction_isShown_settingsValueIsFalseAndUnregisterReceiver() 124 mReceiver.onReceive(mTestableContext, intent); in tapDismissAction_isShown_cancelNotificationAndUnregisterReceiver() 127 verify(mTestableContext.getSpyContext()).unregisterReceiver(mReceiver); in tapDismissAction_isShown_cancelNotificationAndUnregisterReceiver() 137 verify(mTestableContext.getSpyContext()).unregisterReceiver(mReceiver); in promptSettingsChangeToFalse_isShown_cancelNotificationAndUnregisterReceiver() 147 verify(mTestableContext.getSpyContext()).unregisterReceiver(mReceiver); in onDestroy_isShown_cancelNotificationAndUnregisterReceiver() 165 mReceiver = mWindowMagnificationPromptController.mNotificationActionReceiver; in showNotificationAndAssert() 166 assertThat(mReceiver).isNotNull(); in showNotificationAndAssert()
|
/aosp14/frameworks/base/core/tests/coretests/src/android/os/ |
H A D | CancellationSignalBeamerTest.java | 98 assertThat(mReceiver.unbeam(null)).isNull(); in testUnbeam_null() 103 mReceiver.forget(null); in testForget_null() 108 mReceiver.cancel(null); in testCancel_null() 113 mReceiver.forget(new Binder()); in testForget_withUnknownToken() 118 mReceiver.cancel(new Binder()); in testCancel_withUnknownToken() 123 mReceiver.binderDied(new Binder()); in testBinderDied_withUnknownToken() 208 mReceivedSignal = mReceiver.unbeam(cancellationSignalToken); in invokeGenericService() 214 mReceiver.cancel(token); 219 mReceiver.forget(token); 223 private final Receiver mReceiver = new Receiver(false); field in CancellationSignalBeamerTest
|
/aosp14/frameworks/base/services/core/java/com/android/server/am/ |
H A D | BaseErrorDialog.java | 39 private BroadcastReceiver mReceiver; field in BaseErrorDialog 58 if (mReceiver == null) { in onStart() 59 mReceiver = new BroadcastReceiver() { in onStart() 67 getContext().registerReceiver(mReceiver, in onStart() 75 if (mReceiver != null) { in onStop() 77 getContext().unregisterReceiver(mReceiver); in onStop() 83 mReceiver = null; in onStop()
|
H A D | AppTimeTracker.java | 37 private final PendingIntent mReceiver; field in AppTimeTracker 47 mReceiver = receiver; in AppTimeTracker() 94 mReceiver.send(context, 0, fillinIntent); in deliverResult() 107 pw.print(prefix); pw.print("mReceiver="); pw.println(mReceiver); in dump() 127 proto.write(AppTimeTrackerProto.RECEIVER, mReceiver.toString()); in dumpDebug()
|
/aosp14/frameworks/base/libs/hwui/canvas/ |
H A D | CanvasFrontend.h | 194 mReceiver(std::in_place, std::forward<Args>(args)...) { } in CanvasFrontend() 233 LOG_ALWAYS_FATAL_IF(!mReceiver.has_value()); in receiver() 234 return *mReceiver; in receiver() 238 auto ret = std::move(mReceiver.value()); in finish() 239 mReceiver.reset(); in finish() 246 mReceiver.emplace(std::forward<Args>(args)...); in reset() 250 std::optional<CanvasOpReceiver> mReceiver; 254 LOG_ALWAYS_FATAL_IF(!mReceiver.has_value()); in submit() 255 mReceiver->push_container(CanvasOpContainer(std::move(op), transform())); in submit()
|
/aosp14/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/system/ |
H A D | InputChannelCompat.java | 66 private final BatchedInputEventReceiver mReceiver; field in InputChannelCompat.InputEventReceiver 70 mReceiver = new BatchedInputEventReceiver(inputChannel, looper, choreographer) { in InputEventReceiver() 84 mReceiver.setBatchingEnabled(batchingEnabled); in setBatchingEnabled() 91 mReceiver.dispose(); in dispose()
|
/aosp14/frameworks/base/media/packages/BluetoothMidiService/tests/unit/src/com/android/bluetoothmidiservice/ |
H A D | BluetoothMidiDecoderTest.java | 44 AccumulatingMidiReceiver mReceiver; field in BluetoothMidiDecoderTest.DecoderChecker 48 mReceiver = new AccumulatingMidiReceiver(); in DecoderChecker() 54 byte[][] actualRows = mReceiver.getBuffers(); in compareWithExpected() 55 Long[] actualTimestamps = mReceiver.getTimestamps(); in compareWithExpected() 76 mDecoder.decodePacket(packet, mReceiver); in decodePacket() 83 mDecoder.decodePacket(packet, mReceiver); in decodePackets()
|
H A D | MidiFramerTest.java | 44 AccumulatingMidiReceiver mReceiver; field in MidiFramerTest.FramerChecker 48 mReceiver = new AccumulatingMidiReceiver(); in FramerChecker() 49 mFramer = new MidiFramer(mReceiver); in FramerChecker() 53 byte[][] actualRows = mReceiver.getBuffers(); in compareWithExpected()
|
/aosp14/frameworks/base/tests/Input/src/com/android/test/input/ |
H A D | InputEventSenderAndReceiverTest.kt | 65 private lateinit var mReceiver: SpyInputEventReceiver 75 mReceiver = SpyInputEventReceiver(channels[1], looper) 88 val receivedKey = mReceiver.getInputEvent() as KeyEvent 103 mReceiver.reportTimeline(sent.inputEventId, sent.gpuCompletedTime, sent.presentTime) 115 mReceiver.reportTimeline(sent.inputEventId, sent.gpuCompletedTime, sent.presentTime) 120 mReceiver.reportTimeline(2 /*inputEventId*/, 3 /*gpuCompletedTime*/, 4 /*presentTime*/)
|
/aosp14/frameworks/base/core/java/android/webkit/ |
H A D | JsResult.java | 39 private final ResultReceiver mReceiver; field in JsResult 64 mReceiver = receiver; in JsResult() 77 mReceiver.onJsResultComplete(this); in wakeUp()
|
/aosp14/frameworks/base/packages/SettingsLib/src/com/android/settingslib/deviceinfo/ |
H A D | StorageMeasurement.java | 96 private WeakReference<MeasurementReceiver> mReceiver; field in StorageMeasurement 115 if (mReceiver == null || mReceiver.get() == null) { in setReceiver() 116 mReceiver = new WeakReference<MeasurementReceiver>(receiver); in setReceiver() 129 mReceiver = null; in onDestroy() 140 final MeasurementReceiver receiver = (mReceiver != null) ? mReceiver.get() : null; in onPostExecute()
|
/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/ |
H A D | MasterClearReceiverTest.java | 86 private final MasterClearReceiver mReceiver = new MasterClearReceiver(); field in MasterClearReceiverTest 127 mReceiver.onReceive(mContext, intent); in testNoExtras() 140 mReceiver.onReceive(mContext, intent); in testWipeExternalDirectory() 157 mReceiver.onReceive(mContext, intent); in testAllExtras() 170 mReceiver.onReceive(mContext, intent); in testNonSystemUser() 185 mReceiver.onReceive(mContext, intent); in testHeadlessSystemUser() 272 mReceiver.setPendingResult(new BroadcastReceiver.PendingResult( in setPendingResultForUser()
|
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/biometrics/ |
H A D | AuthServiceTest.java | 94 IBiometricServiceReceiver mReceiver; field in AuthServiceTest 218 mReceiver, in testAuthenticate_appOpsOk_callsBiometricServiceAuthenticate() 226 eq(mReceiver), in testAuthenticate_appOpsOk_callsBiometricServiceAuthenticate() 247 mReceiver, in testAuthenticate_appOpsDenied_doesNotCallBiometricService() 255 eq(mReceiver), in testAuthenticate_appOpsDenied_doesNotCallBiometricService() 258 verify(mReceiver).onError(eq(TYPE_NONE), eq(BIOMETRIC_ERROR_CANCELED), anyInt()); in testAuthenticate_appOpsDenied_doesNotCallBiometricService() 274 mReceiver, in testAuthenticate_missingRequiredParam() 278 verify(mReceiver).onError(eq(TYPE_NONE), eq(BIOMETRIC_ERROR_CANCELED), anyInt()); in testAuthenticate_missingRequiredParam() 294 mReceiver, in testAuthenticate_noVdmInternalService_noCrash() 312 mReceiver, in testAuthenticate_callsVirtualDeviceManagerOnAuthenticationPrompt() [all …]
|
/aosp14/frameworks/base/tests/utils/testutils/java/com/android/internal/util/test/ |
H A D | BroadcastInterceptingContext.java | 64 private final BroadcastReceiver mReceiver; field in BroadcastInterceptingContext.BroadcastInterceptor 70 mReceiver = receiver; in BroadcastInterceptor() 77 if (mReceiver != null) { in dispatchBroadcast() 80 mReceiver.onReceive(context, intent); in dispatchBroadcast() 82 mHandler.post(() -> mReceiver.onReceive(context, intent)); in dispatchBroadcast() 195 if (receiver.equals(interceptor.mReceiver)) { in unregisterReceiver()
|
/aosp14/frameworks/base/core/tests/coretests/src/android/app/ |
H A D | DownloadManagerFunctionalTest.java | 64 if (mReceiver != null) { in tearDown() 65 mContext.unregisterReceiver(mReceiver); in tearDown() 66 mReceiver = null; in tearDown() 211 assertEquals(1, mReceiver.numDownloadsCompleted()); in testDownloadToExternal() 258 Set<Long> ids = mReceiver.getDownloadIds(); in testGetDownloadIdOnNotification() 312 assertEquals(1, mReceiver.numDownloadsCompleted()); in testRelativeRedirect() 391 assertEquals(1, mReceiver.numDownloadsCompleted()); in testDownloadNoWifi() 420 assertEquals(1, mReceiver.numDownloadsCompleted()); in testServerDropConnection_body()
|
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/statusbar/ |
H A D | TileRequestTrackerTest.java | 77 assertNotNull(reg.mReceiver); in testBroadcastReceiverRegistered() 140 getReceiverRegistration().mReceiver.onReceive(mContext, intent); in testPackageUninstallRemovesDenials_allComponents() 156 getReceiverRegistration().mReceiver.onReceive(mContext, intent); in testPackageUninstallRemoveDenials_differentUsers() 174 getReceiverRegistration().mReceiver.onReceive(mContext, intent); in testPackageUninstallRemoveDenials_differentPackages() 192 getReceiverRegistration().mReceiver.onReceive(mContext, intent); in testPackageUpdateDoesntRemoveDenials() 206 getReceiverRegistration().mReceiver.onReceive(mContext, intent); in testClearPackageDataRemovesDenials()
|
/aosp14/frameworks/base/tests/testables/src/android/testing/ |
H A D | TestableContext.java | 74 private LeakCheck.Tracker mReceiver; field in TestableContext 92 mReceiver = check != null ? check.getTracker("receiver") : null; in TestableContext() 194 if (mReceiver != null) mReceiver.getLeakInfo(receiver).addAllocation(new Throwable()); in registerReceiver() 201 if (mReceiver != null) mReceiver.getLeakInfo(receiver).addAllocation(new Throwable()); in registerReceiver() 208 if (mReceiver != null) mReceiver.getLeakInfo(receiver).addAllocation(new Throwable()); in registerReceiverAsUser() 215 if (mReceiver != null) mReceiver.getLeakInfo(receiver).clearAllocations(); in unregisterReceiver()
|
/aosp14/frameworks/base/core/java/android/service/autofill/ |
H A D | SavedDatasetsInfoCallbackImpl.java | 40 private final IResultReceiver mReceiver; field in SavedDatasetsInfoCallbackImpl 50 mReceiver = requireNonNull(receiver); in SavedDatasetsInfoCallbackImpl() 86 mReceiver.send(resultCode, bundle); in send()
|
/aosp14/frameworks/base/tests/UsbHostExternalManagmentTest/AoapTestHost/src/com/android/hardware/usb/aoaphosttest/ |
H A D | UsbAoapHostTestActivity.java | 44 private UsbStateReceiver mReceiver; field in UsbAoapHostTestActivity 58 mReceiver = new UsbStateReceiver(); in onCreate() 59 registerReceiver(mReceiver, filter); in onCreate() 75 unregisterReceiver(mReceiver); in onDestroy()
|