Home
last modified time | relevance | path

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

12345678910>>...16

/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowPendingIntentTest.java17 import android.content.Intent;
40 Intent intent = new Intent(); in getBroadcast_shouldCreateIntentForBroadcast()
56 Intent intent = new Intent(); in getActivity_shouldCreateIntentForBroadcast()
72 Intent[] intents = {new Intent(Intent.ACTION_VIEW), new Intent(Intent.ACTION_PICK)}; in getActivities_shouldCreateIntentForBroadcast()
87 Intent[] intents = {new Intent(Intent.ACTION_VIEW), new Intent(Intent.ACTION_PICK)}; in getActivities_withBundle_shouldCreateIntentForBroadcast()
103 Intent intent = new Intent(); in getService_shouldCreateIntentForBroadcast()
120 Intent intent = new Intent(); in getForegroundService_shouldCreateIntentForBroadcast()
156 Intent intent = new Intent("action"); in send_shouldFillInIntentData()
161 Intent fillIntent = new Intent().putExtra("TEST", 23); in send_shouldFillInIntentData()
164 Intent i = shadowOf(otherContext).getNextStartedActivity(); in send_shouldFillInIntentData()
[all …]
DShadowIntentTest.java13 import android.content.Intent;
38 Intent intent = new Intent(); in resolveActivityInfo_shouldReturnActivityInfoForExistingActivity()
46 Intent intent = new Intent(); in testGetExtraReturnsNull_whenThereAreNoExtrasAdded()
52 Intent intent = new Intent(); in testStringExtra()
59 Intent intent = new Intent(); in testCharSequenceExtra()
67 Intent intent = new Intent(); in testIntExtra()
75 Intent intent = new Intent(); in testDoubleExtra()
83 Intent intent = new Intent(); in testFloatExtra()
91 Intent intent = new Intent(); in testIntArrayExtra()
102 Intent intent = new Intent(); in testLongArrayExtra()
[all …]
DShadowContextWrapperTest.java20 import android.content.Intent;
66 contextWrapper.sendBroadcast(new Intent("foo")); in registerReceiver_shouldRegisterForAllIntentFilterActions()
70 contextWrapper.sendBroadcast(new Intent("womp")); in registerReceiver_shouldRegisterForAllIntentFilterActions()
73 contextWrapper.sendBroadcast(new Intent("baz")); in registerReceiver_shouldRegisterForAllIntentFilterActions()
85 contextWrapper.sendBroadcast(new Intent("foo")); in sendBroadcast_shouldSendIntentToEveryInterestedReceiver()
89 contextWrapper.sendBroadcast(new Intent("womp")); in sendBroadcast_shouldSendIntentToEveryInterestedReceiver()
92 contextWrapper.sendBroadcast(new Intent("baz")); in sendBroadcast_shouldSendIntentToEveryInterestedReceiver()
101 contextWrapper.sendBroadcast(new Intent("foo")); in sendBroadcast_shouldOnlySendIntentWithMatchingReceiverPermission()
104 contextWrapper.sendBroadcast(new Intent("foo"), null); in sendBroadcast_shouldOnlySendIntentWithMatchingReceiverPermission()
107 contextWrapper.sendBroadcast(new Intent("foo"), "wrongPermission"); in sendBroadcast_shouldOnlySendIntentWithMatchingReceiverPermission()
[all …]
DShadowAlarmManagerTest.java19 import android.content.Intent;
105 PendingIntent.getActivity(activity, 0, new Intent(activity, activity.getClass()), 0)); in set_shouldRegisterAlarm()
123 PendingIntent.getActivity(activity, 0, new Intent(activity, activity.getClass()), 0)); in setAndAllowWhileIdle_shouldRegisterAlarm()
132 PendingIntent.getActivity(activity, 0, new Intent(activity, activity.getClass()), 0)); in setExactAndAllowWhileIdle_shouldRegisterAlarm()
141 PendingIntent.getActivity(activity, 0, new Intent(activity, activity.getClass()), 0)); in setExact_shouldRegisterAlarm_forApi19()
159 PendingIntent.getActivity(activity, 0, new Intent(activity, activity.getClass()), 0)); in setWindow_shouldRegisterAlarm_forApi19()
176 PendingIntent.getActivity(activity, 0, new Intent(activity, activity.getClass()), 0)); in setRepeating_shouldRegisterAlarm()
183 PendingIntent.getActivity(activity, 0, new Intent(activity, activity.getClass()), 0)); in set_shouldReplaceAlarmsWithSameIntentReceiver()
185 PendingIntent.getActivity(activity, 0, new Intent(activity, activity.getClass()), 0)); in set_shouldReplaceAlarmsWithSameIntentReceiver()
192 PendingIntent.getActivity(activity, 0, new Intent(activity, activity.getClass()), 0)); in set_shouldReplaceDuplicates()
[all …]
DShadowApplicationTest.java23 import android.content.Intent;
202 context.bindService(new Intent(""), service, Context.BIND_AUTO_CREATE); in bindServiceShouldCallOnServiceConnectedWithDefaultValues()
213 context.bindService(new Intent(""), service, Context.BIND_AUTO_CREATE); in bindServiceShouldCallOnServiceConnectedWithNullValues()
223 Intent expectedIntent = new Intent("expected"); in bindServiceShouldCallOnServiceConnectedWhenNotPaused()
245 Intent expectedIntent = new Intent("expected"); in unbindServiceShouldCallOnServiceDisconnectedWhenNotPaused()
263 Intent expectedIntent = new Intent("expected"); in unbindServiceAddsEntryToUnboundServicesCollection()
278 Intent expectedIntent = new Intent("refuseToBind"); in declaringServiceUnbindableMakesBindServiceReturnFalse()
294 Intent expectedIntentOne = new Intent("expected_one"); in bindServiceWithMultipleIntentsMapping()
297 Intent expectedIntentTwo = new Intent("expected_two"); in bindServiceWithMultipleIntentsMapping()
314 Intent expectedIntentOne = new Intent("expected_one"); in bindServiceWithMultipleIntentsMappingWithDefault()
[all …]
DShadowPackageManagerTest.java50 import android.content.Intent;
350 Intent intent = new Intent("org.robolectric.ACTION_RECEIVER_PERMISSION_PACKAGE"); in testQueryBroadcastReceiverSucceeds()
365 Intent intent = new Intent("org.robolectric.ACTION_ONE_MORE_PACKAGE"); in testQueryBroadcastReceiverFailsForMissingPackageName()
372 Intent intent = new Intent(); in testQueryBroadcastReceiver_matchAllWithoutIntentFilter()
658 Intent i = new Intent(Intent.ACTION_APP_ERROR, null); in queryIntentActivities_EmptyResult()
659 i.addCategory(Intent.CATEGORY_APP_BROWSER); in queryIntentActivities_EmptyResult()
667 Intent i = new Intent(Intent.ACTION_MAIN, null); in queryIntentActivities_Match()
668 i.addCategory(Intent.CATEGORY_LAUNCHER); in queryIntentActivities_Match()
686 Intent i = new Intent("SomeStrangeAction"); in queryIntentActivities_ServiceMatch()
704 Intent i = new Intent(Intent.ACTION_APP_ERROR, null); in queryIntentActivitiesAsUser_EmptyResult()
[all …]
/external/sl4a/Common/src/com/googlecode/android_scripting/
DIntentBuilders.java22 import android.content.Intent;
37 public static Intent buildTriggerServiceIntent() { in buildTriggerServiceIntent()
38 Intent intent = new Intent(); in buildTriggerServiceIntent()
50 public static Intent buildStartInBackgroundIntent(File script) { in buildStartInBackgroundIntent()
52 Intent intent = new Intent(); in buildStartInBackgroundIntent()
66 public static Intent buildStartInTerminalIntent(File script) { in buildStartInTerminalIntent()
68 Intent intent = new Intent(); in buildStartInTerminalIntent()
82 public static Intent buildStartInterpreterIntent(String interpreterName) { in buildStartInterpreterIntent()
84 Intent intent = new Intent(); in buildStartInterpreterIntent()
100 public static Intent buildInterpreterShortcutIntent(Interpreter interpreter, in buildInterpreterShortcutIntent()
[all …]
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/android/
DDefaultPackageManagerIntentComparatorTest.java5 import android.content.Intent;
19 assertThat(intentComparator.compare(new Intent(), null)).isEqualTo(1); in validCompareResult()
20 assertThat(intentComparator.compare(null, new Intent())).isEqualTo(-1); in validCompareResult()
22 Intent intent1 = new Intent(); in validCompareResult()
23 Intent intent2 = new Intent(); in validCompareResult()
32 Intent intent1 = new Intent("actionstring0"); in canSustainConcurrentModification()
33 Intent intent2 = new Intent("actionstring1"); in canSustainConcurrentModification()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowInstrumentation.java24 import android.content.Intent;
25 import android.content.Intent.FilterComparison;
63 private List<Intent> startedActivities = new ArrayList<>();
66 private List<Intent.FilterComparison> startedServices = new ArrayList<>();
67 private List<Intent.FilterComparison> stoppedServices = new ArrayList<>();
68 private List<Intent> broadcastIntents = new ArrayList<>();
75 private Map<Intent.FilterComparison, ServiceConnectionDataWrapper>
81 private Map<String, Intent> stickyIntents = new LinkedHashMap<>();
89 protected Activity startActivitySync(Intent intent, Bundle options) { in startActivitySync()
99 Intent intent, in execStartActivity()
[all …]
DShadowPendingIntent.java19 import android.content.Intent;
54 @NonNull private Intent[] savedIntents;
64 Context context, int requestCode, @NonNull Intent intent, int flags) { in getActivity()
65 return create(context, new Intent[] {intent}, Type.ACTIVITY, requestCode, flags); in getActivity()
70 Context context, int requestCode, @NonNull Intent intent, int flags, Bundle options) { in getActivity()
71 return create(context, new Intent[] {intent}, Type.ACTIVITY, requestCode, flags); in getActivity()
76 Context context, int requestCode, @NonNull Intent[] intents, int flags) { in getActivities()
82 Context context, int requestCode, @NonNull Intent[] intents, int flags, Bundle options) { in getActivities()
88 Context context, int requestCode, @NonNull Intent intent, int flags) { in getBroadcast()
89 return create(context, new Intent[] {intent}, Type.BROADCAST, requestCode, flags); in getBroadcast()
[all …]
/external/setupcompat/main/java/com/google/android/setupcompat/util/
DWizardManagerHelper.java21 import android.content.Intent;
83 public static Intent getNextIntent(Intent originalIntent, int resultCode) { in getNextIntent()
97 public static Intent getNextIntent(Intent originalIntent, int resultCode, Intent data) { in getNextIntent()
98 Intent intent = new Intent(ACTION_NEXT); in getNextIntent()
117 public static void copyWizardManagerExtras(Intent srcIntent, Intent dstIntent) { in copyWizardManagerExtras()
136 public static boolean isSetupWizardIntent(Intent intent) { in isSetupWizardIntent()
191 public static boolean isDeferredSetupWizard(Intent originalIntent) { in isDeferredSetupWizard()
202 public static boolean isPreDeferredSetupWizard(Intent originalIntent) { in isPreDeferredSetupWizard()
213 public static boolean isInitialSetupWizard(Intent intent) { in isInitialSetupWizard()
224 public static boolean isAnySetupWizard(@Nullable Intent originalIntent) { in isAnySetupWizard()
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/
DApplicationManagerFacade.java23 import android.content.Intent;
65 Intent intent = new Intent(Intent.ACTION_MAIN); in getLaunchableApplications()
66 intent.addCategory(Intent.CATEGORY_LAUNCHER); in getLaunchableApplications()
77 Intent intent = new Intent(Intent.ACTION_MAIN); in launch()
84 public Intent launchForResult(@RpcParameter(name = "className") String className) { in launchForResult()
85 Intent intent = new Intent(Intent.ACTION_MAIN); in launchForResult()
93 Intent LaunchIntent = mPackageManager.getLaunchIntentForPackage(name); in appLaunch()
98 public Intent launchForResultWithIntent( in launchForResultWithIntent()
99 @RpcParameter(name = "intent") Intent intent, in launchForResultWithIntent()
109 public Intent createIntentForClassName( in createIntentForClassName()
[all …]
DCommonIntentsFacade.java21 import android.content.Intent;
56 public Intent pick(@RpcParameter(name = "uri") String uri) throws JSONException { in pick()
57 return mAndroidFacade.startActivityForResult(Intent.ACTION_PICK, uri, null, null, null, null); in pick()
61 public Intent scanBarcode() throws JSONException { in scanBarcode()
72 Intent intent = new Intent(Intent.ACTION_VIEW); in view()
83 mAndroidFacade.startActivity(Intent.ACTION_VIEW, uri, type, extras, true, null, null); in view()
107 Intent intent = new Intent(Intent.ACTION_SEARCH); in search()
DActivityResultFacade.java20 import android.content.Intent;
44 private Intent mResult = null;
55 mResult = new Intent(); in setResultBoolean()
67 mResult = new Intent(); in setResultByte()
79 mResult = new Intent(); in setResultShort()
91 mResult = new Intent(); in setResultChar()
103 mResult = new Intent(); in setResultInteger()
115 mResult = new Intent(); in setResultLong()
127 mResult = new Intent(); in setResultFloat()
139 mResult = new Intent(); in setResultDouble()
[all …]
/external/libtextclassifier/java/tests/instrumentation/src/com/android/textclassifier/common/intent/
DLabeledIntentTest.java24 import android.content.Intent;
40 private static final Intent INTENT =
41 new Intent(Intent.ACTION_VIEW).setDataAndNormalize(Uri.parse("http://www.android.com"));
52 .setIntentComponent(Intent.ACTION_VIEW, component) in setup()
68 Intent intent = result.resolvedIntent; in resolve_preferTitleWithEntity()
83 Intent intent = result.resolvedIntent; in resolve_useAvailableTitle()
99 Intent intent = result.resolvedIntent; in resolve_titleChooser()
115 Intent intent = result.resolvedIntent; in resolve_titleChooserReturnsNull()
130 Intent unresolvableIntent = new Intent(Intent.ACTION_TRANSLATE); in resolve_noIntentHandler()
162 .setIntentComponent(Intent.ACTION_VIEW, /* component= */ null) in resolve_noVisibilityToWebIntentHandler()
[all …]
/external/robolectric-shadows/shadows/supportv4/src/test/java/org/robolectric/shadows/support/v4/
DShadowLocalBroadcastManagerTest.java12 import android.content.Intent;
41 public void onReceive(Context context, Intent intent) { in shouldSendBroadcasts()
47 instance.sendBroadcast(new Intent("com.bar")); in shouldSendBroadcasts()
49 instance.sendBroadcast(new Intent("com.foo")); in shouldSendBroadcasts()
59 public void onReceive(Context context, Intent intent) { in shouldSendBroadcastsWithDataScheme()
67 instance.sendBroadcast(new Intent("com.foo", Uri.parse("ftp://robolectric.org"))); in shouldSendBroadcastsWithDataScheme()
69 instance.sendBroadcast(new Intent("com.foo", Uri.parse("http://robolectric.org"))); in shouldSendBroadcastsWithDataScheme()
79 public void onReceive(Context context, Intent intent) { in shouldUnregisterReceiver()
85 instance.sendBroadcast(new Intent("com.foo")); in shouldUnregisterReceiver()
93 @Override public void onReceive(Context context, Intent intent) { in testGetBroadcastIntents()
[all …]
/external/ims/rcs/presencepolling/src/com/android/service/ims/presence/
DLauncherUtils.java32 import android.content.Intent;
52 Intent intent = new Intent(context, PollingService.class); in launchPollingService()
64 Intent intent = new Intent(context, PollingService.class); in stopPollingService()
71 Intent intent = new Intent(context, EABService.class); in launchEabService()
78 Intent intent = new Intent(context, EABService.class); in stopEabService()
/external/androidplot/Examples/DemoApp/src/com/androidplot/demos/
DMainActivity.java20 import android.content.Intent;
38 startActivity(new Intent(MainActivity.this, SimplePieChartActivity.class)); in onCreate()
46 startActivity(new Intent(MainActivity.this, DynamicXYPlotActivity.class)); in onCreate()
54 startActivity(new Intent(MainActivity.this, SimpleXYPlotActivity.class)); in onCreate()
62 startActivity(new Intent(MainActivity.this, BarPlotExampleActivity.class)); in onCreate()
70 … startActivity(new Intent(MainActivity.this, OrientationSensorExampleActivity.class)); in onCreate()
78 startActivity(new Intent(MainActivity.this, TimeSeriesActivity.class)); in onCreate()
86 startActivity(new Intent(MainActivity.this, StepChartExampleActivity.class)); in onCreate()
94 startActivity(new Intent(MainActivity.this, TouchZoomExampleActivity.class)); in onCreate()
102 startActivity(new Intent(MainActivity.this, XYRegionExampleActivity.class)); in onCreate()
[all …]
/external/dagger2/java/dagger/hilt/android/example/gradle/simple/app/src/sharedTest/java/dagger/hilt/android/example/gradle/simple/
DBroadcastReceiverTest.java23 import android.content.Intent;
55 Intent intent = new Intent(); in verifyReceiverInjectedValue()
71 Intent intent = new Intent(); in verifyBaseReceiverInjectedValue()
87 Intent intent = new Intent(); in verifyBaseReceiverIsNotDoubleInjected()
104 Intent intent = new Intent(); in verifyComplexReceiverInjectedValue()
122 public void onReceive(Context context, Intent intent) { in onReceive()
137 public void onReceive(Context context, Intent intent) { in onReceive()
152 public void onReceive(Context context, Intent intent) { in onReceive()
167 public void onReceive(Context context, Intent intent) { in onReceive()
198 public void onReceive(Context context, Intent intent) { in onReceive()
/external/setupcompat/main/java/com/google/android/setupcompat/portal/
DProgressServiceComponent.java19 import android.content.Intent;
39 private final Intent serviceIntent;
40 private final Intent itemClickIntent;
50 Intent serviceIntent, in ProgressServiceComponent()
51 Intent itemClickIntent) { in ProgressServiceComponent()
108 public Intent getServiceIntent() { in getServiceIntent()
113 public Intent getItemClickIntent() { in getItemClickIntent()
145 .setServiceIntent(in.readParcelable(Intent.class.getClassLoader()))
146 .setItemClickIntent(in.readParcelable(Intent.class.getClassLoader()))
167 private Intent serviceIntent;
[all …]
/external/androidplot/AndroidPlot-Core/src/test/java/com/androidplot/mock/
DMockContext.java234 public void startActivity(Intent intent) { in startActivity()
239 public void startActivity(Intent intent, Bundle bundle) { in startActivity()
244 public void startActivities(Intent[] intents) { in startActivities()
249 public void startActivities(Intent[] intents, Bundle bundle) { in startActivities()
254 …public void startIntentSender(IntentSender intentSender, Intent intent, int i, int i1, int i2) thr… in startIntentSender()
259 …public void startIntentSender(IntentSender intentSender, Intent intent, int i, int i1, int i2, Bun… in startIntentSender()
264 public void sendBroadcast(Intent intent) { in sendBroadcast()
269 public void sendBroadcast(Intent intent, String s) { in sendBroadcast()
274 public void sendOrderedBroadcast(Intent intent, String s) { in sendOrderedBroadcast()
279 …public void sendOrderedBroadcast(Intent intent, String s, BroadcastReceiver broadcastReceiver, Han… in sendOrderedBroadcast()
[all …]
/external/pdfium/third_party/lcms/src/
Dcmssamp.c65 cmsUInt32Number Intent, in BlackPointAsDarkerColorant() argument
80 if (!cmsIsIntentSupported(hInput, Intent, LCMS_USED_AS_INPUT)) { in BlackPointAsDarkerColorant()
113 hLab, TYPE_Lab_DBL, Intent, cmsFLAGS_NOOPTIMIZE|cmsFLAGS_NOCACHE); in BlackPointAsDarkerColorant()
191 …tBlackPoint(cmsCIEXYZ* BlackPoint, cmsHPROFILE hProfile, cmsUInt32Number Intent, cmsUInt32Number d… in cmsDetectBlackPoint() argument
205 if (Intent != INTENT_PERCEPTUAL && in cmsDetectBlackPoint()
206 Intent != INTENT_RELATIVE_COLORIMETRIC && in cmsDetectBlackPoint()
207 Intent != INTENT_SATURATION) { in cmsDetectBlackPoint()
215 (Intent == INTENT_PERCEPTUAL || Intent == INTENT_SATURATION)) { in cmsDetectBlackPoint()
234 Intent == INTENT_RELATIVE_COLORIMETRIC) { in cmsDetectBlackPoint()
267 if (Intent == INTENT_RELATIVE_COLORIMETRIC && in cmsDetectBlackPoint()
[all …]
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/android/controller/
DIntentServiceControllerTest.java8 import android.content.Intent;
25 …ceController<MyService> controller = Robolectric.buildIntentService(MyService.class, new Intent());
48 …MyService myService = Robolectric.buildIntentService(MyService.class, new Intent(Intent.ACTION_VIE… in onBindShouldSetIntentComponentWithCustomIntentWithoutComponentSet()
49 assertThat(myService.boundIntent.getAction()).isEqualTo(Intent.ACTION_VIEW); in onBindShouldSetIntentComponentWithCustomIntentWithoutComponentSet()
112 public Intent boundIntent;
114 public Intent reboundIntent;
115 public Intent startIntent;
117 public Intent unboundIntent;
124 public IBinder onBind(Intent intent) { in onBind()
132 protected void onHandleIntent(Intent intent) { in onHandleIntent()
[all …]
/external/libtextclassifier/notification/tests/src/com/android/textclassifier/notification/
DCopyCodeActivityTest.java23 import android.content.Intent;
38 private static final Intent EMPTY_INTENT =
39 new Intent(Intent.ACTION_VIEW).putExtra(Intent.EXTRA_TEXT, "");
40 private static final Intent CODE_INTENT =
41 new Intent(Intent.ACTION_VIEW).putExtra(Intent.EXTRA_TEXT, CODE_TO_COPY);
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/media/
DMediaScannerFacade.java22 import android.content.Intent;
57 public void onReceive(Context context, Intent intent) { in onReceive()
59 if(action.equals(Intent.ACTION_MEDIA_SCANNER_FINISHED)) { in onReceive()
69 mService.sendBroadcast(new Intent(Intent.ACTION_MEDIA_MOUNTED, in mediaScanForFiles()
72 new IntentFilter(Intent.ACTION_MEDIA_SCANNER_FINISHED)); in mediaScanForFiles()
77 mService.sendBroadcast(new Intent(Intent.ACTION_MEDIA_SCANNER_SCAN_FILE, Uri.parse(path))); in mediaScanForOneFile()

12345678910>>...16