Home
last modified time | relevance | path

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

1234567891011

/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.java18 import android.content.Intent;
61 contextWrapper.sendBroadcast(new Intent("foo")); in registerReceiver_shouldRegisterForAllIntentFilterActions()
65 contextWrapper.sendBroadcast(new Intent("womp")); in registerReceiver_shouldRegisterForAllIntentFilterActions()
68 contextWrapper.sendBroadcast(new Intent("baz")); in registerReceiver_shouldRegisterForAllIntentFilterActions()
80 contextWrapper.sendBroadcast(new Intent("foo")); in sendBroadcast_shouldSendIntentToEveryInterestedReceiver()
84 contextWrapper.sendBroadcast(new Intent("womp")); in sendBroadcast_shouldSendIntentToEveryInterestedReceiver()
87 contextWrapper.sendBroadcast(new Intent("baz")); in sendBroadcast_shouldSendIntentToEveryInterestedReceiver()
96 contextWrapper.sendBroadcast(new Intent("foo")); in sendBroadcast_shouldOnlySendIntentWithMatchingReceiverPermission()
99 contextWrapper.sendBroadcast(new Intent("foo"), null); in sendBroadcast_shouldOnlySendIntentWithMatchingReceiverPermission()
102 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;
347 Intent intent = new Intent("org.robolectric.ACTION_RECEIVER_PERMISSION_PACKAGE"); in testQueryBroadcastReceiverSucceeds()
362 Intent intent = new Intent("org.robolectric.ACTION_ONE_MORE_PACKAGE"); in testQueryBroadcastReceiverFailsForMissingPackageName()
369 Intent intent = new Intent(); in testQueryBroadcastReceiver_matchAllWithoutIntentFilter()
655 Intent i = new Intent(Intent.ACTION_APP_ERROR, null); in queryIntentActivities_EmptyResult()
656 i.addCategory(Intent.CATEGORY_APP_BROWSER); in queryIntentActivities_EmptyResult()
664 Intent i = new Intent(Intent.ACTION_MAIN, null); in queryIntentActivities_Match()
665 i.addCategory(Intent.CATEGORY_LAUNCHER); in queryIntentActivities_Match()
683 Intent i = new Intent("SomeStrangeAction"); in queryIntentActivities_ServiceMatch()
701 Intent i = new Intent(Intent.ACTION_APP_ERROR, null); in queryIntentActivitiesAsUser_EmptyResult()
[all …]
DShadowActivityTest.java31 import android.content.Intent;
158 activity.startActivity(new Intent().setType("image/*")); in startActivity_shouldDelegateToStartActivityForResult()
160 shadowOf(activity).receiveResult(new Intent().setType("image/*"), Activity.RESULT_OK, in startActivity_shouldDelegateToStartActivityForResult()
161 new Intent().setData(Uri.parse("content:foo"))); in startActivity_shouldDelegateToStartActivityForResult()
171 protected void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult()
186 final Intent view = new Intent(Intent.ACTION_VIEW); in startActivities_shouldStartAllActivities()
187 final Intent pick = new Intent(Intent.ACTION_PICK); in startActivities_shouldStartAllActivities()
188 activity.startActivities(new Intent[] {view, pick}); in startActivities_shouldStartAllActivities()
198 final Intent view = new Intent(Intent.ACTION_VIEW); in startActivities_withBundle_shouldStartAllActivities()
199 final Intent pick = new Intent(Intent.ACTION_PICK); in startActivities_withBundle_shouldStartAllActivities()
[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/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/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/setupcompat/main/java/com/google/android/setupcompat/util/
DWizardManagerHelper.java21 import android.content.Intent;
66 public static Intent getNextIntent(Intent originalIntent, int resultCode) { in getNextIntent()
80 public static Intent getNextIntent(Intent originalIntent, int resultCode, Intent data) { in getNextIntent()
81 Intent intent = new Intent(ACTION_NEXT); in getNextIntent()
100 public static void copyWizardManagerExtras(Intent srcIntent, Intent dstIntent) { in copyWizardManagerExtras()
118 public static boolean isSetupWizardIntent(Intent intent) { in isSetupWizardIntent()
173 public static boolean isDeferredSetupWizard(Intent originalIntent) { in isDeferredSetupWizard()
184 public static boolean isPreDeferredSetupWizard(Intent originalIntent) { in isPreDeferredSetupWizard()
195 public static boolean isInitialSetupWizard(Intent intent) { in isInitialSetupWizard()
206 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/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/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 …]
Dcmsps2.c771 int EmitCIEBasedDEF(cmsIOHANDLER* m, cmsPipeline* Pipeline, int Intent, cmsCIEXYZ* BlackPoint) in EmitCIEBasedDEF() argument
820 EmitIntent(m, Intent); in EmitCIEBasedDEF()
831 cmsToneCurve* ExtractGray2Y(cmsContext ContextID, cmsHPROFILE hProfile, int Intent) in ExtractGray2Y() argument
835 …CreateTransformTHR(ContextID, hProfile, TYPE_GRAY_8, hXYZ, TYPE_XYZ_DBL, Intent, cmsFLAGS_NOOPTIMI… in ExtractGray2Y()
861 int WriteInputLUT(cmsIOHANDLER* m, cmsHPROFILE hProfile, int Intent, cmsUInt32Number dwFlags) in WriteInputLUT() argument
878 cmsDetectBlackPoint(&BlackPointAdaptedToD50, hProfile, Intent, 0); in WriteInputLUT()
886 xform = cmsCreateMultiprofileTransform(Profiles, 2, InputFormat, TYPE_Lab_DBL, Intent, 0); in WriteInputLUT()
900 cmsToneCurve* Gray2Y = ExtractGray2Y(m ->ContextID, hProfile, Intent); in WriteInputLUT()
916 … _cmsOptimizePipeline(m->ContextID, &DeviceLink, Intent, &InputFormat, &OutFrm, &dwFlags); in WriteInputLUT()
918 rc = EmitCIEBasedDEF(m, DeviceLink, Intent, &BlackPointAdaptedToD50); in WriteInputLUT()
[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/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 …]
DServiceControllerTest.java8 import android.content.Intent;
50 …MyService myService = Robolectric.buildService(MyService.class, new Intent(Intent.ACTION_VIEW)).bi… in onBindShouldSetIntentComponentWithCustomIntentWithoutComponentSet()
51 assertThat(myService.boundIntent.getAction()).isEqualTo(Intent.ACTION_VIEW); in onBindShouldSetIntentComponentWithCustomIntentWithoutComponentSet()
114 public Intent boundIntent;
116 public Intent reboundIntent;
117 public Intent startIntent;
121 public Intent unboundIntent;
124 public IBinder onBind(Intent intent) { in onBind()
146 public void onRebind(Intent intent) { in onRebind()
153 public int onStartCommand(Intent intent, int flags, int startId) { in onStartCommand()
[all …]
/external/sl4a/ScriptingLayerForAndroid/src/com/googlecode/android_scripting/service/
DScriptingLayerService.java23 import android.content.Intent;
86 public IBinder onBind(Intent intent) { in onBind()
121 Intent notificationIntent = new Intent(this, ScriptingLayerService.class); in createNotification()
163 private void startAction(Intent intent, int flags, int startId) { in startAction()
224 public int onStartCommand(Intent intent, int flags, int startId) { in onStartCommand()
248 private AndroidProxy launchServer(Intent intent, boolean requiresHandshake) { in launchServer()
261 private ScriptProcess launchScript(Intent intent, AndroidProxy proxy) { in launchScript()
267 Intent newIntent = new Intent(ScriptingLayerService.this, ScriptingLayerService.class); in launchScript()
276 private InterpreterProcess launchInterpreter(Intent intent, AndroidProxy proxy) { in launchInterpreter()
283 Intent newIntent = new Intent(ScriptingLayerService.this, ScriptingLayerService.class); in launchInterpreter()
[all …]
/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()

1234567891011