Home
last modified time | relevance | path

Searched refs:options (Results 1 – 25 of 410) sorted by relevance

12345678910>>...17

/frameworks/ex/common/tests/src/com/android/common/
DOperationSchedulerTest.java47 OperationScheduler.Options options = new OperationScheduler.Options(); in testScheduler() local
48 assertEquals(Long.MAX_VALUE, scheduler.getNextTimeMillis(options)); in testScheduler()
54 assertEquals(beforeTrigger + 1000000, scheduler.getNextTimeMillis(options)); in testScheduler()
58 assertEquals(beforeTrigger + 1000000, scheduler.getNextTimeMillis(options)); in testScheduler()
60 assertEquals(beforeTrigger + 1500000, scheduler.getNextTimeMillis(options)); in testScheduler()
64 assertEquals(Long.MAX_VALUE, scheduler.getNextTimeMillis(options)); in testScheduler()
66 assertEquals(beforeTrigger + 1500000, scheduler.getNextTimeMillis(options)); in testScheduler()
73 assertEquals(beforeTrigger + 1500000, scheduler.getNextTimeMillis(options)); in testScheduler()
74 options.backoffFixedMillis = 1000000; in testScheduler()
75 options.backoffIncrementalMillis = 500000; in testScheduler()
[all …]
/frameworks/base/media/java/android/media/
DThumbnailUtils.java106 BitmapFactory.Options options = new BitmapFactory.Options(); in createImageThumbnail() local
107 options.inSampleSize = 1; in createImageThumbnail()
108 options.inJustDecodeBounds = true; in createImageThumbnail()
109 BitmapFactory.decodeFileDescriptor(fd, null, options); in createImageThumbnail()
110 if (options.mCancel || options.outWidth == -1 in createImageThumbnail()
111 || options.outHeight == -1) { in createImageThumbnail()
114 options.inSampleSize = computeSampleSize( in createImageThumbnail()
115 options, targetSize, maxPixels); in createImageThumbnail()
116 options.inJustDecodeBounds = false; in createImageThumbnail()
118 options.inDither = false; in createImageThumbnail()
[all …]
/frameworks/compile/mclinker/lib/Target/
DELFDynamic.cpp95 if (m_Config.options().Bsymbolic()) in reserveEntries()
157 if (m_Config.options().hasOrigin()) in reserveEntries()
159 if (m_Config.options().Bsymbolic()) in reserveEntries()
161 if (m_Config.options().hasNow()) in reserveEntries()
169 if ((m_Config.options().hasNewDTags() && dt_flags != 0x0) || in reserveEntries()
176 if (m_Config.options().hasNow() || m_Config.options().hasLoadFltr() || in reserveEntries()
177 m_Config.options().hasOrigin() || m_Config.options().hasInterPose() || in reserveEntries()
178 m_Config.options().hasNoDefaultLib() || m_Config.options().hasNoDump() || in reserveEntries()
179 m_Config.options().Bgroup() || in reserveEntries()
181 (m_Config.options().hasNoDelete() || m_Config.options().hasInitFirst() || in reserveEntries()
[all …]
/frameworks/base/tools/aapt2/link/
DTableMerger_test.cpp91 TableMergerOptions options; in TEST_F() local
92 options.auto_add_overlay = false; in TEST_F()
93 TableMerger merger(context_.get(), &final_table, options); in TEST_F()
111 TableMergerOptions options; in TEST_F() local
112 options.auto_add_overlay = false; in TEST_F()
113 TableMerger merger(context_.get(), &final_table, options); in TEST_F()
166 TableMergerOptions options; in TEST_F() local
167 options.auto_add_overlay = false; in TEST_F()
168 TableMerger merger(context_.get(), &final_table, options); in TEST_F()
193 TableMergerOptions options; in TEST_F() local
[all …]
/frameworks/base/core/jni/android/graphics/
DBitmapRegionDecoder.cpp127 jint inputY, jint inputWidth, jint inputHeight, jobject options) { in nativeDecodeRegion() argument
137 if (NULL != options) { in nativeDecodeRegion()
138 sampleSize = env->GetIntField(options, gOptions_sampleSizeFieldID); in nativeDecodeRegion()
139 jobject jconfig = env->GetObjectField(options, gOptions_configFieldID); in nativeDecodeRegion()
141 jobject jcolorSpace = env->GetObjectField(options, gOptions_colorSpaceFieldID); in nativeDecodeRegion()
144 requireUnpremul = !env->GetBooleanField(options, gOptions_premultipliedFieldID); in nativeDecodeRegion()
145 javaBitmap = env->GetObjectField(options, gOptions_bitmapFieldID); in nativeDecodeRegion()
151 env->SetIntField(options, gOptions_widthFieldID, -1); in nativeDecodeRegion()
152 env->SetIntField(options, gOptions_heightFieldID, -1); in nativeDecodeRegion()
153 env->SetObjectField(options, gOptions_mimeFieldID, 0); in nativeDecodeRegion()
[all …]
DBitmapFactory.cpp233 static jobject doDecode(JNIEnv* env, SkStreamRewindable* stream, jobject padding, jobject options) { in doDecode() argument
252 if (options != NULL) { in doDecode()
253 sampleSize = env->GetIntField(options, gOptions_sampleSizeFieldID); in doDecode()
260 if (env->GetBooleanField(options, gOptions_justBoundsFieldID)) { in doDecode()
265 env->SetIntField(options, gOptions_widthFieldID, -1); in doDecode()
266 env->SetIntField(options, gOptions_heightFieldID, -1); in doDecode()
267 env->SetObjectField(options, gOptions_mimeFieldID, 0); in doDecode()
268 env->SetObjectField(options, gOptions_outConfigFieldID, 0); in doDecode()
269 env->SetObjectField(options, gOptions_outColorSpaceFieldID, 0); in doDecode()
271 jobject jconfig = env->GetObjectField(options, gOptions_configFieldID); in doDecode()
[all …]
/frameworks/ex/common/java/com/android/common/
DOperationScheduler.java106 public static Options parseOptions(String spec, Options options) in parseOptions() argument
116 options.backoffFixedMillis = parseSeconds(pieces[0]); in parseOptions()
119 options.backoffIncrementalMillis = parseSeconds(pieces[1]); in parseOptions()
122 options.backoffExponentialMillis = (int)parseSeconds(pieces[2]); in parseOptions()
125 options.maxMoratoriumMillis = parseSeconds(param.substring(4)); in parseOptions()
127 options.minTriggerMillis = parseSeconds(param.substring(4)); in parseOptions()
129 options.periodicIntervalMillis = parseSeconds(param.substring(7)); in parseOptions()
131 options.periodicIntervalMillis = parseSeconds(param); in parseOptions()
134 return options; in parseOptions()
150 public long getNextTimeMillis(Options options) { in getNextTimeMillis() argument
[all …]
/frameworks/support/media-compat/api24/android/support/v4/media/
DMediaBrowserCompatApi24.java32 public static void subscribe(Object browserObj, String parentId, Bundle options, in subscribe() argument
34 ((MediaBrowser) browserObj).subscribe(parentId, options, in subscribe()
45 void onChildrenLoaded(@NonNull String parentId, List<?> children, @NonNull Bundle options); in onChildrenLoaded() argument
46 void onError(@NonNull String parentId, @NonNull Bundle options); in onError() argument
57 List<MediaBrowser.MediaItem> children, @NonNull Bundle options) { in onChildrenLoaded() argument
58 mSubscriptionCallback.onChildrenLoaded(parentId, children, options); in onChildrenLoaded()
62 public void onError(@NonNull String parentId, @NonNull Bundle options) { in onError() argument
63 mSubscriptionCallback.onError(parentId, options); in onError()
/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/
DRenderScriptTask.java86 public Bitmap applyRefocusFilter(DepthOfFieldOptions options) { in applyRefocusFilter() argument
88 prepareRefocusFilter(options); in applyRefocusFilter()
120 private void prepareRefocusFilter(DepthOfFieldOptions options) { in prepareRefocusFilter() argument
122 options.rgbz.getDepthTransform(), options.focalDepth, in prepareRefocusFilter()
123 options.depthOfField, options.blurInfinity, NUM_BLENDING_LAYERS); in prepareRefocusFilter()
125 rgbdImage = options.rgbz.getBitmap(); in prepareRefocusFilter()
DMainActivity.java74 DepthOfFieldOptions options; in onCreate() local
108 options = new DepthOfFieldOptions(rgbz); in onCreate()
109 options.setFocusPoint(0.5f, 0.5f); in onCreate()
110 options.setBokeh(0.025f); in onCreate()
112 task = new RsTaskParams(this, renderScript, options); in onCreate()
124 options = new DepthOfFieldOptions(rgbz); in onCreate()
125 options.setFocusPoint(0.2f, 0.167f); in onCreate()
126 options.setBokeh(2.0f); in onCreate()
127 options.setDepthOfField(0.005f); in onCreate()
129 task = new RsTaskParams(this, renderScript, options); in onCreate()
[all …]
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
DShadowOverlayHelper.java78 private Options options = Options.DEFAULT; field in ShadowOverlayHelper.Builder
141 public Builder options(Options options) { in options() method in ShadowOverlayHelper.Builder
142 this.options = options; in options()
158 helper.setupRoundedCornerRadius(options, context); in build()
172 helper.setupDynamicShadowZ(options, context); in build()
422 void setupDynamicShadowZ(Options options, Context context) { in setupDynamicShadowZ() argument
423 if (options.getDynamicShadowUnfocusedZ() < 0f) { in setupDynamicShadowZ()
428 mFocusedZ = options.getDynamicShadowFocusedZ(); in setupDynamicShadowZ()
429 mUnfocusedZ = options.getDynamicShadowUnfocusedZ(); in setupDynamicShadowZ()
433 void setupRoundedCornerRadius(Options options, Context context) { in setupRoundedCornerRadius() argument
[all …]
/frameworks/base/core/java/android/app/backup/
DWallpaperBackupHelper.java147 BitmapFactory.Options options = new BitmapFactory.Options(); in restoreEntity() local
148 options.inJustDecodeBounds = true; in restoreEntity()
149 BitmapFactory.decodeFile(STAGE_FILE, options); in restoreEntity()
151 if (DEBUG) Slog.d(TAG, "Restoring wallpaper image w=" + options.outWidth in restoreEntity()
152 + " h=" + options.outHeight); in restoreEntity()
162 final double heightRatio = mDesiredMinHeight / options.outHeight; in restoreEntity()
163 if (options.outWidth < mDesiredMinWidth in restoreEntity()
164 || options.outHeight < mDesiredMinWidth in restoreEntity()
172 + options.outWidth + ", h=" + options.outHeight in restoreEntity()
/frameworks/base/core/java/com/android/server/
DNetworkManagementSocketTagger.java72 final SocketTags options = threadSocketTags.get(); in tag() local
75 + Integer.toHexString(options.statsTag) + ", statsUid=" + options.statsUid); in tag()
77 if (options.statsTag == -1 && StrictMode.vmUntaggedSocketEnabled()) { in tag()
81 tagSocketFd(fd, options.statsTag, options.statsUid); in tag()
106 final SocketTags options = threadSocketTags.get(); in unTagSocketFd() local
107 if (options.statsTag == -1 && options.statsUid == -1) return; in unTagSocketFd()
/frameworks/base/location/java/android/location/
DFusedBatchOptions.java120 FusedBatchOptions options = new FusedBatchOptions();
121 options.setMaxPowerAllocationInMW(parcel.readDouble());
122 options.setPeriodInNS(parcel.readLong());
123 options.setSourceToUse(parcel.readInt());
124 options.setFlag(parcel.readInt());
125 options.setSmallestDisplacementMeters(parcel.readFloat());
126 return options;
/frameworks/compile/mclinker/tools/mcld/
DMain.cpp272 config_.options().setColor(res); in TranslateArguments()
278 config_.options().setTrace(args.hasArg(kOpt_Trace)); in TranslateArguments()
289 config_.options().setVerbose(level); in TranslateArguments()
301 config_.options().setMaxErrorNum(num); in TranslateArguments()
313 config_.options().setMaxWarnNum(num); in TranslateArguments()
317 config_.options().setWarnSharedTextrel(args.hasArg(kOpt_WarnSharedTextrel)); in TranslateArguments()
395 config_.options().setBsymbolic(args.hasArg(kOpt_Bsymbolic)); in TranslateArguments()
398 config_.options().setBgroup(args.hasArg(kOpt_Bgroup)); in TranslateArguments()
402 config_.options().setSOName(arg->getValue()); in TranslateArguments()
407 config_.options().setNoUndefined(true); in TranslateArguments()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/accounts/
DTestAccountType1Authenticator.java65 Bundle options) throws NetworkErrorException { in addAccount() argument
71 if (options != null) { in addAccount()
72 accountName = options.getString(AccountManagerServiceTestFixtures.KEY_ACCOUNT_NAME); in addAccount()
82 result.putParcelable(AccountManagerServiceTestFixtures.KEY_OPTIONS_BUNDLE, options); in addAccount()
108 Bundle options) throws NetworkErrorException { in confirmCredentials() argument
148 Bundle options) throws NetworkErrorException { in getAuthToken() argument
154 long expiryMillis = (options == null) in getAuthToken()
155 ? 0 : options.getLong(AccountManagerServiceTestFixtures.KEY_TOKEN_EXPIRY); in getAuthToken()
203 Bundle options) throws NetworkErrorException { in updateCredentials() argument
265 Bundle options) throws NetworkErrorException { in startAddAccountSession() argument
[all …]
/frameworks/support/buildSrc/src/main/groovy/android/support/jdiff/
DJDiffTask.groovy60 options.doclet = "jdiff.JDiff"
61 options.encoding("UTF-8")
77 options.docletpath = docletpath as List
85 options.docletpath = getDocletpath() as List
88 options.addStringOption('stats')
98 options.addStringOption('oldapidir', oldApiXmlFileDir.absolutePath)
102 options.addStringOption('oldapi',
105 options.addStringOption('newapidir', newApiXmlFileDir.absolutePath)
107 options.addStringOption('newapi',
114 options.addStringOption('javadocold', oldJavadocPrefix)
[all …]
/frameworks/support/buildSrc/src/main/groovy/android/support/doclava/
DDoclavaTask.groovy121 options.doclet = "com.google.doclava.Doclava"
122 options.encoding("UTF-8")
123 options.quiet()
137 …* This option will override any doclet path set in this instance's {@link #options JavadocOptions}.
147 …* This option will override any doclet path set in this instance's {@link #options JavadocOptions}.
153 options.docletpath = docletpath as List
188 options.docletpath = getDocletpath() as List
190 options.addOption(new DoclavaMultilineJavadocOptionFileOption('hide'))
192 options.addOption(new DoclavaMultilineJavadocOptionFileOption('warning'))
194 options.addOption(new DoclavaMultilineJavadocOptionFileOption('error'))
[all …]
/frameworks/base/core/java/android/accounts/
DIAccountAuthenticator.aidl32 String authTokenType, in String[] requiredFeatures, in Bundle options); in addAccount() argument
38 in Bundle options); in confirmCredentials() argument
44 String authTokenType, in Bundle options); in getAuthToken() argument
55 String authTokenType, in Bundle options); in updateCredentials() argument
92 String authTokenType, in String[] requiredFeatures, in Bundle options); in startAddAccountSession() argument
98 String authTokenType, in Bundle options); in startUpdateCredentialsSession() argument
/frameworks/base/tools/aapt2/cmd/
DCompile.cpp143 static bool LoadInputFilesFromDir(IAaptContext* context, const CompileOptions& options, in LoadInputFilesFromDir() argument
145 const std::string& root_dir = options.res_dir.value(); in LoadInputFilesFromDir()
193 static bool CompileTable(IAaptContext* context, const CompileOptions& options, in CompileTable() argument
209 parser_options.error_on_positional_arguments = !options.legacy_mode; in CompileTable()
224 if (options.pseudolocalize) { in CompileTable()
386 static bool CompileXml(IAaptContext* context, const CompileOptions& options, in CompileXml() argument
466 static bool CompilePng(IAaptContext* context, const CompileOptions& options, in CompilePng() argument
575 static bool CompileFile(IAaptContext* context, const CompileOptions& options, in CompileFile() argument
659 CompileOptions options; in Compile() local
664 .RequiredFlag("-o", "Output path", &options.output_path) in Compile()
[all …]
DOptimize.cpp119 OptimizeCommand(OptimizeContext* context, const OptimizeOptions& options) in OptimizeCommand() argument
120 : options_(options), context_(context) { in OptimizeCommand()
295 OptimizeOptions options; in Optimize() local
302 .RequiredFlag("-o", "Path to the output APK.", &options.output_path) in Optimize()
321 &options.table_flattener_options.use_sparse_entries) in Optimize()
349 options.table_splitter_options.preferred_densities.push_back(target_density.value()); in Optimize()
359 options.table_splitter_options.config_filter = filter.get(); in Optimize()
364 options.split_paths.push_back({}); in Optimize()
365 options.split_constraints.push_back({}); in Optimize()
366 if (!ParseSplitParameter(split_arg, context.GetDiagnostics(), &options.split_paths.back(), in Optimize()
[all …]
/frameworks/native/vulkan/tools/
Dvkinfo.cpp125 const Options &options, in GatherGpuInfo() argument
164 if (options.validate) { in GatherGpuInfo()
200 .enabledLayerCount = (options.validate) ? num_layers : 0, in GatherGpuInfo()
210 void GatherInfo(VulkanInfo* info, const Options& options) { in GatherInfo() argument
240 if (options.validate) { in GatherInfo()
277 .enabledLayerCount = (options.validate) ? num_layers : 0, in GatherInfo()
299 GatherGpuInfo(gpus[i], options, info->gpus.at(i)); in GatherInfo()
347 const Options& options, in PrintLayers() argument
355 if (options.layer_description) in PrintLayers()
357 if (options.layer_extensions && !extensions[i].empty()) { in PrintLayers()
[all …]
/frameworks/base/tools/aapt2/java/
DJavaClassGenerator_test.cpp156 JavaClassGeneratorOptions options; in TEST() local
157 options.types = JavaClassGeneratorOptions::SymbolTypes::kPublic; in TEST()
159 JavaClassGenerator generator(context.get(), table.get(), options); in TEST()
169 options.types = JavaClassGeneratorOptions::SymbolTypes::kPublicPrivate; in TEST()
171 JavaClassGenerator generator(context.get(), table.get(), options); in TEST()
182 options.types = JavaClassGeneratorOptions::SymbolTypes::kAll; in TEST()
184 JavaClassGenerator generator(context.get(), table.get(), options); in TEST()
319 JavaClassGeneratorOptions options; in TEST() local
320 options.use_final = false; in TEST()
321 JavaClassGenerator generator(context.get(), table.get(), options); in TEST()
[all …]
/frameworks/base/core/java/android/app/
DTaskStackBuilder.java216 public void startActivities(Bundle options, UserHandle userHandle) { in startActivities() argument
222 mSourceContext.startActivitiesAsUser(getIntents(), options, userHandle); in startActivities() local
232 public void startActivities(Bundle options) { in startActivities() argument
233 startActivities(options, new UserHandle(UserHandle.myUserId())); in startActivities()
268 Bundle options) { in getPendingIntent() argument
275 flags, options); in getPendingIntent()
281 public PendingIntent getPendingIntent(int requestCode, int flags, Bundle options, in getPendingIntent() argument
289 options, user); in getPendingIntent()
/frameworks/base/media/java/android/service/media/
DMediaBrowserService.java262 public void addSubscription(final String id, final IBinder token, final Bundle options, in addSubscription() argument
277 MediaBrowserService.this.addSubscription(id, connection, token, options); in addSubscription()
417 @NonNull Result<List<MediaBrowser.MediaItem>> result, @NonNull Bundle options) { in onLoadChildren() argument
534 public void notifyChildrenChanged(@NonNull String parentId, @NonNull Bundle options) { in notifyChildrenChanged() argument
535 if (options == null) { in notifyChildrenChanged()
538 notifyChildrenChangedInternal(parentId, options); in notifyChildrenChanged()
541 private void notifyChildrenChangedInternal(final String parentId, final Bundle options) { in notifyChildrenChangedInternal() argument
554 if (MediaBrowserUtils.hasDuplicatedItems(options, callback.second)) { in notifyChildrenChangedInternal()
586 Bundle options) { in addSubscription() argument
594 && MediaBrowserUtils.areSameOptions(options, callback.second)) { in addSubscription()
[all …]

12345678910>>...17