Home
last modified time | relevance | path

Searched refs:opt (Results 1 – 25 of 90) sorted by relevance

1234

/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/netlink/
DStructNdOptPref64Test.java60 private void assertPref64OptMatches(int lifetime, IpPrefix prefix, StructNdOptPref64 opt) { in assertPref64OptMatches() argument
61 assertEquals(StructNdOptPref64.TYPE, opt.type); in assertPref64OptMatches()
62 assertEquals(2, opt.length); in assertPref64OptMatches()
63 assertEquals(lifetime, opt.lifetime); in assertPref64OptMatches()
64 assertEquals(prefix, opt.prefix); in assertPref64OptMatches()
67 private void assertToByteBufferMatches(StructNdOptPref64 opt, String expected) { in assertToByteBufferMatches() argument
68 String actual = HexEncoding.encodeToString(opt.toByteBuffer().array()); in assertToByteBufferMatches()
91 StructNdOptPref64 opt = StructNdOptPref64.parse(ByteBuffer.wrap(rawBytes)); in testParseCannedOption() local
92 assertPref64OptMatches(136, prefix("2001:DB8:3:4:5:6::", 96), opt); in testParseCannedOption()
93 assertToByteBufferMatches(opt, hexBytes); in testParseCannedOption()
[all …]
DStructNdOptPioTest.java72 private static void assertPioOptMatches(final StructNdOptPio opt, int length, byte flags, in assertPioOptMatches() argument
74 assertEquals(StructNdOptPio.TYPE, opt.type); in assertPioOptMatches()
75 assertEquals(length, opt.length); in assertPioOptMatches()
76 assertEquals(flags, opt.flags); in assertPioOptMatches()
77 assertEquals(preferred, opt.preferred); in assertPioOptMatches()
78 assertEquals(valid, opt.valid); in assertPioOptMatches()
79 assertEquals(prefix, opt.prefix); in assertPioOptMatches()
82 private static void assertToByteBufferMatches(final StructNdOptPio opt, final String expected) { in assertToByteBufferMatches() argument
83 String actual = HexEncoding.encodeToString(opt.toByteBuffer().array()); in assertToByteBufferMatches()
90 final StructNdOptPio opt = StructNdOptPio.parse(ByteBuffer.wrap(rawBytes)); in doPioParsingTest() local
[all …]
DStructNdOptRdnssTest.java65 private void assertRdnssOptMatches(final StructNdOptRdnss opt, int length, long lifetime, in assertRdnssOptMatches() argument
67 assertEquals(StructNdOptRdnss.TYPE, opt.type); in assertRdnssOptMatches()
68 assertEquals(length, opt.length); in assertRdnssOptMatches()
69 assertEquals(lifetime, opt.header.lifetime); in assertRdnssOptMatches()
70 assertEquals(servers, opt.servers); in assertRdnssOptMatches()
89 private void assertToByteBufferMatches(StructNdOptRdnss opt, String expected) { in assertToByteBufferMatches() argument
90 String actual = HexEncoding.encodeToString(opt.toByteBuffer().array()); in assertToByteBufferMatches()
97 final StructNdOptRdnss opt = StructNdOptRdnss.parse(ByteBuffer.wrap(rawBytes)); in doRdnssOptionParsing() local
98 assertRdnssOptMatches(opt, length, lifetime, servers); in doRdnssOptionParsing()
99 assertToByteBufferMatches(opt, optionHexString); in doRdnssOptionParsing()
[all …]
DNduseroptMessageTest.java281 private void assertPref64Option(String prefix, NdOption opt) { in assertPref64Option() argument
282 assertNotNull(opt); in assertPref64Option()
283 assertTrue(opt instanceof StructNdOptPref64); in assertPref64Option()
284 StructNdOptPref64 pref64Opt = (StructNdOptPref64) opt; in assertPref64Option()
288 private void assertRdnssOption(NdOption opt, long lifetime, Inet6Address... servers) { in assertRdnssOption() argument
289 assertNotNull(opt); in assertRdnssOption()
290 assertTrue(opt instanceof StructNdOptRdnss); in assertRdnssOption()
291 StructNdOptRdnss rdnss = (StructNdOptRdnss) opt; in assertRdnssOption()
/packages/modules/Connectivity/staticlibs/native/tcutils/
Dtcutils.cpp103 } opt; member
125 } opt; member
128 } opt; member
191 .opt = { in IngressPoliceFilterBuilder()
193 .nla_len = sizeof(mRequest.opt), in IngressPoliceFilterBuilder()
198 .nla_len = sizeof(mRequest.opt.acts), in IngressPoliceFilterBuilder()
203 .nla_len = sizeof(mRequest.opt.acts.act1), in IngressPoliceFilterBuilder()
208 .nla_len = sizeof(mRequest.opt.acts.act1.kind), in IngressPoliceFilterBuilder()
213 .opt = { in IngressPoliceFilterBuilder()
215 .nla_len = sizeof(mRequest.opt.acts.act1.opt), in IngressPoliceFilterBuilder()
[all …]
/packages/services/Telephony/src/com/android/phone/
DTelephonyShellCommand.java975 String opt = getNextOption(); in handleEmergencyNumberTestModeCommand() local
976 if (opt == null) { in handleEmergencyNumberTestModeCommand()
980 switch (opt) { in handleEmergencyNumberTestModeCommand()
1267 String opt; in handleBarringSendCommand() local
1268 while ((opt = getNextOption()) != null) { in handleBarringSendCommand()
1269 switch (opt) { in handleBarringSendCommand()
1358 String opt; in handleImsSetServiceCommand() local
1359 while ((opt = getNextOption()) != null) { in handleImsSetServiceCommand()
1360 switch (opt) { in handleImsSetServiceCommand()
1441 String opt; in handleImsClearCarrierServiceCommand() local
[all …]
/packages/modules/Virtualization/zipfuse/src/
Dinode.rs357 let opt = FileOptions::default(); in complex_hierarchy() localVariable
358 zip.add_directory("a/b1", opt).unwrap(); in complex_hierarchy()
360 zip.start_file("a/b2/c1", opt).unwrap(); in complex_hierarchy()
362 zip.start_file("a/b2/c2/d1", opt).unwrap(); in complex_hierarchy()
363 zip.start_file("a/b2/c2/d2", opt).unwrap(); in complex_hierarchy()
364 zip.start_file("a/b2/c2/d3", opt).unwrap(); in complex_hierarchy()
366 zip.start_file("x/y1", opt).unwrap(); in complex_hierarchy()
367 zip.start_file("x/y2", opt).unwrap(); in complex_hierarchy()
368 zip.add_directory("x/y3", opt).unwrap(); in complex_hierarchy()
370 zip.start_file("foo", opt).unwrap(); in complex_hierarchy()
[all …]
Dmain.rs488 fn start_fuse(zip_path: &Path, mnt_path: &Path, opt: Options) { in start_fuse()
492 crate::run_fuse(&zip_path, &mnt_path, None, opt.noexec, opt.uid, opt.gid).unwrap(); in start_fuse()
497 fn start_fuse(zip_path: &Path, mnt_path: &Path, opt: Options) { in start_fuse()
501 let noexec = if opt.noexec { "--noexec" } else { "" }; in start_fuse()
507 opt.uid, in start_fuse()
508 opt.gid, in start_fuse()
541 opt: Options, in run_test_with_options()
561 start_fuse(&zip_path, &mnt_path, opt); in run_test_with_options()
658 let opt = Options { noexec: true, ..Default::default() }; in noexec() localVariable
659 run_test_with_options(opt, add_executable, |root| { in noexec()
[all …]
/packages/modules/adb/tools/
Dadb_usbreset.cpp76 int opt; in main() local
77 while ((opt = getopt_long(argc, argv, "adhs:", long_opts, nullptr)) != -1) { in main()
78 if (opt == 'h') { in main()
80 } else if (opt == 'a') { in main()
82 } else if (opt == 's') { in main()
84 } else if (opt == 'd') { in main()
87 errx(1, "unknown option: '%c'", opt); in main()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/reporting/
DEventReportPayloadTest.java202 assertNull(eventPayloadReportJson.opt("source_debug_key")); in testEventPayloadJsonSerializationWithNullDebugKeys()
203 assertNull(eventPayloadReportJson.opt("trigger_debug_key")); in testEventPayloadJsonSerializationWithNullDebugKeys()
204 assertNull(eventPayloadReportJson.opt("trigger_debug_keys")); in testEventPayloadJsonSerializationWithNullDebugKeys()
221 assertNull(eventPayloadReportJson.opt("source_debug_key")); in testEventPayloadJsonSerializationWithNullTriggerData()
222 assertNull(eventPayloadReportJson.opt("trigger_debug_key")); in testEventPayloadJsonSerializationWithNullTriggerData()
240 assertNull(eventPayloadReportJson.opt("source_debug_key")); in testEventPayloadJsonSerializationWithSingleTriggerDebugKey()
260 assertNull(eventPayloadReportJson.opt("source_debug_key")); in testEventPayloadJsonSerializationWithMultipleTriggerDebugKeys()
261 assertNull(eventPayloadReportJson.opt("trigger_debug_key")); in testEventPayloadJsonSerializationWithMultipleTriggerDebugKeys()
296 assertEquals(unsigned64BitIntString, eventPayloadReportJson.opt("source_debug_key")); in testEventPayloadJsonSerialization_debugKeysSourceEventIdAndTriggerDataUse64thBit()
315 assertNull(eventPayloadReportJson.opt("trigger_debug_key")); in testEventPayloadJsonSerializationWithSingleSourceDebugKey()
DAggregateReportBodyTest.java203 assertNull(aggregateJson.opt("source_debug_key")); in testJsonSerializationWithNullDebugKeys()
204 assertNull(aggregateJson.opt("trigger_debug_key")); in testJsonSerializationWithNullDebugKeys()
223 assertNull(aggregateJson.opt("trigger_debug_key")); in testJsonSerializationWithSingleSourceDebugKeys()
240 assertNull(aggregateJson.opt("source_debug_key")); in testJsonSerializationWithSingleTriggerDebugKeys()
286 aggregateServicePayloads.opt("debug_cleartext_payload")); in testAggregationServicePayloadsJsonSerialization()
303 assertNull(aggregateServicePayloads.opt("debug_cleartext_payload")); in testAggregationServicePayloadsJsonSerializationWithDebugKey()
319 assertNull(aggregateServicePayloads.opt("debug_cleartext_payload")); in testAggregationServicePayloadsJsonSerializationWithoutDebugKey()
340 assertNull(sharedInfoJson.opt("debug_mode")); in testAggregationServicePayloadsJsonSerializationWithoutDebugMode()
/packages/modules/Bluetooth/system/gd/common/
Dmetric_id_manager.cc169 auto opt = temporary_device_cache_.extract(mac_address); in SaveDevice() local
170 if (!opt) { in SaveDevice()
174 int id = opt->second; in SaveDevice()
189 auto opt = paired_device_cache_.extract(mac_address); in ForgetDevice() local
190 if (!opt) { in ForgetDevice()
194 ForgetDevicePostprocess(mac_address, opt->second); in ForgetDevice()
/packages/modules/AdServices/sdksandbox/service/java/com/android/server/sdksandbox/
DSdkSandboxShellCommand.java197 String opt; in handleSandboxArguments() local
198 while ((opt = getNextOption()) != null) { in handleSandboxArguments()
199 if (opt.equals("--user")) { in handleSandboxArguments()
202 throw new IllegalArgumentException("Unknown option: " + opt); in handleSandboxArguments()
325 String opt; in runSetState() local
326 if ((opt = getNextOption()) != null) { in runSetState()
327 switch (opt) { in runSetState()
335 throw new IllegalArgumentException("Unknown argument: " + opt); in runSetState()
/packages/modules/Bluetooth/system/gd/rust/linux/client/src/
Deditor.rs99 for opt in rule_token.replace("<", "").replace(">", "").split("|") { in get_candidates()
100 if opt.eq("address") { in get_candidates()
104 candidates.push(opt.to_string()); in get_candidates()
115 for opt in candidates { in get_candidates()
116 if opt.starts_with(cmd_token) { in get_candidates()
121 suggest_word: opt.clone(), in get_candidates()
/packages/apps/Calendar/
Dproject.properties17 android.library.reference.2=../../../frameworks/opt/calendar
18 android.library.reference.3=../../../frameworks/opt/colorpicker
19 android.library.reference.4=../../../frameworks/opt/datetimepicker
20 android.library.reference.5=../../../frameworks/opt/timezonepicker
/packages/modules/Permission/service/java/com/android/safetycenter/
DSafetyCenterShellCommandHandler.java114 String opt = getNextOption(); in onRefresh() local
115 while (opt != null) { in onRefresh()
116 switch (opt) { in onRefresh()
124 throw new IllegalArgumentException("Unexpected option: " + opt); in onRefresh()
126 opt = getNextOption(); in onRefresh()
/packages/providers/ContactsProvider/qc/
Dqc11 while getopts "theqvpu:" opt; do
12 case "$opt" in
14 pass="$pass -$opt"
Dqdb21 while getopts "lcheqtv" opt; do
22 case "$opt" in
/packages/modules/Virtualization/virtualizationmanager/fsfdt/src/
Dmain.rs36 let opt = Opt::parse(); in main() localVariable
39 let fdt = Fdt::from_fs(&opt.fs_path, &mut data).unwrap(); in main()
41 fs::write(&opt.fdt_file_path, fdt.as_slice()).unwrap(); in main()
/packages/services/Car/tests/carservice_test/src/com/android/car/hal/test/
DAidlMockedVehicleHal.java336 for (SubscribeOptions opt : options) { in subscribe()
337 VehicleHalPropertyHandler handler = mPropertyHandlerMap.get(opt.propId); in subscribe()
343 handler.onPropertySubscribe(opt.propId, opt.sampleRate); in subscribe()
344 handler.onPropertySubscribe(opt.propId, opt.areaIds, opt.sampleRate); in subscribe()
345 List<IVehicleCallback> subscribers = mSubscribers.get(opt.propId); in subscribe()
348 mSubscribers.put(opt.propId, subscribers); in subscribe()
DHidlMockedVehicleHal.java231 for (SubscribeOptions opt : options) { in subscribe()
232 VehicleHalPropertyHandler handler = mPropertyHandlerMap.get(opt.propId); in subscribe()
237 handler.onPropertySubscribe(opt.propId, opt.sampleRate); in subscribe()
238 List<IVehicleCallback> subscribers = mSubscribers.get(opt.propId); in subscribe()
241 mSubscribers.put(opt.propId, subscribers); in subscribe()
/packages/services/Car/car-builtin-lib/
DAndroid.bp87 "//frameworks/opt/car/services/builtInServices",
88 "//frameworks/opt/car/services/builtInServices/tests",
89 "//frameworks/opt/car/services/updatableServices",
90 "//frameworks/opt/car/services/updatableServices/tests",
/packages/modules/Connectivity/clatd/
Dmain.c61 int opt; in main() local
67 while ((opt = getopt(argc, argv, "i:p:4:6:t:r:w:h")) != -1) { in main()
68 switch (opt) { in main()
/packages/modules/NetworkStack/src/android/net/ip/
DIpClientLinkObserver.java481 private void processPref64Option(StructNdOptPref64 opt, final long now) { in processPref64Option() argument
482 final long expiry = now + TimeUnit.SECONDS.toMillis(opt.lifetime); in processPref64Option()
483 updatePref64(opt.prefix, now, expiry); in processPref64Option()
486 private void processRdnssOption(StructNdOptRdnss opt) { in processRdnssOption() argument
487 final String[] addresses = new String[opt.servers.length]; in processRdnssOption()
488 for (int i = 0; i < opt.servers.length; i++) { in processRdnssOption()
489 final Inet6Address addr = InetAddressUtils.withScopeId(opt.servers[i], mIfindex); in processRdnssOption()
492 updateInterfaceDnsServerInfo(opt.header.lifetime, addresses); in processRdnssOption()
/packages/services/Car/cpp/telemetry/cartelemetryd/sampleclient/
Dmain.cpp66 int opt = 0; in main() local
71 while ((opt = getopt_long_only(argc, argv, "", options, &option_index)) != -1) { in main()
73 switch (opt) { in main()

1234