Home
last modified time | relevance | path

Searched refs:nullptr (Results 1 – 25 of 1689) sorted by relevance

12345678910>>...68

/system/core/libunwindstack/
DDwarfCfa.h104 const dwarf_loc_regs_t* cie_loc_regs_ = nullptr;
181 nullptr,
183 nullptr,
185 nullptr,
187 nullptr,
189 nullptr,
191 nullptr,
193 nullptr,
195 nullptr,
197 nullptr,
[all …]
/system/media/audio_utils/
DMetadata.cpp34 if (metadata == nullptr || key == nullptr) { in audio_metadata_put_int32()
42 if (metadata == nullptr || key == nullptr) { in audio_metadata_put_int64()
50 if (metadata == nullptr || key == nullptr) { in audio_metadata_put_float()
58 if (metadata == nullptr || key == nullptr) { in audio_metadata_put_double()
66 if (metadata == nullptr || key == nullptr || value == nullptr) { in audio_metadata_put_string()
75 if (metadata == nullptr || key == nullptr || value == nullptr) { in audio_metadata_put_data()
89 if (metadata == nullptr || key == nullptr || value == nullptr) { in audio_metadata_get_int32()
93 if (val == nullptr) { in audio_metadata_get_int32()
101 if (metadata == nullptr || key == nullptr || value == nullptr) { in audio_metadata_get_int64()
105 if (val == nullptr) { in audio_metadata_get_int64()
[all …]
/system/bt/service/hal/
Dfake_bluetooth_interface.cc44 nullptr, /* init */
47 nullptr, /* cleanup */
49 nullptr, /* get_adapter_property */
51 nullptr, /* get_remote_device_properties */
52 nullptr, /* get_remote_device_property */
53 nullptr, /* set_remote_device_property */
54 nullptr, /* get_remote_service_record */
55 nullptr, /* get_remote_services */
56 nullptr, /* start_discovery */
57 nullptr, /* cancel_discovery */
[all …]
Dfake_bluetooth_gatt_interface.cc109 nullptr, // refresh
110 nullptr, // search_service
111 nullptr, // discover_service_by_uuid
112 nullptr, // read_characteristic
113 nullptr, // read_using_characteristic_uuid
114 nullptr, // write_characteristic
115 nullptr, // read_descriptor
116 nullptr, // write_descriptor
117 nullptr, // execute_write
118 nullptr, // register_for_notification
[all …]
/system/core/libkeyutils/
Dkeyutils_test.cpp40 ASSERT_TRUE(dlsym(nullptr, "add_key") != nullptr); in TEST()
41 ASSERT_TRUE(dlsym(nullptr, "keyctl_get_keyring_ID") != nullptr); in TEST()
42 ASSERT_TRUE(dlsym(nullptr, "keyctl_revoke") != nullptr); in TEST()
43 ASSERT_TRUE(dlsym(nullptr, "keyctl_search") != nullptr); in TEST()
44 ASSERT_TRUE(dlsym(nullptr, "keyctl_setperm") != nullptr); in TEST()
45 ASSERT_TRUE(dlsym(nullptr, "keyctl_unlink") != nullptr); in TEST()
/system/core/fastboot/
Dfastboot_driver.h75 RetCode Boot(std::string* response = nullptr, std::vector<std::string>* info = nullptr);
76 RetCode Continue(std::string* response = nullptr, std::vector<std::string>* info = nullptr);
79 RetCode Download(const std::string& name, int fd, size_t size, std::string* response = nullptr,
80 std::vector<std::string>* info = nullptr);
81 RetCode Download(int fd, size_t size, std::string* response = nullptr,
82 std::vector<std::string>* info = nullptr);
84 std::string* response = nullptr, std::vector<std::string>* info = nullptr);
85 RetCode Download(const std::vector<char>& buf, std::string* response = nullptr,
86 std::vector<std::string>* info = nullptr);
88 size_t current, size_t total, bool use_crc, std::string* response = nullptr,
[all …]
/system/security/keystore-engine/
Dandroid_engine.cpp62 if (key_id != nullptr) { in key_id_dup()
97 if (key_id == nullptr) { in rsa_private_transform()
102 uint8_t* reply = nullptr; in rsa_private_transform()
111 } else if (reply_len == 0 || reply == nullptr) { in rsa_private_transform()
151 if (key_id == nullptr) { in ecdsa_sign()
158 uint8_t* reply = nullptr; in ecdsa_sign()
165 } else if (reply_len == 0 || reply == nullptr) { in ecdsa_sign()
188 nullptr /* argp */, in KeystoreEngine()
189 nullptr /* new_func */, in KeystoreEngine()
193 nullptr /* argp */, in KeystoreEngine()
[all …]
/system/core/libunwindstack/tests/
DMapsTest.cpp31 if (info == nullptr) { in VerifyLine()
36 ASSERT_TRUE(element != nullptr) << "Failed on: " + line; in VerifyLine()
85 MapInfo info(nullptr, nullptr, 0, 0, 0, 0, ""); in TEST()
108 VerifyLine("-00 rwxp 00 00:00 0\n", nullptr); in TEST()
109 VerifyLine("00- rwxp 00 00:00 0\n", nullptr); in TEST()
110 VerifyLine("00-00 rwxp 00 :00 0\n", nullptr); in TEST()
111 VerifyLine("00-00 rwxp 00 00:00 \n", nullptr); in TEST()
112 VerifyLine("x-00 rwxp 00 00:00 0\n", nullptr); in TEST()
113 VerifyLine("00 -00 rwxp 00 00:00 0\n", nullptr); in TEST()
114 VerifyLine("00-x rwxp 00 00:00 0\n", nullptr); in TEST()
[all …]
DDexFileTest.cpp36 EXPECT_TRUE(DexFileFromFile::Create(0, "/file/does/not/exist") == nullptr); in TEST()
46 EXPECT_TRUE(DexFileFromFile::Create(0, tf.path) == nullptr); in TEST()
52 EXPECT_TRUE(DexFileFromFile::Create(0, tf.path) == nullptr); in TEST()
62 EXPECT_TRUE(DexFileFromFile::Create(0, tf.path) != nullptr); in TEST()
73 EXPECT_TRUE(DexFileFromFile::Create(0x100, tf.path) != nullptr); in TEST()
102 EXPECT_TRUE(DexFileFromFile::Create(0, tf.path) != nullptr); in TEST()
112 EXPECT_TRUE(DexFileFromMemory::Create(0x1000, &memory, "") == nullptr); in TEST()
120 EXPECT_TRUE(DexFileFromMemory::Create(0x1000, &memory, "") == nullptr); in TEST()
128 EXPECT_TRUE(DexFileFromMemory::Create(0x1000, &memory, "") != nullptr); in TEST()
139 EXPECT_TRUE(DexFileFromMemory::Create(0x1000, &memory, "") != nullptr); in TEST()
[all …]
DMapInfoGetElfTest.cpp71 MapInfo info(nullptr, nullptr, 0x1000, 0x2000, 0, PROT_READ, ""); in TEST_F()
75 ASSERT_TRUE(elf != nullptr); in TEST_F()
80 MapInfo info(nullptr, nullptr, 0x3000, 0x4000, 0, PROT_READ, ""); in TEST_F()
87 ASSERT_TRUE(elf != nullptr); in TEST_F()
95 ASSERT_TRUE(elf != nullptr); in TEST_F()
100 MapInfo info(nullptr, nullptr, 0x8000, 0x9000, 0, PROT_READ, ""); in TEST_F()
107 ASSERT_TRUE(elf != nullptr); in TEST_F()
114 MapInfo info(nullptr, nullptr, 0x3000, 0x4000, 0, PROT_READ, ""); in TEST_F()
121 ASSERT_TRUE(elf != nullptr); in TEST_F()
126 MapInfo info(nullptr, nullptr, 0x2000, 0x3000, 0, PROT_READ, ""); in TEST_F()
[all …]
DDwarfDebugFrameTest.cpp45 DwarfDebugFrame<TypeParam>* debug_frame_ = nullptr;
75 std::vector<uint8_t>* data = nullptr) { in SetFde32()
83 if (data != nullptr) { in SetFde32()
91 std::vector<uint8_t>* data = nullptr) { in SetFde64()
101 if (data != nullptr) { in SetFde64()
137 EXPECT_TRUE(fdes[0]->cie != nullptr); in TYPED_TEST_P()
145 EXPECT_TRUE(fdes[1]->cie != nullptr); in TYPED_TEST_P()
153 EXPECT_TRUE(fdes[2]->cie != nullptr); in TYPED_TEST_P()
161 EXPECT_TRUE(fdes[3]->cie != nullptr); in TYPED_TEST_P()
169 ASSERT_TRUE(fde != nullptr); in TYPED_TEST_P()
[all …]
DElfCacheTest.cpp81 MapInfo info1(nullptr, nullptr, start, end, 0, 0x5, tf.path); in VerifySameMap()
82 MapInfo info2(nullptr, nullptr, start, end, 0, 0x5, tf.path); in VerifySameMap()
122 MapInfo info0_1(nullptr, nullptr, start, end, 0, 0x5, tf.path); in VerifyWithinSameMap()
123 MapInfo info0_2(nullptr, nullptr, start, end, 0, 0x5, tf.path); in VerifyWithinSameMap()
125 MapInfo info100_1(nullptr, nullptr, start, end, 0x100, 0x5, tf.path); in VerifyWithinSameMap()
126 MapInfo info100_2(nullptr, nullptr, start, end, 0x100, 0x5, tf.path); in VerifyWithinSameMap()
128 MapInfo info200_1(nullptr, nullptr, start, end, 0x200, 0x5, tf.path); in VerifyWithinSameMap()
129 MapInfo info200_2(nullptr, nullptr, start, end, 0x200, 0x5, tf.path); in VerifyWithinSameMap()
131 MapInfo info300_1(nullptr, nullptr, start, end, 0x300, 0x5, tf.path); in VerifyWithinSameMap()
132 MapInfo info300_2(nullptr, nullptr, start, end, 0x300, 0x5, tf.path); in VerifyWithinSameMap()
[all …]
/system/core/base/
Dmapped_file.cpp56 h, nullptr, (prot & PROT_WRITE) ? PAGE_READWRITE : PAGE_READONLY, 0, 0, nullptr); in FromOsHandle()
57 if (handle == nullptr) { in FromOsHandle()
62 new MappedFile(const_cast<char*>(kEmptyBuffer), 0, 0, nullptr)); in FromOsHandle()
64 return nullptr; in FromOsHandle()
68 if (base == nullptr) { in FromOsHandle()
70 return nullptr; in FromOsHandle()
75 void* base = mmap(nullptr, file_length, prot, MAP_SHARED, h, file_offset); in FromOsHandle()
82 return nullptr; in FromOsHandle()
89 : base_(std::exchange(other.base_, nullptr)), in MappedFile()
94 handle_(std::exchange(other.handle_, nullptr)) in MappedFile()
[all …]
/system/core/adb/client/pairing/tests/
Dpairing_connection_test.cpp140 EXPECT_EQ(nullptr, server); in TEST_F()
143 EXPECT_EQ(nullptr, server); in TEST_F()
146 EXPECT_EQ(nullptr, server); in TEST_F()
149 EXPECT_EQ(nullptr, server); in TEST_F()
152 EXPECT_EQ(nullptr, server); in TEST_F()
155 EXPECT_EQ(nullptr, server); in TEST_F()
158 EXPECT_NE(nullptr, server); in TEST_F()
164 EXPECT_EQ(nullptr, client); in TEST_F()
167 EXPECT_EQ(nullptr, client); in TEST_F()
170 EXPECT_EQ(nullptr, client); in TEST_F()
[all …]
/system/netd/server/
DNetlinkManager.cpp52 NetlinkManager *NetlinkManager::sInstance = nullptr;
61 mBroadcaster = nullptr; in NetlinkManager()
82 return nullptr; in setupSocket()
92 return nullptr; in setupSocket()
98 return nullptr; in setupSocket()
104 return nullptr; in setupSocket()
110 return nullptr; in setupSocket()
114 return nullptr; in setupSocket()
118 return nullptr; in setupSocket()
126 return nullptr; in setupSocket()
[all …]
/system/chre/platform/slpi/
Dplatform_nanoapp.cc135 if (mAppBinary != nullptr) { in ~PlatformNanoapp()
164 if (eventData != nullptr && !isUimgApp() && isBiasEventType(eventType)) { in handleEvent()
193 if (mAppFilename == nullptr) { in setAppInfo()
213 if (mAppBinary == nullptr) { in reserveBuffer()
253 (mAppBinary != nullptr && mBytesLoaded == mAppBinaryLen) || in isLoaded()
254 mDsoHandle != nullptr || mAppFilename != nullptr); in isLoaded()
262 if (mDsoHandle != nullptr) { in closeNanoapp()
263 mAppInfo = nullptr; in closeNanoapp()
267 mDsoHandle = nullptr; in closeNanoapp()
276 } else if (mAppBinary != nullptr) { in openNanoapp()
[all …]
/system/core/fs_mgr/liblp/
Dbuilder_test.cpp49 ASSERT_NE(builder, nullptr); in TEST_F()
52 ASSERT_NE(partition, nullptr); in TEST_F()
59 EXPECT_EQ(builder->FindPartition("system"), nullptr); in TEST_F()
64 ASSERT_NE(builder, nullptr); in TEST_F()
67 ASSERT_NE(system, nullptr); in TEST_F()
73 ASSERT_NE(extent, nullptr); in TEST_F()
106 ASSERT_NE(extent, nullptr); in TEST_F()
111 ASSERT_NE(exported, nullptr); in TEST_F()
112 ASSERT_EQ(FindPartition(*exported.get(), "not found"), nullptr); in TEST_F()
114 ASSERT_NE(entry, nullptr); in TEST_F()
[all …]
/system/core/debuggerd/include/debuggerd/
Dhandler.h60 sigaction(SIGABRT, action, nullptr); in debuggerd_register_handlers()
61 sigaction(SIGBUS, action, nullptr); in debuggerd_register_handlers()
62 sigaction(SIGFPE, action, nullptr); in debuggerd_register_handlers()
63 sigaction(SIGILL, action, nullptr); in debuggerd_register_handlers()
64 sigaction(SIGSEGV, action, nullptr); in debuggerd_register_handlers()
65 sigaction(SIGSTKFLT, action, nullptr); in debuggerd_register_handlers()
66 sigaction(SIGSYS, action, nullptr); in debuggerd_register_handlers()
67 sigaction(SIGTRAP, action, nullptr); in debuggerd_register_handlers()
70 sigaction(BIONIC_SIGNAL_DEBUGGER, action, nullptr); in debuggerd_register_handlers()
/system/extras/simpleperf/
DIOEventLoop.cpp32 : loop(loop), e(nullptr), timeout({}), callback(callback), enabled(false) { in IOEvent()
36 if (e != nullptr) { in ~IOEvent()
43 : ebase_(nullptr), has_error_(false), use_precise_timer_(false), in_loop_(false) {} in IOEventLoop()
47 if (ebase_ != nullptr) { in ~IOEventLoop()
53 if (ebase_ != nullptr) { in UsePreciseTimer()
61 if (ebase_ == nullptr) { in EnsureInit()
63 if (cfg != nullptr) { in EnsureInit()
87 if (ebase_ == nullptr) { in EnsureInit()
115 return nullptr; in AddReadEvent()
117 return AddEvent(fd, EV_READ | EV_PERSIST, nullptr, callback); in AddReadEvent()
[all …]
/system/core/libprocessgroup/cgrouprc/
Dcgroup_file.cpp42 return nullptr; in LoadRcFile()
47 return nullptr; in LoadRcFile()
53 return nullptr; in LoadRcFile()
56 CgroupFile* file_data = (CgroupFile*)mmap(nullptr, file_size, PROT_READ, MAP_SHARED, fd, 0); in LoadRcFile()
59 return nullptr; in LoadRcFile()
65 return nullptr; in LoadRcFile()
73 return nullptr; in LoadRcFile()
88 if (file == nullptr) return 0; in ACgroupFile_getVersion()
94 if (file == nullptr) return 0; in ACgroupFile_getControllerCount()
100 if (file == nullptr) return nullptr; in ACgroupFile_getController()
/system/core/libbacktrace/
DBacktraceTest.h55 ASSERT_TRUE(dl_handle_ != nullptr); in SetUp()
56 ASSERT_TRUE(test_level_one_ != nullptr); in SetUp()
57 ASSERT_TRUE(test_level_two_ != nullptr); in SetUp()
58 ASSERT_TRUE(test_level_three_ != nullptr); in SetUp()
59 ASSERT_TRUE(test_level_four_ != nullptr); in SetUp()
60 ASSERT_TRUE(test_recursive_call_ != nullptr); in SetUp()
61 ASSERT_TRUE(test_get_context_and_wait_ != nullptr); in SetUp()
62 ASSERT_TRUE(test_signal_action_ != nullptr); in SetUp()
63 ASSERT_TRUE(test_signal_handler_ != nullptr); in SetUp()
/system/core/property_service/libpropertyinfoserializer/
Dtrie_builder_test.cpp43 ASSERT_NE(nullptr, builder_root.context()); in TEST()
45 ASSERT_NE(nullptr, builder_root.type()); in TEST()
56 ASSERT_NE(nullptr, test_node->context()); in TEST()
58 ASSERT_NE(nullptr, test_node->type()); in TEST()
66 ASSERT_NE(nullptr, property_entry.context); in TEST()
68 ASSERT_NE(nullptr, property_entry.type); in TEST()
76 ASSERT_NE(nullptr, test_node->exact_matches()[0].context); in TEST()
77 ASSERT_NE(nullptr, test_node->exact_matches()[1].context); in TEST()
78 ASSERT_NE(nullptr, test_node->exact_matches()[2].context); in TEST()
83 ASSERT_NE(nullptr, test_node->exact_matches()[0].type); in TEST()
[all …]
/system/core/adb/client/
Dusb_windows.cpp131 if (nullptr != dev_name) { in known_device_locked()
135 if ((nullptr != usb->interface_name) && (0 == wcsicmp(usb->interface_name, dev_name))) { in known_device_locked()
147 if (nullptr != dev_name) { in known_device()
156 if (nullptr == handle) return 0; in register_new_device()
215 const HINSTANCE instance = GetModuleHandleW(nullptr); in _power_notification_thread()
234 L"ADB Power Notification Window", WS_POPUP, 0, 0, 0, 0, nullptr, nullptr, in _power_notification_thread()
235 instance, nullptr)) { in _power_notification_thread()
241 while (GetMessageW(&msg, nullptr, 0, 0)) { in _power_notification_thread()
265 if (nullptr == ret) { in do_usb_open()
272 if (nullptr == ret->adb_interface) { in do_usb_open()
[all …]
/system/update_engine/client_library/
Dclient_dbus.cc57 nullptr); in AttemptUpdate()
71 return proxy_->AttemptInstall(dlc_request, nullptr /* brillo::ErrorPtr* */); in AttemptInstall()
89 nullptr); in GetStatus()
98 return proxy_->SetCohortHint(cohort_hint, nullptr); in SetCohortHint()
102 return proxy_->GetCohortHint(cohort_hint, nullptr); in GetCohortHint()
106 return proxy_->SetUpdateOverCellularPermission(allowed, nullptr); in SetUpdateOverCellularPermission()
111 return proxy_->GetUpdateOverCellularPermission(allowed, nullptr); in GetUpdateOverCellularPermission()
115 return proxy_->SetP2PUpdatePermission(enabled, nullptr); in SetP2PUpdatePermission()
119 return proxy_->GetP2PUpdatePermission(enabled, nullptr); in GetP2PUpdatePermission()
123 return proxy_->AttemptRollback(powerwash, nullptr); in Rollback()
[all …]
/system/chre/platform/linux/
Dplatform_nanoapp.cc48 return (mAppInfo == nullptr) ? 0 : mAppInfo->appId; in getAppId()
60 return (mAppInfo != nullptr) ? mAppInfo->name : "Unknown"; in getAppName()
64 return (mAppInfo != nullptr && mAppInfo->isSystemNanoapp); in isSystemNanoapp()
81 return (mIsStatic || mDsoHandle != nullptr); in isLoaded()
100 CHRE_ASSERT_LOG(mDsoHandle == nullptr, "Re-opening nanoapp"); in openNanoappFromFile()
104 if (mDsoHandle == nullptr) { in openNanoappFromFile()
110 if (mAppInfo == nullptr) { in openNanoappFromFile()
119 mAppInfo = nullptr; in openNanoappFromFile()
134 if (mDsoHandle != nullptr) { in closeNanoapp()
135 mAppInfo = nullptr; in closeNanoapp()
[all …]

12345678910>>...68