Home
last modified time | relevance | path

Searched refs:intent (Results 1 – 25 of 172) sorted by relevance

1234567

/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
DIntentTest.java37 Intent intent = new Intent(); in testStringExtra() local
38 assertSame(intent, intent.putExtra("foo", "bar")); in testStringExtra()
39 assertEquals("bar", intent.getExtras().get("foo")); in testStringExtra()
44 Intent intent = new Intent(); in testCharSequenceExtra() local
46 assertSame(intent, intent.putExtra("foo", cs)); in testCharSequenceExtra()
47 assertSame(cs, intent.getExtras().get("foo")); in testCharSequenceExtra()
52 Intent intent = new Intent(); in testIntExtra() local
53 assertSame(intent, intent.putExtra("foo", 2)); in testIntExtra()
54 assertEquals(2, intent.getExtras().get("foo")); in testIntExtra()
55 assertEquals(2, intent.getIntExtra("foo", -1)); in testIntExtra()
[all …]
DPendingIntentTest.java32 assertThat(expectedIntent, equalTo(((TestIntentSender) intentSender).intent)); in shouldGetIntentSender()
37 Intent intent = new Intent(); in getBroadcast__shouldCreateIntentForBroadcast() local
38 …PendingIntent pendingIntent = PendingIntent.getBroadcast(Robolectric.application, 99, intent, 100); in getBroadcast__shouldCreateIntentForBroadcast()
43 assertThat(intent, equalTo(shadow.getSavedIntent())); in getBroadcast__shouldCreateIntentForBroadcast()
49 Intent intent = new Intent(); in getActivity__shouldCreateIntentForBroadcast() local
50 … PendingIntent pendingIntent = PendingIntent.getActivity(Robolectric.application, 99, intent, 100); in getActivity__shouldCreateIntentForBroadcast()
55 assertThat(intent, equalTo(shadow.getSavedIntent())); in getActivity__shouldCreateIntentForBroadcast()
61 Intent intent = new Intent(); in getService__shouldCreateIntentForBroadcast() local
62 … PendingIntent pendingIntent = PendingIntent.getService(Robolectric.application, 99, intent, 100); in getService__shouldCreateIntentForBroadcast()
67 assertThat(intent, equalTo(shadow.getSavedIntent())); in getService__shouldCreateIntentForBroadcast()
[all …]
DApplicationTest.java180 Intent intent = getSomeActionIntent("some.action"); in shouldHaveStoppedServiceIntentAndIndicateServiceWasntRunning() local
182 boolean wasRunning = activity.stopService(intent); in shouldHaveStoppedServiceIntentAndIndicateServiceWasntRunning()
185 assertEquals(intent, shadowApplication.getNextStoppedService()); in shouldHaveStoppedServiceIntentAndIndicateServiceWasntRunning()
189 Intent intent = new Intent(); in getSomeActionIntent() local
190 intent.setAction(action); in getSomeActionIntent()
191 return intent; in getSomeActionIntent()
200 Intent intent = getSomeActionIntent("some.action"); in shouldHaveStoppedServiceIntentAndIndicateServiceWasRunning() local
202 activity.startService(intent); in shouldHaveStoppedServiceIntentAndIndicateServiceWasRunning()
204 boolean wasRunning = activity.stopService(intent); in shouldHaveStoppedServiceIntentAndIndicateServiceWasRunning()
207 assertEquals(intent, shadowApplication.getNextStoppedService()); in shouldHaveStoppedServiceIntentAndIndicateServiceWasRunning()
DActivityTest.java106 Intent intent = new Intent().setClass(activity, DialogLifeCycleActivity.class); in shouldSupportStartActivityForResult() local
109 activity.startActivityForResult(intent, 142); in shouldSupportStartActivityForResult()
113 assertThat(startedIntent, sameInstance(intent)); in shouldSupportStartActivityForResult()
120 Intent intent = new Intent().setClass(activity, DialogLifeCycleActivity.class); in shouldSupportGetStartedActitivitesForResult() local
122 activity.startActivityForResult(intent, 142); in shouldSupportGetStartedActitivitesForResult()
127 assertThat(intentForResult.intent, notNullValue()); in shouldSupportGetStartedActitivitesForResult()
128 assertThat(intentForResult.intent, sameInstance(intent)); in shouldSupportGetStartedActitivitesForResult()
136 Intent intent = new Intent().setClass(activity, DialogLifeCycleActivity.class); in shouldSupportPeekStartedActitivitesForResult() local
138 activity.startActivityForResult(intent, 142); in shouldSupportPeekStartedActitivitesForResult()
143 assertThat(intentForResult.intent, notNullValue()); in shouldSupportPeekStartedActitivitesForResult()
[all …]
/external/robolectric/src/main/java/com/xtremelabs/robolectric/res/
DRobolectricPackageManager.java76 public List<ResolveInfo> queryIntentActivities( Intent intent, int flags ) { in queryIntentActivities() argument
77 return queryIntent(intent, flags); in queryIntentActivities()
81 public List<ResolveInfo> queryIntentServices( Intent intent, int flags ) { in queryIntentServices() argument
82 return queryIntent(intent, flags); in queryIntentServices()
86 public List<ResolveInfo> queryBroadcastReceivers(Intent intent, int flags) { in queryBroadcastReceivers() argument
87 return queryIntent(intent, flags); in queryBroadcastReceivers()
91 public ResolveInfo resolveActivity(Intent intent, int flags) { in resolveActivity() argument
92 List<ResolveInfo> candidates = queryIntentActivities(intent, flags); in resolveActivity()
97 public ResolveInfo resolveService(Intent intent, int flags) { in resolveService() argument
98 return resolveActivity(intent, flags); in resolveService()
[all …]
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
DShadowPendingIntent.java28 …public static PendingIntent getActivity(Context context, int requestCode, Intent intent, int flags… in getActivity() argument
29 return create(context, intent, true, false, false, requestCode); in getActivity()
33 …public static PendingIntent getBroadcast(Context context, int requestCode, Intent intent, int flag… in getBroadcast() argument
34 return create(context, intent, false, true, false, requestCode); in getBroadcast()
38 …public static PendingIntent getService(Context context, int requestCode, Intent intent, int flags)… in getService() argument
39 return create(context, intent, false, false, true, requestCode); in getService()
48 public void send(Context context, int code, Intent intent) throws CanceledException { in send() argument
49 savedIntent.fillIn(intent, 0 ); in send()
62 testIntentSender.intent = savedIntent; in getIntentSender()
84 Intent intent = null; in readPendingIntentOrNullFromParcel() local
[all …]
DShadowApplication.java172 public void startActivity(Intent intent) { in startActivity() argument
173 startedActivities.add(intent); in startActivity()
178 public ComponentName startService(Intent intent) { in startService() argument
179 startedServices.add(intent); in startService()
197 public boolean bindService(Intent intent, final ServiceConnection serviceConnection, int i) { in bindService() argument
198 if (unbindableActions.contains(intent.getAction())) { in bindService()
201 startedServices.add(intent); in bindService()
322 public void sendBroadcast(Intent intent) { in sendBroadcast() argument
323 broadcastIntents.add(intent); in sendBroadcast()
328 if (wrapper.intentFilter.matchAction(intent.getAction())) { in sendBroadcast()
[all …]
DShadowActivity.java37 private Intent intent; field in ShadowActivity
73 public void setIntent(Intent intent) { in setIntent() argument
74 this.intent = intent; in setIntent()
79 return intent; in getIntent()
379 public Intent intent; field in ShadowActivity.IntentForResult
382 public IntentForResult(Intent intent, int requestCode) { in IntentForResult() argument
383 this.intent = intent; in IntentForResult()
389 public void startActivityForResult(Intent intent, int requestCode) { in startActivityForResult() argument
390 intentRequestCodeMap.put(intent, requestCode); in startActivityForResult()
391 startedActivitiesForResults.add(new IntentForResult(intent, requestCode)); in startActivityForResult()
[all …]
DShadowNfcAdapter.java19 private PendingIntent intent; field in ShadowNfcAdapter
42 …public void enableForegroundDispatch(Activity activity, PendingIntent intent, IntentFilter[] filte… in enableForegroundDispatch() argument
44 this.intent = intent; in enableForegroundDispatch()
59 return intent; in getIntent()
DShadowTabSpec.java20 private Intent intent; field in ShadowTabSpec
87 return intent; in getContentAsIntent()
91 public android.widget.TabHost.TabSpec setContent(Intent intent) { in setContent() argument
92 this.intent = intent; in setContent()
DShadowContextWrapper.java72 public void sendBroadcast(Intent intent) { in sendBroadcast() argument
73 getApplicationContext().sendBroadcast(intent); in sendBroadcast()
139 public void startActivity(Intent intent) { in startActivity() argument
140 getApplicationContext().startActivity(intent); in startActivity()
249 public boolean bindService(Intent intent, final ServiceConnection serviceConnection, int i) { in bindService() argument
250 return getShadowApplication().bindService(intent, serviceConnection, i); in bindService()
DShadowFragment.java49 public void startActivity(Intent intent) { in startActivity() argument
50 new FragmentActivity().startActivity(intent); in startActivity()
54 public void startActivityForResult(Intent intent, int requestCode) { in startActivityForResult() argument
55 activity.startActivityForResult(intent, requestCode); in startActivityForResult()
/external/robolectric/src/main/java/com/xtremelabs/robolectric/matchers/
DStartedServiceMatcher.java88 Intent intent = createIntent(serviceClass); in createIntent() local
89 intent.putExtra(extraKey, extraValue); in createIntent()
90 return intent; in createIntent()
94 Intent intent = createIntent(serviceClass); in createIntent() local
95 intent.setAction(action); in createIntent()
96 return intent; in createIntent()
110 Intent intent = new Intent(); in createIntent() local
111 intent.setClassName(packageName, serviceClass.getName()); in createIntent()
112 intent.setClass(getShadowApplication().getApplicationContext(), serviceClass); in createIntent()
113 return intent; in createIntent()
DStartedMatcher.java68 Intent intent = createIntent(activityClass); in createIntent() local
69 intent.putExtra(extraKey, extraValue); in createIntent()
70 return intent; in createIntent()
74 Intent intent = createIntent(activityClass); in createIntent() local
75 intent.setAction(action); in createIntent()
76 return intent; in createIntent()
85 Intent intent = new Intent(); in createIntent() local
86 intent.setClassName(packageName, activityClass.getName()); in createIntent()
87 return intent; in createIntent()
/external/androidplot/AndroidPlot-Core/src/test/java/com/androidplot/mock/
DMockContext.java234 public void startActivity(Intent intent) { in startActivity() argument
239 public void startActivity(Intent intent, Bundle bundle) { in startActivity() argument
254 …public void startIntentSender(IntentSender intentSender, Intent intent, int i, int i1, int i2) thr… in startIntentSender() argument
259 …public void startIntentSender(IntentSender intentSender, Intent intent, int i, int i1, int i2, Bun… in startIntentSender() argument
264 public void sendBroadcast(Intent intent) { in sendBroadcast() argument
269 public void sendBroadcast(Intent intent, String s) { in sendBroadcast() argument
274 public void sendOrderedBroadcast(Intent intent, String s) { in sendOrderedBroadcast() argument
279 …public void sendOrderedBroadcast(Intent intent, String s, BroadcastReceiver broadcastReceiver, Han… in sendOrderedBroadcast() argument
284 public void sendStickyBroadcast(Intent intent) { in sendStickyBroadcast() argument
289 …public void sendStickyOrderedBroadcast(Intent intent, BroadcastReceiver broadcastReceiver, Handler… in sendStickyOrderedBroadcast() argument
[all …]
/external/svox/pico/src/com/svox/pico/
DVoiceDataInstallerReceiver.java34 public void onReceive(Context context, Intent intent) { in onReceive() argument
35 if (Intent.ACTION_PACKAGE_ADDED.equals(intent.getAction()) in onReceive()
36 && INSTALLER_PACKAGE.equals(getPackageName(intent))) { in onReceive()
50 private static String getPackageName(Intent intent) { in getPackageName() argument
51 return intent.getData().getSchemeSpecificPart(); in getPackageName()
DLangPackUninstaller.java33 public void onReceive(Context context, Intent intent) { in onReceive() argument
42 private static String getPackageName(Intent intent) { in getPackageName() argument
43 return intent.getData().getSchemeSpecificPart(); in getPackageName()
/external/robolectric/src/test/java/com/xtremelabs/robolectric/util/
DTestBroadcastReceiver.java9 public Intent intent; field in TestBroadcastReceiver
12 public void onReceive(Context context, Intent intent) { in onReceive() argument
14 this.intent = intent; in onReceive()
/external/robolectric/src/main/java/com/xtremelabs/robolectric/tester/android/view/
DTestMenuItem.java17 private Intent intent; field in TestMenuItem
92 public MenuItem setIntent(Intent intent) { in setIntent() argument
93 this.intent = intent; in setIntent()
99 return this.intent; in getIntent()
197 } else if (enabled && intent != null) { in click()
198 Robolectric.application.startActivity(intent); in click()
/external/zxing/qr_scanner/src/com/google/zxing/client/android/
DCaptureActivity.java119 Intent intent = getIntent(); in onResume() local
120 String action = intent == null ? null : intent.getAction(); in onResume()
121 String dataString = intent == null ? null : intent.getDataString(); in onResume()
122 if (intent != null && action != null) { in onResume()
124 if (intent.hasExtra(Intents.Scan.WIDTH) && intent.hasExtra(Intents.Scan.HEIGHT)) { in onResume()
125 int width = intent.getIntExtra(Intents.Scan.WIDTH, 0); in onResume()
126 int height = intent.getIntExtra(Intents.Scan.HEIGHT, 0); in onResume()
132 characterSet = intent.getStringExtra(Intents.Scan.CHARACTER_SET); in onResume()
DInactivityTimer.java97 public void onReceive(Context context, Intent intent){ in onReceive() argument
98 if (Intent.ACTION_BATTERY_CHANGED.equals(intent.getAction())) { in onReceive()
101 int batteryPlugged = intent.getIntExtra("plugged", -1); in onReceive()
/external/deqp/framework/platform/android/
DtcuAndroidUtil.cpp38 …jobject intent = env->CallObjectMethod(activity, env->GetMethodID(activityCls, "getIntent", "()L… in getIntentStringExtra() local
39 TCU_CHECK(intent); in getIntentStringExtra()
42 jclass intentCls = env->GetObjectClass(intent); in getIntentStringExtra()
47 …jstring extraStr = (jstring)env->CallObjectMethodA(intent, env->GetMethodID(intentCls, "getStringE… in getIntentStringExtra()
/external/robolectric/src/main/java/com/xtremelabs/robolectric/tester/android/content/pm/
DStubPackageManager.java140 @Override public ResolveInfo resolveActivity(Intent intent, int flags) { in resolveActivity() argument
144 @Override public List<ResolveInfo> queryIntentActivities(Intent intent, int flags) { in queryIntentActivities() argument
149 …o> queryIntentActivityOptions(ComponentName caller, Intent[] specifics, Intent intent, int flags) { in queryIntentActivityOptions() argument
153 @Override public List<ResolveInfo> queryBroadcastReceivers(Intent intent, int flags) { in queryBroadcastReceivers() argument
157 @Override public ResolveInfo resolveService(Intent intent, int flags) { in resolveService() argument
161 @Override public List<ResolveInfo> queryIntentServices(Intent intent, int flags) { in queryIntentServices() argument
190 @Override public Drawable getActivityIcon(Intent intent) throws NameNotFoundException { in getActivityIcon() argument
210 @Override public Drawable getActivityLogo(Intent intent) throws NameNotFoundException { in getActivityLogo() argument
/external/replicaisland/src/com/replica/replicaisland/
DLevelSelectActivity.java246 Intent intent = new Intent(); in onListItemClick() local
248 intent.putExtra("resource", selectedLevel.level.resource); in onListItemClick()
249 intent.putExtra("row", selectedLevel.x); in onListItemClick()
250 intent.putExtra("index", selectedLevel.y); in onListItemClick()
254 mButtonFlickerAnimation.setAnimationListener(new EndActivityAfterAnimation(intent)); in onListItemClick()
256 setResult(RESULT_OK, intent); in onListItemClick()
360 EndActivityAfterAnimation(Intent intent) { in EndActivityAfterAnimation() argument
361 mIntent = intent; in EndActivityAfterAnimation()
/external/pdfium/core/src/fxcodec/codec/
Dfx_codec_icc.cpp92 … int intent, FX_DWORD dwSrcFormat = Icc_FORMAT_DEFAULT, FX_DWORD dwDstFormat = Icc_FORMAT_DEFAULT) in IccLib_CreateTransform() argument
133 … hTransform = cmsCreateTransform(srcProfile, srcFormat, dstProfile, TYPE_GRAY_8, intent, 0); in IccLib_CreateTransform()
136 … hTransform = cmsCreateTransform(srcProfile, srcFormat, dstProfile, TYPE_BGR_8, intent, 0); in IccLib_CreateTransform()
141 intent, 0); in IccLib_CreateTransform()
160 …r* pProfileData, FX_DWORD dwProfileSize, FX_INT32& nComponents, FX_INT32 intent, FX_DWORD dwSrcFor… in IccLib_CreateTransform_sRGB() argument
162 …return IccLib_CreateTransform(pProfileData, dwProfileSize, nComponents, NULL, 0, 3, intent, dwSrcF… in IccLib_CreateTransform_sRGB()
529 …TE pProfileData, FX_DWORD dwProfileSize, FX_INT32& nComponents, FX_INT32 intent, FX_DWORD dwSrcFor… in CreateTransform_sRGB() argument
531 … return IccLib_CreateTransform_sRGB(pProfileData, dwProfileSize, nComponents, intent, dwSrcFormat); in CreateTransform_sRGB()
534 FX_LPCBYTE pDstProfileData, FX_DWORD dwDstProfileSize, FX_INT32 intent, in CreateTransform_CMYK() argument
538 … pDstProfileData, dwDstProfileSize, 4, intent, dwSrcFormat, dwDstFormat); in CreateTransform_CMYK()

1234567