Home
last modified time | relevance | path

Searched refs:empty (Results 1 – 25 of 860) sorted by relevance

12345678910>>...35

/system/core/adb/
Dadb_listeners_test.cpp36 (serial.empty() || info[0] == serial) && in listener_is_installed()
37 (source.empty() || info[1] == source) && in listener_is_installed()
38 (dest.empty() || info[2] == dest)) { in listener_is_installed()
72 ASSERT_TRUE(error.empty()); in TEST_F()
82 ASSERT_TRUE(error.empty()); in TEST_F()
86 ASSERT_TRUE(error.empty()); in TEST_F()
96 ASSERT_TRUE(error.empty()); in TEST_F()
100 ASSERT_FALSE(error.empty()); in TEST_F()
111 ASSERT_TRUE(error.empty()); in TEST_F()
121 ASSERT_TRUE(error.empty()); in TEST_F()
[all …]
/system/bt/gd/common/
Dblocking_queue_unittest.cc29 EXPECT_TRUE(queue_.empty()); in SetUp()
34 EXPECT_TRUE(queue_.empty()); in TearDown()
41 EXPECT_TRUE(queue_.empty()); in TEST_F()
47 EXPECT_FALSE(queue_.empty()); in TEST_F()
49 EXPECT_TRUE(queue_.empty()); in TEST_F()
55 EXPECT_FALSE(queue_.empty()); in TEST_F()
57 EXPECT_TRUE(queue_.empty()); in TEST_F()
65 EXPECT_FALSE(queue_.empty()); in TEST_F()
69 EXPECT_TRUE(queue_.empty()); in TEST_F()
76 EXPECT_FALSE(queue_.empty()); in TEST_F()
[all …]
Dblocking_queue.h40 while (queue_.empty()) { in take()
51 while (queue_.empty()) { in wait_to_take()
59 bool empty() const { in empty() function
61 return queue_.empty(); in empty()
66 std::queue<T> empty; in clear() local
67 std::swap(queue_, empty); in clear()
/system/keymaster/tests/
Dkeymaster_enforcement_test.cpp94 AuthorizationSet empty; member in keymaster::test::KeymasterBaseTest
104 kmen.AuthorizeOperation(KM_PURPOSE_SIGN, key_id, AuthProxy(single_auth_set, empty)); in TEST_F()
117 kmen.AuthorizeOperation(KM_PURPOSE_SIGN, key_id, AuthProxy(auth_set, empty))); in TEST_F()
121 kmen.AuthorizeOperation(KM_PURPOSE_VERIFY, key_id, AuthProxy(auth_set, empty))); in TEST_F()
132 kmen.AuthorizeOperation(KM_PURPOSE_SIGN, key_id, AuthProxy(auth_set, empty)); in TEST_F()
145 kmen.AuthorizeOperation(KM_PURPOSE_SIGN, key_id, AuthProxy(auth_set, empty))); in TEST_F()
149 kmen.AuthorizeOperation(KM_PURPOSE_VERIFY, key_id, AuthProxy(auth_set, empty))); in TEST_F()
161 kmen.AuthorizeOperation(KM_PURPOSE_VERIFY, key_id, AuthProxy(auth_set, empty)); in TEST_F()
174 kmen.AuthorizeOperation(KM_PURPOSE_SIGN, key_id, AuthProxy(auth_set, empty)); in TEST_F()
188 kmen.AuthorizeOperation(KM_PURPOSE_VERIFY, key_id, AuthProxy(auth_set, empty)); in TEST_F()
[all …]
/system/update_engine/payload_generator/
Dgenerate_delta_main.cc82 bool empty = channel.empty(); in ParseImageInfo() local
84 CHECK_EQ(channel.empty(), empty); in ParseImageInfo()
85 CHECK_EQ(board.empty(), empty); in ParseImageInfo()
86 CHECK_EQ(version.empty(), empty); in ParseImageInfo()
87 CHECK_EQ(key.empty(), empty); in ParseImageInfo()
89 if (empty) in ParseImageInfo()
97 image_info->set_build_channel(build_channel.empty() ? channel in ParseImageInfo()
100 image_info->set_build_version(build_version.empty() ? version in ParseImageInfo()
111 LOG_IF(FATAL, in_file.empty()) in CalculateHashForSigning()
113 LOG_IF(FATAL, out_hash_file.empty()) in CalculateHashForSigning()
[all …]
Dpayload_generation_config.cc42 return !run && path.empty() && filesystem_type.empty() && !optional; in IsEmpty()
47 hash_tree_extent.num_blocks() == 0 && hash_tree_algorithm.empty() && in IsEmpty()
48 hash_tree_salt.empty() && fec_data_extent.num_blocks() == 0 && in IsEmpty()
53 TEST_AND_RETURN_FALSE(!path.empty()); in ValidateExists()
63 if (path.empty()) in OpenFilesystem()
76 if (!mapfile_path.empty()) { in OpenFilesystem()
107 return partitions.empty(); in ValidateIsEmpty()
112 if (part.path.empty()) in LoadImageSize()
219 return image_info.board().empty() && image_info.key().empty() && in ImageInfoIsEmpty()
220 image_info.channel().empty() && image_info.version().empty() && in ImageInfoIsEmpty()
[all …]
/system/bt/gd/packet/parser/fields/
Dpacket_field.cc45 if ((start_offset.empty() && size.empty()) || (start_offset.empty() && end_offset.empty()) || in GenBounds()
46 (end_offset.empty() && size.empty())) { in GenBounds()
54 if (!start_offset.empty()) { in GenBounds()
60 if (!end_offset.empty()) { in GenBounds()
63 if (!size.empty()) { in GenBounds()
77 if (param_type.empty()) { in GenBuilderParameter()
/system/bt/gd/storage/
Dmutation_entry.cc37 ASSERT_LOG(!section.empty(), "section cannot be empty for EntryType::SET"); in MutationEntry()
38 ASSERT_LOG(!property.empty(), "property cannot be empty for EntryType::SET"); in MutationEntry()
39 ASSERT_LOG(!value.empty(), "value cannot be empty for EntryType::SET"); in MutationEntry()
42 ASSERT_LOG(!section.empty(), "section cannot be empty for EntryType::REMOVE_PROPERTY"); in MutationEntry()
43 ASSERT_LOG(!property.empty(), "property cannot be empty for EntryType::REMOVE_PROPERTY"); in MutationEntry()
46 ASSERT_LOG(!section.empty(), "section cannot be empty for EntryType::REMOVE_SECTION"); in MutationEntry()
/system/tools/hidl/utils/
DFQName.cpp68 return !mPackage.empty() && !version().empty() && !mName.empty(); in isFullyQualified()
73 || (!mName.empty() && !mValueName.empty()); in isValidValueName()
77 return !mName.empty() && mName[0] == 'I' && mName.find('.') == std::string::npos; in isInterfaceName()
123 if (s.empty()) return false; in setTo()
193 } else if (mPackage.empty() && mValueName.empty() && in setTo()
199 if (!mValueName.empty() && mName.empty()) goto fail; in setTo()
200 if (!mPackage.empty() && version().empty()) goto fail; in setTo()
217 if (!mName.empty() && !version().empty()) { in getRelativeFQName()
222 if (!mName.empty()) { in getRelativeFQName()
224 if (!mValueName.empty()) { in getRelativeFQName()
[all …]
/system/core/libprocessgroup/profiles/
Dtask_profiles_test.h41 EXPECT_FALSE(attribute.name().empty()) in TEST_P()
43 EXPECT_FALSE(attribute.controller().empty()) in TEST_P()
45 EXPECT_FALSE(attribute.file().empty()) in TEST_P()
53 EXPECT_FALSE(profile.name().empty()) in TEST_P()
57 EXPECT_FALSE(action.name().empty()) in TEST_P()
/system/netd/libnetdutils/
DMemBlockTest.cpp37 for (Slice slice = result.get(); !slice.empty(); slice = drop(slice, 1)) { in makeArbitraryMemBlock()
44 for (; !slice.empty(); slice = drop(slice, 1)) { in checkAllZeros()
53 for (; !slice.empty(); slice = drop(slice, 1)) { in checkArbitraryMemBlock()
72 MemBlock empty; in TEST() local
73 EXPECT_TRUE(empty.get().empty()); in TEST()
74 EXPECT_EQ(nullptr, empty.get().base()); in TEST()
79 EXPECT_TRUE(zero.get().empty()); in TEST()
106 EXPECT_TRUE(block.get().empty()); in TEST()
/system/incremental_delivery/incfs/
Dpath.cpp67 return !path.empty() && path[0] == '/'; in isAbsolute()
71 if (path.empty()) { in normalize()
95 if (part.empty() || part == "."sv) { in normalize()
99 if (result.empty()) { in normalize()
154 while (!path.empty() && path.front() == '/') { in preparePathComponent()
158 while (!path.empty() && path.back() == '/') { in preparePathComponent()
182 if (path.empty()) { in appendNextPath()
185 if (!res.empty() && !res.ends_with('/')) { in appendNextPath()
192 if (path.empty()) { in baseName()
199 while (!path.empty() && pos == path.size() - 1) { in baseName()
[all …]
/system/core/property_service/libpropertyinfoserializer/
Dproperty_info_file.cpp34 if (type_strings.empty()) { in IsTypeValid()
64 if (property.empty()) { in ParsePropertyInfoLine()
70 if (context.empty()) { in ParsePropertyInfoLine()
81 while (!type.empty()) { in ParsePropertyInfoLine()
95 if (!type_strings.empty() && !IsTypeValid(type_strings)) { in ParsePropertyInfoLine()
115 if (trimmed_line.empty() || StartsWith(trimmed_line, "#")) { in ParsePropertyInfoFile()
/system/core/adb/client/
Dmdns_utils.cpp25 CHECK(!name.empty()); in mdns_parse_instance_name()
36 if (name.empty()) { in mdns_parse_instance_name()
51 if (name.empty()) { in mdns_parse_instance_name()
59 if (has_local_suffix && transport.empty()) { in mdns_parse_instance_name()
64 if (!has_local_suffix && transport.empty()) { in mdns_parse_instance_name()
/system/linkerconfig/generator/tests/
Dlibrarylistloader_test.cc38 ASSERT_TRUE(library_list_invalid.empty()); in TEST()
51 ASSERT_TRUE(all_private_library_list.empty()); in TEST()
55 ASSERT_TRUE(invalid_library_list.empty()); in TEST()
77 ASSERT_TRUE(invalid_library_list.empty()); in TEST()
81 ASSERT_TRUE(private_library_invalid_list.empty()); in TEST()
/system/libvintf/
Dutils.h36 if (outObject->fileName().empty()) { in fetchAllInformation()
93 static bool mergeField(T* dst, T* src, const T& empty = T{}) {
95 *src = empty;
98 if (*src == empty) {
101 if (*dst == empty) {
103 *src = empty;
/system/core/healthd/
Danimation.h56 if (!animation_file.empty()) { in set_resource_root()
59 if (!fail_file.empty()) { in set_resource_root()
62 if (!text_clock.font_file.empty()) { in set_resource_root()
65 if (!text_percent.font_file.empty()) { in set_resource_root()
/system/bt/service/
Dsettings.cc41 if (path.empty() || path.EndsWithSeparator()) { in Init()
51 if (suffix.empty()) { in Init()
77 if (!android_ipc_socket_suffix_.empty() && !create_ipc_socket_path_.empty()) { in Init()
/system/core/libunwindstack/tests/
DLocalUpdatableMapsTest.cpp65 EXPECT_TRUE(map_info->name.empty()); in SetUp()
73 EXPECT_TRUE(map_info->name.empty()); in SetUp()
94 EXPECT_TRUE(map_info->name.empty()); in TEST_F()
102 EXPECT_TRUE(map_info->name.empty()); in TEST_F()
122 EXPECT_TRUE(map_info->name.empty()); in TEST_F()
130 EXPECT_TRUE(map_info->name.empty()); in TEST_F()
140 EXPECT_TRUE(map_info->name.empty()); in TEST_F()
168 EXPECT_TRUE(map_info->name.empty()); in TEST_F()
178 EXPECT_TRUE(map_info->name.empty()); in TEST_F()
201 EXPECT_TRUE(map_info->name.empty()); in TEST_F()
[all …]
/system/core/adb/client/pairing/
Dpairing_client.cpp90 CHECK(!pswd_.empty() && !cert_.empty() && !priv_key_.empty()); in PairingClientImpl()
104 CHECK(!ip_addr.empty()); in Start()
165 CHECK(!pswd.empty()); in Create()
166 CHECK(!cert.empty()); in Create()
167 CHECK(!priv_key.empty()); in Create()
/system/bt/audio_bluetooth_hw/
Dutils_unittest.cc38 EXPECT_TRUE(map_.empty()); in TEST_F()
45 EXPECT_TRUE(map_.empty()); in TEST_F()
104 EXPECT_TRUE(map_.empty()); in TEST_F()
111 EXPECT_TRUE(map_.empty()); in TEST_F()
118 EXPECT_TRUE(map_.empty()); in TEST_F()
125 EXPECT_TRUE(map_.empty()); in TEST_F()
/system/tools/hidl/
DMethod.cpp156 return args().empty() && (results().empty() || canElideCallback() != nullptr); in hasEmptyCppArgSignature()
178 if (!className.empty()) { in generateCppSignature()
210 const bool returnsValue = !results().empty(); in emitCppArgSignature()
213 if (!args().empty()) { in emitCppArgSignature()
231 const bool returnsValue = !results().empty(); in emitJavaSignature()
244 if (!args().empty()) { in emitJavaSignature()
263 if (!attachToLast.empty()) *wrappedOutput << attachToLast; in fillHidlArgResultTokens()
276 if (!mAnnotations->empty()) out << "\n"; in emitHidlDefinition()
283 if (!args().empty()) { in emitHidlDefinition()
284 fillHidlArgResultTokens(args(), &wrappedOutput, results().empty() ? ");\n" : ")"); in emitHidlDefinition()
[all …]
/system/update_engine/
Domaha_request_builder_xml.cc100 if (!ping_active.empty() || !ping_roll_call.empty()) { in GetPing()
148 if (!params_->target_version_prefix().empty()) { in GetAppBody()
175 if (!prev_version.empty()) { in GetAppBody()
208 if (!override_value.empty()) { in GetCohortArg()
216 if (!prefs_->GetString(prefs_key, &cohort_value) || cohort_value.empty()) in GetCohortArg()
295 if (!params_->os_build_fingerprint().empty()) { in GetApp()
302 if (!params_->os_build_type().empty()) { in GetApp()
308 if (!params_->ShouldPowerwash() && !app_data.product_components.empty()) { in GetApp()
334 if (!params_->device_requisition().empty()) { in GetApp()
413 if (!params_->system_app_id().empty()) { in GetApps()
/system/bt/service/ipc/
Dipc_handler_linux.cc41 if (!socket_path_.empty()) unlink(socket_path_.value().c_str()); in ~IPCHandlerLinux()
53 CHECK(android_suffix.empty() || path.empty()); in Run()
54 if (android_suffix.empty() && path.empty()) { in Run()
62 if (!android_suffix.empty()) { in Run()
/system/core/adb/crypto/
Drsa_2048_key.cpp33 if (hostname.empty() && gethostname(buf, sizeof(buf)) != -1) hostname = buf; in get_user_info()
35 if (hostname.empty()) hostname = "unknown"; in get_user_info()
40 if (username.empty() && getlogin()) username = getlogin(); in get_user_info()
42 if (username.empty()) hostname = "unknown"; in get_user_info()

12345678910>>...35