Home
last modified time | relevance | path

Searched refs:arguments (Results 1 – 25 of 330) sorted by relevance

12345678910>>...14

/frameworks/libs/binary_translation/guest_abi/arm/
Dguest_arguments_test.cc34 } arguments = {{.argv = {0x55555555}}}; in TEST() local
35 arguments.buffer.argv[1] = 0x3fd55555; in TEST()
36 arguments.buffer.argv[2] = 0x9999999a; in TEST()
37 arguments.buffer.argv[3] = 0x3fc99999; in TEST()
38 arguments.buffer.argv[4] = 0x92492492; in TEST()
39 arguments.buffer.argv[5] = 0x3fc24924; in TEST()
40 arguments.buffer.argv[6] = 0x745d1746; in TEST()
41 arguments.buffer.argv[7] = 0x3fb745d1; in TEST()
43 GuestArgumentsAndResult<double(int, double, int, double)> f1_args(&arguments.buffer); in TEST()
50 GuestArgumentsAndResult<int(double, int, double, int)> f2_args(&arguments.buffer); in TEST()
[all …]
/frameworks/base/tools/protologtool/tests/com/android/protolog/tool/
DSourceTransformerTest.kt158 val visitor = invocation.arguments[1] as ProtoLogCallVisitor in <lambda>()
163 invocation.arguments[0] as CompilationUnit in <lambda>()
175 assertEquals(6, methodCall.arguments.size) in <lambda>()
176 assertEquals("TEST_GROUP", methodCall.arguments[0].toString()) in <lambda>()
177 assertEquals("-1473209266730422156L", methodCall.arguments[1].toString()) in <lambda>()
178 assertEquals(0b1001.toString(), methodCall.arguments[2].toString()) in <lambda>()
179 assertEquals("\"test %d %f\"", methodCall.arguments[3].toString()) in <lambda>()
180 assertEquals("protoLogParam0", methodCall.arguments[4].toString()) in <lambda>()
181 assertEquals("protoLogParam1", methodCall.arguments[5].toString()) in <lambda>()
195 val visitor = invocation.arguments[1] as ProtoLogCallVisitor in <lambda>()
[all …]
/frameworks/base/packages/SettingsLib/Spa/spa/src/com/android/settingslib/spa/framework/util/
DParameter.kt31 fun List<NamedNavArgument>.navLink(arguments: Bundle? = null): String { in List()
32 return normalizeArgList(arguments).joinToString("") { arg -> "/$arg" } in List()
36 arguments: Bundle? = null, in List()
42 if (arguments == null || !arguments.containsKey(navArg.name)) { in List()
48 argsArray.add(arguments.getString(navArg.name, "")) in List()
51 argsArray.add(arguments.getInt(navArg.name).toString()) in List()
59 arguments: Bundle? = null, in normalize()
73 val value = arguments?.getString(navArg.name) in normalize()
80 if (arguments != null && arguments.containsKey(navArg.name)) in normalize()
81 normArgs.putInt(navArg.name, arguments.getInt(navArg.name)) in normalize()
[all …]
DMessageFormats.kt29 fun Context.formatString(@StringRes resId: Int, vararg arguments: Pair<String, Any>): String =
30 resources.formatString(resId, *arguments)
34 fun Resources.formatString(@StringRes resId: Int, vararg arguments: Pair<String, Any>): String =
36 .format(mapOf(*arguments))
/frameworks/base/packages/SettingsLib/Spa/spa/src/com/android/settingslib/spa/framework/common/
DSettingsEntry.kt35 val arguments: Bundle? in <lambda>() constant
42 typealias UiLayerRenderer = @Composable (arguments: Bundle?) -> Unit
43 typealias StatusDataGetter = (arguments: Bundle?) -> EntryStatusData?
44 typealias SearchDataGetter = (arguments: Bundle?) -> EntrySearchData?
45 typealias SliceDataGetter = (sliceUri: Uri, arguments: Bundle?) -> EntrySliceData?
126 if (owner.arguments != null) putAll(owner.arguments) in fullArgument()
146 val arguments = remember { fullArgument(runtimeArguments) } in UiLayout() constant
147 CompositionLocalProvider(provideLocalEntryData(arguments)) { in UiLayout()
148 uiLayoutImpl(arguments) in UiLayout()
153 private fun provideLocalEntryData(arguments: Bundle): ProvidedValue<EntryData> { in provideLocalEntryData()
[all …]
DSettingsPageProvider.kt63 fun isEnabled(arguments: Bundle?): Boolean = true in <lambda>()
65 fun getTitle(arguments: Bundle?): String = displayName in <lambda>()
67 fun buildEntry(arguments: Bundle?): List<SettingsEntry> = emptyList() in <lambda>()
71 fun Page(arguments: Bundle?) { in <lambda>()
72 val title = remember { getTitle(arguments) } in <lambda>()
73 val entries = remember { buildEntry(arguments) } in <lambda>()
82 fun SettingsPageProvider.createSettingsPage(arguments: Bundle? = null): SettingsPage { in createSettingsPage()
84 id = genPageId(name, parameter, arguments), in createSettingsPage()
87 displayName = displayName + parameter.normalizeArgList(arguments, eraseRuntimeValues = true) in createSettingsPage()
90 arguments = arguments, in createSettingsPage()
DSettingsPage.kt46 val arguments: Bundle? = null, constant in com.android.settingslib.spa.framework.common.SettingsPage
55 arguments: Bundle? = null in create()
58 id = genPageId(name, parameter, arguments), in create()
63 arguments = arguments in create()
74 return sppName + parameter.navLink(arguments) in buildRoute()
86 SpaEnvironment.IS_DEBUG || getPageProvider(sppName)?.isEnabled(arguments) ?: false in isEnabled()
89 return getPageProvider(sppName)?.getTitle(arguments) ?: "" in isEnabled()
94 getPageProvider(sppName)?.Page(arguments) in UiLayout()
/frameworks/base/packages/SettingsLib/Spa/gallery/src/com/android/settingslib/spa/gallery/page/
DArgumentPageModel.kt60 fun buildNextArgument(arguments: Bundle? = null): Bundle { in buildNextArgument()
61 val intParam = parameter.getIntArg(INT_PARAM_NAME, arguments) in buildNextArgument()
66 fun isValidArgument(arguments: Bundle?): Boolean { in isValidArgument()
67 val stringParam = parameter.getStringArg(STRING_PARAM_NAME, arguments) in isValidArgument()
88 fun create(arguments: Bundle?): ArgumentPageModel { in create()
89 val pageModel: ArgumentPageModel = viewModel(key = arguments.toString()) in create()
90 pageModel.initOnce(arguments) in create()
95 private var arguments: Bundle? = null variable in com.android.settingslib.spa.gallery.page.ArgumentPageModel
99 override fun initialize(arguments: Bundle?) { in initialize()
101 TAG, "Initialize with args " + arguments.toString() in initialize()
[all …]
DArgumentPage.kt51 override fun buildEntry(arguments: Bundle?): List<SettingsEntry> { in buildEntry()
52 if (!ArgumentPageModel.isValidArgument(arguments)) return emptyList() in buildEntry()
54 val owner = createSettingsPage(arguments) in buildEntry()
85 val arguments = ArgumentPageModel.buildArgument(stringParam) in buildInjectEntry() constant
86 if (!ArgumentPageModel.isValidArgument(arguments)) return null in buildInjectEntry()
89 owner = createSettingsPage(arguments), in buildInjectEntry()
99 override fun getTitle(arguments: Bundle?): String { in getTitle()
104 override fun Page(arguments: Bundle?) { in Page()
105 val title = remember { getTitle(arguments) } in Page()
106 val entries = remember { buildEntry(arguments) } in Page()
[all …]
/frameworks/base/tests/MemoryUsage/src/com/android/tests/memoryusage/
DMemoryUsageInstrumentation.java26 private Bundle arguments; field in MemoryUsageInstrumentation
29 public void onCreate(Bundle arguments) { in onCreate() argument
30 this.arguments = arguments; in onCreate()
31 super.onCreate(arguments); in onCreate()
35 return arguments; in getBundle()
/frameworks/base/packages/SettingsLib/Spa/gallery/src/com/android/settingslib/spa/gallery/itemList/
DItemListPage.kt47 override fun getTitle(arguments: Bundle?): String { in getTitle()
48 val operation = parameter.getStringArg(OPERATOR_PARAM_NAME, arguments) ?: "NULL" in getTitle()
52 override fun buildEntry(arguments: Bundle?): List<SettingsEntry> { in buildEntry()
53 if (!ItemOperatePageProvider.isValidArgs(arguments)) return emptyList() in buildEntry()
54 val operation = parameter.getStringArg(OPERATOR_PARAM_NAME, arguments)!! in buildEntry()
55 val owner = createSettingsPage(arguments) in buildEntry()
62 val arguments = bundleOf(OPERATOR_PARAM_NAME to opParam) in buildInjectEntry() constant
63 if (!ItemOperatePageProvider.isValidArgs(arguments)) return null in buildInjectEntry()
66 owner = createSettingsPage(arguments), in buildInjectEntry()
83 override fun Page(arguments: Bundle?) { in Page()
[all …]
DItemOperatePage.kt53 override fun getTitle(arguments: Bundle?): String { in <lambda>()
55 val operation = parameter.getStringArg(OPERATOR_PARAM_NAME, arguments) ?: "opInValid" in <lambda>()
57 val itemName = parameter.getStringArg(ITEM_NAME_PARAM_NAME, arguments) ?: "[unset]" in <lambda>()
61 override fun buildEntry(arguments: Bundle?): List<SettingsEntry> { in <lambda>()
62 if (!isValidArgs(arguments)) return emptyList() in <lambda>()
64 val owner = createSettingsPage(arguments) in <lambda>()
80 val opName = parameter.getStringArg(OPERATOR_PARAM_NAME, arguments)!! in <lambda>()
99 val arguments = bundleOf(OPERATOR_PARAM_NAME to opParam) in <lambda>() constant
100 if (!isValidArgs(arguments)) return null in <lambda>()
103 owner = createSettingsPage(arguments), in <lambda>()
[all …]
/frameworks/base/core/java/android/content/pm/
DDataLoaderParams.java42 @NonNull String arguments) { in forStreaming() argument
43 return new DataLoaderParams(DataLoaderType.STREAMING, componentName, arguments); in forStreaming()
56 @NonNull ComponentName componentName, @NonNull String arguments) { in forIncremental() argument
57 return new DataLoaderParams(DataLoaderType.INCREMENTAL, componentName, arguments); in forIncremental()
62 @NonNull String arguments) { in DataLoaderParams() argument
67 data.arguments = arguments; in DataLoaderParams()
99 return mData.arguments; in getArguments()
/frameworks/base/packages/SettingsLib/tests/robotests/fragment/src/main/java/org/robolectric/shadows/androidx/fragment/
DFragmentController.java47 F fragment, Class<? extends FragmentActivity> activityClass, Bundle arguments) { in FragmentController() argument
48 this(fragment, activityClass, null /*intent*/, arguments); in FragmentController()
55 Bundle arguments) { in FragmentController() argument
58 if (arguments != null) { in FragmentController()
59 this.mFragment.setArguments(arguments); in FragmentController()
93 public static <F extends Fragment> FragmentController<F> of(F fragment, Bundle arguments) { in of() argument
94 return new FragmentController<>(fragment, FragmentControllerActivity.class, arguments); in of()
118 F fragment, Intent intent, Bundle arguments) { in of() argument
120 arguments); in of()
145 F fragment, Class<? extends FragmentActivity> activityClass, Bundle arguments) { in of() argument
[all …]
/frameworks/libs/binary_translation/guest_abi/riscv64/
Dguest_arguments_test.cc35 } arguments = {{.argv = {0x8000000000000000, in TEST() local
44 arguments.buffer.stack_argv[1] = 0x3fbc71c71c71c71c; in TEST()
45 arguments.buffer.stack_argv[2] = 0x3fb999999999999a; in TEST()
46 arguments.buffer.stack_argv[3] = 0x3fb745d1745d1746; in TEST()
51 f1_args(&arguments.buffer); in TEST()
69 f2_args(&arguments.buffer); in TEST()
91 } arguments = {{.argv = {1, 2, 3, 4, 5, 6, 7, 8}, in TEST() local
101 arguments.buffer.stack_argv[1] = 0x3fb999999999999a; in TEST()
102 arguments.buffer.stack_argv[2] = 0x3fb745d1745d1746; in TEST()
103 arguments.buffer.stack_argv[3] = 0x3fb5555555555555; in TEST()
[all …]
/frameworks/compile/slang/tests/F_kernel_badattr/
Dstderr.txt.expect1 kernel_badattr.rscript:4:20: error: 'kernel' attribute takes no arguments
2 kernel_badattr.rscript:8:20: error: 'kernel' attribute takes no arguments
3 kernel_badattr.rscript:12:20: error: 'kernel' attribute takes no arguments
4 kernel_badattr.rscript:16:20: error: 'kernel' attribute takes no arguments
/frameworks/native/cmds/cmd/
Dmain.cpp24 std::vector<std::string_view> arguments; in main() local
25 arguments.reserve(argc - 1); in main()
28 arguments.emplace_back(argv[i]); in main()
31 return cmdMain(arguments, android::aout, android::aerr, STDIN_FILENO, STDOUT_FILENO, in main()
/frameworks/libs/binary_translation/guest_abi/arm64/
Dguest_arguments_test.cc34 } arguments = {{.argv = {1, 2, 3, 4, 5, 6, 7, 8}, in TEST() local
44 arguments.buffer.stack_argv[1] = 0x3fb999999999999a; in TEST()
45 arguments.buffer.stack_argv[2] = 0x3fb745d1745d1746; in TEST()
46 arguments.buffer.stack_argv[3] = 0x3fb5555555555555; in TEST()
68 f1_args(&arguments.buffer); in TEST()
111 f2_args(&arguments.buffer); in TEST()
/frameworks/base/packages/SettingsLib/Spa/tests/src/com/android/settingslib/spa/tests/testutils/
DSettingsPageHelper.kt28 arguments: Bundle? = null in createSettingsPage()
31 id = genPageId(sppName, parameter, arguments), in createSettingsPage()
35 arguments = arguments in createSettingsPage()
DSpaEnvironmentForTest.kt85 override fun getTitle(arguments: Bundle?): String { in getTitle()
89 override fun buildEntry(arguments: Bundle?): List<SettingsEntry> { in buildEntry()
101 override fun isEnabled(arguments: Bundle?): Boolean = false in isEnabled()
103 override fun getTitle(arguments: Bundle?): String { in isEnabled()
107 override fun buildEntry(arguments: Bundle?): List<SettingsEntry> { in buildEntry()
118 override fun getTitle(arguments: Bundle?): String { in getTitle()
132 override fun buildEntry(arguments: Bundle?): List<SettingsEntry> { in buildEntry()
149 override fun buildEntry(arguments: Bundle?): List<SettingsEntry> { in buildEntry()
173 override fun Page(arguments: Bundle?) { in Page()
184 override fun buildEntry(arguments: Bundle?): List<SettingsEntry> { in buildEntry()
[all …]
/frameworks/native/cmds/cmd/fuzzer/
Dcmd_fuzzer.cpp50 vector<string> arguments; in process() local
53 arguments = {"-w", "media.aaudio"}; in process()
55 arguments = {"-l"}; in process()
67 arguments.emplace_back(argument); in process()
71 for (auto& argument : arguments) { in process()
/frameworks/libs/binary_translation/intrinsics/common_to_x86/include/berberis/intrinsics/
Dmacro_assembler-inl.h160 insn_name, asm_name, insn_siffix, type_check, parameters, arguments) \ in DEFINE_EXPAND_INSTRUCTION() argument
164 Assembler::asm_name##b##insn_siffix arguments; \ in DEFINE_EXPAND_INSTRUCTION()
166 Assembler::asm_name##w##insn_siffix arguments; \ in DEFINE_EXPAND_INSTRUCTION()
168 Assembler::asm_name##l##insn_siffix arguments; \ in DEFINE_EXPAND_INSTRUCTION()
170 Assembler::asm_name##q##insn_siffix arguments; \ in DEFINE_EXPAND_INSTRUCTION()
257 #define DEFINE_INT_INSTRUCTION(insn_name, parameters, arguments) \ argument
261 Assembler::insn_name##w arguments; \
263 Assembler::insn_name##l arguments; \
265 Assembler::insn_name##q arguments; \
308 #define DEFINE_INT_INSTRUCTION(insn_name, parameters, arguments) \ argument
[all …]
/frameworks/libs/binary_translation/intrinsics/include/berberis/intrinsics/
Dintrinsics_args.h225 constexpr bool IsCompatible(const ArgInfo* arguments) { in IsCompatible() argument
228 if (arguments[argument].arg_type != ArgInfo::IMM_ARG) { in IsCompatible()
229 if ((arguments[argument].arg_type == ArgInfo::IN_ARG) && in IsCompatible()
233 } else if ((arguments[argument].arg_type == ArgInfo::IN_TMP_ARG) && in IsCompatible()
238 } else if ((arguments[argument].arg_type == ArgInfo::OUT_ARG) && in IsCompatible()
242 } else if ((arguments[argument].arg_type == ArgInfo::OUT_TMP_ARG) && in IsCompatible()
246 } else if ((arguments[argument].arg_type == ArgInfo::IN_OUT_ARG) && in IsCompatible()
250 } else if ((arguments[argument].arg_type == ArgInfo::IN_OUT_TMP_ARG) && in IsCompatible()
255 if (HaveInput(arguments[argument]) && in IsCompatible()
259 } else if (!HaveInput(arguments[argument]) && in IsCompatible()
[all …]
/frameworks/base/packages/CredentialManager/horologist/src/com/google/android/horologist/compose/navscaffold/
DWearNavScaffold.kt168 arguments: List<NamedNavArgument> = emptyList(),
173 composable(route, arguments, deepLinks) { in <lambda>()
192 arguments: List<NamedNavArgument> = emptyList(),
198 this@scrollable.composable(route, arguments, deepLinks) { in <lambda>()
218 arguments: List<NamedNavArgument> = emptyList(),
223 composable(route, arguments, deepLinks) { in <lambda>()
241 arguments: List<NamedNavArgument> = emptyList(),
246 composable(route, arguments, deepLinks) { in <lambda>()
268 arguments: List<NamedNavArgument> = emptyList(),
272 composable(route, arguments, deepLinks) { in <lambda>()
[all …]
/frameworks/libs/binary_translation/assembler/include/berberis/assembler/
Dcommon_x86.h383 static constexpr auto ArgumentByType(ArgumentType argument, ArgumentTypes... arguments) { in ArgumentByType() argument
388 return ArgumentByType<index - 1, Predicate>(arguments...); in ArgumentByType()
391 return ArgumentByType<index, Predicate>(arguments...); in ArgumentByType()
509 void EmitInstruction(ArgumentsTypes... arguments) { in EmitInstruction() argument
557 reg_is_opcode_extension>(arguments...); in EmitInstruction()
563 static_cast<Assembler*>(this)->EmitRex(arguments...); in EmitInstruction()
586 ArgumentByType<0, IsRegister>(arguments...)); in EmitInstruction()
587 EmitImmediates(arguments...); in EmitInstruction()
591 auto condition_code = static_cast<uint8_t>(ArgumentByType<0, IsCondition>(arguments...)); in EmitInstruction()
602 ArgumentByType<0, IsMemoryOperand>(arguments...).operand); in EmitInstruction()
[all …]

12345678910>>...14