/cts/hostsidetests/inputmethodservice/deviceside/lib/src/android/inputmethodservice/cts/ |
D | DeviceEvent.java | 62 public static Intent newDeviceEventIntent(@NonNull String sender, in newDeviceEventIntent() argument 67 .putExtra(EXTRA_EVENT_SENDER, sender) in newDeviceEventIntent() 79 final String sender = intent.getStringExtra(EXTRA_EVENT_SENDER); in newEvent() local 80 if (sender == null) { in newEvent() 97 return new DeviceEvent(sender, type, intent.getLongExtra(EXTRA_EVENT_TIME, 0L)); in newEvent() 124 public static Predicate<DeviceEvent> isFrom(String sender) { in isFrom() argument 125 return e -> e.sender.equals(sender); in isFrom() 153 public final String sender; field in DeviceEvent 166 private DeviceEvent(String sender, DeviceEventType type, long time) { in DeviceEvent() argument 167 this.sender = sender; in DeviceEvent() [all …]
|
/cts/tests/tests/os/src/android/os/cts/ |
D | ResultReceiverTest.java | 33 MockResultReceiver sender = new MockResultReceiver(mHandler); in testResultReceiver() local 36 sender.send(resultCode, bundle); in testResultReceiver() 38 assertEquals(resultCode, sender.getResultCode()); in testResultReceiver() 39 assertSame(bundle, sender.getResultData()); in testResultReceiver()
|
/cts/libs/install/src/com/android/cts/install/lib/ |
D | Uninstall.java | 49 LocalIntentSender sender = new LocalIntentSender(); in uninstallSinglePackage() local 50 packageInstaller.uninstall(packageName, sender.getIntentSender()); in uninstallSinglePackage() 51 InstallUtils.assertStatusSuccess(sender.getResult()); in uninstallSinglePackage()
|
D | Install.java | 229 LocalIntentSender sender = new LocalIntentSender(); in commit() local 230 session.commit(sender.getIntentSender()); in commit() 231 Intent result = sender.pollResult(mTimeoutMillis, TimeUnit.MILLISECONDS); in commit()
|
/cts/tests/tests/packageinstaller/atomicinstall/src/com/android/tests/atomicinstall/ |
D | AtomicInstallTest.java | 166 LocalIntentSender sender = new LocalIntentSender(); in testRemoveChild() local 167 parent.commit(sender.getIntentSender()); in testRemoveChild() 168 InstallUtils.assertStatusSuccess(sender.getResult()); in testRemoveChild() 291 LocalIntentSender sender = new LocalIntentSender(); in testInvalidStateScenario_AddChildToCommittedSessionShouldFail() local 292 parent.commit(sender.getIntentSender()); in testInvalidStateScenario_AddChildToCommittedSessionShouldFail() 311 LocalIntentSender sender = new LocalIntentSender(); in testInvalidStateScenario_RemoveChildFromCommittedSessionShouldFail() local 312 parent.commit(sender.getIntentSender()); in testInvalidStateScenario_RemoveChildFromCommittedSessionShouldFail() 352 LocalIntentSender sender = new LocalIntentSender(); in testInvalidStateScenarios() local 353 childSession.commit(sender.getIntentSender()); in testInvalidStateScenarios() 378 LocalIntentSender sender = new LocalIntentSender(); in testInvalidStateScenarios() local [all …]
|
/cts/hostsidetests/packagemanager/multiuser/app/src/com/android/tests/packagemanager/multiuser/app/ |
D | PackageManagerMultiUserTest.java | 58 LocalIntentSender sender = new LocalIntentSender(); in testUninstallExistingPackage() local 59 packageInstaller.uninstallExistingPackage(pkgName, sender.getIntentSender()); in testUninstallExistingPackage() 60 sender.getResult(); // Wait for the operation to complete in testUninstallExistingPackage()
|
/cts/tests/tests/shortcutmanager/src/android/content/pm/cts/shortcutmanager/ |
D | ShortcutManagerConfigActivityTest.java | 85 final AtomicReference<IntentSender> sender = new AtomicReference<>(); in testCorrectIntentSenderCreated() local 87 sender.set(getLauncherApps().getShortcutConfigActivityIntent(getConfigActivity()))); in testCorrectIntentSenderCreated() 94 mLauncherContext1.startIntentSender(sender.get(), null, 0, 0, 0, in testCorrectIntentSenderCreated()
|
/cts/hostsidetests/stagedinstall/app/src/com/android/tests/stagedinstall/ |
D | ApexShimValidationTest.java | 176 LocalIntentSender sender = new LocalIntentSender(); in stageApex() local 177 session.commit(sender.getIntentSender()); in stageApex() 178 sender.getResult(); in stageApex()
|
D | StagedInstallTest.java | 364 LocalIntentSender sender = new LocalIntentSender(); in testNoSessionUpdatedBroadcastSentForStagedSessionAbandon() local 365 InstallUtils.openPackageInstallerSession(sessionId).commit(sender.getIntentSender()); in testNoSessionUpdatedBroadcastSentForStagedSessionAbandon() 1421 LocalIntentSender sender = new LocalIntentSender(); in commitSession() local 1423 .commit(sender.getIntentSender()); in commitSession() 1424 var result = sender.pollResult(5, TimeUnit.MINUTES); in commitSession()
|
/cts/tests/tests/packageinstaller/install/src/android/packageinstaller/install/cts/ |
D | InstallConstraintsTest.kt | 422 val sender = LocalIntentSender() in <lambda>() constant 424 sessionId, sender.intentSender, in <lambda>() 427 InstallUtils.assertStatusSuccess(sender.result) in <lambda>() 442 val sender = LocalIntentSender() in <lambda>() constant 444 sessionId, sender.intentSender, in <lambda>() 447 InstallUtils.assertStatusFailure(sender.result) in <lambda>() 458 sessionId, sender.intentSender, in <lambda>() 461 InstallUtils.assertStatusSuccess(sender.result) in <lambda>()
|
/cts/tests/tests/content/src/android/content/cts/ |
D | ClipDataTest.java | 61 final IntentSender sender = pi.getIntentSender(); in testBuilder() local 64 .setIntentSender(sender) in testBuilder() 70 assertEquals(clip.getIntentSender(), sender); in testBuilder() local
|
/cts/libs/rollback/src/com/android/cts/rollback/lib/ |
D | RollbackUtils.java | 130 LocalIntentSender sender = new LocalIntentSender(); in rollback() local 131 rm.commitRollback(rollbackId, causes, sender.getIntentSender()); in rollback() 132 Intent result = sender.getResult(); in rollback()
|
/cts/tests/tests/appenumeration/src/android/appenumeration/cts/ |
D | Utils.java | 266 final LocalIntentSender sender = new LocalIntentSender(); in commitSession() local 267 session.commit(sender.getIntentSender()); in commitSession() 268 InstallUtils.assertStatusSuccess(sender.getResult()); in commitSession()
|
/cts/hostsidetests/devicepolicy/app/IntentSender/src/com/android/cts/intent/sender/ |
D | BasicContentProvider.java | 17 package com.android.cts.intent.sender;
|
D | CopyPasteTest.java | 17 package com.android.cts.intent.sender;
|
D | AppLinkTest.java | 17 package com.android.cts.intent.sender;
|
D | IntentSenderActivity.java | 17 package com.android.cts.intent.sender;
|
D | SuspendPackageTest.java | 1 package com.android.cts.intent.sender;
|
D | ContentTest.java | 17 package com.android.cts.intent.sender;
|
/cts/tests/tests/util/src/android/util/cts/ |
D | InstallUtilTest.java | 187 LocalIntentSender sender = new LocalIntentSender(); in testOpenAndCommitSessionForSingleApk() local 188 session.commit(sender.getIntentSender()); in testOpenAndCommitSessionForSingleApk() 189 InstallUtils.assertStatusSuccess(sender.getResult()); in testOpenAndCommitSessionForSingleApk()
|
/cts/hostsidetests/inputmethodservice/deviceside/lib/src/android/inputmethodservice/cts/ime/ |
D | CtsBaseInputMethod.java | 246 final String sender = getClass().getName(); in sendEvent() local 247 final Intent intent = DeviceEvent.newDeviceEventIntent(sender, type); in sendEvent()
|
/cts/tests/tests/notification/src/android/app/notification/current/cts/ |
D | NotificationTest.java | 523 Person sender = new Person.Builder().setName(senderName).build(); 527 Message message = new Message(text, timestamp, sender); 531 assertEquals(sender, message.getSenderPerson()); 537 Person sender = new Person.Builder().setName("Test name").build(); 540 Message message = new Message(text, timestamp, sender); 976 Person sender = new Person.Builder().setName("Sender").build(); in testGetMessagesFromBundleArray() local 978 new Notification.MessagingStyle.Message("hello", /* timestamp= */ 123, sender); in testGetMessagesFromBundleArray() 980 new Notification.MessagingStyle.Message("hello2", /* timestamp= */ 456, sender); in testGetMessagesFromBundleArray()
|
/cts/hostsidetests/inputmethodservice/hostside/src/android/inputmethodservice/cts/hostside/ |
D | InputMethodServiceLifecycleTest.java | 391 final String sender = deviceTest.getTestName(); in sendTestStartEvent() local 395 "--es", EXTRA_EVENT_SENDER, sender, in sendTestStartEvent()
|
/cts/tests/tests/packageinstaller/uninstall/src/android/packageinstaller/uninstall/cts/ |
D | ArchiveTest.java | 205 LocalIntentSender sender = new LocalIntentSender(); in requestArchive_confirmationDialog() local 208 sender.getIntentSender()), in requestArchive_confirmationDialog() 210 Intent intent = sender.getResult(); in requestArchive_confirmationDialog()
|
/cts/tests/rollback/src/com/android/cts/rollback/ |
D | RollbackManagerTest.java | 273 LocalIntentSender sender = new LocalIntentSender(); in testManageRollbacksPermission() local 274 rm.commitRollback(0, Collections.emptyList(), sender.getIntentSender()); in testManageRollbacksPermission()
|