Home
last modified time | relevance | path

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

/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/hostsidetests/net/app/src/com/android/cts/net/hostside/
DMyNotificationListenerService.java47 final PendingIntentSender sender = new PendingIntentSender(); in onNotificationPosted() local
50 sender.send("content", notification.contentIntent); in onNotificationPosted()
53 sender.send("delete", notification.deleteIntent); in onNotificationPosted()
56 sender.send("full screen", notification.fullScreenIntent); in onNotificationPosted()
60 sender.send("action", action.actionIntent); in onNotificationPosted()
61 sender.send("action extras", action.getExtras()); in onNotificationPosted()
65 sender.send("remote input extras", remoteInput.getExtras()); in onNotificationPosted()
70 sender.send("notification extras", notification.extras); in onNotificationPosted()
/cts/tests/tests/os/src/android/os/cts/
DResultReceiverTest.java31 MockResultReceiver sender = new MockResultReceiver(mHandler); in testResultReceiver() local
34 sender.send(resultCode, bundle); in testResultReceiver()
36 assertEquals(resultCode, sender.getResultCode()); in testResultReceiver()
37 assertSame(bundle, sender.getResultData()); in testResultReceiver()
/cts/tests/tests/shortcutmanager/src/android/content/pm/cts/shortcutmanager/
DShortcutManagerConfigActivityTest.java63 final AtomicReference<IntentSender> sender = new AtomicReference<>(); in testCorrectIntentSenderCreated() local
65 sender.set(getLauncherApps().getShortcutConfigActivityIntent(getConfigActivity()))); in testCorrectIntentSenderCreated()
72 mLauncherContext1.startIntentSender(sender.get(), null, 0, 0, 0); in testCorrectIntentSenderCreated()
/cts/hostsidetests/inputmethodservice/deviceside/lib/src/android/inputmethodservice/cts/ime/
DCtsBaseInputMethod.java195 final String sender = getClass().getName(); in sendEvent() local
196 final Intent intent = DeviceEvent.newDeviceEventIntent(sender, type); in sendEvent()
/cts/hostsidetests/devicepolicy/app/IntentSender/src/com/android/cts/intent/sender/
DBasicContentProvider.java17 package com.android.cts.intent.sender;
DAppLinkTest.java17 package com.android.cts.intent.sender;
DCopyPasteTest.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/app/src/android/app/cts/
DNotificationTest.java466 Person sender = new Person.Builder().setName(senderName).build();
470 Message message = new Message(text, timestamp, sender);
474 assertEquals(sender, message.getSenderPerson());
479 Person sender = new Person.Builder().setName("Test name").build();
482 Message message = new Message(text, timestamp, sender);
/cts/hostsidetests/inputmethodservice/hostside/src/android/inputmethodservice/cts/hostside/
DInputMethodServiceLifecycleTest.java402 final String sender = deviceTest.getTestName(); in sendTestStartEvent() local
406 "--es", EXTRA_EVENT_SENDER, sender, in sendTestStartEvent()
/cts/tests/autofillservice/src/android/autofillservice/cts/
DLoginActivityTest.java2460 IntentSender sender = PendingIntent.getActivity(mContext, 0, intent, in testClickCustomButton() local
2473 .setAuthentication(sender, ID_USERNAME) in testClickCustomButton()