Home
last modified time | relevance | path

Searched refs:sender (Results 1 – 25 of 27) sorted by relevance

12

/cts/hostsidetests/inputmethodservice/deviceside/lib/src/android/inputmethodservice/cts/
DDeviceEvent.java62 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/
DResultReceiverTest.java33 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/
DUninstall.java49 LocalIntentSender sender = new LocalIntentSender(); in uninstallSinglePackage() local
50 packageInstaller.uninstall(packageName, sender.getIntentSender()); in uninstallSinglePackage()
51 InstallUtils.assertStatusSuccess(sender.getResult()); in uninstallSinglePackage()
DInstall.java229 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/
DAtomicInstallTest.java166 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/
DPackageManagerMultiUserTest.java58 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/
DShortcutManagerConfigActivityTest.java85 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/
DApexShimValidationTest.java176 LocalIntentSender sender = new LocalIntentSender(); in stageApex() local
177 session.commit(sender.getIntentSender()); in stageApex()
178 sender.getResult(); in stageApex()
DStagedInstallTest.java364 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/
DInstallConstraintsTest.kt422 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/
DClipDataTest.java61 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/
DRollbackUtils.java130 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/
DUtils.java266 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/
DBasicContentProvider.java17 package com.android.cts.intent.sender;
DCopyPasteTest.java17 package com.android.cts.intent.sender;
DAppLinkTest.java17 package com.android.cts.intent.sender;
DIntentSenderActivity.java17 package com.android.cts.intent.sender;
DSuspendPackageTest.java1 package com.android.cts.intent.sender;
DContentTest.java17 package com.android.cts.intent.sender;
/cts/tests/tests/util/src/android/util/cts/
DInstallUtilTest.java187 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/
DCtsBaseInputMethod.java246 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/
DNotificationTest.java523 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/
DInputMethodServiceLifecycleTest.java391 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/
DArchiveTest.java205 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/
DRollbackManagerTest.java273 LocalIntentSender sender = new LocalIntentSender(); in testManageRollbacksPermission() local
274 rm.commitRollback(0, Collections.emptyList(), sender.getIntentSender()); in testManageRollbacksPermission()

12