Home
last modified time | relevance | path

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

12345678910>>...15

/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/tools/aidl/
Doptions.cpp35 parse_options(int argc, const char* const* argv, Options *options) in parse_options() argument
43 options->outputFileName = argv[2]; in parse_options()
45 options->filesToPreprocess.push_back(argv[i]); in parse_options()
47 options->task = PREPROCESS_AIDL; in parse_options()
51 options->task = COMPILE_AIDL; in parse_options()
52 options->failOnParcelable = false; in parse_options()
53 options->autoDepFile = false; in parse_options()
64 options->importPaths.push_back(s+2); in parse_options()
72 options->depFileName = s+2; in parse_options()
79 options->autoDepFile = true; in parse_options()
[all …]
Doptions_test.cpp66 Options options; in test() local
67 int result = parse_options(argc, answer.argv, &options); in test()
82 if (!match_arrays(answer.systemSearchPath, options.systemSearchPath)) { in test()
84 print_array(" ", options.systemSearchPath); in test()
91 if (!match_arrays(answer.localSearchPath, options.localSearchPath)) { in test()
93 print_array(" ", options.localSearchPath); in test()
100 if (answer.inputFileName != options.inputFileName) { in test()
101 cout << "mismatch: inputFileName: got " << options.inputFileName in test()
107 if (answer.nativeLanguage != options.nativeLanguage) { in test()
108 cout << "mismatch: nativeLanguage: got " << options.nativeLanguage in test()
[all …]
Daidl.cpp590 exactly_one_interface(const char* filename, const document_item_type* items, const Options& options, argument
616 if (options.failOnParcelable) {
634 generate_dep_file(const Options& options, const document_item_type* items) argument
640 if (options.autoDepFile) {
641 string fileName = options.outputFileName + ".d";
644 to = fopen(options.depFileName.c_str(), "wb");
658 fprintf(to, "%s: \\\n", options.outputFileName.c_str());
663 fprintf(to, " %s %s\n", options.inputFileName.c_str(), slash);
692 generate_outputFileName2(const Options& options, const buffer_type& name, const char* package) argument
698 result = options.outputBaseFolder;
[all …]
/frameworks/base/media/java/android/media/
DThumbnailUtils.java105 BitmapFactory.Options options = new BitmapFactory.Options(); in createImageThumbnail() local
106 options.inSampleSize = 1; in createImageThumbnail()
107 options.inJustDecodeBounds = true; in createImageThumbnail()
108 BitmapFactory.decodeFileDescriptor(fd, null, options); in createImageThumbnail()
109 if (options.mCancel || options.outWidth == -1 in createImageThumbnail()
110 || options.outHeight == -1) { in createImageThumbnail()
113 options.inSampleSize = computeSampleSize( in createImageThumbnail()
114 options, targetSize, maxPixels); in createImageThumbnail()
115 options.inJustDecodeBounds = false; in createImageThumbnail()
117 options.inDither = false; in createImageThumbnail()
[all …]
/frameworks/av/media/libstagefright/timedtext/test/
DTimedTextSRTSource_test.cpp150 MediaSource::ReadOptions options; in TEST_F() local
151 options.setSeekTo(500, MediaSource::ReadOptions::SEEK_PREVIOUS_SYNC); in TEST_F()
152 err = mSource->read(&startTimeUs, &endTimeUs, &parcel, &options); in TEST_F()
159 MediaSource::ReadOptions options; in TEST_F() local
160 options.setSeekTo(7 * kSecToUsec, MediaSource::ReadOptions::SEEK_PREVIOUS_SYNC); in TEST_F()
161 err = mSource->read(&startTimeUs, &endTimeUs, &parcel, &options); in TEST_F()
164 options.setSeekTo(8 * kSecToUsec, MediaSource::ReadOptions::SEEK_PREVIOUS_SYNC); in TEST_F()
165 err = mSource->read(&startTimeUs, &endTimeUs, &parcel, &options); in TEST_F()
171 MediaSource::ReadOptions options; in TEST_F() local
172 options.setSeekTo(i * kSecToUsec, MediaSource::ReadOptions::SEEK_PREVIOUS_SYNC); in TEST_F()
[all …]
/frameworks/compile/mclinker/lib/Target/
DELFDynamic.cpp103 if (m_Config.options().Bsymbolic()) in reserveEntries()
166 if (m_Config.options().hasOrigin()) in reserveEntries()
168 if (m_Config.options().Bsymbolic()) in reserveEntries()
170 if (m_Config.options().hasNow()) in reserveEntries()
178 if ((m_Config.options().hasNewDTags() && 0x0 != dt_flags) || in reserveEntries()
185 if (m_Config.options().hasNow() || in reserveEntries()
186 m_Config.options().hasLoadFltr() || in reserveEntries()
187 m_Config.options().hasOrigin() || in reserveEntries()
188 m_Config.options().hasInterPose() || in reserveEntries()
189 m_Config.options().hasNoDefaultLib() || in reserveEntries()
[all …]
/frameworks/base/core/jni/android/graphics/
DBitmapRegionDecoder.cpp173 … jint start_x, jint start_y, jint width, jint height, jobject options) { in nativeDecodeRegion() argument
183 if (NULL != options) { in nativeDecodeRegion()
184 sampleSize = env->GetIntField(options, gOptions_sampleSizeFieldID); in nativeDecodeRegion()
186 env->SetIntField(options, gOptions_widthFieldID, -1); in nativeDecodeRegion()
187 env->SetIntField(options, gOptions_heightFieldID, -1); in nativeDecodeRegion()
188 env->SetObjectField(options, gOptions_mimeFieldID, 0); in nativeDecodeRegion()
190 jobject jconfig = env->GetObjectField(options, gOptions_configFieldID); in nativeDecodeRegion()
192 doDither = env->GetBooleanField(options, gOptions_ditherFieldID); in nativeDecodeRegion()
193 preferQualityOverSpeed = env->GetBooleanField(options, in nativeDecodeRegion()
196 tileBitmap = env->GetObjectField(options, gOptions_bitmapFieldID); in nativeDecodeRegion()
[all …]
DBitmapFactory.cpp87 static bool optionsJustBounds(JNIEnv* env, jobject options) { in optionsJustBounds() argument
88 return options != NULL && env->GetBooleanField(options, gOptions_justBoundsFieldID); in optionsJustBounds()
209 static jobject doDecode(JNIEnv* env, SkStreamRewindable* stream, jobject padding, jobject options) { in doDecode() argument
224 if (options != NULL) { in doDecode()
225 sampleSize = env->GetIntField(options, gOptions_sampleSizeFieldID); in doDecode()
226 if (optionsJustBounds(env, options)) { in doDecode()
231 env->SetIntField(options, gOptions_widthFieldID, -1); in doDecode()
232 env->SetIntField(options, gOptions_heightFieldID, -1); in doDecode()
233 env->SetObjectField(options, gOptions_mimeFieldID, 0); in doDecode()
235 jobject jconfig = env->GetObjectField(options, gOptions_configFieldID); in doDecode()
[all …]
/frameworks/ex/common/java/com/android/common/
DOperationScheduler.java107 public static Options parseOptions(String spec, Options options) in parseOptions() argument
117 options.backoffFixedMillis = parseSeconds(pieces[0]); in parseOptions()
120 options.backoffIncrementalMillis = parseSeconds(pieces[1]); in parseOptions()
123 options.backoffExponentialMillis = (int)parseSeconds(pieces[2]); in parseOptions()
126 options.maxMoratoriumMillis = parseSeconds(param.substring(4)); in parseOptions()
128 options.minTriggerMillis = parseSeconds(param.substring(4)); in parseOptions()
130 options.periodicIntervalMillis = parseSeconds(param.substring(7)); in parseOptions()
132 options.periodicIntervalMillis = parseSeconds(param); in parseOptions()
135 return options; in parseOptions()
151 public long getNextTimeMillis(Options options) { in getNextTimeMillis() argument
[all …]
/frameworks/base/core/java/android/app/backup/
DWallpaperBackupHelper.java141 BitmapFactory.Options options = new BitmapFactory.Options(); in restoreEntity() local
142 options.inJustDecodeBounds = true; in restoreEntity()
143 BitmapFactory.decodeFile(STAGE_FILE, options); in restoreEntity()
145 if (DEBUG) Slog.d(TAG, "Restoring wallpaper image w=" + options.outWidth in restoreEntity()
146 + " h=" + options.outHeight); in restoreEntity()
153 final double heightRatio = mDesiredMinHeight / options.outHeight; in restoreEntity()
154 if (options.outWidth < mDesiredMinWidth in restoreEntity()
162 + options.outWidth + ", h=" + options.outHeight in restoreEntity()
/frameworks/base/core/java/com/android/server/
DNetworkManagementSocketTagger.java67 final SocketTags options = threadSocketTags.get(); in tag() local
70 + Integer.toHexString(options.statsTag) + ", statsUid=" + options.statsUid); in tag()
73 tagSocketFd(fd, options.statsTag, options.statsUid); in tag()
98 final SocketTags options = threadSocketTags.get(); in unTagSocketFd() local
99 if (options.statsTag == -1 && options.statsUid == -1) return; in unTagSocketFd()
/frameworks/base/location/java/android/location/
DFusedBatchOptions.java110 FusedBatchOptions options = new FusedBatchOptions();
111 options.setMaxPowerAllocationInMW(parcel.readDouble());
112 options.setPeriodInNS(parcel.readLong());
113 options.setSourceToUse(parcel.readInt());
114 options.setFlag(parcel.readInt());
115 return options;
/frameworks/compile/mclinker/tools/mcld/lib/
DPreferenceOptions.cpp132 pConfig.options().setTrace(m_Trace); in parse()
135 pConfig.options().setVerbose(m_Verbose); in parse()
138 pConfig.options().setMaxErrorNum(m_MaxErrorNum); in parse()
141 pConfig.options().setMaxWarnNum(m_MaxWarnNum); in parse()
146 pConfig.options().setColor(false); in parse()
149 pConfig.options().setColor(true); in parse()
154 pConfig.options().setColor(color_option); in parse()
158 mcld::outs().setColor(pConfig.options().color()); in parse()
159 mcld::errs().setColor(pConfig.options().color()); in parse()
DDynamicSectionOptions.cpp109 pConfig.options().setBsymbolic(m_Bsymbolic); in parse()
112 pConfig.options().setBgroup(m_Bgroup); in parse()
115 pConfig.options().setSOName(m_SOName); in parse()
121 pConfig.options().addZOption(*zOpt); in parse()
126 pConfig.options().setNoUndefined(llvm::cl::BOU_TRUE == m_NoUndefined); in parse()
130 pConfig.options().setMulDefs(llvm::cl::BOU_TRUE == m_AllowMulDefs); in parse()
133 pConfig.options().setDyld(m_Dyld); in parse()
136 pConfig.options().setNewDTags(m_EnableNewDTags); in parse()
142 pConfig.options().getAuxiliaryList().push_back(*aux); in parse()
145 pConfig.options().setFilter(m_Filter); in parse()
DOutputFormatOptions.cpp213 pConfig.options().setBinaryInput(); in parse()
215 pConfig.options().setStripDebug(m_StripDebug || m_StripAll); in parse()
217 pConfig.options().setStripSymbols(mcld::GeneralOptions::StripAllSymbols); in parse()
219 pConfig.options().setStripSymbols(mcld::GeneralOptions::StripLocals); in parse()
221 pConfig.options().setStripSymbols(mcld::GeneralOptions::StripTemporaries); in parse()
223 pConfig.options().setStripSymbols(mcld::GeneralOptions::KeepAllSymbols); in parse()
225 pConfig.options().setEhFrameHdr(m_EhFrameHdr); in parse()
226 pConfig.options().setPIE(m_PIE); in parse()
227 pConfig.options().setNMagic(m_NMagic); in parse()
228 pConfig.options().setOMagic(m_OMagic); in parse()
[all …]
/frameworks/webview/chromium/tools/
Dmerge_from_chromium.py568 (options, args) = parser.parse_args()
580 if options.get_lkgr:
582 elif options.get_head:
585 elif options.push:
586 if options.release:
587 Push(options.release, options.target)
588 elif options.svn_revision:
589 Push(options.svn_revision, options.target)
594 if not Snapshot(options.svn_revision, options.sha1, options.release,
595 options.target, options.unattended, options.buildspec_url):
[all …]
Dmerge_to_master.py203 (options, args) = parser.parse_args()
211 if options.push:
212 Push(options.target)
213 elif options.repo_prop:
214 return _MergeWithRepoProp(os.path.expanduser(options.repo_prop),
215 options.target)
216 elif options.svn_revision:
217 _MergeProjects(options.svn_revision, options.target)
220 _MergeProjects(svn_revision, options.target)
/frameworks/support/v4/jellybean/android/support/v4/app/
DActivityCompatJB.java25 public static void startActivity(Context context, Intent intent, Bundle options) { in startActivity() argument
26 context.startActivity(intent, options); in startActivity()
29 …ic void startActivityForResult(Activity activity, Intent intent, int requestCode, Bundle options) { in startActivityForResult() argument
30 activity.startActivityForResult(intent, requestCode, options); in startActivityForResult()
/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/wilhelm/tests/sandbox/
Dengine.c86 SLEngineOption options[2]; in main() local
87 options[0].feature = 0x12345; in main()
88 options[0].data = 0; in main()
91 result = slCreateEngine(&engineObject, 1, options, 0, NULL, NULL); in main()
105 options[0].feature = SL_ENGINEOPTION_THREADSAFE; in main()
106 options[0].data = (SLuint32) SL_BOOLEAN_TRUE; in main()
107 options[1].feature = SL_ENGINEOPTION_LOSSOFCONTROL; in main()
108 options[1].data = (SLuint32) SL_BOOLEAN_FALSE; in main()
109 result = slCreateEngine(&engineObject, 2, options, numSupportedInterfaces+1, engine_ids, in main()
/frameworks/support/v4/java/android/support/v4/app/
DTaskStackBuilder.java78 int flags, Bundle options); in getPendingIntent() argument
83 int flags, Bundle options) { in getPendingIntent() argument
92 int flags, Bundle options) { in getPendingIntent() argument
103 int flags, Bundle options) { in getPendingIntent() argument
108 intents, flags, options); in getPendingIntent()
315 public void startActivities(Bundle options) { in startActivities() argument
325 if (!ContextCompat.startActivities(mSourceContext, intents, options)) { in startActivities()
360 public PendingIntent getPendingIntent(int requestCode, int flags, Bundle options) { in getPendingIntent() argument
371 return IMPL.getPendingIntent(mSourceContext, intents, requestCode, flags, options); in getPendingIntent()
/frameworks/av/media/libstagefright/timedtext/
DTimedTextPlayer.cpp126 MediaSource::ReadOptions options; in onMessageReceived() local
127 options.setSeekTo( in onMessageReceived()
130 doRead(&options); in onMessageReceived()
221 MediaSource::ReadOptions options; in doSeekAndRead() local
222 options.setSeekTo(seekTimeUs, MediaSource::ReadOptions::SEEK_PREVIOUS_SYNC); in doSeekAndRead()
223 doRead(&options); in doSeekAndRead()
226 void TimedTextPlayer::doRead(MediaSource::ReadOptions* options) { in doRead() argument
232 &(parcelEvent->parcel), options); in doRead()
235 if (options != NULL) { in doRead()
239 CHECK(options->getSeekTo(&seekTimeUs, &seekMode)); in doRead()
/frameworks/base/docs/html/training/displaying-bitmaps/
Dload-bitmap.jd54 options via the {@link android.graphics.BitmapFactory.Options} class. Setting the {@link
64 BitmapFactory.Options options = new BitmapFactory.Options();
65 options.inJustDecodeBounds = true;
66 BitmapFactory.decodeResource(getResources(), R.id.myimage, options);
67 int imageHeight = options.outHeight;
68 int imageWidth = options.outWidth;
69 String imageType = options.outMimeType;
105 BitmapFactory.Options options, int reqWidth, int reqHeight) {
107 final int height = options.outHeight;
108 final int width = options.outWidth;
[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

12345678910>>...15