Home
last modified time | relevance | path

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

12345678910>>...37

/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/libs/modules-utils/javatests/com/android/modules/expresslog/
DUniformOptionsTest.java61 Histogram.UniformOptions options = new Histogram.UniformOptions(10, 1, 11); in testBinIndexForRangeEqual1() local
62 for (int i = 0, bins = options.getBinsCount(); i < bins; i++) { in testBinIndexForRangeEqual1()
63 assertEquals(i, options.getBinForSample(i)); in testBinIndexForRangeEqual1()
69 Histogram.UniformOptions options = new Histogram.UniformOptions(10, 1, 21); in testBinIndexForRangeEqual2() local
70 for (int i = 0, bins = options.getBinsCount(); i < bins; i++) { in testBinIndexForRangeEqual2()
71 assertEquals(i, options.getBinForSample(i * 2)); in testBinIndexForRangeEqual2()
72 assertEquals(i, options.getBinForSample(i * 2 - 1)); in testBinIndexForRangeEqual2()
78 Histogram.UniformOptions options = new Histogram.UniformOptions(2, 0, 10); in testBinIndexForRangeEqual5() local
79 assertEquals(4, options.getBinsCount()); in testBinIndexForRangeEqual5()
82 assertEquals(i + 1, options.getBinForSample(i * 5 + sample)); in testBinIndexForRangeEqual5()
[all …]
DScaledRangeOptionsTest.java87 Histogram.ScaledRangeOptions options = new Histogram.ScaledRangeOptions(10, 1, 1, 1); in testBinIndexForRangeEqual1() local
88 assertEquals(12, options.getBinsCount()); in testBinIndexForRangeEqual1()
90 assertEquals(11, options.getBinForSample(11)); in testBinIndexForRangeEqual1()
92 for (int i = 0, bins = options.getBinsCount(); i < bins; i++) { in testBinIndexForRangeEqual1()
93 assertEquals(i, options.getBinForSample(i)); in testBinIndexForRangeEqual1()
100 Histogram.ScaledRangeOptions options = new Histogram.ScaledRangeOptions(10, 1, 2, 1); in testBinIndexForRangeEqual2() local
101 assertEquals(12, options.getBinsCount()); in testBinIndexForRangeEqual2()
103 for (int i = 0, bins = options.getBinsCount(); i < bins; i++) { in testBinIndexForRangeEqual2()
104 assertEquals(i, options.getBinForSample(i * 2)); in testBinIndexForRangeEqual2()
105 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/native/libs/binder/tests/parcel_fuzzer/
Drandom_parcel.cpp33 void fillRandomParcel(Parcel* p, FuzzedDataProvider&& provider, RandomParcelOptions* options) { in fillRandomParcel() argument
34 CHECK_NE(options, nullptr); in fillRandomParcel()
46 if (options->writeHeader) { in fillRandomParcel()
47 options->writeHeader(p, provider); in fillRandomParcel()
54 if (options->writeHeader) { in fillRandomParcel()
55 options->writeHeader(p, provider); in fillRandomParcel()
69 if (options->extraFds.size() > 0 && provider.ConsumeBool()) { in fillRandomParcel()
70 const base::unique_fd& fd = options->extraFds.at( in fillRandomParcel()
72 options->extraFds.size() - in fillRandomParcel()
77 if (options->extraFds.size() > 1000) { in fillRandomParcel()
[all …]
/frameworks/native/services/inputflinger/
DTEST_MAPPING5 "options": [
31 "options": [
39 "options": [
50 "options": [
58 "options": [
90 "options": [
101 "options": [
109 "options": [
120 "options": [
128 "options": [
[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/base/services/tests/wmtests/src/com/android/server/wm/
DTaskLaunchParamsModifierTests.java170 ActivityOptions options = ActivityOptions.makeBasic(); in testUsesOptionsDisplayIdIfSet() local
171 options.setLaunchDisplayId(fullscreenDisplay.mDisplayId); in testUsesOptionsDisplayIdIfSet()
174 new CalculateRequestBuilder().setSource(source).setOptions(options).calculate()); in testUsesOptionsDisplayIdIfSet()
190 ActivityOptions options = ActivityOptions.makeBasic(); in testUsesOptionsDisplayAreaTokenIfSet() local
191 options.setLaunchTaskDisplayArea(fullscreenDisplay.getDefaultTaskDisplayArea() in testUsesOptionsDisplayAreaTokenIfSet()
195 new CalculateRequestBuilder().setSource(source).setOptions(options).calculate()); in testUsesOptionsDisplayAreaTokenIfSet()
211 ActivityOptions options = ActivityOptions.makeBasic(); in testUsesOptionsDisplayAreaFeatureIdIfSet() local
212 options.setLaunchDisplayId(fullscreenDisplay.mDisplayId); in testUsesOptionsDisplayAreaFeatureIdIfSet()
213 options.setLaunchTaskDisplayAreaFeatureId( in testUsesOptionsDisplayAreaFeatureIdIfSet()
217 new CalculateRequestBuilder().setSource(source).setOptions(options).calculate()); in testUsesOptionsDisplayAreaFeatureIdIfSet()
[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/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/base/tools/aapt2/optimize/
DObfuscator_test.cpp60 OptimizeOptions options{.shorten_resource_paths = true}; in TEST() local
61 std::map<std::string, std::string>& path_map = options.table_flattener_options.shortened_path_map; in TEST()
62 ASSERT_TRUE(Obfuscator(options).Consume(context.get(), table.get())); in TEST()
97 OptimizeOptions options{.shorten_resource_paths = true}; in TEST() local
98 std::map<std::string, std::string>& path_map = options.table_flattener_options.shortened_path_map; in TEST()
99 ASSERT_TRUE(Obfuscator(options).Consume(context.get(), table.get())); in TEST()
116 OptimizeOptions options{.shorten_resource_paths = true}; in TEST() local
117 TableFlattenerOptions& flattenerOptions = options.table_flattener_options; in TEST()
120 std::map<std::string, std::string>& path_map = options.table_flattener_options.shortened_path_map; in TEST()
121 ASSERT_TRUE(Obfuscator(options).Consume(context.get(), table.get())); 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/telecomm/
DTEST_MAPPING5 "options": [
13 "options": [
21 "options": [
29 "options": [
37 "options": [
45 "options": [
53 "options": [
63 "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 …]
DIntrinsicHistogram.kt55 val options = Script.LaunchOptions() in intrinsicHistogram() constant
56 options.setX(restriction.startX, restriction.endX) in intrinsicHistogram()
57 options.setY(restriction.startY, restriction.endY) in intrinsicHistogram()
58 scriptHistogram.forEach(inputAllocation, options) in intrinsicHistogram()
90 val options = Script.LaunchOptions() in intrinsicHistogram() constant
91 options.setX(restriction.startX, restriction.endX) in intrinsicHistogram()
92 options.setY(restriction.startY, restriction.endY) in intrinsicHistogram()
93 scriptHistogram.forEach(inputAllocation, options) in intrinsicHistogram()
140 val options = Script.LaunchOptions() in intrinsicHistogramDot() constant
141 options.setX(restriction.startX, restriction.endX) in intrinsicHistogramDot()
[all …]
/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/base/core/java/android/app/
DTEST_MAPPING28 "options": [
37 "options": [
46 "options": [
58 "options": [
71 "options": [
83 "options": [
95 "options": [
110 "options": [
122 "options": [
131 "options": [
[all …]
/frameworks/base/services/core/java/com/android/server/wallpaper/
DWallpaperCropper.java90 BitmapFactory.Options options = new BitmapFactory.Options(); in generateCropInternal() local
91 options.inJustDecodeBounds = true; in generateCropInternal()
92 BitmapFactory.decodeFile(wallpaper.getWallpaperFile().getAbsolutePath(), options); in generateCropInternal() local
93 if (options.outWidth <= 0 || options.outHeight <= 0) { in generateCropInternal()
103 cropHint.right = options.outWidth; in generateCropInternal()
104 cropHint.bottom = options.outHeight; in generateCropInternal()
107 int dx = cropHint.right > options.outWidth ? options.outWidth - cropHint.right : 0; in generateCropInternal()
108 int dy = cropHint.bottom > options.outHeight in generateCropInternal()
109 ? options.outHeight - cropHint.bottom : 0; in generateCropInternal()
121 needCrop = (options.outHeight > cropHint.height() in generateCropInternal()
[all …]
/frameworks/base/services/accessibility/
DTEST_MAPPING5 "options": [
16 "options": [
27 "options": [
38 "options": [
49 "options": [
60 "options": [
85 "options": [
93 "options": [
101 "options": [
/frameworks/base/telephony/
DTEST_MAPPING5 "options": [
13 "options": [
21 "options": [
29 "options": [
37 "options": [
45 "options": [
53 "options": [
/frameworks/base/services/core/java/com/android/server/pm/
DTEST_MAPPING22 "options": [
33 "options": [
42 "options": [
58 "options": [
66 "options": [
74 "options": [
83 "options": [
91 "options": [
101 "options": [
115 "options": [
/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/
DTEST_MAPPING5 "options": [
21 "options": [
37 "options": [
50 "options": [
61 "options": [
69 "options": [
78 "options": [
86 "options": [
100 "options": [
114 "options": [
[all …]
/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/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)

12345678910>>...37