/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/ |
D | IntentTest.java | 16 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 …]
|
D | PendingIntentTest.java | 13 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 …]
|
D | AlarmManagerTest.java | 8 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 …]
|
D | ContextWrapperTest.java | 8 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/sl4a/Common/src/com/googlecode/android_scripting/ |
D | IntentBuilders.java | 22 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/v1/src/test/java/com/xtremelabs/robolectric/res/ |
D | RobolectricPackageManagerTest.java | 14 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/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/ |
D | ShadowIntent.java | 5 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 …]
|
D | ShadowApplication.java | 9 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 …]
|
D | ShadowContextWrapper.java | 8 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 …]
|
D | ShadowPendingIntent.java | 6 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/robolectric/v1/src/main/java/com/xtremelabs/robolectric/matchers/ |
D | StartedMatcher.java | 6 import android.content.Intent; 14 private final Intent expectedIntent; 18 public StartedMatcher(Intent expectedIntent) { in StartedMatcher() 46 … Intent 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 …]
|
D | StartedServiceMatcher.java | 6 import android.content.Intent; 17 private final Intent expectedIntent; 21 public StartedServiceMatcher(Intent expectedIntent) { in StartedServiceMatcher() 55 … Intent 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/androidplot/Examples/DemoApp/src/com/androidplot/demos/ |
D | MainActivity.java | 20 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/sl4a/Common/src/com/googlecode/android_scripting/facade/ |
D | CommonIntentsFacade.java | 21 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()
|
D | ActivityResultFacade.java | 20 import android.content.Intent; 45 private Intent mResult = null; 56 mResult = new Intent(); in setResultBoolean() 68 mResult = new Intent(); in setResultByte() 80 mResult = new Intent(); in setResultShort() 92 mResult = new Intent(); in setResultChar() 104 mResult = new Intent(); in setResultInteger() 116 mResult = new Intent(); in setResultLong() 128 mResult = new Intent(); in setResultFloat() 140 mResult = new Intent(); in setResultDouble() [all …]
|
D | AndroidFacade.java | 29 import android.content.Intent; 103 private final Intent mIntent; 146 public Intent startActivityForResult(final Intent intent) { in startActivityForResult() 147 FutureActivityTask<Intent> task = new FutureActivityTask<Intent>() { in startActivityForResult() 160 public void onActivityResult(int requestCode, int resultCode, Intent data) { in startActivityForResult() 175 public int startActivityForResultCodeWithTimeout(final Intent intent, in startActivityForResultCodeWithTimeout() 189 public void onActivityResult(int requestCode, int resultCode, Intent data) { in startActivityForResultCodeWithTimeout() 209 Intent intent) throws JSONException { in putExtrasFromJsonObject() 378 void startActivity(final Intent intent) { in startActivity() 380 intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); in startActivity() [all …]
|
D | ApplicationManagerFacade.java | 23 import android.content.Intent; 61 Intent intent = new Intent(Intent.ACTION_MAIN); in getLaunchableApplications() 62 intent.addCategory(Intent.CATEGORY_LAUNCHER); in getLaunchableApplications() 73 Intent intent = new Intent(Intent.ACTION_MAIN); in launch() 81 Intent LaunchIntent = mPackageManager.getLaunchIntentForPackage(name); in appLaunch()
|
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/res/ |
D | RobolectricPackageManager.java | 11 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/third_party/lcms2-2.6/src/ |
D | cmssamp.c | 65 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 …]
|
D | cmsps2.c | 771 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/ |
D | MockContext.java | 234 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/svox/pico/src/com/svox/pico/ |
D | VoiceDataInstallerReceiver.java | 20 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/sl4a/ScriptingLayerForAndroid/src/com/googlecode/android_scripting/activity/ |
D | ScriptingLayerService.java | 23 import android.content.Intent; 86 public IBinder onBind(Intent intent) { in onBind() 109 Intent notificationIntent = new Intent(this, ScriptingLayerService.class); in createNotification() 150 public int onStartCommand(Intent intent, int flags, int startId) { in onStartCommand() 228 private AndroidProxy launchServer(Intent intent, boolean requiresHandshake) { in launchServer() 241 private ScriptProcess launchScript(Intent intent, AndroidProxy proxy) { in launchScript() 249 Intent intent = new Intent(ScriptingLayerService.this, ScriptingLayerService.class); in launchScript() 257 private InterpreterProcess launchInterpreter(Intent intent, AndroidProxy proxy) { 266 Intent intent = new Intent(ScriptingLayerService.this, ScriptingLayerService.class); 275 Intent i = new Intent(this, ConsoleActivity.class); [all …]
|
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/media/ |
D | MediaScannerFacade.java | 22 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()
|
/external/sl4a/Common/src/com/googlecode/android_scripting/interpreter/ |
D | InterpreterConfiguration.java | 22 import android.content.Intent; 80 Intent intent = new Intent(InterpreterConstants.ACTION_DISCOVER_INTERPRETERS); in discoverForType() 81 intent.addCategory(Intent.CATEGORY_LAUNCHER); in discoverForType() 97 Intent intent = new Intent(InterpreterConstants.ACTION_DISCOVER_INTERPRETERS); in discoverAll() 98 intent.addCategory(Intent.CATEGORY_LAUNCHER); in discoverAll() 193 public void onReceive(Context context, Intent intent) { in onReceive() 205 || action.equals(Intent.ACTION_PACKAGE_REMOVED) in onReceive() 206 || action.equals(Intent.ACTION_PACKAGE_REPLACED) in onReceive() 207 || action.equals(Intent.ACTION_PACKAGE_DATA_CLEARED)) { in onReceive() 222 filter.addAction(Intent.ACTION_PACKAGE_DATA_CLEARED); in InterpreterConfiguration() [all …]
|