Home
last modified time | relevance | path

Searched refs:Intent (Results 1 – 25 of 51) sorted by relevance

123

/glance/glance-appwidget/src/main/java/androidx/glance/appwidget/action/
DApplyAction.kt21 import android.content.Intent in <lambda>()
222 ): Intent =
313 ): Intent = in getBroadcastReceiverIntent()
315 is SendBroadcastComponentAction -> Intent().setComponent(action.componentName) in getBroadcastReceiverIntent()
316 is SendBroadcastClassAction -> Intent(translationContext.context, action.receiverClass) in getBroadcastReceiverIntent()
318 is SendBroadcastActionAction -> Intent(action.action).setComponent(action.componentName) in getBroadcastReceiverIntent()
324 ): Intent = in getServiceIntent()
326 is StartServiceComponentAction -> Intent().setComponent(action.componentName) in getServiceIntent()
327 is StartServiceClassAction -> Intent(translationContext.context, action.serviceClass) in getServiceIntent()
335 ): Intent { in getStartActivityIntent()
[all …]
DStartActivityIntentAction.kt20 import android.content.Intent
31 val intent: Intent,
57 intent: Intent,
85 intent: Intent,
DActionTrampoline.kt21 import android.content.Intent in <lambda>()
46 internal fun Intent.applyTrampolineIntent( in applyTrampolineIntent()
51 ): Intent { in applyTrampolineIntent()
52 return Intent().also { intent -> in applyTrampolineIntent()
99 internal fun Activity.launchTrampolineAction(intent: Intent) { in launchTrampolineAction()
101 requireNotNull(intent.getParcelableExtra<Intent>(ActionIntentKey)) { in launchTrampolineAction()
158 fun startForegroundService(context: Context, intent: Intent) { in startForegroundService()
DActionCallbackBroadcastReceiver.kt21 import android.content.Intent in <lambda>()
37 override fun onReceive(context: Context?, intent: Intent?) { in <lambda>()
90 Intent() in <lambda>()
96 private fun Intent.putParameterExtras(parameters: ActionParameters): Intent { in <lambda>() method
DStartServiceAction.kt21 import android.content.Intent
42 class StartServiceIntentAction(val intent: Intent, override val isForegroundService: Boolean) :
54 fun actionStartService(intent: Intent, isForegroundService: Boolean = false): Action =
DSendBroadcastAction.kt21 import android.content.Intent
45 val intent: Intent,
63 fun actionSendBroadcast(intent: Intent): Action = SendBroadcastIntentAction(intent)
DLambdaActionBroadcasts.kt20 import android.content.Intent
39 Intent()
/glance/glance/src/test/kotlin/androidx/glance/session/
DIdleEventBroadcastReceiverTest.kt20 import android.content.Intent
44 receiver.onReceive(context, Intent(PowerManager.ACTION_DEVICE_IDLE_MODE_CHANGED)) in onReceive_idleModeChanged()
48 receiver.onReceive(context, Intent(PowerManager.ACTION_DEVICE_IDLE_MODE_CHANGED)) in onReceive_idleModeChanged()
58 receiver.onReceive(context, Intent(PowerManager.ACTION_DEVICE_LIGHT_IDLE_MODE_CHANGED)) in onReceive_lightIdleModeChanged()
62 receiver.onReceive(context, Intent(PowerManager.ACTION_DEVICE_LIGHT_IDLE_MODE_CHANGED)) in onReceive_lightIdleModeChanged()
/glance/glance-appwidget-testing/src/main/java/androidx/glance/appwidget/testing/unit/
DUnitTestAssertionExtensions.kt22 import android.content.Intent
92 intent: Intent,
156 intent: Intent,
214 fun UnitTestAssertion.assertHasSendBroadcastClickAction(intent: Intent): UnitTestAssertion =
/glance/glance-appwidget/src/androidTest/kotlin/androidx/glance/appwidget/
DCoroutineBroadcastReceiverTest.kt22 import android.content.Intent
49 override fun onReceive(context: Context, intent: Intent) { in onReceive()
81 Intent(BROADCAST_ACTION) in onReceive()
84 .addFlags(Intent.FLAG_RECEIVER_FOREGROUND) in onReceive()
DGlanceAppWidgetManagerTest.kt24 import android.content.Intent in <lambda>()
60 Intent(Intent.ACTION_MAIN).apply { in <lambda>()
61 addCategory(Intent.CATEGORY_HOME) in <lambda>()
62 flags = Intent.FLAG_ACTIVITY_NEW_TASK in <lambda>()
/glance/glance-appwidget/src/main/java/androidx/glance/appwidget/
DMyPackageReplacedReceiver.kt21 import android.content.Intent
28 override fun onReceive(context: Context?, intent: Intent?) { in onReceive()
DGlanceAppWidgetReceiver.kt23 import android.content.Intent
141 override fun onReceive(context: Context, intent: Intent) { in onReceive()
144 Intent.ACTION_LOCALE_CHANGED, in onReceive()
DUnmanagedSessionReceiver.kt22 import android.content.Intent in <lambda>()
42 override fun onReceive(context: Context?, intent: Intent?) { in <lambda>()
DGlanceRemoteViewsService.kt21 import android.content.Intent in <lambda>()
36 override fun onGetViewFactory(intent: Intent?): RemoteViewsFactory { in <lambda>()
229 Intent() in setRemoteAdapter()
236 data = Uri.parse(toUri(Intent.URI_INTENT_SCHEME)) in setRemoteAdapter()
/glance/glance-appwidget/integration-tests/demos/src/main/java/androidx/glance/appwidget/demos/
DActionAppWidget.kt23 import android.content.Intent
144 onClick = actionStartActivity(Intent(LocalContext.current, ActionDemoActivity::class.java)) in StartActivityActions()
177 onClick = actionStartService(Intent(LocalContext.current, ActionDemoService::class.java)) in StartServiceActions()
197 actionSendBroadcast(Intent(LocalContext.current, ActionAppWidgetReceiver::class.java)) in SendBroadcastActions()
241 override fun onBind(intent: Intent?): IBinder? = null in onBind()
243 override fun onStartCommand(intent: Intent?, flags: Int, startId: Int): Int { in onBind()
252 override fun onReceive(context: Context, intent: Intent) { in onReceive()
/glance/glance-appwidget-testing/src/test/kotlin/androidx/glance/appwidget/testing/unit/
DUnitTestActionAssertionExtensionsTest.kt24 import android.content.Intent
806 override fun onBind(p0: Intent?): IBinder? = null in onBind()
810 override fun onBind(p0: Intent?): IBinder? = null in onBind()
814 override fun onReceive(context: Context, intent: Intent) { in onReceive()
820 override fun onReceive(context: Context, intent: Intent) { in onReceive()
838 ): Intent { in testActivityIntent()
839 return Intent(context, activityClass).setAction("test") in testActivityIntent()
845 ): Intent { in testServiceIntent()
846 return Intent(context, serviceClass).setAction("test") in testServiceIntent()
852 ): Intent { in testBroadcastIntent()
[all …]
/glance/glance-appwidget/src/test/kotlin/androidx/glance/appwidget/action/
DStartServiceActionTest.kt22 import android.content.Intent
64 val intent = Intent(context, TestService::class.java).setAction(intentActionString) in testLaunchIntent()
89 override fun onBind(p0: Intent?): IBinder? = null
DSendBroadcastActionTest.kt22 import android.content.Intent
79 Intent(context, TestBroadcastReceiver::class.java).setAction(intentActionString) in testLaunchIntent()
102 override fun onReceive(context: Context, intent: Intent) { in onReceive()
DLaunchActivityIntentActionTest.kt21 import android.content.Intent
43 val intent = Intent(context, TestActivity::class.java).setAction(intentActionString) in testLaunchIntent()
/glance/glance-appwidget/integration-tests/macrobenchmark/src/main/java/androidx/glance/appwidget/macrobenchmark/
DAppWidgetHostRule.kt23 import android.content.Intent in <lambda>()
54 Intent() in <lambda>()
119 Intent(GlanceAppWidgetReceiver.ACTION_DEBUG_UPDATE) in <lambda>()
/glance/glance-appwidget/src/main/java/androidx/glance/appwidget/translators/
DLazyListTranslator.kt23 import android.content.Intent in <lambda>()
24 import android.content.Intent.FILL_IN_COMPONENT in <lambda>()
68 Intent(), in RemoteViews()
DLazyVerticalGridTranslator.kt23 import android.content.Intent in <lambda>()
24 import android.content.Intent.FILL_IN_COMPONENT in <lambda>()
77 Intent(), in RemoteViews()
/glance/glance-appwidget-multiprocess/src/androidTest/kotlin/androidx/glance/appwidget/multiprocess/test/
DTestApplication.kt25 import android.content.Intent
119 override fun onReceive(context: Context?, intent: Intent?) { in onReceive()
133 override fun onReceive(context: Context?, intent: Intent?) { in onReceive()
/glance/glance/src/main/java/androidx/glance/session/
DIdleEventBroadcastReceiver.kt21 import android.content.Intent
40 override fun onReceive(context: Context, intent: Intent) { in onReceive()

123