Searched defs:nullptr (Results 1 - 25 of 28) sorted by relevance

12

/system/chre/util/tests/
H A Dsingleton_test.cc25 EXPECT_EQ(Singleton<int>::safeGet(), nullptr); local
28 ASSERT_NE(Singleton<int>::get(), nullptr); local
32 ASSERT_NE(Singleton<int>::get(), nullptr); local
37 EXPECT_EQ(Singleton<int>::safeGet(), nullptr); local
41 ASSERT_NE(Singleton<int>::get(), nullptr); local
/system/chre/apps/chqts/src/shared/
H A Dsend_message.h110 * @param data The data to send. This can be nullptr, but then 'dataSize'
113 * not 'nullptr', then this must be non-zero.
115 void sendMessageToHost(MessageType messageType, const void *data = nullptr,
129 * @param message The text of the message. This cannot be nullptr.
130 * @param value Optional, defaults to nullptr. If non-null, this value will
134 const uint32_t *value = nullptr);
140 const uint32_t *value = nullptr) {
149 const uint32_t *value = nullptr,
157 const uint32_t *value = nullptr,
139 sendFailureToHost(const char *message, const uint32_t *value = nullptr) argument
/system/core/libunwindstack/tests/
H A DArmExidxDecodeTest.cpp38 void Init(Memory* process_memory = nullptr) { argument
41 if (process_memory == nullptr) {
/system/extras/simpleperf/
H A Dcmd_kmem_test.cpp75 const char* output_file = nullptr) {
78 if (output_file != nullptr) {
74 RunKmemRecordCmd(std::vector<std::string> v, const char* output_file = nullptr) argument
H A Dcmd_record_test.cpp47 const char* output_file = nullptr) {
50 if (output_file != nullptr) {
69 ASSERT_TRUE(type != nullptr);
125 ASSERT_TRUE(reader != nullptr);
148 ASSERT_TRUE(reader != nullptr);
291 ASSERT_TRUE(reader != nullptr);
322 ASSERT_TRUE(reader != nullptr);
385 ASSERT_TRUE(reader != nullptr);
46 RunRecordCmd(std::vector<std::string> v, const char* output_file = nullptr) argument
/system/bt/stack/rfcomm/
H A Drfc_port_if.cc50 rfc_mx_sm_execute(p_mcb, RFC_MX_EVENT_START_REQ, nullptr);
85 if (p_port == nullptr) {
90 rfc_port_sm_execute(p_port, RFC_EVENT_OPEN, nullptr);
109 if (p_port == nullptr) {
133 if (p_port == nullptr) {
196 PORT_PortNegCnf(p_mcb, dlci, nullptr, RFCOMM_ERROR);
201 if (p_port == nullptr) {
241 if (p_port == nullptr) {
269 if (p_port == nullptr) {
296 if (p_port == nullptr) {
320 nullptr); local
[all...]
/system/core/base/
H A Dlogging_test.cpp210 const char* expected, const char* expected_tag = nullptr) {
219 ASSERT_NE(nullptr, strstr(output.c_str(), expected)) << output;
220 if (expected_tag != nullptr) {
221 ASSERT_NE(nullptr, strstr(output.c_str(), expected_tag)) << output;
226 if (expected_tag != nullptr) {
209 CheckMessage(const CapturedStderr& cap, android::base::LogSeverity severity, const char* expected, const char* expected_tag = nullptr) argument
/system/core/fastboot/
H A Dudp_test.cpp73 bool UdpConnect(std::string* error = nullptr) { argument
75 if (error == nullptr) {
80 return transport != nullptr && error->empty();
324 return transport_ != nullptr && error.empty();
343 SocketMock* mock_socket_ = nullptr;
/system/keymaster/include/keymaster/
H A DUniquePtr.h57 UniquePtr() : mPtr(nullptr) {}
61 UniquePtr(const decltype(nullptr)&) : mPtr(nullptr) {}
64 other.mPtr = nullptr;
69 other.mPtr = nullptr;
88 operator bool() const { return mPtr != nullptr; }
94 mPtr = nullptr;
101 void reset(T* ptr = nullptr) { argument
125 UniquePtr() : mPtr(nullptr) {}
128 UniquePtr(const decltype(nullptr)
158 reset(T* ptr = nullptr) argument
[all...]
/system/libvintf/include/vintf/
H A DHalGroup.h38 bool addAllHals(HalGroup* other, std::string* error = nullptr) { argument
51 virtual bool add(Hal&& hal) { return addInternal(std::move(hal)) != nullptr; }
153 // if multiple. Return nullptr if the component does not exist. This is only
160 return nullptr;
167 return nullptr;
/system/libvintf/
H A Dutils.h62 return fetchInternal(path, fetched, nullptr);
75 while ((dp = readdir(dir.get())) != nullptr) {
99 T* outObject, std::string* error = nullptr) {
102 if (gFetcher == nullptr) {
98 fetchAllInformation(const std::string& path, const XmlConverter<T>& converter, T* outObject, std::string* error = nullptr) argument
/system/tools/aidl/
H A Daidl_unittest.cpp75 AidlError* error = nullptr) {
88 if (error != nullptr) {
102 EXPECT_NE(nullptr, Parse("IFoo.aidl", "interface IFoo { }", &java_types_));
113 EXPECT_EQ(nullptr, Parse(path, contents, &java_types_));
114 EXPECT_EQ(nullptr, Parse(path, contents, &cpp_types_));
118 EXPECT_EQ(nullptr, Parse("IFoo.aidl", "interface IFoo { }", &cpp_types_));
119 EXPECT_NE(nullptr,
128 EXPECT_EQ(nullptr, Parse("a/IFoo.aidl", oneway_interface, &cpp_types_));
129 EXPECT_EQ(nullptr, Parse("a/IFoo.aidl", oneway_interface, &java_types_));
130 EXPECT_EQ(nullptr, Pars
72 Parse(const string& path, const string& contents, TypeNamespace* types, AidlError* error = nullptr) argument
[all...]
/system/update_engine/
H A Dmain.cc99 GetTimeAsString(::time(nullptr)).c_str());
113 nullptr); local
128 GetTimeAsString(::time(nullptr)).c_str());
141 log_settings.log_file = nullptr;
/system/chre/core/
H A Dsensor_request_manager.cc136 bool nanoappHasRequest = (requests.find(nanoapp, &requestIndex) != nullptr);
167 && sensor.getLastEvent() != nullptr) {
170 sensor.getLastEvent(), nullptr, kSystemInstanceId, local
248 Sensor *sensorPtr = nullptr;
300 uint32_t instanceId = (request.getNanoapp() != nullptr) ?
329 return nullptr;
334 CHRE_ASSERT(requestChanged != nullptr);
362 CHRE_ASSERT(requestChanged != nullptr);
390 CHRE_ASSERT(requestChanged != nullptr);
/system/core/storaged/
H A Dstoraged.cpp173 RemoveFileIfExists(proto_path(user_id), nullptr); local
225 char* data = nullptr;
295 if (proto_data == nullptr) return;
/system/tools/hidl/
H A Dmain.cpp94 CHECK(mShouldGenerateForFqName != nullptr);
95 CHECK(mGenerationFunction != nullptr);
160 if (typesAST == nullptr) {
260 const = nullptr) {
264 if (ast == nullptr) {
269 if (generate == nullptr) return OK; // just parsing AST
299 if (ast == nullptr) {
363 if (ast == nullptr) {
412 CHECK(typesAST != nullptr);
550 AST* typesAST = nullptr;
259 astGenerationFunction(void (AST::*generate)(Formatter&) const = nullptr) argument
[all...]
/system/core/init/
H A Dreboot.cpp111 true, nullptr, nullptr, 0); local
117 true, nullptr, nullptr, 0); local
143 if (service == nullptr) {
154 nullptr, nullptr, 0); local
216 if (fp == nullptr) {
221 while ((mentry = getmntent(fp.get())) != nullptr) {
246 true, nullptr, nullpt local
[all...]
/system/tpm/attestation/common/
H A Dcrypto_utility_impl.cc45 char* data = nullptr;
169 d2i_RSAPublicKey(nullptr, &asn1_ptr, public_key.size()));
175 unsigned char* buffer = nullptr;
335 if (!EVP_EncryptInit_ex(&encryption_context, cipher, nullptr, key_buffer,
385 if (!EVP_DecryptInit_ex(&decryption_context, cipher, nullptr, key_buffer,
416 nullptr); local
/system/update_engine/payload_generator/
H A Dpayload_signer.cc101 nullptr,
249 nullptr);
255 payload_metadata.data(), payload_metadata.size(), nullptr));
296 nullptr));
312 nullptr,
314 nullptr,
363 TEST_AND_RETURN_FALSE(fprikey != nullptr);
364 RSA* rsa = PEM_read_RSAPrivateKey(fprikey, nullptr, nullptr, nullptr);
376 << ERR_error_string(ERR_get_error(), nullptr); local
[all...]
/system/bt/stack/gap/
H A Dgap_conn.cc631 return nullptr;
693 p_ccb->p_callback(p_ccb->gap_handle, GAP_EVT_TX_EMPTY, nullptr);
792 p_ccb->p_callback(p_ccb->gap_handle, GAP_EVT_CONN_OPENED, nullptr);
874 (*p_ccb->p_callback)(p_ccb->gap_handle, GAP_EVT_CONN_CLOSED, nullptr); local
951 p_ccb->p_callback(p_ccb->gap_handle, GAP_EVT_CONN_CLOSED, nullptr);
977 p_ccb->p_callback(p_ccb->gap_handle, GAP_EVT_CONN_CLOSED, nullptr);
1009 p_ccb->p_callback(p_ccb->gap_handle, GAP_EVT_CONN_DATA_AVAIL, nullptr);
1035 nullptr);
/system/core/debuggerd/libdebuggerd/
H A Dtombstone.cpp424 if (!Backtrace::Unwind(regs_copy.get(), map, &frames, 0, nullptr)) {
596 log.amfd_data = nullptr;
624 threads, tid, abort_msg_address, nullptr, nullptr); local
/system/core/libnativeloader/
H A Dnative_loader.cpp57 : android_ns_(nullptr), native_bridge_ns_(nullptr) { }
60 : android_ns_(ns), native_bridge_ns_(nullptr) { }
63 : android_ns_(nullptr), native_bridge_ns_(ns) { }
71 CHECK(native_bridge_ns_ == nullptr);
76 CHECK(android_ns_ == nullptr);
81 return native_bridge_ns_ == nullptr;
138 CHECK(file_name != nullptr);
164 if (java_library_path != nullptr) {
177 if (java_permitted_path != nullptr) {
475 ReadConfig(const std::string& configFile, std::vector<std::string>* sonames, const std::function<bool(const std::string& , std::string* )>& check_soname, std::string* error_msg = nullptr) argument
[all...]
/system/libvintf/test/
H A DLibVintfTest.cpp696 EXPECT_NE(getAnyHal(vm, "android.hardware.camera"), nullptr); local
697 EXPECT_EQ(getAnyHal(vm, "non-existent"), nullptr); local
1261 EXPECT_NE(camera, nullptr);
/system/chre/apps/wifi_offload/include/chre/apps/wifi_offload/
H A Dflatbuffers_types_generated.h86 const std::vector<uint8_t> *ssid = nullptr) {
228 uint8_t security_modes = 0, const std::vector<uint8_t> *bssid = nullptr,
284 nullptr) {
370 const std::vector<flatbuffers::Offset<Ssid>> *ssids_to_scan = nullptr,
371 const std::vector<uint32_t> *frequencies_to_scan_mhz = nullptr,
444 *networks_to_match = nullptr,
759 const std::vector<uint8_t> *channel_scan_count = nullptr,
760 const std::vector<flatbuffers::Offset<ScanRecord>> *scan_records = nullptr,
762 nullptr) {
84 CreateSsidDirect( flatbuffers::FlatBufferBuilder &_fbb, const std::vector<uint8_t> *ssid = nullptr) argument
226 CreateScanResultDirect( flatbuffers::FlatBufferBuilder &_fbb, flatbuffers::Offset<Ssid> ssid = 0, uint8_t security_modes = 0, const std::vector<uint8_t> *bssid = nullptr, uint16_t capability = 0, uint32_t frequency_scanned_mhz = 0, int8_t rssi_dbm = 0, uint64_t tsf = 0) argument
281 CreateScanResultMessageDirect( flatbuffers::FlatBufferBuilder &_fbb, const std::vector<flatbuffers::Offset<ScanResult>> *scan_results = nullptr) argument
368 CreateScanParamsDirect( flatbuffers::FlatBufferBuilder &_fbb, const std::vector<flatbuffers::Offset<Ssid>> *ssids_to_scan = nullptr, const std::vector<uint32_t> *frequencies_to_scan_mhz = nullptr, uint32_t disconnected_mode_scan_interval_ms = 0) argument
441 CreateScanFilterDirect( flatbuffers::FlatBufferBuilder &_fbb, const std::vector<flatbuffers::Offset<PreferredNetwork>> *networks_to_match = nullptr, int8_t min_rssi_threshold_dbm = 0) argument
753 CreateScanStatsDirect( flatbuffers::FlatBufferBuilder &_fbb, uint32_t num_scans_requested_by_nanoapp = 0, uint32_t num_scans_serviced_by_hardware = 0, uint32_t num_scans_serviced_by_cache = 0, uint32_t updated_at_chre_ms = 0, uint32_t sent_at_chre_ms = 0, uint32_t last_subscription_duration_ms = 0, const std::vector<uint8_t> *channel_scan_count = nullptr, const std::vector<flatbuffers::Offset<ScanRecord>> *scan_records = nullptr, const std::vector<flatbuffers::Offset<RpcLogRecord>> *rpc_log_records = nullptr) argument
/system/chre/platform/slpi/
H A Dhost_link.cc100 const MessageToHost *msgToHost = nullptr) {
364 CHRE_ASSERT(builder != nullptr);
463 msgBuilder, nullptr);
487 if (!sTimeSyncRequestTimer.set(callback, nullptr /* data */, delay)) {
504 CHRE_ASSERT(buffer != nullptr);
506 CHRE_ASSERT(messageLen != nullptr);
509 if (bufferLen <= 0 || buffer == nullptr || messageLen == nullptr) {
513 bufferLen, (buffer == nullptr), (messageLen == nullptr));
99 PendingMessage(PendingMessageType msgType, const MessageToHost *msgToHost = nullptr) argument
[all...]

Completed in 3873 milliseconds

12