Searched refs:opts (Results 1 - 25 of 80) sorted by relevance

1234

/frameworks/base/graphics/java/android/graphics/
H A DBitmapFactory.java391 * @param opts null-ok; Options that control downsampling and whether the
394 * decoded, or, if opts is non-null, if opts requested only the
395 * size be returned (in opts.outWidth and opts.outHeight)
397 public static Bitmap decodeFile(String pathName, Options opts) { argument
402 bm = decodeStream(stream, null, opts);
436 InputStream is, Rect pad, Options opts) {
438 if (opts == null) {
439 opts
435 decodeResourceStream(Resources res, TypedValue value, InputStream is, Rect pad, Options opts) argument
470 decodeResource(Resources res, int id, Options opts) argument
524 decodeByteArray(byte[] data, int offset, int length, Options opts) argument
562 setDensityFromOptions(Bitmap outputBitmap, Options opts) argument
607 decodeStream(InputStream is, Rect outPadding, Options opts) argument
641 decodeStreamInternal(InputStream is, Rect outPadding, Options opts) argument
677 decodeFileDescriptor(FileDescriptor fd, Rect outPadding, Options opts) argument
718 nativeDecodeStream(InputStream is, byte[] storage, Rect padding, Options opts) argument
720 nativeDecodeFileDescriptor(FileDescriptor fd, Rect padding, Options opts) argument
722 nativeDecodeAsset(long nativeAsset, Rect padding, Options opts) argument
723 nativeDecodeByteArray(byte[] data, int offset, int length, Options opts) argument
[all...]
/frameworks/support/v13/api25/android/support/v13/view/inputmethod/
H A DInputConnectionCompatApi25.java28 Bundle opts) {
29 return ic.commitContent((InputContentInfo)inputContentInfo, flags, opts);
33 boolean onCommitContent(Object inputContentInfo, int flags, Bundle opts); argument
41 Bundle opts) {
42 if (onCommitContentListener.onCommitContent(inputContentInfo, flags, opts)) {
45 return super.commitContent(inputContentInfo, flags, opts);
27 commitContent(InputConnection ic, Object inputContentInfo, int flags, Bundle opts) argument
/frameworks/base/core/java/android/app/
H A DActivityOptions.java289 ActivityOptions opts = new ActivityOptions();
290 opts.mPackageName = context.getPackageName();
291 opts.mAnimationType = ANIM_CUSTOM;
292 opts.mCustomEnterResId = enterResId;
293 opts.mCustomExitResId = exitResId;
294 opts.setOnAnimationStartedListener(handler, listener);
295 return opts;
315 ActivityOptions opts = new ActivityOptions();
316 opts.mPackageName = context.getPackageName();
317 opts
706 makeSceneTransitionAnimation(Activity activity, Window window, ActivityOptions opts, SharedElementCallback callback, Pair<View, String>[] sharedElements) argument
798 ActivityOptions(Bundle opts) argument
[all...]
H A DBroadcastOptions.java55 BroadcastOptions opts = new BroadcastOptions();
56 return opts;
63 public BroadcastOptions(Bundle opts) { argument
64 mTemporaryAppWhitelistDuration = opts.getLong(KEY_TEMPORARY_APP_WHITELIST_DURATION);
65 mMinManifestReceiverApiLevel = opts.getInt(KEY_MIN_MANIFEST_RECEIVER_API_LEVEL, 0);
66 mMaxManifestReceiverApiLevel = opts.getInt(KEY_MAX_MANIFEST_RECEIVER_API_LEVEL,
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DBitmapFactory_Delegate.java52 @Nullable Rect padding, @Nullable Options opts) {
57 if (opts != null) {
58 density = Density.getEnum(opts.inDensity);
59 if (opts.inPremultiplied) {
62 opts.inScaled = false;
103 Rect padding, Options opts) {
104 opts.inBitmap = null;
109 /*package*/ static Bitmap nativeDecodeAsset(long asset, Rect padding, Options opts) { argument
110 opts.inBitmap = null;
116 int length, Options opts) {
51 nativeDecodeStream(InputStream is, byte[] storage, @Nullable Rect padding, @Nullable Options opts) argument
102 nativeDecodeFileDescriptor(FileDescriptor fd, Rect padding, Options opts) argument
115 nativeDecodeByteArray(byte[] data, int offset, int length, Options opts) argument
132 setDensityFromOptions(Bitmap outputBitmap, Options opts) argument
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/tv/
H A DRecentsTvImpl.java71 ActivityOptions opts = ActivityOptions.makeCustomAnimation(mContext, -1, -1);
72 startRecentsActivity(runningTask, opts, false /* fromHome */, false /* fromThumbnail*/);
81 ActivityOptions opts = getThumbnailTransitionActivityOptionsForTV(runningTask,
83 if (opts != null) {
84 startRecentsActivity(runningTask, opts, false /* fromHome */, true /* fromThumbnail */);
98 ActivityOptions opts, boolean fromHome, boolean fromThumbnail) {
113 if (opts != null) {
114 mContext.startActivityAsUser(intent, opts.toBundle(), UserHandle.CURRENT);
97 startRecentsActivity(ActivityManager.RunningTaskInfo runningTask, ActivityOptions opts, boolean fromHome, boolean fromThumbnail) argument
/frameworks/minikin/libs/minikin/
H A Dunicode_emoji_h_gen.py99 opts, _ = opt_parser.parse_args()
101 emoji_list = _read_emoji_data(opts.input)
103 with open(opts.output, 'w') as header_file:
/frameworks/support/v13/java/android/support/v13/view/inputmethod/
H A DInputConnectionCompat.java39 @NonNull InputContentInfoCompat inputContentInfo, int flags, @Nullable Bundle opts);
66 @Nullable Bundle opts) {
72 params.putParcelable(COMMIT_CONTENT_OPTS_KEY, opts);
118 final Bundle opts = data.getParcelable(COMMIT_CONTENT_OPTS_KEY);
121 result = onCommitContentListener.onCommitContent(inputContentInfo, flags, opts);
136 @Nullable Bundle opts) {
138 inputContentInfo.unwrap(), flags, opts);
152 Bundle opts) {
155 return listener.onCommitContent(inputContentInfoCompat, flags, opts);
177 * @param opts optiona
38 commitContent(@onNull InputConnection inputConnection, @NonNull InputContentInfoCompat inputContentInfo, int flags, @Nullable Bundle opts) argument
64 commitContent(@onNull InputConnection inputConnection, @NonNull InputContentInfoCompat inputContentInfo, int flags, @Nullable Bundle opts) argument
134 commitContent(@onNull InputConnection inputConnection, @NonNull InputContentInfoCompat inputContentInfo, int flags, @Nullable Bundle opts) argument
181 commitContent(@onNull InputConnection inputConnection, @NonNull EditorInfo editorInfo, @NonNull InputContentInfoCompat inputContentInfo, int flags, @Nullable Bundle opts) argument
242 onCommitContent(InputContentInfoCompat inputContentInfo, int flags, Bundle opts) argument
[all...]
/frameworks/base/libs/hwui/tests/macrobench/
H A DTestSceneRunner.cpp65 void run(const TestScene::Info& info, const TestScene::Options& opts) { argument
69 std::unique_ptr<TestScene> scene(info.createScene(opts));
104 ModifiedMovingAverage<double> avgMs(opts.reportFrametimeWeight);
106 for (int i = 0; i < opts.count; i++) {
115 if (opts.reportFrametimeWeight) {
/frameworks/opt/bitmap/sample/src/com/example/bitmapsample/
H A DMainActivity.java112 ExtendedOptions opts = new ExtendedOptions(
115 opts.decodeAggregator = mDecodeAggregator;
116 opts.parallaxSpeedMultiplier = NORMAL_PARALLAX_MULTIPLIER;
117 opts.backgroundColor = Color.LTGRAY;
119 mCache, true /* limit density */, opts);
/frameworks/opt/photoviewer/src/com/android/ex/photo/util/
H A DImageUtils.java107 final BitmapFactory.Options opts = new BitmapFactory.Options();
108 opts.inSampleSize = Math.max(bounds.x / maxSize, bounds.y / maxSize);
109 result.bitmap = decodeStream(factory, null, opts);
136 * @param opts null-ok; Options that control downsampling and whether the
139 * decoded, or, if opts is non-null, if opts requested only the
140 * size be returned (in opts.outWidth and opts.outHeight)
143 final BitmapFactory.Options opts) throws FileNotFoundException {
155 final Bitmap originalBitmap = BitmapFactory.decodeStream(is, outPadding, opts);
142 decodeStream(final InputStreamFactory factory, final Rect outPadding, final BitmapFactory.Options opts) argument
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/tv/views/
H A DRecentsTvTransitionHelper.java52 final ActivityOptions opts = ActivityOptions.makeBasic();
54 opts.setLaunchBounds(bounds.isEmpty() ? null : bounds);
82 startTaskActivity(stack, task, taskView, opts, animStartedListener);
86 startTaskActivity(stack, task, taskView, opts, animStartedListener);
91 ActivityOptions opts,final ActivityOptions.OnAnimationStartedListener animStartedListener) {
93 if (ssp.startActivityFromRecents(mContext, task.key, task.title, opts)) {
90 startTaskActivity(TaskStack stack, Task task, @Nullable TaskCardView taskView, ActivityOptions opts,final ActivityOptions.OnAnimationStartedListener animStartedListener) argument
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DBitmapsAlphaActivity.java56 BitmapFactory.Options opts = new BitmapFactory.Options();
57 opts.inPreferredConfig = Bitmap.Config.ARGB_8888;
58 mBitmap3 = BitmapFactory.decodeResource(c.getResources(), R.drawable.sunset3, opts);
H A DBitmapsActivity.java69 BitmapFactory.Options opts = new BitmapFactory.Options();
70 opts.inMutable = true;
71 Bitmap bitmap = BitmapFactory.decodeResource(c.getResources(), R.drawable.sunset1, opts);
/frameworks/native/include/android/
H A Dlooper.h72 * The opts may be ALOOPER_PREPARE_ALLOW_NON_CALLBACKS or 0.
74 ALooper* ALooper_prepare(int opts);
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/
H A DExtendedBitmapDrawable.java74 final boolean limitDensity, ExtendedOptions opts) {
77 if (opts == null) {
78 opts = new ExtendedOptions(0);
80 mOpts = opts;
235 return /* opts.stateChanges */ true;
453 int placeholderHeight, int fadeOutDurationMs, ExtendedOptions opts) {
454 super(placeholder, placeholderWidth, placeholderHeight, fadeOutDurationMs, opts);
456 if (opts.placeholderAnimationDuration == -1) {
460 if (opts.placeholderAnimationDuration == 0) {
463 pulseDuration = opts
73 ExtendedBitmapDrawable(final Resources res, final BitmapCache cache, final boolean limitDensity, ExtendedOptions opts) argument
452 Placeholder(Drawable placeholder, Resources res, int placeholderWidth, int placeholderHeight, int fadeOutDurationMs, ExtendedOptions opts) argument
538 Progress(Drawable progress, Resources res, int progressBarWidth, int progressBarHeight, int fadeOutDurationMs, ExtendedOptions opts) argument
[all...]
/frameworks/base/native/android/
H A Dlooper.cpp40 ALooper* ALooper_prepare(int opts) { argument
41 return Looper_to_ALooper(Looper::prepare(opts).get());
/frameworks/base/tests/FrameworkPerf/src/com/android/frameworkperf/
H A DTestService.java817 BitmapFactory.Options opts = new BitmapFactory.Options();
818 opts.inScreenDensity = DisplayMetrics.DENSITY_DEVICE;
836 BitmapFactory.Options opts = new BitmapFactory.Options();
837 opts.inScreenDensity = DisplayMetrics.DENSITY_DEVICE;
856 BitmapFactory.Options opts = new BitmapFactory.Options();
857 opts.inScreenDensity = DisplayMetrics.DENSITY_DEVICE;
859 R.drawable.stat_sample, opts);
876 BitmapFactory.Options opts = new BitmapFactory.Options();
877 opts.inScreenDensity = DisplayMetrics.DENSITY_DEVICE;
879 R.drawable.stat_sample, opts);
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/model/
H A DRecentsTaskLoadPlan.java204 public synchronized void executePlan(Options opts, RecentsTaskLoader loader, argument
216 boolean isRunningTask = (task.key.id == opts.runningTaskId);
217 boolean isVisibleTask = i >= (taskCount - opts.numVisibleTasks);
218 boolean isVisibleThumbnail = i >= (taskCount - opts.numVisibleTaskThumbnails);
221 if (opts.onlyLoadPausedActivities && isRunningTask) {
225 if (opts.loadIcons && (isRunningTask || isVisibleTask)) {
231 if (opts.loadThumbnails && (isRunningTask || isVisibleThumbnail)) {
/frameworks/base/core/java/android/view/inputmethod/
H A DInputConnectionWrapper.java277 public boolean commitContent(InputContentInfo inputContentInfo, int flags, Bundle opts) { argument
278 return mTarget.commitContent(inputContentInfo, flags, opts);
H A DInputConnection.java889 * @param opts optional bundle data. This can be {@code null}.
894 @Nullable Bundle opts);
893 commitContent(@onNull InputContentInfo inputContentInfo, int flags, @Nullable Bundle opts) argument
/frameworks/base/core/tests/overlaytests/
H A Dtestrunner.py555 opts, args = opt_parser.parse_args(sys.argv[1:])
556 if not opts.test_idmap and not opts.test_no_overlay and not opts.test_single_overlay and not opts.test_multiple_overlays:
557 opts.test_idmap = True
558 opts.test_no_overlay = True
559 opts.test_single_overlay = True
560 opts.test_multiple_overlays = True
565 if opts
[all...]
/frameworks/base/core/java/android/content/pm/
H A DILauncherApps.aidl43 in Bundle opts, in UserHandle user);
45 in Bundle opts, in UserHandle user);
/frameworks/native/opengl/tools/glgen2/
H A Dglgen.py244 for opts in TRAMPOLINE_OPTIONS:
245 registry.apiGen(opts)
269 for opts in API_OPTIONS:
270 registry.apiGen(opts)
305 # for opts in SPEC_OPTIONS:
306 # registry.apiGen(opts)
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
H A DRecentsTransitionHelper.java104 final ActivityOptions opts = ActivityOptions.makeBasic();
106 opts.setLaunchBounds(bounds.isEmpty() ? null : bounds);
152 startTaskActivity(stack, task, taskView, opts, transitionFuture, animStartedListener);
160 startTaskActivity(stack, task, taskView, opts, transitionFuture,
167 startTaskActivity(stack, task, taskView, opts, transitionFuture,
199 ActivityOptions opts, IAppTransitionAnimationSpecsFuture transitionFuture,
202 if (ssp.startActivityFromRecents(mContext, task.key, task.title, opts)) {
198 startTaskActivity(TaskStack stack, Task task, @Nullable TaskView taskView, ActivityOptions opts, IAppTransitionAnimationSpecsFuture transitionFuture, final ActivityOptions.OnAnimationStartedListener animStartedListener) argument

Completed in 1093 milliseconds

1234