Home
last modified time | relevance | path

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

12345678

/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
DIntentTest.java16 import android.content.Intent;
37 Intent intent = new Intent(); in testStringExtra()
44 Intent intent = new Intent(); in testCharSequenceExtra()
52 Intent intent = new Intent(); in testIntExtra()
60 Intent intent = new Intent(); in testDoubleExtra()
68 Intent intent = new Intent(); in testFloatExtra()
76 Intent intent = new Intent(); in testIntArrayExtra()
87 Intent intent = new Intent(); in testLongArrayExtra()
98 Intent intent = new Intent(); in testSerializableExtra()
109 Intent intent = new Intent(); in testParcelableExtra()
[all …]
DPendingIntentTest.java13 import android.content.Intent;
28 Intent expectedIntent = new Intent(); in shouldGetIntentSender()
37 Intent intent = new Intent(); in getBroadcast__shouldCreateIntentForBroadcast()
49 Intent intent = new Intent(); in getActivity__shouldCreateIntentForBroadcast()
61 Intent intent = new Intent(); in getService__shouldCreateIntentForBroadcast()
73 Intent intent = new Intent(); in send__shouldFillInIntentData()
78 Intent fillIntent = new Intent(); in send__shouldFillInIntentData()
82 Intent i = shadowOf(otherContext).getNextStartedActivity(); in send__shouldFillInIntentData()
90 new Intent("action"), 100); in testEquals()
91 PendingIntent pi2 = PendingIntent.getActivity(null, 99, new Intent("action"), 100); in testEquals()
[all …]
DAlarmManagerTest.java8 import android.content.Intent;
43 …mManager.ELAPSED_REALTIME, 0, PendingIntent.getActivity(activity, 0, new Intent(activity, activity… in shouldSupportSet()
53 … PendingIntent.getActivity(activity, 0, new Intent(activity, activity.getClass()), 0)); in shouldSupportSetRepeating()
60 …mManager.ELAPSED_REALTIME, 0, PendingIntent.getActivity(activity, 0, new Intent(activity, activity… in setShouldReplaceDuplicates()
61 …mManager.ELAPSED_REALTIME, 0, PendingIntent.getActivity(activity, 0, new Intent(activity, activity… in setShouldReplaceDuplicates()
66 …, AlarmManager.INTERVAL_HOUR, PendingIntent.getActivity(activity, 0, new Intent(activity, activity… in setRepeatingShouldReplaceDuplicates()
67 …, AlarmManager.INTERVAL_HOUR, PendingIntent.getActivity(activity, 0, new Intent(activity, activity… in setRepeatingShouldReplaceDuplicates()
76 …PendingIntent pendingIntent = PendingIntent.getActivity(activity, 0, new Intent(activity, activity… in shouldSupportGetNextScheduledAlarm()
89 …PendingIntent pendingIntent = PendingIntent.getActivity(activity, 0, new Intent(activity, activity… in shouldSupportGetNextScheduledAlarmForRepeatingAlarms()
102 …PendingIntent pendingIntent = PendingIntent.getActivity(activity, 0, new Intent(activity, activity… in shouldSupportPeekScheduledAlarm()
[all …]
DContextWrapperTest.java8 import android.content.Intent;
45 contextWrapper.sendBroadcast(new Intent("foo")); in registerReceiver_shouldRegisterForAllIntentFilterActions()
48 contextWrapper.sendBroadcast(new Intent("womp")); in registerReceiver_shouldRegisterForAllIntentFilterActions()
51 contextWrapper.sendBroadcast(new Intent("baz")); in registerReceiver_shouldRegisterForAllIntentFilterActions()
63 contextWrapper.sendBroadcast(new Intent("foo")); in sendBroadcast_shouldSendIntentToEveryInterestedReceiver()
66 contextWrapper.sendBroadcast(new Intent("womp")); in sendBroadcast_shouldSendIntentToEveryInterestedReceiver()
69 contextWrapper.sendBroadcast(new Intent("baz")); in sendBroadcast_shouldSendIntentToEveryInterestedReceiver()
80 contextWrapper.sendBroadcast(new Intent("foo")); in unregisterReceiver_shouldUnregisterReceiver()
94 new ContextWrapper(Robolectric.application).sendBroadcast(new Intent("foo")); in broadcastReceivers_shouldBeSharedAcrossContextsPerApplicationContext()
95 Robolectric.application.sendBroadcast(new Intent("baz")); in broadcastReceivers_shouldBeSharedAcrossContextsPerApplicationContext()
[all …]
/external/robolectric/src/test/java/com/xtremelabs/robolectric/res/
DRobolectricPackageManagerTest.java14 import android.content.Intent;
65 Intent i = new Intent(Intent.ACTION_MAIN, null); in queryIntentActivities__EmptyResult()
66 i.addCategory(Intent.CATEGORY_LAUNCHER); in queryIntentActivities__EmptyResult()
75 Intent i = new Intent(Intent.ACTION_MAIN, null); in queryIntentActivities__Match()
76 i.addCategory(Intent.CATEGORY_LAUNCHER); in queryIntentActivities__Match()
91 Intent i = new Intent(Intent.ACTION_MAIN, null); in queryBroadcastReceivers__EmptyResult()
92 i.addCategory(Intent.CATEGORY_LAUNCHER); in queryBroadcastReceivers__EmptyResult()
100 Intent i = new Intent(Intent.ACTION_MAIN, null); in queryBroadcastReceivers__Match()
115 Intent i = new Intent(Intent.ACTION_MAIN, null).addCategory(Intent.CATEGORY_LAUNCHER); in resolveActivity__Match()
125 Intent i = new Intent(); in resolveActivity__NoMatch()
[all …]
/external/chromium_org/chrome/android/javatests/src/org/chromium/chrome/browser/
DShortcutHelperTest.java7 import android.content.Intent;
54 Intent mFiredIntent;
57 public boolean onSendBroadcast(Intent intent) { in onSendBroadcast()
58 if (intent.hasExtra(Intent.EXTRA_SHORTCUT_NAME)) { in onSendBroadcast()
98 Intent firedIntent = mTestObserver.mFiredIntent; in testAddWebappShortcuts()
99 assertEquals(WEBAPP_TITLE, firedIntent.getStringExtra(Intent.EXTRA_SHORTCUT_NAME)); in testAddWebappShortcuts()
101 Intent launchIntent = firedIntent.getParcelableExtra(Intent.EXTRA_SHORTCUT_INTENT); in testAddWebappShortcuts()
109 Intent newFiredIntent = mTestObserver.mFiredIntent; in testAddWebappShortcuts()
111 newFiredIntent.getStringExtra(Intent.EXTRA_SHORTCUT_NAME)); in testAddWebappShortcuts()
113 Intent newLaunchIntent = newFiredIntent.getParcelableExtra(Intent.EXTRA_SHORTCUT_INTENT); in testAddWebappShortcuts()
[all …]
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
DShadowIntent.java5 import android.content.Intent;
21 import static android.content.Intent.*;
25 @Implements(Intent.class)
27 @RealObject private Intent realIntent;
53 public void __constructor__(Intent intent) { in __constructor__()
67 public static Intent createChooser(Intent target, CharSequence title) { in createChooser()
68 Intent intent = new Intent(Intent.ACTION_CHOOSER); in createChooser()
69 intent.putExtra(Intent.EXTRA_INTENT, target); in createChooser()
71 intent.putExtra(Intent.EXTRA_TITLE, title); in createChooser()
77 public Intent setAction(String action) { in setAction()
[all …]
DShadowApplication.java9 import android.content.Intent;
74 private List<Intent> startedActivities = new ArrayList<Intent>();
75 private List<Intent> startedServices = new ArrayList<Intent>();
76 private List<Intent> stoppedServies = new ArrayList<Intent>();
77 private List<Intent> broadcastIntents = new ArrayList<Intent>();
80 private Map<String, Intent> stickyIntents = new HashMap<String, Intent>();
172 public void startActivity(Intent intent) { in startActivity()
178 public ComponentName startService(Intent intent) { in startService()
185 public boolean stopService(Intent name) { in stopService()
197 public boolean bindService(Intent intent, final ServiceConnection serviceConnection, int i) { in bindService()
[all …]
DShadowContextWrapper.java8 import android.content.Intent;
72 public void sendBroadcast(Intent intent) { in sendBroadcast()
76 public List<Intent> getBroadcastIntents() { in getBroadcastIntents()
86 public Intent registerReceiver(BroadcastReceiver receiver, IntentFilter filter) { in registerReceiver()
129 public ComponentName startService(Intent service) { in startService()
134 public boolean stopService(Intent name) { in stopService()
139 public void startActivity(Intent intent) { in startActivity()
159 public Intent getNextStartedActivity() { in getNextStartedActivity()
169 public Intent peekNextStartedActivity() { in peekNextStartedActivity()
179 public Intent getNextStartedService() { in getNextStartedService()
[all …]
DShadowPendingIntent.java6 import android.content.Intent;
20 private Intent savedIntent;
28 …public static PendingIntent getActivity(Context context, int requestCode, Intent intent, int flags… in getActivity()
33 …public static PendingIntent getBroadcast(Context context, int requestCode, Intent intent, int flag… in getBroadcast()
38 …public static PendingIntent getService(Context context, int requestCode, Intent intent, int flags)… in getService()
48 public void send(Context context, int code, Intent intent) throws CanceledException { in send()
84 Intent intent = null; in readPendingIntentOrNullFromParcel()
86 intent = new Intent(); in readPendingIntentOrNullFromParcel()
171 public Intent getSavedIntent() { in getSavedIntent()
179 …private static PendingIntent create(Context context, Intent intent, boolean isActivity, boolean is… in create()
/external/chromium_org/content/public/android/javatests/src/org/chromium/content/browser/
DBatteryStatusManagerTest.java8 import android.content.Intent;
30 Intent intent = new Intent(Intent.ACTION_BATTERY_CHANGED); in testOnReceiveBatteryNotPluggedIn()
46 Intent intent = new Intent(Intent.ACTION_BATTERY_CHANGED); in testOnReceiveBatteryPluggedInACCharging()
62 Intent intent = new Intent(Intent.ACTION_BATTERY_CHANGED); in testOnReceiveBatteryPluggedInACNotCharging()
78 Intent intent = new Intent(Intent.ACTION_BATTERY_CHANGED); in testOnReceiveBatteryPluggedInUSBFull()
93 Intent intent = new Intent(Intent.ACTION_BATTERY_CHANGED); in testOnReceiveNoBattery()
105 Intent intent = new Intent(Intent.ACTION_BATTERY_CHANGED); in testOnReceiveNoPluggedStatus()
/external/robolectric/src/main/java/com/xtremelabs/robolectric/matchers/
DStartedMatcher.java6 import android.content.Intent;
14 private final Intent expectedIntent;
18 public StartedMatcher(Intent expectedIntent) { in StartedMatcher()
46Intent actualStartedIntent = shadowOf((ContextWrapper) actualContext).getNextStartedActivity(); in matchesSafely()
67 …public static Intent createIntent(Class<? extends Activity> activityClass, String extraKey, String… in createIntent()
68 Intent intent = createIntent(activityClass); in createIntent()
73 public static Intent createIntent(Class<? extends Activity> activityClass, String action) { in createIntent()
74 Intent intent = createIntent(activityClass); in createIntent()
79 public static Intent createIntent(Class<? extends Activity> activityClass) { in createIntent()
84 public static Intent createIntent(String packageName, Class<? extends Activity> activityClass) { in createIntent()
[all …]
DStartedServiceMatcher.java6 import android.content.Intent;
17 private final Intent expectedIntent;
21 public StartedServiceMatcher(Intent expectedIntent) { in StartedServiceMatcher()
55Intent actualStartedIntent = shadowOf((ContextWrapper) actualContext).getNextStartedService(); in matchesSafely()
87 …public static Intent createIntent(Class<? extends Service> serviceClass, String extraKey, String e… in createIntent()
88 Intent intent = createIntent(serviceClass); in createIntent()
93 public static Intent createIntent(Class<? extends Service> serviceClass, String action) { in createIntent()
94 Intent intent = createIntent(serviceClass); in createIntent()
99 public static Intent createIntent(Class<? extends Service> serviceClass) { in createIntent()
109 public static Intent createIntent(String packageName, Class<? extends Service> serviceClass) { in createIntent()
[all …]
/external/chromium_org/ui/android/java/src/org/chromium/ui/base/
DSelectFileDialog.java12 import android.content.Intent;
73 Intent chooser = new Intent(Intent.ACTION_CHOOSER); in selectFile()
74 Intent camera = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); in selectFile()
76 camera.setFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION | in selectFile()
77 Intent.FLAG_GRANT_WRITE_URI_PERMISSION); in selectFile()
100 Intent camcorder = new Intent(MediaStore.ACTION_VIDEO_CAPTURE); in selectFile()
101 Intent soundRecorder = new Intent( in selectFile()
115 Intent getContentIntent = new Intent(Intent.ACTION_GET_CONTENT); in selectFile()
116 getContentIntent.addCategory(Intent.CATEGORY_OPENABLE); in selectFile()
119 getContentIntent.putExtra(Intent.EXTRA_ALLOW_MULTIPLE, true); in selectFile()
[all …]
/external/chromium_org/chrome/android/java/src/org/chromium/chrome/browser/
DIntentHelper.java10 import android.content.Intent;
58 Intent send = new Intent(Intent.ACTION_SEND); in sendEmail()
61 send.putExtra(Intent.EXTRA_EMAIL, in sendEmail()
64 send.putExtra(Intent.EXTRA_SUBJECT, subject); in sendEmail()
65 send.putExtra(Intent.EXTRA_TEXT, Html.fromHtml(body)); in sendEmail()
68 send.putExtra(Intent.EXTRA_STREAM, Uri.fromFile(fileIn)); in sendEmail()
72 Intent chooser = Intent.createChooser(send, chooserTitle); in sendEmail()
74 chooser.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); in sendEmail()
DBookmarkUtils.java9 import android.content.Intent;
59 public static Intent createAddToHomeIntent(Context context, Intent shortcutIntent, String title, in createAddToHomeIntent()
61 Intent i = new Intent(INSTALL_SHORTCUT); in createAddToHomeIntent()
62 i.putExtra(Intent.EXTRA_SHORTCUT_INTENT, shortcutIntent); in createAddToHomeIntent()
63 i.putExtra(Intent.EXTRA_SHORTCUT_NAME, title); in createAddToHomeIntent()
64 i.putExtra(Intent.EXTRA_SHORTCUT_ICON, createIcon(context, favicon, rValue, in createAddToHomeIntent()
80 public static Intent createAddToHomeIntent(Context context, String url, String title, in createAddToHomeIntent()
82 Intent shortcutIntent = createShortcutIntent(context, url); in createAddToHomeIntent()
93 public static Intent createShortcutIntent(Context context, String url) { in createShortcutIntent()
94 Intent shortcutIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(url)); in createShortcutIntent()
[all …]
/external/svox/pico/src/com/svox/pico/
DVoiceDataInstallerReceiver.java20 import android.content.Intent;
34 public void onReceive(Context context, Intent intent) { in onReceive()
35 if (Intent.ACTION_PACKAGE_ADDED.equals(intent.getAction()) in onReceive()
40 Intent runIntent = new Intent("com.svox.langpack.installer.RUN_TTS_DATA_INSTALLER"); in onReceive()
41 runIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); in onReceive()
50 private static String getPackageName(Intent intent) { in getPackageName()
/external/robolectric/src/main/java/com/xtremelabs/robolectric/res/
DRobolectricPackageManager.java11 import android.content.Intent;
23 private Map<Intent, List<ResolveInfo>> resolveList = new HashMap<Intent, List<ResolveInfo>>();
76 public List<ResolveInfo> queryIntentActivities( Intent intent, int flags ) { in queryIntentActivities()
81 public List<ResolveInfo> queryIntentServices( Intent intent, int flags ) { in queryIntentServices()
86 public List<ResolveInfo> queryBroadcastReceivers(Intent intent, int flags) { in queryBroadcastReceivers()
91 public ResolveInfo resolveActivity(Intent intent, int flags) { in resolveActivity()
97 public ResolveInfo resolveService(Intent intent, int flags) { in resolveService()
101 public void addResolveInfoForIntent( Intent intent, List<ResolveInfo> info ) { in addResolveInfoForIntent()
105 public void addResolveInfoForIntent(Intent intent, ResolveInfo info) { in addResolveInfoForIntent()
115 public Drawable getActivityIcon(Intent intent) { in getActivityIcon()
[all …]
/external/pdfium/core/src/fxcodec/lcms2/lcms2-2.6/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/chromium_org/sync/android/java/src/org/chromium/sync/notifier/
DInvalidationIntentProtocol.java8 import android.content.Intent;
62 public static Intent createRegisterIntent(Account account, in createRegisterIntent()
64 Intent registerIntent = new Intent(ACTION_REGISTER); in createRegisterIntent()
87 public static Intent createRegisterIntent(Account account, int[] objectSources, in createRegisterIntent()
104 Intent registerIntent = new Intent(ACTION_REGISTER); in createRegisterIntent()
112 public static boolean isStop(Intent intent) { in isStop()
117 public static boolean isRegisteredTypesChange(Intent intent) { in isRegisteredTypesChange()
123 public static Set<ObjectId> getRegisteredObjectIds(Intent intent) { in getRegisteredObjectIds()
/external/chromium_org/components/devtools_bridge/android/javatests/src/org/chromium/components/devtools_bridge/tests/
DDebugService.java10 import android.content.Intent;
37 public int onStartCommand(Intent intent, int flags, int startId) { in onStartCommand()
81 public IBinder onBind(Intent intent) { in onBind()
86 Intent showInfoIntent = new Intent(this, DebugActivity.class); in makeForegroundServiceNotification()
87 showInfoIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_SINGLE_TOP); in makeForegroundServiceNotification()
91 Intent stopIntent = new Intent(this, DebugService.class); in makeForegroundServiceNotification()
/external/chromium_org/chrome/android/java/src/org/chromium/chrome/browser/share/
DShareHelper.java11 import android.content.Intent;
79 Intent intent = getShareIntent(title, url, screenshot, extraIntentFlags); in showShareDialog()
102 Intent intent = getDirectShareIntentForComponent(title, url, screenshot, component, in showShareDialog()
123 Intent intent = getDirectShareIntentForComponent( in shareWithLastUsed()
157 private static Intent getShareIntent(String title, String url, Bitmap screenshot, in getShareIntent()
159 Intent intent = new Intent(Intent.ACTION_SEND); in getShareIntent()
162 intent.putExtra(Intent.EXTRA_SUBJECT, title); in getShareIntent()
163 intent.putExtra(Intent.EXTRA_TEXT, url); in getShareIntent()
168 private static Intent getDirectShareIntentForComponent(String title, String url, in getDirectShareIntentForComponent()
170 Intent intent = getShareIntent(title, url, screenshot, extraIntentFlags); in getDirectShareIntentForComponent()
[all …]
/external/chromium_org/chrome/android/java/src/org/chromium/chrome/browser/signin/
DAccountManagementScreenHelper.java8 import android.content.Intent;
99 Intent createAccountIntent = new Intent(Settings.ACTION_ADD_ACCOUNT); in openAndroidAccountCreationScreen()
102 createAccountIntent.setFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT in openAndroidAccountCreationScreen()
103 | Intent.FLAG_ACTIVITY_SINGLE_TOP | Intent.FLAG_ACTIVITY_NEW_TASK in openAndroidAccountCreationScreen()
104 | Intent.FLAG_ACTIVITY_CLEAR_TOP); in openAndroidAccountCreationScreen()
/external/deqp/android/package/src/com/drawelements/deqp/execserver/
DExecService.java29 import android.content.Intent;
61 public int onStartCommand (Intent intent, int flags, int startId) { in onStartCommand()
63 Intent launchIntent = new Intent(this, ExecServerActivity.class); in onStartCommand()
64 launchIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); in onStartCommand()
76 public IBinder onBind (Intent intent) { in onBind()

12345678