Home
last modified time | relevance | path

Searched refs:flags (Results 1 – 25 of 80) sorted by relevance

1234

/tools/metalava/metalava-model-psi/src/main/java/com/android/tools/metalava/model/psi/
DPsiModifierItem.kt189 var flags = 0 in <lambda>() variable
191 flags = flags or STATIC in <lambda>()
194 flags = flags or ABSTRACT in <lambda>()
197 flags = flags or FINAL in <lambda>()
200 flags = flags or NATIVE in <lambda>()
203 flags = flags or SYNCHRONIZED in <lambda>()
206 flags = flags or STRICT_FP in <lambda>()
209 flags = flags or TRANSIENT in <lambda>()
212 flags = flags or VOLATILE in <lambda>()
215 flags = flags or DEFAULT in <lambda>()
[all …]
/tools/metalava/metalava-model/src/main/java/com/android/tools/metalava/model/
DDefaultModifierList.kt21 private var flags: Int = PACKAGE_PRIVATE, variable in com.android.tools.metalava.model.DefaultModifierList
28 flags = in set()
30 flags or mask in set()
32 flags and mask.inv() in set()
37 return flags and mask != 0 in isSet()
49 val visibilityFlags = flags and VISIBILITY_MASK in getVisibilityLevel()
167 flags = (flags and VISIBILITY_MASK.inv()) or level.visibilityFlagValue in setVisibilityLevel()
278 return flags and DEPRECATED.inv() == 0 // deprecated isn't a real modifier in isEmpty()
282 return flags and VISIBILITY_MASK == PACKAGE_PRIVATE in isPackagePrivate()
297 return DefaultModifierList(codebase, flags, newAnnotations) in duplicate()
[all …]
/tools/asuite/atest/bazel/runner/src/main/protobuf/
Dinvocation_policy.proto25 // After expanding policies on expansion flags or flags with implicit
39 // The "no" prefix will not be parsed, so for boolean flags, use
50 // Bazel allows multiple flags to be defined by the same name, and the
64 // value (unless behavior = APPEND for repeatable flags).
66 // This field is repeated for repeatable flags. It is an error to set
74 // Note that some flags are tricky. For example, some flags look like boolean
75 // flags, but are actually Void expansion flags that expand into other flags.
79 // name is explicitly "novoid_flag" and which expands into other flags that
80 // are the opposite of "--void_flag". For expansion flags, it's best to
81 // explicitly override the flags they expand into.
[all …]
Dcommand_line.proto34 // flag, and a test target. There could be many more flags and targets, or
70 // example, include expansion flags as they are. However, if this option
73 // appear, and the flags it expands to would.
80 // for boolean flags, `--nobaz` is accepted on top of `--baz=false` and other
89 // The value of the flag, or unset for flags that do not take values.
90 // Especially for boolean flags, this should be in canonical form, the
/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/zip/
DEncodeUtilsTest.java41 GPFlags flags = GPFlags.make(false); in asciiEncodeAndDecode() local
43 byte[] encoded = EncodeUtils.encode(text, flags); in asciiEncodeAndDecode()
45 assertEquals(text, EncodeUtils.decode(encoded, flags)); in asciiEncodeAndDecode()
51 GPFlags flags = GPFlags.make(true); in utf8EncodeAndDecode() local
53 byte[] encoded = EncodeUtils.encode(kazakhCapital, flags); in utf8EncodeAndDecode()
57 assertEquals(kazakhCapital, EncodeUtils.decode(encoded, flags)); in utf8EncodeAndDecode()
67 GPFlags flags = GPFlags.make(false); in asciiDecodeAsUtf8() local
69 String text = EncodeUtils.decode(greatWallChinese, flags); in asciiDecodeAsUtf8()
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/zip/
DEncodeUtils.java50 public static String decode(@Nonnull ByteBuffer bytes, int length, @Nonnull GPFlags flags) in decode() argument
59 return decode(stringBytes, flags); in decode()
70 public static String decode(@Nonnull byte[] data, @Nonnull GPFlags flags) { in decode() argument
71 return decode(data, flagsCharset(flags)); in decode()
107 public static byte[] encode(@Nonnull String name, @Nonnull GPFlags flags) { in encode() argument
108 Charset charset = flagsCharset(flags); in encode()
122 private static Charset flagsCharset(@Nonnull GPFlags flags) { in flagsCharset() argument
123 if (flags.isUtf8FileName()) { in flagsCharset()
DGPFlags.java133 long flags = 0; in make() local
136 flags |= BIT_EFS; in make()
139 return new GPFlags(flags); in make()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v3/
DV3SigningCertificateLineage.java111 int flags = nodeBytes.getInt(); in readSigningCertificateLineage() local
154 SignatureAlgorithm.findById(sigAlgorithmId), signature, flags)); in readSigningCertificateLineage()
221 result.putInt(node.flags); in encodeSigningCertificateNode()
227 public static byte[] encodeSignedData(X509Certificate certificate, int flags) { in encodeSignedData() argument
234 result.putInt(flags); in encodeSignedData()
254 int flags) { in SigningCertificateNode() argument
259 this.flags = flags; in SigningCertificateNode()
272 if (flags != that.flags) return false; in equals()
280 int result = Objects.hash(signingCert, parentSigAlgorithm, sigAlgorithm, flags); in hashCode()
312 public int flags; field in V3SigningCertificateLineage.SigningCertificateNode
/tools/netsim/rust/daemon/src/wifi/
Dhwsim_attr_set.rs60 flags: Option<u32>, field
75 pub flags: Option<u32>, field
135 pub fn flags(&mut self, flags: u32) -> &mut Self { in flags() method
136 self.extend_attributes(mac80211_hwsim::HwsimAttrFlags { flags, nla_m: 0, nla_o: 0 }); in flags()
137 self.flags = Some(flags); in flags()
190 flags: self.flags, in build()
208 self.flags.map(|v| write!(f, "flags: {}, ", v)); in fmt()
265 HwsimAttrFlags(child) => builder.flags(child.flags),
308 assert_eq!(attrs.flags, Some(2)); in test_attr_set_parse()
Dmedium.rs174 || frame.flags.is_none() in process_internal()
182 let flags = frame.flags.context("flags")?; in process_internal() localVariable
186 client_id, hwsim_addr, flags, cookie, frame.ieee80211 in process_internal()
432 attrs.flags.map(|v| builder.flags(v)); in create_hwsim_attr()
473 client_id, dest_client_id, frame.flags, frame.ieee80211, in log_hwsim_msg()
490 .flags(attrs.flags.context("flags")? | HWSIM_TX_STAT_ACK) in build_tx_info()
639 assert_eq!(attrs.flags, attrs_expected.flags); in build_tx_info_and_compare()
Dframe.rs34 pub flags: Option<u32>, field
61 flags: attrs.flags, in parse()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/stamp/
DSourceStampCertificateLineage.java98 int flags = nodeBytes.getInt(); in readSigningCertificateLineage() local
142 SignatureAlgorithm.findById(sigAlgorithmId), signature, flags)); in readSigningCertificateLineage()
169 int flags) { in SigningCertificateNode() argument
174 this.flags = flags; in SigningCertificateNode()
187 if (flags != that.flags) return false; in equals()
202 result = prime * result + flags; in hashCode()
233 public int flags; field in SourceStampCertificateLineage.SigningCertificateNode
/tools/test/connectivity/acts/framework/acts/controllers/utils_lib/ssh/
Dformatter.py83 def format_flag_list(self, flags): argument
95 for flag_name in flags:
96 flag = flags[flag_name]
126 flags = settings.construct_ssh_flags()
128 flags[extra_flag_name] = extra_flags[extra_flag_name]
129 flags_list = list(self.format_flag_list(flags))
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/
DGTestBase.java598 String flags = String.format("%s %s", GTEST_FLAG_PRINT_TIME, getGTestFilters(path)); in getAllGTestFlags() local
601 flags = String.format("%s %s", flags, GTEST_FLAG_RUN_DISABLED_TESTS); in getAllGTestFlags()
605 flags = String.format("%s %s", flags, GTEST_FLAG_LIST_TESTS); in getAllGTestFlags()
609 flags = String.format("%s %s", flags, gTestFlag); in getAllGTestFlags()
611 return flags; in getAllGTestFlags()
664 protected String getGTestCmdLineWrapper(String fullPath, String flags) { in getGTestCmdLineWrapper() argument
670 return String.format("cd %s; ./%s %s", dir, file, flags); in getGTestCmdLineWrapper()
673 return String.format("%s %s", fullPath, flags); in getGTestCmdLineWrapper()
683 protected String getGTestCmdLine(String fullPath, String flags) { in getGTestCmdLine() argument
702 gTestCmdLine.append(getGTestCmdLineWrapper(fullPath, flags)); in getGTestCmdLine()
DGTest.java206 String flags = getAllGTestFlags(filePath); in doRunAllTestsInSubdirectory() local
207 CLog.i("Running gtest %s %s on %s", filePath, flags, testDevice.getSerialNumber()); in doRunAllTestsInSubdirectory()
209 runTestXml(testDevice, filePath, flags, listener); in doRunAllTestsInSubdirectory()
211 runTest(testDevice, resultParser, filePath, flags); in doRunAllTestsInSubdirectory()
289 protected String getGTestCmdLine(String fullPath, String flags) { in getGTestCmdLine() argument
304 sb.append(super.getGTestCmdLine(fullPath, flags)); in getGTestCmdLine()
338 final String fullPath, final String flags) throws DeviceNotAvailableException { in runTest() argument
350 String cmd = getGTestCmdLine(fullPath, flags); in runTest()
398 final String flags, in runTestXml() argument
408 String fullFlagCmd = String.format("%s %s", flags, extraFlag); in runTestXml()
/tools/metalava/metalava-model-text/src/test/java/com/android/tools/metalava/model/text/
DTextModifierListTest.kt44 DefaultModifierList(codebase, flags = DefaultModifierList.PUBLIC) in test equivalentTo()()
45 .equivalentTo(DefaultModifierList(codebase, flags = DefaultModifierList.PUBLIC)) in test equivalentTo()()
48 DefaultModifierList(codebase, flags = DefaultModifierList.PRIVATE) in test equivalentTo()()
49 .equivalentTo(DefaultModifierList(codebase, flags = DefaultModifierList.PUBLIC)) in test equivalentTo()()
/tools/tradefederation/core/src/com/android/tradefed/device/
DWifiCommandUtil.java104 public static String resolveNetworkType(String flags) { in resolveNetworkType() argument
105 if (flags.contains("WEP")) { in resolveNetworkType()
107 } else if (flags.contains("OWE")) { in resolveNetworkType()
109 } else if (flags.contains("WPA2")) { in resolveNetworkType()
111 } else if (flags.contains("SAE")) { in resolveNetworkType()
/tools/treble/hacksaw/mount/
Dsystem.go33 func (f *systemMounter) Mount(source string, target string, fstype string, flags uintptr, data stri…
34 return syscall.Mount(source, target, fstype, flags, data)
37 func (f *systemMounter) Unmount(target string, flags int) error {
38 return syscall.Unmount(target, flags)
Dfake.go38 func (f *fakeMounter) Mount(source string, target string, fstype string, flags uintptr, data string…
44 Flags: flags,
50 func (f *fakeMounter) Unmount(target string, flags int) error {
/tools/test/openhst/
Dstress_test.py48 from absl import flags
64 FLAGS = flags.FLAGS
65 flags.DEFINE_string("notification_address", "",
69 flags.DEFINE_bool("suppress_notification_emails", False,
71 flags.DEFINE_string("test_name", None,
77 flags.DEFINE_string("output_root", "./",
80 flags.DEFINE_integer("num_iterations", None,
84 flags.DEFINE_list("devices", [],
87 flags.DEFINE_integer("print_summary_every_n", 10,
90 flags.DEFINE_string("email_sender_address", "",
[all …]
/tools/tradefederation/core/device_build_interfaces/com/android/tradefed/device/
DPackageInfo.java121 int flags = Integer.decode(value); in parseFlagsAsInt() local
122 mIsSystemApp = (flags & FLAG_SYSTEM) != 0; in parseFlagsAsInt()
125 mIsUpdatedSystemApp = (flags & FLAG_UPDATED_SYSTEM_APP) != 0; in parseFlagsAsInt()
126 mIsPersistentApp = (flags & FLAG_PERSISTENT) != 0; in parseFlagsAsInt()
/tools/apksig/src/main/java/com/android/apksig/
DSigningCertificateLineage.java627 int flags = lineageNode.flags; in getSignerCapabilities() local
628 return new SignerCapabilities.Builder(flags).build(); in getSignerCapabilities()
663 int flags = lineageNode.flags; in updateSignerCapabilities() local
665 flags).setCallerConfiguredCapabilities(capabilities).build(); in updateSignerCapabilities()
666 lineageNode.flags = newCapabilities.getFlags(); in updateSignerCapabilities()
945 private SignerCapabilities(int flags) { in SignerCapabilities() argument
946 this(flags, 0); in SignerCapabilities()
949 private SignerCapabilities(int flags, int callerConfiguredFlags) { in SignerCapabilities() argument
950 mFlags = flags; in SignerCapabilities()
1029 public Builder(int flags) { in Builder() argument
[all …]
/tools/tradefederation/core/test_framework/com/android/tradefed/targetprep/
DFeatureFlagTargetPreparer.java195 Map<String, Map<String, String>> flags = new HashMap<>(); in parseFlags() local
199 flags.computeIfAbsent(deviceFeatureFlag.getNamespace(), ns -> new HashMap<>()) in parseFlags()
213 return flags; in parseFlags()
236 private void updateFlags(ITestDevice device, Map<String, Map<String, String>> flags) in updateFlags() argument
238 for (String namespace : flags.keySet()) { in updateFlags()
239 for (Map.Entry<String, String> entry : flags.get(namespace).entrySet()) { in updateFlags()
/tools/tradefederation/core/javatests/com/android/tradefed/suite/checker/
DUserCheckerTest.java314 Integer[] flags = new Integer[userIds.length]; in mockDeviceUserState() local
315 Arrays.fill(flags, 0); in mockDeviceUserState()
321 return mockDeviceUserState(currentUser, userIds, flags, isRunning); in mockDeviceUserState()
326 int currentUser, Integer[] userIds, Integer[] flags, Boolean[] isRunning) in mockDeviceUserState() argument
331 mockListUsersInfo(device, userIds, flags, isRunning); in mockDeviceUserState()
337 ITestDevice device, Integer[] userIds, Integer[] flags, Boolean[] isRunning) in mockListUsersInfo() argument
347 /* flag= */ flags[i], in mockListUsersInfo()
/tools/tradefederation/core/test_framework/com/android/tradefed/util/
DDeviceActionUtil.java104 final String[] flags = in create() local
113 return new DeviceActionUtil(deviceActionMainJar, flags, new RunUtil(), genDir); in create()
190 ArrayList<String> flags = new ArrayList<>(Arrays.asList("--device1", "serial=" + deviceId)); in createActionFlags() local
192 flags.addAll(Arrays.asList("--action", arg)); in createActionFlags()
194 return flags; in createActionFlags()

1234