Home
last modified time | relevance | path

Searched refs:attribute (Results 1 – 25 of 53) sorted by relevance

123

/build/make/tools/aconfig/aconfig_storage_write_api/src/
Dflag_info_update.rs60 let attribute = read_u8_from_bytes(buf, &mut pos)?; in get_flag_attribute_and_offset() localVariable
61 Ok((attribute, head)) in get_flag_attribute_and_offset()
71 let (attribute, head) = get_flag_attribute_and_offset(buf, flag_type, flag_index)?; in update_flag_has_server_override()
72 let has_override = (attribute & (FlagInfoBit::HasServerOverride as u8)) != 0; in update_flag_has_server_override()
74 buf[head] = (attribute ^ FlagInfoBit::HasServerOverride as u8).to_le_bytes()[0]; in update_flag_has_server_override()
86 let (attribute, head) = get_flag_attribute_and_offset(buf, flag_type, flag_index)?; in update_flag_has_local_override()
87 let has_override = (attribute & (FlagInfoBit::HasLocalOverride as u8)) != 0; in update_flag_has_local_override()
89 buf[head] = (attribute ^ FlagInfoBit::HasLocalOverride as u8).to_le_bytes()[0]; in update_flag_has_local_override()
107 let attribute = find_flag_attribute(&buf, FlagValueType::Boolean, i).unwrap(); in test_update_flag_has_server_override() localVariable
108 assert!((attribute & (FlagInfoBit::HasServerOverride as u8)) != 0); in test_update_flag_has_server_override()
[all …]
Dlib.rs397 let attribute = in test_set_flag_has_server_override() localVariable
399 assert!((attribute & (FlagInfoBit::HasServerOverride as u8)) != 0); in test_set_flag_has_server_override()
401 let attribute = in test_set_flag_has_server_override() localVariable
403 assert!((attribute & (FlagInfoBit::HasServerOverride as u8)) == 0); in test_set_flag_has_server_override()
420 let attribute = in test_set_flag_has_local_override() localVariable
422 assert!((attribute & (FlagInfoBit::HasLocalOverride as u8)) != 0); in test_set_flag_has_local_override()
424 let attribute = in test_set_flag_has_local_override() localVariable
426 assert!((attribute & (FlagInfoBit::HasLocalOverride as u8)) == 0); in test_set_flag_has_local_override()
/build/make/tools/aconfig/aconfig_storage_write_api/tests/
Dstorage_write_api_test.cpp111 auto attribute = api::get_flag_attribute( in TEST_F() local
113 ASSERT_TRUE(attribute.ok()); in TEST_F()
114 ASSERT_TRUE(*attribute & api::FlagInfoBit::HasServerOverride); in TEST_F()
119 attribute = api::get_flag_attribute( in TEST_F()
121 ASSERT_TRUE(attribute.ok()); in TEST_F()
122 ASSERT_FALSE(*attribute & api::FlagInfoBit::HasServerOverride); in TEST_F()
136 auto attribute = api::get_flag_attribute( in TEST_F() local
138 ASSERT_TRUE(attribute.ok()); in TEST_F()
139 ASSERT_TRUE(*attribute & api::FlagInfoBit::HasLocalOverride); in TEST_F()
144 attribute = api::get_flag_attribute( in TEST_F()
[all …]
Dstorage_write_api_test.rs71 let attribute = in test_set_flag_has_server_override() localVariable
73 assert!((attribute & (FlagInfoBit::HasServerOverride as u8)) != 0); in test_set_flag_has_server_override()
75 let attribute = in test_set_flag_has_server_override() localVariable
77 assert!((attribute & (FlagInfoBit::HasServerOverride as u8)) == 0); in test_set_flag_has_server_override()
93 let attribute = in test_set_flag_has_local_override() localVariable
95 assert!((attribute & (FlagInfoBit::HasLocalOverride as u8)) != 0); in test_set_flag_has_local_override()
97 let attribute = in test_set_flag_has_local_override() localVariable
99 assert!((attribute & (FlagInfoBit::HasLocalOverride as u8)) == 0); in test_set_flag_has_local_override()
/build/make/tools/aconfig/aconfig_storage_read_api/src/
Dflag_info_query.rs63 let attribute = in test_is_flag_sticky() localVariable
65 assert_eq!((attribute & FlagInfoBit::HasServerOverride as u8) != 0u8, false); in test_is_flag_sticky()
75 let attribute = in test_is_flag_readwrite() localVariable
78 (attribute & FlagInfoBit::IsReadWrite as u8) != 0u8, in test_is_flag_readwrite()
89 let attribute = in test_flag_has_override() localVariable
91 assert_eq!((attribute & FlagInfoBit::HasLocalOverride as u8) != 0u8, false); in test_flag_has_override()
Dlib.rs499 let attribute = in test_flag_info_query() localVariable
501 assert_eq!((attribute & FlagInfoBit::IsReadWrite as u8) != 0u8, expected_value); in test_flag_info_query()
502 assert!((attribute & FlagInfoBit::HasServerOverride as u8) == 0u8); in test_flag_info_query()
503 assert!((attribute & FlagInfoBit::HasLocalOverride as u8) == 0u8); in test_flag_info_query()
/build/make/tools/aconfig/aconfig_storage_read_api/tests/
Dstorage_read_api_test.cpp228 auto attribute = api::get_flag_attribute(*mapped_file, api::FlagValueType::Boolean, index); in TEST_F() local
229 ASSERT_TRUE(attribute.ok()); in TEST_F()
230 ASSERT_EQ(*attribute & static_cast<uint8_t>(api::FlagInfoBit::HasServerOverride), 0); in TEST_F()
231 ASSERT_EQ((*attribute & static_cast<uint8_t>(api::FlagInfoBit::IsReadWrite)) != 0, in TEST_F()
233 ASSERT_EQ(*attribute & static_cast<uint8_t>(api::FlagInfoBit::HasLocalOverride), 0); in TEST_F()
244 auto attribute = api::get_flag_attribute(*mapped_file, api::FlagValueType::Boolean, 8); in TEST_F() local
245 ASSERT_FALSE(attribute.ok()); in TEST_F()
246 ASSERT_EQ(attribute.error(), in TEST_F()
Dstorage_read_api_test.rs179 let attribute = in test_flag_info_query() localVariable
181 assert!((attribute & FlagInfoBit::HasServerOverride as u8) == 0u8); in test_flag_info_query()
182 assert_eq!((attribute & FlagInfoBit::IsReadWrite as u8) != 0u8, expected_value); in test_flag_info_query()
183 assert!((attribute & FlagInfoBit::HasLocalOverride as u8) == 0u8); in test_flag_info_query()
/build/bazel/rules/cc/
Dcc_info_subject.bzl47 """Returns a `CollectionSubject` for the `includes` attribute.
57 """Returns a `CollectionSubject` for the `system_includes` attribute.
67 """Returns a `CollectionSubject` for the `headers` attribute.
Dfdo_profile_transitions.bzl38 # This transition reads the fdo_profile attribute of a rule and set the value
/build/bazel_common_rules/exec/
Dexec.bzl34 See [documentation] for the `args` attribute.
45 Executables in `data` must not have the `args` and `env` attribute. Use
54 Use `$@` to refer to the args attribute of this target.
89 See [documentation] for the `args` attribute.
100 Executables in `data` must not have the `args` and `env` attribute. Use
109 Use `$@` to refer to the args attribute of this target.
/build/bazel_common_rules/exec/impl/
Dexec.bzl56 See [documentation] for the `args` attribute.
66 Executables in `data` must not have the `args` and `env` attribute. Use
76 Use `$@` to refer to the args attribute of this target.
88 See [documentation] for the `args` attribute.
98 Executables in `data` must not have the `args` and `env` attribute. Use
108 Use `$@` to refer to the args attribute of this target.
/build/make/core/clang/
Dconfig.mk15 returns-nonnull-attribute \
/build/bazel/toolchains/rust/bootstrap/
Ddefs.bzl53 # Re-exports libs passed in `srcs` attribute. Used together with
113 The `srcs` attribute should enumerate the libraries and tools. Tools are
114 distinguished from libraries via the `tools` attribute, which should
/build/bazel/bazel_sandwich/
Dbazel_sandwich_imported_file.bzl53 … " to import. In this attribute, $(DeviceName) will be replaced with the device name " +
64 "stamp file that depends on all contents of the foler. In this attribute, " +
/build/bazel/rules/android/android_library_aosp_internal/
Dattrs.bzl37 # Magic attribute name for DexArchiveAspect
114 "specified in the plugins attribute will be run whenever this target " +
/build/bazel/rules/android/android_binary_aosp_internal/
Drule.bzl23 """Generates a list of aspects to apply to the android_binary deps attribute.
59 …doc = "If the app is updatable, and this attribute is specified, and higher than the value specifi…
/build/soong/androidmk/androidmk/
Dandroid.go434 func localizePathList(attribute string) func(ctx variableAssignmentContext) error {
438 err = setVariable(ctx.file, ctx.append, ctx.prefix, attribute, paths, true)
444 func localizePath(attribute string) func(ctx variableAssignmentContext) error {
454 err = setVariable(ctx.file, ctx.append, ctx.prefix, attribute, &bpparser.List{}, true)
456 err = setVariable(ctx.file, ctx.append, ctx.prefix, attribute, pathList.Values[0], true)
458 err = fmt.Errorf("Expected single value for %s", attribute)
/build/bazel/rules/rust/
Drust_ffi_static.bzl32 # TODO: b/305997810 - Support crate_root attribute
/build/bazel/rules/java/
Dhost_for_device.bzl31 # This attribute must have a specific name to let the DexArchiveAspect propagate
Djava_aidl_library.bzl75 # This attribute's name lets the DexArchiveAspect propagate
/build/bazel/rules/common/
Dsdk_version.bzl53 A struct with a kind attribute set to one of the string in ALL_KINDS, and an api_level
54 attribute as returned by api.bzl's parse_api_level_from_version.
/build/bazel/product_config/config_settings/
DBUILD.bazel53 # attribute value for the same conditions product_variable.<var>, for most
112 # Within bp2build, :safestack-android should be used when an attribute value is
/build/make/tools/releasetools/
Dpylintrc181 # Regular expression matching correct attribute names
184 # Naming hint for attribute names
193 # Regular expression matching correct class attribute names
194 class-attribute-rgx=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$
196 # Naming hint for class attribute names
197 class-attribute-name-hint=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$
/build/bazel/rules/apex/
Dapex_info.bzl21 …bundle_key_info": "APEX bundle signing public/private key pair (the value of the key: attribute).",

123