Home
last modified time | relevance | path

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

12345678910>>...20

/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/native/vulkan/vkjson/
Dvkjson_info.cc43 bool ParseOptions(int argc, char* argv[], Options* options) { in ParseOptions() argument
47 options->instance = true; in ParseOptions()
49 options->device_index = 0; in ParseOptions()
58 int result = sscanf(arg2.c_str(), "%u", &options->device_index); in ParseOptions()
60 options->device_index = static_cast<uint32_t>(-1); in ParseOptions()
65 options->device_name = arg2; in ParseOptions()
67 options->output_file = arg2; in ParseOptions()
74 if (options->instance && (options->device_index != unsignedNegOne || in ParseOptions()
75 !options->device_name.empty())) { in ParseOptions()
80 if (options->device_index != unsignedNegOne && !options->device_name.empty()) { in ParseOptions()
[all …]
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DTaskLaunchParamsModifierTests.java160 ActivityOptions options = ActivityOptions.makeBasic(); in testUsesOptionsDisplayIdIfSet() local
161 options.setLaunchDisplayId(fullscreenDisplay.mDisplayId); in testUsesOptionsDisplayIdIfSet()
164 mActivity, source, options, mCurrent, mResult)); in testUsesOptionsDisplayIdIfSet()
225 final ActivityOptions options = ActivityOptions.makeBasic(); in testBoundsInOptionsInfersFreeformOnFreeformDisplay() local
226 options.setLaunchBounds(new Rect(0, 0, 100, 100)); in testBoundsInOptionsInfersFreeformOnFreeformDisplay()
231 mActivity, /* source */ null, options, mCurrent, mResult)); in testBoundsInOptionsInfersFreeformOnFreeformDisplay()
239 final ActivityOptions options = ActivityOptions.makeBasic(); in testBoundsInOptionsInfersFreeformWithResizeableActivity() local
240 options.setLaunchBounds(new Rect(0, 0, 100, 100)); in testBoundsInOptionsInfersFreeformWithResizeableActivity()
245 mActivity, /* source */ null, options, mCurrent, mResult)); in testBoundsInOptionsInfersFreeformWithResizeableActivity()
256 final ActivityOptions options = ActivityOptions.makeBasic(); in testKeepsPictureInPictureLaunchModeInOptions() local
[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()
169 TableMergerOptions options; in TEST_F() local
170 options.auto_add_overlay = false; in TEST_F()
171 TableMerger merger(context_.get(), &final_table, options); in TEST_F()
209 TableMergerOptions options; in TEST_F() local
[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/core/tests/coretests/src/android/content/
DContentCaptureOptionsTest.java58 ContentCaptureOptions options = new ContentCaptureOptions(null); in testIsWhitelisted_nullWhitelistedComponents() local
59 assertThat(options.isWhitelisted(mContext)).isTrue(); in testIsWhitelisted_nullWhitelistedComponents()
64 ContentCaptureOptions options = new ContentCaptureOptions(toSet((ComponentName) null)); in testIsWhitelisted_emptyWhitelistedComponents() local
65 assertThat(options.isWhitelisted(mContext)).isFalse(); in testIsWhitelisted_emptyWhitelistedComponents()
70 ContentCaptureOptions options = new ContentCaptureOptions(toSet(mComp1, mComp2)); in testIsWhitelisted_notWhitelisted() local
71 assertThat(options.isWhitelisted(mContext)).isFalse(); in testIsWhitelisted_notWhitelisted()
76 ContentCaptureOptions options = new ContentCaptureOptions(toSet(mComp1, mContextComponent)); in testIsWhitelisted_whitelisted() local
77 assertThat(options.isWhitelisted(mContext)).isTrue(); in testIsWhitelisted_whitelisted()
82 ContentCaptureOptions options = new ContentCaptureOptions(toSet(mContextComponent)); in testIsWhitelisted_invalidContext() local
84 assertThat(options.isWhitelisted(invalidContext)).isFalse(); in testIsWhitelisted_invalidContext()
[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/base/services/accessibility/
DTEST_MAPPING5 "options": [
16 "options": [
27 "options": [
38 "options": [
49 "options": [
60 "options": [
82 "options": [
90 "options": [
98 "options": [
/frameworks/base/tools/dump-coverage/
Ddump_coverage.cc149 static tuple<std::string, std::string> SplitOnColon(const std::string& options) { in SplitOnColon() argument
150 size_t loc_delim = options.find(':'); in SplitOnColon()
154 command = options; in SplitOnColon()
156 command = options.substr(0, loc_delim); in SplitOnColon()
157 args = options.substr(loc_delim + 1, options.length()); in SplitOnColon()
164 static jint ParseOptionsAndExecuteCommand(const std::string& options) { in ParseOptionsAndExecuteCommand() argument
165 auto split = SplitOnColon(options); in ParseOptionsAndExecuteCommand()
183 static jint AgentStart(JavaVM* vm, char* options) { in AgentStart() argument
187 return ParseOptionsAndExecuteCommand(options); in AgentStart()
192 Agent_OnAttach(JavaVM* vm, char* options, void* reserved ATTRIBUTE_UNUSED) { in Agent_OnAttach() argument
[all …]
/frameworks/base/tests/JankBench/app/src/main/java/com/android/benchmark/ui/
DUtils.java97 BitmapFactory.Options options, int reqWidth, int reqHeight) { in calculateInSampleSize() argument
99 final int height = options.outHeight; in calculateInSampleSize()
100 final int width = options.outWidth; in calculateInSampleSize()
123 final BitmapFactory.Options options = new BitmapFactory.Options(); in decodeSampledBitmapFromResource() local
124 options.inJustDecodeBounds = true; in decodeSampledBitmapFromResource()
125 BitmapFactory.decodeResource(res, resId, options); in decodeSampledBitmapFromResource()
128 options.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight); in decodeSampledBitmapFromResource()
131 options.inJustDecodeBounds = false; in decodeSampledBitmapFromResource()
132 return BitmapFactory.decodeResource(res, resId, options); in decodeSampledBitmapFromResource()
/frameworks/base/tests/JankBench/scripts/
Drunall.py17 options, categories = parser.parse_args(argv[1:])
18 return (options, categories)
56 options, categories = parse_options(sys.argv)
57 if options.clear:
58 print options.device
59 clear_data(options.device)
61 start_benchmark(options.device, options.trace)
Ditr_collect.py141 options, categories = parser.parse_args(argv[1:])
142 return options
145 options = parse_options(sys.argv)
146 if options.device != None:
147 score_device(options.device, DEVICES[options.device], options.pull, options.verbose)
151 score_device(name, serial, options.pull, options.verbose)
/frameworks/base/core/jni/android/graphics/
DBitmapRegionDecoder.cpp128 jint inputY, jint inputWidth, jint inputHeight, jobject options, jlong inBitmapHandle, in nativeDecodeRegion() argument
139 if (NULL != options) { in nativeDecodeRegion()
140 sampleSize = env->GetIntField(options, gOptions_sampleSizeFieldID); in nativeDecodeRegion()
141 jobject jconfig = env->GetObjectField(options, gOptions_configFieldID); 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()
154 env->SetObjectField(options, gOptions_outConfigFieldID, 0); in nativeDecodeRegion()
[all …]
DBitmapFactory.cpp185 jobject padding, jobject options, jlong inBitmapHandle, in doDecode() argument
199 if (options != NULL) { in doDecode()
200 sampleSize = env->GetIntField(options, gOptions_sampleSizeFieldID); in doDecode()
207 if (env->GetBooleanField(options, gOptions_justBoundsFieldID)) { in doDecode()
212 env->SetIntField(options, gOptions_widthFieldID, -1); in doDecode()
213 env->SetIntField(options, gOptions_heightFieldID, -1); in doDecode()
214 env->SetObjectField(options, gOptions_mimeFieldID, 0); in doDecode()
215 env->SetObjectField(options, gOptions_outConfigFieldID, 0); in doDecode()
216 env->SetObjectField(options, gOptions_outColorSpaceFieldID, 0); in doDecode()
218 jobject jconfig = env->GetObjectField(options, gOptions_configFieldID); in doDecode()
[all …]
/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/base/services/core/java/com/android/server/wm/
DSafeActivityOptions.java78 public SafeActivityOptions(@Nullable ActivityOptions options) { in SafeActivityOptions() argument
81 mOriginalOptions = options; in SafeActivityOptions()
89 public void setCallerOptions(@Nullable ActivityOptions options) { in setCallerOptions() argument
92 mCallerOptions = options; in setCallerOptions()
137 private void setCallingPidUidForRemoteAnimationAdapter(ActivityOptions options, in setCallingPidUidForRemoteAnimationAdapter() argument
139 final RemoteAnimationAdapter adapter = options.getRemoteAnimationAdapter(); in setCallingPidUidForRemoteAnimationAdapter()
166 static void abort(@Nullable SafeActivityOptions options) { in abort() argument
167 if (options != null) { in abort()
168 options.abort(); in abort()
193 ActivityOptions options, int callingPid, int callingUid) { in checkPermissions() argument
[all …]
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/system/
DActivityOptionsCompat.java45 final ActivityOptions options = ActivityOptions.makeBasic(); in makeSplitScreenOptions() local
46 options.setLaunchWindowingMode(isPrimary in makeSplitScreenOptions()
49 options.setSplitScreenCreateMode(dockTopLeft in makeSplitScreenOptions()
52 return options; in makeSplitScreenOptions()
59 final ActivityOptions options = ActivityOptions.makeBasic(); in makeFreeformOptions() local
60 options.setLaunchWindowingMode(WINDOWING_MODE_FREEFORM); in makeFreeformOptions()
61 return options; in makeFreeformOptions()
/frameworks/base/core/java/com/android/server/
DNetworkManagementSocketTagger.java76 final SocketTags options = threadSocketTags.get(); in tag() local
79 + Integer.toHexString(options.statsTag) + ", statsUid=" + options.statsUid); in tag()
81 if (options.statsTag == -1 && StrictMode.vmUntaggedSocketEnabled()) { in tag()
85 tagSocketFd(fd, options.statsTag, options.statsUid); in tag()
110 final SocketTags options = threadSocketTags.get(); in unTagSocketFd() local
111 if (options.statsTag == -1 && options.statsUid == -1) return; in unTagSocketFd()
/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/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/base/services/core/java/com/android/server/policy/
DTEST_MAPPING5 "options": [
19 "options": [
33 "options": [
44 "options": [
57 "options": [
65 "options": [
/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/base/core/java/android/content/
DAutofillOptions.java101 final AutofillOptions options = new AutofillOptions( in forWhitelistingItself() local
103 options.augmentedAutofillEnabled = true; in forWhitelistingItself()
105 Log.i(TAG, "forWhitelistingItself(" + packageName + "): " + options); in forWhitelistingItself()
107 return options; in forWhitelistingItself()
147 final AutofillOptions options = new AutofillOptions(loggingLevel, compatMode);
148 options.augmentedAutofillEnabled = parcel.readBoolean();
149 options.whitelistedActivitiesForAugmentedAutofill =
151 return options;
/frameworks/native/services/inputflinger/dispatcher/
DInputState.cpp252 const CancelationOptions& options) { in synthesizeCancelationEvents() argument
254 if (shouldCancelKey(memento, options)) { in synthesizeCancelationEvents()
265 if (shouldCancelMotion(memento, options)) { in synthesizeCancelationEvents()
324 bool InputState::shouldCancelKey(const KeyMemento& memento, const CancelationOptions& options) { in shouldCancelKey() argument
325 if (options.keyCode && memento.keyCode != options.keyCode.value()) { in shouldCancelKey()
329 if (options.deviceId && memento.deviceId != options.deviceId.value()) { in shouldCancelKey()
333 if (options.displayId && memento.displayId != options.displayId.value()) { in shouldCancelKey()
337 switch (options.mode) { in shouldCancelKey()
349 const CancelationOptions& options) { in shouldCancelMotion() argument
350 if (options.deviceId && memento.deviceId != options.deviceId.value()) { in shouldCancelMotion()
[all …]

12345678910>>...20