/cts/hostsidetests/monkey/src/com/android/cts/monkey/ |
D | CategoryTest.java | 29 CollectingOutputReceiver receiver = new CollectingOutputReceiver(); in testDefaultCategories() local 31 mDevice.executeShellCommand(cmd, receiver, MAX_TIMEOUT, TimeUnit.MILLISECONDS, 0); in testDefaultCategories() 32 String out = receiver.getOutput(); in testDefaultCategories() 36 receiver.cancel(); in testDefaultCategories() 37 receiver.clearBuffer(); in testDefaultCategories() 38 receiver = null; in testDefaultCategories() 45 CollectingOutputReceiver receiver = new CollectingOutputReceiver(); in testSingleCategory() local 47 mDevice.executeShellCommand(cmd, receiver, MAX_TIMEOUT, TimeUnit.MILLISECONDS, 0); in testSingleCategory() 48 String out = receiver.getOutput(); in testSingleCategory() 52 receiver.cancel(); in testSingleCategory() [all …]
|
D | PackageTest.java | 38 CollectingOutputReceiver receiver = new CollectingOutputReceiver(); in testSinglePackage() local 40 mDevice.executeShellCommand(cmd, receiver, MAX_TIMEOUT, TimeUnit.MILLISECONDS, 0); in testSinglePackage() 41 String out = receiver.getOutput(); in testSinglePackage() 46 receiver.cancel(); in testSinglePackage() 47 receiver.clearBuffer(); in testSinglePackage() 48 receiver = null; in testSinglePackage() 68 CollectingOutputReceiver receiver = new CollectingOutputReceiver(); in testMultiplePackages() local 70 mDevice.executeShellCommand(cmd, receiver, MAX_TIMEOUT, TimeUnit.MILLISECONDS, 0); in testMultiplePackages() 71 String out = receiver.getOutput(); in testMultiplePackages() 76 receiver.cancel(); in testMultiplePackages() [all …]
|
/cts/common/device-side/bedstead/dpmwrapper/src/main/java/com/android/bedstead/dpmwrapper/ |
D | TestAppHelper.java | 43 public static void registerTestCaseReceiver(Context context, BroadcastReceiver receiver, in registerTestCaseReceiver() argument 45 registerTestCaseReceiver(context, receiver, filter, /* forDeviceOwner= */ true); in registerTestCaseReceiver() 52 public static void registerTestCaseReceiver(Context context, BroadcastReceiver receiver, in registerTestCaseReceiver() argument 58 TestAppCallbacksReceiver.registerReceiver(context, receiver, filter); in registerTestCaseReceiver() 61 Log.d(TAG, "Registering " + receiver + " to receive " + Utils.toString(filter) in registerTestCaseReceiver() 63 LocalBroadcastManager.getInstance(context).registerReceiver(receiver, filter); in registerTestCaseReceiver() 70 public static void unregisterTestCaseReceiver(Context context, BroadcastReceiver receiver) { in unregisterTestCaseReceiver() argument 71 unregisterTestCaseReceiver(context, receiver, /* forDeviceOwner= */ true); in unregisterTestCaseReceiver() 78 public static void unregisterTestCaseReceiver(Context context, BroadcastReceiver receiver, in unregisterTestCaseReceiver() argument 81 TestAppCallbacksReceiver.unregisterReceiver(context, receiver); in unregisterTestCaseReceiver() [all …]
|
D | TestAppCallbacksReceiver.java | 98 private void handleDispatchIntent(BroadcastReceiver receiver, Context context, in handleDispatchIntent() argument 100 Log.d(TAG, "Dispatching " + intent + " to " + receiver + " on thread " in handleDispatchIntent() 102 receiver.onReceive(context, intent); in handleDispatchIntent() 105 static void registerReceiver(Context context, BroadcastReceiver receiver, in registerReceiver() argument 107 if (VERBOSE) Log.v(TAG, "registerReceiver(): " + receiver); in registerReceiver() 110 Log.d(TAG, "Registering " + receiver + " for " + action); in registerReceiver() 117 receivers.add(receiver); in registerReceiver() 122 static void unregisterReceiver(Context context, BroadcastReceiver receiver) { in unregisterReceiver() argument 123 if (VERBOSE) Log.v(TAG, "unregisterReceiver(): " + receiver); in unregisterReceiver() 129 boolean removed = receivers.remove(receiver); in unregisterReceiver() [all …]
|
D | DeviceOwnerHelper.java | 69 public static boolean runManagerMethod(BroadcastReceiver receiver, Context context, in runManagerMethod() argument 103 sendError(receiver, new IllegalArgumentException( in runManagerMethod() 119 sendResult(receiver, result); in runManagerMethod() 121 sendError(receiver, e); in runManagerMethod() 263 private static void sendError(BroadcastReceiver receiver, Exception e) { in sendError() argument 265 sendNoLog(receiver, RESULT_EXCEPTION, e); in sendError() 268 private static void sendResult(BroadcastReceiver receiver, Object result) { in sendResult() argument 269 sendNoLog(receiver, RESULT_OK, result); in sendResult() 273 private static void sendNoLog(BroadcastReceiver receiver, int code, Object result) { in sendNoLog() argument 276 + " (result='" + result + "') to " + receiver + " on " in sendNoLog() [all …]
|
/cts/common/device-side/bedstead/eventlib/src/test/java/com/android/eventlib/premade/ |
D | EventLibDeviceAdminReceiverTest.java | 134 EventLibDeviceAdminReceiver receiver = new EventLibDeviceAdminReceiver(); in disableProfileOwner_logsDisableRequestedEvent() local 136 receiver.onDisableRequested(sContext, sIntent); in disableProfileOwner_logsDisableRequestedEvent() 145 EventLibDeviceAdminReceiver receiver = new EventLibDeviceAdminReceiver(); in disableProfileOwner_logsDisabledEvent() local 147 receiver.onDisabled(sContext, sIntent); in disableProfileOwner_logsDisabledEvent() 156 EventLibDeviceAdminReceiver receiver = new EventLibDeviceAdminReceiver(); in changePassword_logsPasswordChangedEvent() local 158 receiver.onPasswordChanged(sContext, sIntent); in changePassword_logsPasswordChangedEvent() 167 EventLibDeviceAdminReceiver receiver = new EventLibDeviceAdminReceiver(); in changePasswordWithUserHandle_logsPasswordChangedEvent() local 169 receiver.onPasswordChanged(sContext, sIntent, sUser.userHandle()); in changePasswordWithUserHandle_logsPasswordChangedEvent() 180 EventLibDeviceAdminReceiver receiver = new EventLibDeviceAdminReceiver(); in failPassword_logsPasswordFailedEvent() local 182 receiver.onPasswordFailed(sContext, sIntent); in failPassword_logsPasswordFailedEvent() [all …]
|
D | EventLibDelegatedAdminReceiverTest.java | 60 EventLibDelegatedAdminReceiver receiver = new EventLibDelegatedAdminReceiver(); in choosePrivateKeyAlias_logsChoosePrivateKeyAliasEvent() local 62 receiver.onChoosePrivateKeyAlias(sContext, sIntent, UID, URI, ALIAS); in choosePrivateKeyAlias_logsChoosePrivateKeyAliasEvent() 71 EventLibDelegatedAdminReceiver receiver = new EventLibDelegatedAdminReceiver(); in securityLogsAvailable_logsSecurityLogsAvailableEvent() local 73 receiver.onSecurityLogsAvailable(sContext, sIntent); in securityLogsAvailable_logsSecurityLogsAvailableEvent() 82 EventLibDelegatedAdminReceiver receiver = new EventLibDelegatedAdminReceiver(); in networkLogsAvailable_logsNetworksLogsAvailableEvent() local 84 receiver.onNetworkLogsAvailable(sContext, sIntent, BATCH_TOKEN, NETWORK_LOGS_COUNT); in networkLogsAvailable_logsNetworksLogsAvailableEvent()
|
/cts/tests/devicepolicy/src/android/devicepolicy/cts/ |
D | PolicyUpdateReceiverTest.java | 73 PolicyUpdateReceiverImpl receiver = new PolicyUpdateReceiverImpl(); in onReceive_devicePolicySetResultReceived_callsOnPolicySetResultWithCorrectParams() local 75 receiver.onReceive(sContext, intent); in onReceive_devicePolicySetResultReceived_callsOnPolicySetResultWithCorrectParams() 77 assertThat(receiver.mPolicySetResultCalled).isTrue(); in onReceive_devicePolicySetResultReceived_callsOnPolicySetResultWithCorrectParams() 78 assertThat(receiver.mPolicyChangedCalled).isFalse(); in onReceive_devicePolicySetResultReceived_callsOnPolicySetResultWithCorrectParams() 79 assertPolicyUpdateCallbackParams(receiver); in onReceive_devicePolicySetResultReceived_callsOnPolicySetResultWithCorrectParams() 90 PolicyUpdateReceiverImpl receiver = new PolicyUpdateReceiverImpl(); in onReceive_DevicePolicyChangedReceived_callsOnPolicyChangedWithCorrectParams() local 92 receiver.onReceive(sContext, intent); in onReceive_DevicePolicyChangedReceived_callsOnPolicyChangedWithCorrectParams() 94 assertThat(receiver.mPolicyChangedCalled).isTrue(); in onReceive_DevicePolicyChangedReceived_callsOnPolicyChangedWithCorrectParams() 95 assertThat(receiver.mPolicySetResultCalled).isFalse(); in onReceive_DevicePolicyChangedReceived_callsOnPolicyChangedWithCorrectParams() 96 assertPolicyUpdateCallbackParams(receiver); in onReceive_DevicePolicyChangedReceived_callsOnPolicyChangedWithCorrectParams() [all …]
|
/cts/common/device-side/bedstead/eventlib/src/main/java/com/android/eventlib/premade/ |
D | EventLibAppComponentFactory.java | 60 EventLibDeviceAdminReceiver receiver = (EventLibDeviceAdminReceiver) in instantiateReceiver() 64 receiver.setOverrideDeviceAdminReceiverClassName(className); in instantiateReceiver() 65 return receiver; in instantiateReceiver() 69 EventLibDelegatedAdminReceiver receiver = (EventLibDelegatedAdminReceiver) in instantiateReceiver() 73 receiver.setOverrideDelegatedAdminReceiverClassName(className); in instantiateReceiver() 74 return receiver; in instantiateReceiver() 80 EventLibBroadcastReceiver receiver = (EventLibBroadcastReceiver) in instantiateReceiver() 83 receiver.setOverrideBroadcastReceiverClassName(className); in instantiateReceiver() 84 return receiver; in instantiateReceiver()
|
/cts/tests/app/DownloadManagerApi28Test/src/android/app/cts/ |
D | DownloadManagerApi28Test.java | 57 final DownloadCompleteReceiver receiver = new DownloadCompleteReceiver(); in testSetDestinationUri_publicDir() local 60 mContext.registerReceiver(receiver, intentFilter); in testSetDestinationUri_publicDir() 69 receiver.waitForDownloadComplete(SHORT_TIMEOUT, id); in testSetDestinationUri_publicDir() 74 mContext.unregisterReceiver(receiver); in testSetDestinationUri_publicDir() 83 final DownloadCompleteReceiver receiver = new DownloadCompleteReceiver(); in testSetDestinationUri_sdcardPath() local 86 mContext.registerReceiver(receiver, intentFilter); in testSetDestinationUri_sdcardPath() 95 receiver.waitForDownloadComplete(SHORT_TIMEOUT, id); in testSetDestinationUri_sdcardPath() 100 mContext.unregisterReceiver(receiver); in testSetDestinationUri_sdcardPath() 111 final DownloadCompleteReceiver receiver = new DownloadCompleteReceiver(); in testSetDestinationUri_privateAppDir() local 114 mContext.registerReceiver(receiver, intentFilter); in testSetDestinationUri_privateAppDir() [all …]
|
/cts/tests/app/src/android/app/cts/ |
D | DownloadManagerTest.java | 79 final DownloadCompleteReceiver receiver = new DownloadCompleteReceiver(); in testDownloadManager() local 82 mContext.registerReceiver(receiver, intentFilter, Context.RECEIVER_EXPORTED); in testDownloadManager() 93 receiver.waitForDownloadComplete(SHORT_TIMEOUT, goodId, badId); in testDownloadManager() 101 mContext.unregisterReceiver(receiver); in testDownloadManager() 108 final DownloadCompleteReceiver receiver = new DownloadCompleteReceiver(); in testDownloadManagerSupportsHttp() local 111 mContext.registerReceiver(receiver, intentFilter, Context.RECEIVER_EXPORTED); in testDownloadManagerSupportsHttp() 119 receiver.waitForDownloadComplete(SHORT_TIMEOUT, id); in testDownloadManagerSupportsHttp() 125 mContext.unregisterReceiver(receiver); in testDownloadManagerSupportsHttp() 141 final DownloadCompleteReceiver receiver = new DownloadCompleteReceiver(); in testDownloadManagerSupportsHttpWithExternalWebServer() local 144 mContext.registerReceiver(receiver, intentFilter, Context.RECEIVER_EXPORTED); in testDownloadManagerSupportsHttpWithExternalWebServer() [all …]
|
D | NewDocumentTest.java | 40 try (final Receiver receiver = new Receiver(NewDocumentTestActivity.NOTIFY_RESUME)) { in testNewDocument() argument 42 receiver.await(); in testNewDocument() 45 try (final Receiver receiver = new Receiver(NewDocumentTestActivity.NOTIFY_NEW_INTENT)) { in testNewDocument() argument 47 receiver.await(); in testNewDocument()
|
/cts/tests/tests/content/src/android/content/pm/cts/ |
D | ChecksumsTest.java | 217 LocalListener receiver = new LocalListener(); in testNameNotFound() local 220 () -> pm.requestChecksums(V4_PACKAGE_NAME, true, 0, TRUST_NONE, receiver)); in testNameNotFound() 243 LocalListener receiver = new LocalListener(); in testDefaultChecksums() local 245 pm.requestChecksums(V2V3_PACKAGE_NAME, true, 0, TRUST_NONE, receiver); in testDefaultChecksums() 246 ApkChecksum[] checksums = receiver.getResult(); in testDefaultChecksums() 259 LocalListener receiver = new LocalListener(); in testSplitsDefaultChecksums() local 261 pm.requestChecksums(V4_PACKAGE_NAME, true, 0, TRUST_NONE, receiver); in testSplitsDefaultChecksums() 262 ApkChecksum[] checksums = receiver.getResult(); in testSplitsDefaultChecksums() 286 LocalListener receiver = new LocalListener(); in testFixedDefaultChecksums() local 288 pm.requestChecksums(FIXED_PACKAGE_NAME, true, 0, TRUST_NONE, receiver); in testFixedDefaultChecksums() [all …]
|
/cts/hostsidetests/os/test-apps/StaticSharedLibTestApp/src/android/os/lib/app/ |
D | StaticSharedLibsTests.java | 174 InstallUninstallBroadcastReceiver receiver = new InstallUninstallBroadcastReceiver(); in testStaticSharedLibInstall_broadcastReceived() local 175 context.registerReceiver(receiver, filter); in testStaticSharedLibInstall_broadcastReceived() 179 Intent intent = receiver.getResult(); in testStaticSharedLibInstall_broadcastReceived() 185 context.unregisterReceiver(receiver); in testStaticSharedLibInstall_broadcastReceived() 195 InstallUninstallBroadcastReceiver receiver = new InstallUninstallBroadcastReceiver(); in testStaticSharedLibInstall_incorrectInstallerPkgName_broadcastNotReceived() local 196 context.registerReceiver(receiver, filter); in testStaticSharedLibInstall_incorrectInstallerPkgName_broadcastNotReceived() 200 Intent intent = receiver.getResult(); in testStaticSharedLibInstall_incorrectInstallerPkgName_broadcastNotReceived() 205 context.unregisterReceiver(receiver); in testStaticSharedLibInstall_incorrectInstallerPkgName_broadcastNotReceived() 215 InstallUninstallBroadcastReceiver receiver = new InstallUninstallBroadcastReceiver(); in testStaticSharedLibUninstall_broadcastReceived() local 216 context.registerReceiver(receiver, filter); in testStaticSharedLibUninstall_broadcastReceived() [all …]
|
/cts/tests/tests/dreams/src/android/service/dreams/cts/ |
D | SystemDreamTest.java | 112 final DreamShownReceiver receiver = registerReceiver(ACTION_DREAM_SHOWN); in startDream_systemDreamNotSet_startUserDream() local 114 assertDreamShown(receiver); in startDream_systemDreamNotSet_startUserDream() 120 final DreamShownReceiver receiver = registerReceiver(ACTION_SYSTEM_DREAM_SHOWN); in startDream_systemDreamSet_startSystemDream() local 123 assertDreamShown(receiver); in startDream_systemDreamSet_startSystemDream() 173 final DreamShownReceiver receiver = new DreamShownReceiver(); in registerReceiver() local 175 receiver, in registerReceiver() 179 return receiver; in registerReceiver() 182 private void assertDreamShown(DreamShownReceiver receiver) { in assertDreamShown() argument 184 assertThat(receiver.waitUntilShown()).isTrue(); in assertDreamShown() 188 mContext.unregisterReceiver(receiver); in assertDreamShown()
|
/cts/tests/app/AppStartTest/src/android/app/cts/ |
D | ActivityManagerAppStartInfoTest.java | 266 ResultReceiverFilter receiver = new ResultReceiverFilter(REPLY_ACTION_COMPLETE, 1); in testQueryThisProcess() local 274 assertEquals(RESULT_PASS, receiver.waitForActivity()); in testQueryThisProcess() 275 receiver.close(); in testQueryThisProcess() 278 assertEquals(1, receiver.mIntents.size()); in testQueryThisProcess() 280 Bundle extras = receiver.mIntents.get(0).getExtras(); in testQueryThisProcess() 303 ResultReceiverFilter receiver = new ResultReceiverFilter(REPLY_ACTION_COMPLETE, 1); in testAddingTimestamps() local 316 assertEquals(RESULT_PASS, receiver.waitForActivity()); in testAddingTimestamps() 317 receiver.close(); in testAddingTimestamps() 344 ResultReceiverFilter receiver = new ResultReceiverFilter(REPLY_ACTION_COMPLETE, 1); in testTriggerListeners() local 351 assertEquals(RESULT_PASS, receiver.waitForActivity()); in testTriggerListeners() [all …]
|
/cts/tests/tests/view/src/android/view/cts/ |
D | ViewGroup_ScrollCaptureTest.java | 147 Receiver<ScrollCaptureTarget> receiver = new Receiver<>(); in testDispatchScrollCaptureSearch() local 148 viewGroup.dispatchScrollCaptureSearch(localVisibleRect, windowOffset, receiver); in testDispatchScrollCaptureSearch() 149 assertFalse("No target was expected", receiver.hasValue()); in testDispatchScrollCaptureSearch() 169 Receiver<ScrollCaptureTarget> receiver = new Receiver<>(); in testDispatchScrollCaptureSearch_withCallback() local 170 viewGroup.dispatchScrollCaptureSearch(localVisibleRect, windowOffset, receiver); in testDispatchScrollCaptureSearch_withCallback() 171 callOnScrollCaptureSearch(receiver); in testDispatchScrollCaptureSearch_withCallback() 173 assertTrue("A target was expected", receiver.hasValue()); in testDispatchScrollCaptureSearch_withCallback() 175 ScrollCaptureTarget target = receiver.getValue(); in testDispatchScrollCaptureSearch_withCallback() 202 Receiver<ScrollCaptureTarget> receiver = new Receiver<>(); in testDispatchScrollCaptureSearch_withCallback_hintExclude() local 203 viewGroup.dispatchScrollCaptureSearch(localVisibleRect, windowOffset, receiver); in testDispatchScrollCaptureSearch_withCallback_hintExclude() [all …]
|
/cts/hostsidetests/tagging/sdk_30/src/android/cts/tagging/sdk30/ |
D | TaggingTest.java | 71 final DropBoxReceiver receiver = in testMemoryTagSyncChecksEnabled() local 83 assertTrue(receiver.await()); in testMemoryTagSyncChecksEnabled() 89 final DropBoxReceiver receiver = in testMemoryTagAsyncChecksEnabled() local 101 assertTrue(receiver.await()); in testMemoryTagAsyncChecksEnabled() 106 final DropBoxReceiver receiver = in testPermissive() local 117 assertTrue(receiver.await()); in testPermissive() 128 final DropBoxReceiver receiver = in testMemoryTagSyncActivityChecksEnabled() local 140 assertTrue(receiver.await()); in testMemoryTagSyncActivityChecksEnabled() 145 final DropBoxReceiver receiver = in testMemoryTagAsyncActivityChecksEnabled() local 157 assertTrue(receiver.await()); in testMemoryTagAsyncActivityChecksEnabled()
|
/cts/tests/surfacecontrol/jni/ |
D | android_window_cts_ASurfaceControlInputReceiverTest.cpp | 120 AInputReceiver* receiver; in nativeCreateInputReceiver() local 125 receiver = in nativeCreateInputReceiver() 131 receiver = in nativeCreateInputReceiver() 139 new InputReceiverWrapper(receiver, std::move(callbackWrapper)); in nativeCreateInputReceiver() 144 InputReceiverWrapper* receiver = reinterpret_cast<InputReceiverWrapper*>(receiverObj); in nativeDeleteInputReceiver() local 145 delete receiver; in nativeDeleteInputReceiver() 149 InputReceiverWrapper* receiver = reinterpret_cast<InputReceiverWrapper*>(receiverObj); in nativeGetInputTransferToken() local 152 receiver->mInputReceiver)); in nativeGetInputTransferToken()
|
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
D | AlwaysOnVpnTest.java | 125 final BlockingBroadcastReceiver receiver = VpnTestHelper.registerOnStartReceiver(mContext); in testVpnLockdownUpdateAllowlist() local 130 assertNotNull(receiver.awaitForBroadcast(VPN_ON_START_TIMEOUT_MS)); in testVpnLockdownUpdateAllowlist() 137 assertNotNull(receiver.awaitForBroadcast(VPN_ON_START_TIMEOUT_MS)); in testVpnLockdownUpdateAllowlist() 142 assertNotNull(receiver.awaitForBroadcast(VPN_ON_START_TIMEOUT_MS)); in testVpnLockdownUpdateAllowlist() 149 assertNotNull(receiver.awaitForBroadcast(VPN_ON_START_TIMEOUT_MS)); in testVpnLockdownUpdateAllowlist() 151 receiver.unregisterQuietly(); in testVpnLockdownUpdateAllowlist() 166 final BlockingBroadcastReceiver receiver = VpnTestHelper.registerOnStartReceiver(mContext); in testVpnLockdownAllowlistVpnComesUp() local 171 assertNotNull(receiver.awaitForBroadcast(VPN_ON_START_TIMEOUT_MS)); in testVpnLockdownAllowlistVpnComesUp() 182 receiver.unregisterQuietly(); in testVpnLockdownAllowlistVpnComesUp()
|
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ |
D | BasicTest.java | 58 BlockingBroadcastReceiver receiver = in testLaunchAppInstalledInProfileOnly() local 61 receiver.register(); in testLaunchAppInstalledInProfileOnly() 68 Intent receivedBroadcast = receiver.awaitForBroadcast(); in testLaunchAppInstalledInProfileOnly() 72 receiver.unregisterQuietly(); in testLaunchAppInstalledInProfileOnly()
|
D | ResetPasswordWithTokenTest.java | 80 final BlockingBroadcastReceiver receiver = new BlockingBroadcastReceiver(mContext, in testClearPasswordBeforeUnlock() local 82 receiver.register(); in testClearPasswordBeforeUnlock() 85 assertNotNull(receiver.awaitForBroadcast(90_000)); in testClearPasswordBeforeUnlock() 87 receiver.unregisterQuietly(); in testClearPasswordBeforeUnlock()
|
/cts/common/device-side/bedstead/testapp/src/testapps/main/java/com/android/bedstead/testapp/ |
D | TestAppAppComponentFactory.java | 167 BaseTestAppDeviceAdminReceiver receiver = (BaseTestAppDeviceAdminReceiver) in instantiateReceiver() 171 receiver.setOverrideDeviceAdminReceiverClassName(className); in instantiateReceiver() 172 return receiver; in instantiateReceiver() 176 BaseTestAppDelegatedAdminReceiver receiver = (BaseTestAppDelegatedAdminReceiver) in instantiateReceiver() 180 receiver.setOverrideDelegatedAdminReceiverClassName(className); in instantiateReceiver() 181 return receiver; in instantiateReceiver() 186 BaseTestAppBroadcastReceiver receiver = (BaseTestAppBroadcastReceiver) in instantiateReceiver() 189 receiver.setOverrideBroadcastReceiverClassName(className); in instantiateReceiver() 190 return receiver; in instantiateReceiver()
|
D | TestAppController.java | 62 BaseTestAppBroadcastReceiver receiver = sBroadcastReceivers.remove(receiverId); in unregisterReceiver() local 63 if (receiver != null) { in unregisterReceiver() 64 context.unregisterReceiver(receiver); in unregisterReceiver()
|
/cts/tests/app/BroadcastsTest/helper-app/src/com/android/app/cts/broadcasts/helper/ |
D | TestService.java | 55 void registerReceiver(Context context, BroadcastReceiver receiver, in registerReceiver() argument 57 context.registerReceiver(receiver, filter, flags); in registerReceiver() 59 sRegisteredReceivers.add(receiver); in registerReceiver() 63 void unregisterReceiver(Context context, BroadcastReceiver receiver) { in unregisterReceiver() argument 64 context.unregisterReceiver(receiver); in unregisterReceiver() 66 sRegisteredReceivers.remove(receiver); in unregisterReceiver()
|