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

1234

/frameworks/base/graphics/java/android/graphics/
H A DBitmapFactory.java438 static void validate(Options opts) { argument
439 if (opts == null) return;
441 if (opts.inBitmap != null && opts.inBitmap.getConfig() == Bitmap.Config.HARDWARE) {
445 if (opts.inMutable && opts.inPreferredConfig == Bitmap.Config.HARDWARE) {
450 if (opts.inPreferredColorSpace != null) {
451 if (!(opts.inPreferredColorSpace instanceof ColorSpace.Rgb)) {
455 if (((ColorSpace.Rgb) opts.inPreferredColorSpace).getTransferParameters() == null) {
468 * @param opts nul
479 decodeFile(String pathName, Options opts) argument
524 decodeResourceStream(@ullable Resources res, @Nullable TypedValue value, @Nullable InputStream is, @Nullable Rect pad, @Nullable Options opts) argument
564 decodeResource(Resources res, int id, Options opts) argument
624 decodeByteArray(byte[] data, int offset, int length, Options opts) argument
663 setDensityFromOptions(Bitmap outputBitmap, Options opts) argument
714 decodeStream(@ullable InputStream is, @Nullable Rect outPadding, @Nullable Options opts) argument
750 decodeStreamInternal(@onNull InputStream is, @Nullable Rect outPadding, @Nullable Options opts) argument
792 decodeFileDescriptor(FileDescriptor fd, Rect outPadding, Options opts) argument
834 nativeDecodeStream(InputStream is, byte[] storage, Rect padding, Options opts) argument
836 nativeDecodeFileDescriptor(FileDescriptor fd, Rect padding, Options opts) argument
838 nativeDecodeAsset(long nativeAsset, Rect padding, Options opts) argument
839 nativeDecodeByteArray(byte[] data, int offset, int length, Options opts) argument
[all...]
/frameworks/base/core/java/android/app/
H A DActivityOptions.java362 ActivityOptions opts = new ActivityOptions();
363 opts.mPackageName = context.getPackageName();
364 opts.mAnimationType = ANIM_CUSTOM;
365 opts.mCustomEnterResId = enterResId;
366 opts.mCustomExitResId = exitResId;
367 opts.setOnAnimationStartedListener(handler, listener);
368 return opts;
388 ActivityOptions opts = new ActivityOptions();
389 opts.mPackageName = context.getPackageName();
390 opts
761 makeSceneTransitionAnimation(Activity activity, Window window, ActivityOptions opts, SharedElementCallback callback, Pair<View, String>[] sharedElements) argument
867 ActivityOptions(Bundle opts) argument
[all...]
H A DBroadcastOptions.java63 BroadcastOptions opts = new BroadcastOptions();
64 return opts;
71 public BroadcastOptions(Bundle opts) { argument
72 mTemporaryAppWhitelistDuration = opts.getLong(KEY_TEMPORARY_APP_WHITELIST_DURATION);
73 mMinManifestReceiverApiLevel = opts.getInt(KEY_MIN_MANIFEST_RECEIVER_API_LEVEL, 0);
74 mMaxManifestReceiverApiLevel = opts.getInt(KEY_MAX_MANIFEST_RECEIVER_API_LEVEL,
76 mDontSendToRestrictedApps = opts.getBoolean(KEY_DONT_SEND_TO_RESTRICTED_APPS, false);
/frameworks/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 if (opts != null) {
105 opts.inBitmap = null;
111 /*package*/ static Bitmap nativeDecodeAsset(long asset, Rect padding, Options opts) { argument
112 if (opts !
51 nativeDecodeStream(InputStream is, byte[] storage, @Nullable Rect padding, @Nullable Options opts) argument
102 nativeDecodeFileDescriptor(FileDescriptor fd, Rect padding, Options opts) argument
119 nativeDecodeByteArray(byte[] data, int offset, int length, Options opts) argument
138 setDensityFromOptions(Bitmap outputBitmap, Options opts) argument
[all...]
/frameworks/base/services/tests/servicestests/src/com/android/server/am/
H A DPendingRemoteAnimationRegistryTest.java71 ActivityOptions opts = ActivityOptions.makeBasic();
72 opts = mRegistry.overrideOptionsIfNeeded("com.android.test", opts);
73 assertEquals(mAdapter, opts.getRemoteAnimationAdapter());
79 final ActivityOptions opts = mRegistry.overrideOptionsIfNeeded("com.android.test", null);
80 assertNotNull(opts);
81 assertEquals(mAdapter, opts.getRemoteAnimationAdapter());
100 final ActivityOptions opts = mRegistry.overrideOptionsIfNeeded("com.android.test", null);
101 assertEquals(mAdapter, opts.getRemoteAnimationAdapter());
/frameworks/support/compat/src/main/java/androidx/core/view/inputmethod/
H A DInputConnectionCompat.java73 final Bundle opts = data.getParcelable(COMMIT_CONTENT_OPTS_KEY);
76 result = onCommitContentListener.onCommitContent(inputContentInfo, flags, opts);
92 * @param opts optional bundle data. This can be {@code null}
98 int flags, @Nullable Bundle opts) {
113 (InputContentInfo) inputContentInfo.unwrap(), flags, opts);
120 params.putParcelable(COMMIT_CONTENT_OPTS_KEY, opts);
164 * @param opts optional bundle data. This can be {@code null}
169 boolean onCommitContent(InputContentInfoCompat inputContentInfo, int flags, Bundle opts); argument
208 Bundle opts) {
210 flags, opts)) {
96 commitContent(@onNull InputConnection inputConnection, @NonNull EditorInfo editorInfo, @NonNull InputContentInfoCompat inputContentInfo, int flags, @Nullable Bundle opts) argument
[all...]
/frameworks/base/libs/hwui/tests/macrobench/
H A DTestSceneRunner.cpp64 void outputBenchmarkReport(const TestScene::Info& info, const TestScene::Options& opts, argument
85 report.iterations = static_cast<int64_t>(opts.count);
88 report.items_per_second = opts.count / durationInS;
95 if (!opts.renderOffscreen) {
109 void run(const TestScene::Info& info, const TestScene::Options& opts, argument
116 testContext.setRenderOffscreen(opts.renderOffscreen);
123 std::unique_ptr<TestScene> scene(info.createScene(opts));
142 if (opts.renderOffscreen) {
156 ModifiedMovingAverage<double> avgMs(opts.reportFrametimeWeight);
159 for (int i = 0; i < opts
[all...]
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/
H A Dsingle_source_script.rs95 rs_script_call_t opts = {0};
96 opts.xStart = 0;
97 opts.xEnd = dimX;
98 opts.yStart = 0;
99 opts.yEnd = dimY / 2;
100 rsForEachWithOptions(foo, &opts, out, out);
/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/shared/src/com/android/systemui/shared/recents/model/
H A DRecentsTaskLoadPlan.java89 public void preloadPlan(PreloadOptions opts, RecentsTaskLoader loader, int runningTaskId, argument
125 String title = opts.loadTitles
128 String titleDescription = opts.loadTitles
167 public void executePlan(Options opts, RecentsTaskLoader loader) { argument
177 boolean isRunningTask = (task.key.id == opts.runningTaskId);
178 boolean isVisibleTask = i >= (taskCount - opts.numVisibleTasks);
179 boolean isVisibleThumbnail = i >= (taskCount - opts.numVisibleTaskThumbnails);
182 if (opts.onlyLoadPausedActivities && isRunningTask) {
186 if (opts.loadIcons && (isRunningTask || isVisibleTask)) {
192 if (opts
[all...]
H A DRecentsTaskLoader.java161 public synchronized void loadTasks(RecentsTaskLoadPlan plan, Options opts) { argument
162 if (opts == null) {
165 if (opts.onlyLoadForCache && opts.loadThumbnails) {
173 plan.executePlan(opts, this);
175 if (!opts.onlyLoadForCache) {
176 mNumVisibleTasksLoaded = opts.numVisibleTasks;
/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/native/include_sensor/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/shared/src/com/android/systemui/shared/recents/view/
H A DRecentsTransition.java63 final ActivityOptions opts = ActivityOptions.makeMultiThumbFutureAspectScaleAnimation(
67 return opts;
/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.aidl48 in Bundle opts, in UserHandle user);
51 in Bundle opts, in UserHandle user);
/frameworks/base/core/java/android/view/inputmethod/
H A DInputConnection.java895 * @param opts optional bundle data. This can be {@code null}.
900 @Nullable Bundle opts);
899 commitContent(@onNull InputContentInfo inputContentInfo, int flags, @Nullable Bundle opts) argument
/frameworks/native/opengl/tools/glgen2/
H A Dglgen.py250 for opts in TRAMPOLINE_OPTIONS:
251 registry.apiGen(opts)
275 for opts in API_OPTIONS:
276 registry.apiGen(opts)
311 # for opts in SPEC_OPTIONS:
312 # registry.apiGen(opts)

Completed in 630 milliseconds

1234