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

1234

/frameworks/base/graphics/java/android/graphics/
H A DBitmapFactory.java433 static void validate(Options opts) { argument
434 if (opts == null) return;
436 if (opts.inMutable && opts.inPreferredConfig == Bitmap.Config.HARDWARE) {
440 if (opts.inPreferredColorSpace != null) {
441 if (!(opts.inPreferredColorSpace instanceof ColorSpace.Rgb)) {
445 if (((ColorSpace.Rgb) opts.inPreferredColorSpace).getTransferParameters() == null) {
458 * @param opts null-ok; Options that control downsampling and whether the
461 * decoded, or, if opts is non-null, if opts requeste
469 decodeFile(String pathName, Options opts) argument
513 decodeResourceStream(Resources res, TypedValue value, InputStream is, Rect pad, Options opts) argument
553 decodeResource(Resources res, int id, Options opts) argument
613 decodeByteArray(byte[] data, int offset, int length, Options opts) argument
652 setDensityFromOptions(Bitmap outputBitmap, Options opts) argument
702 decodeStream(InputStream is, Rect outPadding, Options opts) argument
737 decodeStreamInternal(InputStream is, Rect outPadding, Options opts) argument
778 decodeFileDescriptor(FileDescriptor fd, Rect outPadding, Options opts) argument
820 nativeDecodeStream(InputStream is, byte[] storage, Rect padding, Options opts) argument
822 nativeDecodeFileDescriptor(FileDescriptor fd, Rect padding, Options opts) argument
824 nativeDecodeAsset(long nativeAsset, Rect padding, Options opts) argument
825 nativeDecodeByteArray(byte[] data, int offset, int length, Options opts) argument
[all...]
/frameworks/base/core/java/android/app/
H A DActivityOptions.java316 ActivityOptions opts = new ActivityOptions();
317 opts.mPackageName = context.getPackageName();
318 opts.mAnimationType = ANIM_CUSTOM;
319 opts.mCustomEnterResId = enterResId;
320 opts.mCustomExitResId = exitResId;
321 opts.setOnAnimationStartedListener(handler, listener);
322 return opts;
342 ActivityOptions opts = new ActivityOptions();
343 opts.mPackageName = context.getPackageName();
344 opts
702 makeSceneTransitionAnimation(Activity activity, Window window, ActivityOptions opts, SharedElementCallback callback, Pair<View, String>[] sharedElements) argument
794 ActivityOptions(Bundle opts) argument
[all...]
H A DBroadcastOptions.java56 BroadcastOptions opts = new BroadcastOptions();
57 return opts;
64 public BroadcastOptions(Bundle opts) { argument
65 mTemporaryAppWhitelistDuration = opts.getLong(KEY_TEMPORARY_APP_WHITELIST_DURATION);
66 mMinManifestReceiverApiLevel = opts.getInt(KEY_MIN_MANIFEST_RECEIVER_API_LEVEL, 0);
67 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/support/v13/java/android/support/v13/view/inputmethod/
H A DInputConnectionCompat.java41 @NonNull InputContentInfoCompat inputContentInfo, int flags, @Nullable Bundle opts);
68 @Nullable Bundle opts) {
74 params.putParcelable(COMMIT_CONTENT_OPTS_KEY, opts);
120 final Bundle opts = data.getParcelable(COMMIT_CONTENT_OPTS_KEY);
123 result = onCommitContentListener.onCommitContent(inputContentInfo, flags, opts);
139 @Nullable Bundle opts) {
141 flags, opts);
153 Bundle opts) {
155 flags, opts)) {
158 return super.commitContent(inputContentInfo, flags, opts);
40 commitContent(@onNull InputConnection inputConnection, @NonNull InputContentInfoCompat inputContentInfo, int flags, @Nullable Bundle opts) argument
66 commitContent(@onNull InputConnection inputConnection, @NonNull InputContentInfoCompat inputContentInfo, int flags, @Nullable Bundle opts) argument
137 commitContent(@onNull InputConnection inputConnection, @NonNull InputContentInfoCompat inputContentInfo, int flags, @Nullable Bundle opts) argument
184 commitContent(@onNull InputConnection inputConnection, @NonNull EditorInfo editorInfo, @NonNull InputContentInfoCompat inputContentInfo, int flags, @Nullable Bundle opts) argument
245 onCommitContent(InputContentInfoCompat inputContentInfo, int flags, Bundle opts) argument
[all...]
/frameworks/base/libs/hwui/tests/macrobench/
H A DTestSceneRunner.cpp66 void outputBenchmarkReport(const TestScene::Info& info, const TestScene::Options& opts, argument
89 report.iterations = static_cast<int64_t>(opts.count);
92 report.items_per_second = opts.count / durationInS;
99 if (!opts.renderOffscreen) {
113 void run(const TestScene::Info& info, const TestScene::Options& opts, argument
118 std::unique_ptr<TestScene> scene(info.createScene(opts));
122 testContext.setRenderOffscreen(opts.renderOffscreen);
146 if (opts.renderOffscreen) {
160 ModifiedMovingAverage<double> avgMs(opts.reportFrametimeWeight);
163 for (int i = 0; i < opts
[all...]
/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/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/rs/tests/java_api/SSHealingBrush/src/rs/example/android/com/healingbrush/
H A Dhealing.rs138 rs_script_call_t opts = {0};
139 opts.xStart = 1;
140 opts.xEnd = width - 1;
141 opts.yStart = 1;
142 opts.yEnd = height - 1;
143 rsForEachWithOptions(laplacian, &opts, laplace);
/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.java231 void executePlan(Options opts, RecentsTaskLoader loader) { argument
241 boolean isRunningTask = (task.key.id == opts.runningTaskId);
242 boolean isVisibleTask = i >= (taskCount - opts.numVisibleTasks);
243 boolean isVisibleThumbnail = i >= (taskCount - opts.numVisibleTaskThumbnails);
246 if (opts.onlyLoadPausedActivities && isRunningTask) {
250 if (opts.loadIcons && (isRunningTask || isVisibleTask)) {
256 if (opts.loadThumbnails && isVisibleThumbnail) {
/frameworks/base/core/tests/overlaytests/
H A Dtestrunner.py594 opts, args = opt_parser.parse_args(sys.argv[1:])
595 if not opts.test_idmap and not opts.test_no_overlay and not opts.test_single_overlay and not opts.test_multiple_overlays and not opts.test_filtered_overlays:
596 opts.test_idmap = True
597 opts.test_no_overlay = True
598 opts.test_single_overlay = True
599 opts
[all...]
/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.java896 * @param opts optional bundle data. This can be {@code null}.
901 @Nullable Bundle opts);
900 commitContent(@onNull InputContentInfo inputContentInfo, int flags, @Nullable Bundle opts) argument
/frameworks/rs/tests/lldb/tests/harness/
H A Dtest_base_remote.py112 opts = lldb_module.SBPlatformConnectOptions(connect_string)
115 err2 = self._platform.ConnectRemote(opts)
/frameworks/base/core/java/android/content/pm/
H A DILauncherApps.aidl47 in Bundle opts, in UserHandle user);
50 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/services/core/java/com/android/server/storage/
H A DDeviceStorageMonitorService.java350 int opts = 0;
353 opts |= OPTION_FORCE_UPDATE;
356 return opts;
366 int opts = parseOptions(shell);
371 if ((opts & OPTION_FORCE_UPDATE) != 0) {
378 int opts = parseOptions(shell);
383 if ((opts & OPTION_FORCE_UPDATE) != 0) {
390 int opts = parseOptions(shell);
395 if ((opts & OPTION_FORCE_UPDATE) != 0) {
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
H A DRecentsTransitionHelper.java145 final ActivityOptions opts = ActivityOptions.makeMultiThumbFutureAspectScaleAnimation(mContext,
151 startTaskActivity(stack, task, taskView, opts, transitionFuture, destinationStack);
159 startTaskActivity(stack, task, taskView, opts, transitionFuture,
166 startTaskActivity(stack, task, taskView, opts, transitionFuture, destinationStack);
198 ActivityOptions opts, AppTransitionAnimationSpecsFuture transitionFuture,
201 ssp.startActivityFromRecents(mContext, task.key, task.title, opts, destinationStack,
197 startTaskActivity(TaskStack stack, Task task, @Nullable TaskView taskView, ActivityOptions opts, AppTransitionAnimationSpecsFuture transitionFuture, int destinationStack) argument
/frameworks/base/core/java/com/android/internal/view/
H A DIInputContext.aidl79 void commitContent(in InputContentInfo inputContentInfo, int flags, in Bundle opts, int sec,

Completed in 3586 milliseconds

1234