Searched defs:opts (Results 1 - 25 of 45) sorted by relevance

12

/frameworks/base/libs/hwui/tests/microbench/
H A DFrameBuilderBench.cpp97 TestScene::Options opts; local
98 std::unique_ptr<TestScene> scene(TestScene::testMap()[sceneName].createScene(opts));
/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/core/java/android/app/
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/base/native/android/
H A Dlooper.cpp40 ALooper* ALooper_prepare(int opts) { argument
41 return Looper_to_ALooper(Looper::prepare(opts).get());
/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/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/opt/bitmap/src/com/android/bitmap/drawable/
H A DCircularBitmapDrawable.java54 BitmapCache cache, boolean limitDensity, ExtendedOptions opts) {
55 super(res, cache, limitDensity, opts);
53 CircularBitmapDrawable(Resources res, BitmapCache cache, boolean limitDensity, ExtendedOptions opts) argument
H A DTileDrawable.java45 ExtendedOptions opts) {
46 mOpts = opts;
44 TileDrawable(Drawable inner, int innerWidth, int innerHeight, int fadeOutDurationMs, ExtendedOptions opts) argument
H A DStyledCornersBitmapDrawable.java84 boolean limitDensity, ExtendedOptions opts, float cornerRoundRadius,
86 super(res, cache, limitDensity, opts);
83 StyledCornersBitmapDrawable(Resources res, BitmapCache cache, boolean limitDensity, ExtendedOptions opts, float cornerRoundRadius, float cornerFlapSide) argument
/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/core/java/android/content/
H A DContentProviderNative.java297 Bundle opts = data.readBundle();
302 fd = openTypedAssetFile(callingPkg, url, mimeType, opts, signal);
684 Bundle opts, ICancellationSignal signal) throws RemoteException, FileNotFoundException {
693 data.writeBundle(opts);
683 openTypedAssetFile(String callingPkg, Uri url, String mimeType, Bundle opts, ICancellationSignal signal) argument
H A DIContentProvider.java74 Bundle opts, ICancellationSignal signal) throws RemoteException, FileNotFoundException;
73 openTypedAssetFile(String callingPkg, Uri url, String mimeType, Bundle opts, ICancellationSignal signal) argument
H A DContentProviderClient.java434 @NonNull String mimeType, @Nullable Bundle opts)
436 return openTypedAssetFileDescriptor(uri, mimeType, opts, null);
441 @NonNull String mimeType, @Nullable Bundle opts, @Nullable CancellationSignal signal)
455 mPackageName, uri, mimeType, opts, remoteSignal);
433 openTypedAssetFileDescriptor(@onNull Uri uri, @NonNull String mimeType, @Nullable Bundle opts) argument
440 openTypedAssetFileDescriptor(@onNull Uri uri, @NonNull String mimeType, @Nullable Bundle opts, @Nullable CancellationSignal signal) argument
/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
H A DInputConnectionWrapper.java303 public boolean commitContent(InputContentInfo inputContentInfo, int flags, Bundle opts) { argument
304 return mTarget.commitContent(inputContentInfo, flags, opts);
H A DBaseInputConnection.java857 public boolean commitContent(InputContentInfo inputContentInfo, int flags, Bundle opts) { argument
/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/test-mock/src/android/test/mock/
H A DMockContentProvider.java132 String mimeType, Bundle opts, ICancellationSignal signal)
134 return MockContentProvider.this.openTypedAssetFile(url, mimeType, opts);
258 public AssetFileDescriptor openTypedAssetFile(Uri url, String mimeType, Bundle opts) { argument
131 openTypedAssetFile(String callingPackage, Uri url, String mimeType, Bundle opts, ICancellationSignal signal) argument
H A DMockIContentProvider.java123 Bundle opts, ICancellationSignal signal) throws RemoteException, FileNotFoundException {
122 openTypedAssetFile(String callingPackage, Uri url, String mimeType, Bundle opts, ICancellationSignal signal) argument
/frameworks/av/media/libmedia/
H A DIMediaSource.cpp330 MediaSource::ReadOptions opts; local
334 && len == sizeof(opts)
335 && data.read((void *)&opts, len) == NO_ERROR;
344 ret = read((MediaBufferBase **)&buf, useOptions ? &opts : nullptr);
345 opts.clearNonPersistent(); // Remove options that only apply to first buffer.
/frameworks/base/core/java/android/service/trust/
H A DTrustAgentService.java169 ConfigurationData(List<PersistableBundle> opts, IBinder t) { argument
170 options = opts;
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/
H A DRecentsActivity.java169 public LaunchHomeRunnable(Intent launchIntent, ActivityOptions opts) { argument
171 mOpts = opts;
178 ActivityOptions opts = mOpts;
179 if (opts == null) {
180 opts = ActivityOptions.makeCustomAnimation(RecentsActivity.this,
183 startActivityAsUser(mLaunchIntent, opts.toBundle(), UserHandle.CURRENT);
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/misc/
H A DSystemServicesProxy.java430 public void startActivityAsUserAsync(Intent intent, ActivityOptions opts) { argument
432 opts != null ? opts.toBundle() : null, UserHandle.CURRENT));
436 public void startInPlaceAnimationOnFrontMostApplication(ActivityOptions opts) { argument
441 opts == null ? null : opts.toBundle());

Completed in 442 milliseconds

12