Home
last modified time | relevance | path

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

12345678910>>...42

/frameworks/ex/common/tests/src/com/android/common/
DOperationSchedulerTest.java48 OperationScheduler.Options options = new OperationScheduler.Options(); in testScheduler() local
49 assertEquals(Long.MAX_VALUE, scheduler.getNextTimeMillis(options)); in testScheduler()
55 assertEquals(beforeTrigger + 1000000, scheduler.getNextTimeMillis(options)); in testScheduler()
59 assertEquals(beforeTrigger + 1000000, scheduler.getNextTimeMillis(options)); in testScheduler()
61 assertEquals(beforeTrigger + 1500000, scheduler.getNextTimeMillis(options)); in testScheduler()
65 assertEquals(Long.MAX_VALUE, scheduler.getNextTimeMillis(options)); in testScheduler()
67 assertEquals(beforeTrigger + 1500000, scheduler.getNextTimeMillis(options)); in testScheduler()
74 assertEquals(beforeTrigger + 1500000, scheduler.getNextTimeMillis(options)); in testScheduler()
75 options.backoffFixedMillis = 1000000; in testScheduler()
76 options.backoffIncrementalMillis = 500000; in testScheduler()
[all …]
/frameworks/libs/modules-utils/javatests/com/android/modules/expresslog/
DUniformOptionsTest.java57 Histogram.UniformOptions options = new Histogram.UniformOptions(10, 1, 11); in testBinIndexForRangeEqual1() local
58 for (int i = 0, bins = options.getBinsCount(); i < bins; i++) { in testBinIndexForRangeEqual1()
59 assertEquals(i, options.getBinForSample(i)); in testBinIndexForRangeEqual1()
65 Histogram.UniformOptions options = new Histogram.UniformOptions(10, 1, 21); in testBinIndexForRangeEqual2() local
66 for (int i = 0, bins = options.getBinsCount(); i < bins; i++) { in testBinIndexForRangeEqual2()
67 assertEquals(i, options.getBinForSample(i * 2)); in testBinIndexForRangeEqual2()
68 assertEquals(i, options.getBinForSample(i * 2 - 1)); in testBinIndexForRangeEqual2()
74 Histogram.UniformOptions options = new Histogram.UniformOptions(2, 0, 10); in testBinIndexForRangeEqual5() local
75 assertEquals(4, options.getBinsCount()); in testBinIndexForRangeEqual5()
78 assertEquals(i + 1, options.getBinForSample(i * 5 + sample)); in testBinIndexForRangeEqual5()
[all …]
DScaledRangeOptionsTest.java83 Histogram.ScaledRangeOptions options = new Histogram.ScaledRangeOptions(10, 1, 1, 1); in testBinIndexForRangeEqual1() local
84 assertEquals(12, options.getBinsCount()); in testBinIndexForRangeEqual1()
86 assertEquals(11, options.getBinForSample(11)); in testBinIndexForRangeEqual1()
88 for (int i = 0, bins = options.getBinsCount(); i < bins; i++) { in testBinIndexForRangeEqual1()
89 assertEquals(i, options.getBinForSample(i)); in testBinIndexForRangeEqual1()
96 Histogram.ScaledRangeOptions options = new Histogram.ScaledRangeOptions(10, 1, 2, 1); in testBinIndexForRangeEqual2() local
97 assertEquals(12, options.getBinsCount()); in testBinIndexForRangeEqual2()
99 for (int i = 0, bins = options.getBinsCount(); i < bins; i++) { in testBinIndexForRangeEqual2()
100 assertEquals(i, options.getBinForSample(i * 2)); in testBinIndexForRangeEqual2()
101 assertEquals(i, options.getBinForSample(i * 2 - 1)); in testBinIndexForRangeEqual2()
[all …]
/frameworks/base/services/core/jni/gnss/
DGnssMeasurement.cpp53 const IGnssMeasurementInterface::Options& options) { in setCallback() argument
55 auto status = mIGnssMeasurement->setCallbackWithOptions(callback->getAidl(), options); in setCallback()
60 auto status = mIGnssMeasurement->setCallback(callback->getAidl(), options.enableFullTracking, in setCallback()
61 options.enableCorrVecOutputs); in setCallback()
76 const IGnssMeasurementInterface::Options& options) { in setCallback() argument
77 if (options.enableFullTracking == true) { in setCallback()
80 if (options.enableCorrVecOutputs == true) { in setCallback()
83 if (options.intervalMs > 1000) { in setCallback()
105 const IGnssMeasurementInterface::Options& options) { in setCallback() argument
106 if (options.enableCorrVecOutputs == true) { in setCallback()
[all …]
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DTaskLaunchParamsModifierTests.java152 ActivityOptions options = ActivityOptions.makeBasic(); in testUsesOptionsDisplayIdIfSet() local
153 options.setLaunchDisplayId(fullscreenDisplay.mDisplayId); in testUsesOptionsDisplayIdIfSet()
156 new CalculateRequestBuilder().setSource(source).setOptions(options).calculate()); in testUsesOptionsDisplayIdIfSet()
172 ActivityOptions options = ActivityOptions.makeBasic(); in testUsesOptionsDisplayAreaTokenIfSet() local
173 options.setLaunchTaskDisplayArea(fullscreenDisplay.getDefaultTaskDisplayArea() in testUsesOptionsDisplayAreaTokenIfSet()
177 new CalculateRequestBuilder().setSource(source).setOptions(options).calculate()); in testUsesOptionsDisplayAreaTokenIfSet()
193 ActivityOptions options = ActivityOptions.makeBasic(); in testUsesOptionsDisplayAreaFeatureIdIfSet() local
194 options.setLaunchDisplayId(fullscreenDisplay.mDisplayId); in testUsesOptionsDisplayAreaFeatureIdIfSet()
195 options.setLaunchTaskDisplayAreaFeatureId( in testUsesOptionsDisplayAreaFeatureIdIfSet()
199 new CalculateRequestBuilder().setSource(source).setOptions(options).calculate()); in testUsesOptionsDisplayAreaFeatureIdIfSet()
[all …]
/frameworks/base/services/core/java/com/android/server/wm/
DSafeActivityOptions.java104 public SafeActivityOptions(@Nullable ActivityOptions options) { in SafeActivityOptions() argument
107 mOriginalOptions = options; in SafeActivityOptions()
115 private SafeActivityOptions(@Nullable ActivityOptions options, int callingPid, int callingUid) { in SafeActivityOptions() argument
118 mOriginalOptions = options; in SafeActivityOptions()
128 final ActivityOptions options = cloneLaunchingOptions(mOriginalOptions); in selectiveCloneLaunchOptions() local
130 if (options == null && callerOptions == null) { in selectiveCloneLaunchOptions()
134 final SafeActivityOptions safeOptions = new SafeActivityOptions(options, in selectiveCloneLaunchOptions()
142 private ActivityOptions cloneLaunchingOptions(ActivityOptions options) { in cloneLaunchingOptions() argument
143 return options == null ? null : ActivityOptions.makeBasic() in cloneLaunchingOptions()
144 .setLaunchTaskDisplayArea(options.getLaunchTaskDisplayArea()) in cloneLaunchingOptions()
[all …]
/frameworks/native/services/inputflinger/
DTEST_MAPPING5 "options": [
31 "options": [
39 "options": [
53 "options": [
61 "options": [
90 "options": [
101 "options": [
109 "options": [
120 "options": [
128 "options": [
[all …]
/frameworks/native/libs/binder/tests/parcel_fuzzer/
Drandom_parcel.cpp35 void fillRandomParcel(Parcel* p, FuzzedDataProvider&& provider, RandomParcelOptions* options) { in fillRandomParcel() argument
36 CHECK_NE(options, nullptr); in fillRandomParcel()
48 if (options->writeHeader) { in fillRandomParcel()
49 options->writeHeader(p, provider); in fillRandomParcel()
56 if (options->writeHeader) { in fillRandomParcel()
57 options->writeHeader(p, provider); in fillRandomParcel()
76 if (provider.ConsumeBool() && options->extraFds.size() > 0) { in fillRandomParcel()
77 const unique_fd& fd = options->extraFds.at( in fillRandomParcel()
79 options->extraFds.size() - in fillRandomParcel()
84 if (options->extraFds.size() > 1000) { in fillRandomParcel()
[all …]
/frameworks/base/tools/hoststubgen/hoststubgen/src/com/android/hoststubgen/
DHostStubGen.kt49 class HostStubGen(val options: HostStubGenOptions) { in <lambda>() constant in com.android.hoststubgen.HostStubGen
55 val allClasses = ClassNodes.loadClassStructures(options.inJar.get) in <lambda>()
58 options.inputJarDumpFile.ifSet { in <lambda>()
63 options.inputJarAsKeepAllFile.ifSet { in <lambda>()
73 val filter = buildFilter(errors, allClasses, options) in <lambda>()
77 options.inJar.get, in <lambda>()
78 options.outStubJar.get, in <lambda>()
79 options.outImplJar.get, in <lambda>()
81 options.enableClassChecker.get, in <lambda>()
88 options.statsFile.ifSet { in <lambda>()
[all …]
/frameworks/base/tools/aapt2/link/
DTableMerger_test.cpp90 TableMergerOptions options; in TEST_F() local
91 options.auto_add_overlay = false; in TEST_F()
92 TableMerger merger(context_.get(), &final_table, options); in TEST_F()
110 TableMergerOptions options; in TEST_F() local
111 options.auto_add_overlay = false; in TEST_F()
112 TableMerger merger(context_.get(), &final_table, options); in TEST_F()
164 TableMergerOptions options; in TEST_F() local
165 options.auto_add_overlay = false; in TEST_F()
166 TableMerger merger(context_.get(), &final_table, options); in TEST_F()
202 TableMergerOptions options; in TEST_F() local
[all …]
/frameworks/base/core/java/android/app/
DTEST_MAPPING20 "options": [
33 "options": [
42 "options": [
51 "options": [
63 "options": [
76 "options": [
88 "options": [
100 "options": [
115 "options": [
127 "options": [
[all …]
/frameworks/av/media/libheadtracking/
DModeSelector-test.cpp32 ModeSelector::Options options; in TEST() local
33 ModeSelector selector(options); in TEST()
43 ModeSelector::Options options; in TEST() local
44 ModeSelector selector(options, HeadTrackingMode::WORLD_RELATIVE); in TEST()
56 ModeSelector::Options options; in TEST() local
57 ModeSelector selector(options, HeadTrackingMode::SCREEN_RELATIVE); in TEST()
69 ModeSelector::Options options; in TEST() local
70 ModeSelector selector(options); in TEST()
85 ModeSelector::Options options{.freshnessTimeout = 100}; in TEST() local
86 ModeSelector selector(options); in TEST()
[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/tests/FsVerityTest/src/com/android/fsverity/
DFsVerityHostTest.java92 DeviceTestRunOptions options = new DeviceTestRunOptions(TARGET_PACKAGE); in prepareTest() local
93 options.setTestClassName(TARGET_PACKAGE + ".Helper"); in prepareTest()
94 options.setTestMethodName("prepareTest"); in prepareTest()
95 options.addInstrumentationArg("basename", BASENAME); in prepareTest()
96 options.addInstrumentationArg("fileSize", String.valueOf(fileSize)); in prepareTest()
97 assertThat(runDeviceTests(options)).isTrue(); in prepareTest()
101 DeviceTestRunOptions options = new DeviceTestRunOptions(TARGET_PACKAGE); in verifyRead() local
102 options.setTestClassName(TARGET_PACKAGE + ".Helper"); in verifyRead()
103 options.setTestMethodName("verifyFileRead"); in verifyRead()
104 options.addInstrumentationArg("brokenBlockIndicesCsv", indicesCsv); in verifyRead()
[all …]
/frameworks/base/services/core/java/com/android/server/pm/
DTEST_MAPPING22 "options": [
33 "options": [
42 "options": [
59 "options": [
68 "options": [
76 "options": [
85 "options": [
93 "options": [
102 "options": [
112 "options": [
[all …]
/frameworks/base/services/companion/java/com/android/server/companion/virtual/
DTEST_MAPPING5 "options": [
13 "options": [
21 "options": [
29 "options": [
37 "options": [
46 "options": [
58 "options": [
71 "options": [
82 "options": [
96 "options": [
/frameworks/rs/toolkit/test/
DIntrinsicBlend.kt89 val options = Script.LaunchOptions() in callBlendForEach() constant
90 options.setX(restriction.startX, restriction.endX) in callBlendForEach()
91 options.setY(restriction.startY, restriction.endY) in callBlendForEach()
94 sourceAllocation, destAllocation, options in callBlendForEach()
97 sourceAllocation, destAllocation, options in callBlendForEach()
100 sourceAllocation, destAllocation, options in callBlendForEach()
103 sourceAllocation, destAllocation, options in callBlendForEach()
106 sourceAllocation, destAllocation, options in callBlendForEach()
109 sourceAllocation, destAllocation, options in callBlendForEach()
112 sourceAllocation, destAllocation, options in callBlendForEach()
[all …]
/frameworks/base/
DTEST_MAPPING5 "options": [
21 "options": [
37 "options": [
50 "options": [
61 "options": [
69 "options": [
77 "options": [
85 "options": [
93 "options": [
107 "options": [
[all …]
/frameworks/base/telecomm/
DTEST_MAPPING5 "options": [
13 "options": [
21 "options": [
29 "options": [
37 "options": [
45 "options": [
53 "options": [
63 "options": [
/frameworks/base/packages/SystemUI/src/com/android/systemui/people/widget/
DAppWidgetOptionsHelper.java36 Bundle options = appWidgetManager.getAppWidgetOptions(appWidgetId); in setPeopleTileKey() local
37 options.putString(SHORTCUT_ID, key.getShortcutId()); in setPeopleTileKey()
38 options.putInt(USER_ID, key.getUserId()); in setPeopleTileKey()
39 options.putString(PACKAGE_NAME, key.getPackageName()); in setPeopleTileKey()
40 appWidgetManager.updateAppWidgetOptions(appWidgetId, options); in setPeopleTileKey()
44 public static PeopleTileKey getPeopleTileKeyFromBundle(Bundle options) { in getPeopleTileKeyFromBundle() argument
45 String pkg = options.getString(PACKAGE_NAME, EMPTY_STRING); in getPeopleTileKeyFromBundle()
46 int userId = options.getInt(USER_ID, INVALID_USER_ID); in getPeopleTileKeyFromBundle()
47 String shortcutId = options.getString(SHORTCUT_ID, EMPTY_STRING); in getPeopleTileKeyFromBundle()
/frameworks/native/services/surfaceflinger/
DRenderAreaBuilder.h39 ftl::Flags<RenderArea::Options> options; member
43 ftl::Flags<RenderArea::Options> options) in RenderAreaBuilder()
44 : crop(crop), reqSize(reqSize), reqDataSpace(reqDataSpace), options(options) {} in RenderAreaBuilder()
52 ftl::Flags<RenderArea::Options> options) in DisplayRenderAreaBuilder()
53 : RenderAreaBuilder(crop, reqSize, reqDataSpace, options), displayWeak(displayWeak) {} in DisplayRenderAreaBuilder()
59 return DisplayRenderArea::create(displayWeak, crop, reqSize, reqDataSpace, options); in build()
65 bool childrenOnly, ftl::Flags<RenderArea::Options> options) in LayerRenderAreaBuilder()
66 : RenderAreaBuilder(crop, reqSize, reqDataSpace, options), in LayerRenderAreaBuilder()
98 options); in build()
/frameworks/base/tools/aapt2/optimize/
DObfuscator_test.cpp81 OptimizeOptions options{.shorten_resource_paths = true}; in TEST() local
82 std::map<std::string, std::string>& path_map = options.table_flattener_options.shortened_path_map; in TEST()
83 ASSERT_TRUE(Obfuscator(options).Consume(context.get(), table.get())); in TEST()
118 OptimizeOptions options{.shorten_resource_paths = true}; in TEST() local
119 std::map<std::string, std::string>& path_map = options.table_flattener_options.shortened_path_map; in TEST()
120 ASSERT_TRUE(Obfuscator(options).Consume(context.get(), table.get())); in TEST()
137 OptimizeOptions options{.shorten_resource_paths = true}; in TEST() local
138 TableFlattenerOptions& flattenerOptions = options.table_flattener_options; in TEST()
141 std::map<std::string, std::string>& path_map = options.table_flattener_options.shortened_path_map; in TEST()
142 ASSERT_TRUE(Obfuscator(options).Consume(context.get(), table.get())); in TEST()
[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/telephony/
DTEST_MAPPING5 "options": [
13 "options": [
21 "options": [
29 "options": [
37 "options": [
45 "options": [
53 "options": [
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DCentralSurfaces.java113 ActivityOptions options = getDefaultActivityOptions(animationAdapter); in getActivityOptions() local
114 options.setLaunchDisplayId(displayId); in getActivityOptions()
115 options.setCallerDisplayId(displayId); in getActivityOptions()
116 options.setPendingIntentBackgroundActivityLaunchAllowed(true); in getActivityOptions()
117 return options.toBundle(); in getActivityOptions()
135 ActivityOptions options = getDefaultActivityOptions(animationAdapter); in getActivityOptions() local
136 options.setSourceInfo(isKeyguardShowing ? ActivityOptions.SourceInfo.TYPE_LOCKSCREEN in getActivityOptions()
138 options.setLaunchDisplayId(displayId); in getActivityOptions()
139 options.setCallerDisplayId(displayId); in getActivityOptions()
140 options.setPendingIntentBackgroundActivityLaunchAllowed(true); in getActivityOptions()
[all …]

12345678910>>...42