/cts/tests/tests/app/src/android/app/cts/ |
D | DownloadManagerTest.java | 73 final DownloadCompleteReceiver receiver = new DownloadCompleteReceiver(); in testDownloadManager() local 76 mContext.registerReceiver(receiver, intentFilter); in testDownloadManager() 87 receiver.waitForDownloadComplete(SHORT_TIMEOUT, goodId, badId); in testDownloadManager() 95 mContext.unregisterReceiver(receiver); in testDownloadManager() 100 final DownloadCompleteReceiver receiver = new DownloadCompleteReceiver(); in testMinimumDownload() local 103 mContext.registerReceiver(receiver, intentFilter); in testMinimumDownload() 106 receiver.waitForDownloadComplete(LONG_TIMEOUT, id); in testMinimumDownload() 128 mContext.unregisterReceiver(receiver); in testMinimumDownload() 156 final DownloadCompleteReceiver receiver = new DownloadCompleteReceiver(); in testDownloadManagerDestination() local 159 mContext.registerReceiver(receiver, intentFilter); in testDownloadManagerDestination() [all …]
|
/cts/hostsidetests/appsecurity/test-apps/UsePermissionDiffCert/src/com/android/cts/usespermissiondiffcertapp/ |
D | ModifyInstallerPackageTest.java | 188 SetInstallerPackageReceiver receiver = new SetInstallerPackageReceiver(); in testSetInstallPackageConflictingInstaller() local 189 getContext().sendOrderedBroadcast(intent, null, receiver, null, 0, null, null); in testSetInstallPackageConflictingInstaller() 190 receiver.assertSuccess("Failure initializing with other installer"); in testSetInstallPackageConflictingInstaller() 206 receiver = new SetInstallerPackageReceiver(); in testSetInstallPackageConflictingInstaller() 207 getContext().sendOrderedBroadcast(intent, null, receiver, null, 0, null, null); in testSetInstallPackageConflictingInstaller() 208 receiver.assertSuccess("Failure clearing other installer"); in testSetInstallPackageConflictingInstaller()
|
D | AccessPermissionWithDiffSigTest.java | 509 GrantResultReceiver receiver = new GrantResultReceiver(); in grantUriPermissionFail() local 510 getContext().sendOrderedBroadcast(intent, null, receiver, null, 0, null, null); in grantUriPermissionFail() 511 … receiver.assertFailure("Able to grant URI permission to " + grantDataUri + " when should not"); in grantUriPermissionFail() 521 receiver = new GrantResultReceiver(); in grantUriPermissionFail() 522 getContext().sendOrderedBroadcast(intent, null, receiver, null, 0, null, null); in grantUriPermissionFail() 523 receiver.assertFailure("Able to grant URI permission to " + grantIntent.getClipData() in grantUriPermissionFail() 1354 GrantResultReceiver receiver = new GrantResultReceiver(); in assertPersistedUriPermission() local 1355 getContext().sendOrderedBroadcast(intent, null, receiver, null, 0, null, null); in assertPersistedUriPermission() 1356 receiver.assertSuccess("unexpected outgoing persisted Uri status"); in assertPersistedUriPermission()
|
/cts/tests/tests/permission2/src/android/permission2/cts/ |
D | NoReceiveSmsPermissionTest.java | 65 IllegalSmsReceiver receiver = new IllegalSmsReceiver(); in testReceiveTextMessage() local 71 getContext().registerReceiver(receiver, filter); in testReceiveTextMessage() 73 synchronized(receiver) { in testReceiveTextMessage() 75 receiver.wait(WAIT_TIME); in testReceiveTextMessage() 82 receiver.isMessageSent()); in testReceiveTextMessage() 83 assertFalse("Sms received without proper permissions", receiver.isSmsReceived()); in testReceiveTextMessage()
|
/cts/tests/tests/os/src/android/os/cts/ |
D | ResultReceiverTest.java | 40 ResultReceiver receiver = new ResultReceiver(mHandler); in testResultReceiver() local 41 assertEquals(0, receiver.describeContents()); in testResultReceiver() 44 receiver.writeToParcel(p, 0); in testResultReceiver()
|
/cts/tests/tests/view/src/android/view/inputmethod/cts/ |
D | InputMethodManagerTest.java | 110 ResultReceiver receiver = new ResultReceiver(handler); in testInputMethodManager() 111 assertTrue(imManager.showSoftInput(view, 0, receiver)); in testInputMethodManager() 112 receiver = new ResultReceiver(handler); in testInputMethodManager() 113 assertTrue(imManager.hideSoftInputFromWindow(token, 0, receiver)); in testInputMethodManager()
|
/cts/tests/tests/content/src/android/content/cts/ |
D | ContextWrapperTest.java | 116 for (BroadcastReceiver receiver : mRegisteredReceiverList) { in tearDown() 117 mContextWrapper.unregisterReceiver(receiver); in tearDown() 123 private void registerBroadcastReceiver(BroadcastReceiver receiver, IntentFilter filter) { in registerBroadcastReceiver() argument 124 mContextWrapper.registerReceiver(receiver, filter); in registerBroadcastReceiver() 126 mRegisteredReceiverList.add(receiver); in registerBroadcastReceiver() 649 final ResultReceiver receiver = new ResultReceiver(); in testSendBroadcast1() local 651 registerBroadcastReceiver(receiver, new IntentFilter(ResultReceiver.MOCK_ACTION)); in testSendBroadcast1() 658 return receiver.hasReceivedBroadCast(); in testSendBroadcast1() 664 final ResultReceiver receiver = new ResultReceiver(); in testSendBroadcast2() local 666 registerBroadcastReceiver(receiver, new IntentFilter(ResultReceiver.MOCK_ACTION)); in testSendBroadcast2() [all …]
|
/cts/tests/tests/net/src/android/net/cts/ |
D | ConnectivityManagerTest.java | 282 ConnectivityActionReceiver receiver = in testStartUsingNetworkFeature_enableHipri() local 286 mContext.registerReceiver(receiver, filter); in testStartUsingNetworkFeature_enableHipri() 294 assertTrue("Couldn't connect using hipri...", receiver.waitForConnection()); in testStartUsingNetworkFeature_enableHipri() 315 ConnectivityActionReceiver receiver = in connectToWifi() local 319 mContext.registerReceiver(receiver, filter); in connectToWifi() 323 receiver.waitForConnection()); in connectToWifi() 325 mContext.unregisterReceiver(receiver); in connectToWifi()
|
/cts/tests/tests/net/src/android/net/http/cts/ |
D | ApacheHttpClientTest.java | 142 ConnectivityActionReceiver receiver = in connectToWifi() local 146 mContext.registerReceiver(receiver, filter); in connectToWifi() 150 receiver.waitForStateChange()); in connectToWifi() 152 mContext.unregisterReceiver(receiver); in connectToWifi()
|