Home
last modified time | relevance | path

Searched refs:NULL (Results 1 – 25 of 612) sorted by relevance

12345678910>>...25

/system/bt/osi/test/
Dfixed_queue_test.cc18 static future_t* received_message_future = NULL;
33 int result = select(FD_SETSIZE, &rfds, NULL, NULL, &tv); in is_fd_readable()
42 EXPECT_TRUE(msg != NULL); in fixed_queue_ready()
59 EXPECT_TRUE(queue != NULL); in TEST_F()
60 fixed_queue_free(queue, NULL); in TEST_F()
64 EXPECT_TRUE(queue != NULL); in TEST_F()
65 fixed_queue_free(queue, NULL); in TEST_F()
69 EXPECT_TRUE(queue != NULL); in TEST_F()
70 fixed_queue_free(queue, NULL); in TEST_F()
74 EXPECT_TRUE(queue != NULL); in TEST_F()
[all …]
Dlist_test.cc13 list_t* list = list_new(NULL); in TEST_F()
14 ASSERT_TRUE(list != NULL); in TEST_F()
20 list_free(NULL); in TEST_F()
24 list_t* list = list_new(NULL); in TEST_F()
30 list_t* list = list_new(NULL); in TEST_F()
36 list_t* list = list_new(NULL); in TEST_F()
44 list_t* list = list_new(NULL); in TEST_F()
52 list_t* list = list_new(NULL); in TEST_F()
62 list_t* list = list_new(NULL); in TEST_F()
72 list_t* list = list_new(NULL); in TEST_F()
[all …]
/system/core/toolbox/upstream-netbsd/usr.bin/grep/
Dgrep.c172 {"binary-files", required_argument, NULL, BIN_OPT},
174 {"decompress", no_argument, NULL, DECOMPRESS_OPT},
176 {"help", no_argument, NULL, HELP_OPT},
177 {"mmap", no_argument, NULL, MMAP_OPT},
178 {"line-buffered", no_argument, NULL, LINEBUF_OPT},
179 {"label", required_argument, NULL, LABEL_OPT},
180 {"color", optional_argument, NULL, COLOR_OPT},
181 {"colour", optional_argument, NULL, COLOR_OPT},
182 {"exclude", required_argument, NULL, R_EXCLUDE_OPT},
183 {"include", required_argument, NULL, R_INCLUDE_OPT},
[all …]
/system/bt/osi/src/
Dfixed_queue.cc52 ret->list = list_new(NULL); in fixed_queue_new()
64 fixed_queue_free(ret, NULL); in fixed_queue_new()
65 return NULL; in fixed_queue_new()
90 if (free_cb != NULL) { in fixed_queue_flush()
97 if (queue == NULL) return true; in fixed_queue_is_empty()
104 if (queue == NULL) return 0; in fixed_queue_length()
111 CHECK(queue != NULL); in fixed_queue_capacity()
117 CHECK(queue != NULL); in fixed_queue_enqueue()
118 CHECK(data != NULL); in fixed_queue_enqueue()
131 CHECK(queue != NULL); in fixed_queue_dequeue()
[all …]
Dlist.cc28 if (!list) return NULL; in list_new_internal()
47 CHECK(list != NULL); in list_is_empty()
52 CHECK(list != NULL); in list_contains()
53 CHECK(data != NULL); in list_contains()
64 CHECK(list != NULL); in list_length()
69 CHECK(list != NULL); in list_front()
76 CHECK(list != NULL); in list_back()
83 CHECK(list != NULL); in list_back_node()
90 CHECK(list != NULL); in list_insert_after()
91 CHECK(prev_node != NULL); in list_insert_after()
[all …]
Dsocket.cc74 return NULL; in socket_new()
95 CHECK(socket != NULL); in socket_listen()
117 CHECK(socket != NULL); in socket_accept()
120 OSI_NO_INTR(fd = accept(socket->fd, NULL, NULL)); in socket_accept()
124 return NULL; in socket_accept()
134 CHECK(socket != NULL); in socket_read()
135 CHECK(buf != NULL); in socket_read()
144 CHECK(socket != NULL); in socket_write()
145 CHECK(buf != NULL); in socket_write()
155 CHECK(socket != NULL); in socket_write_and_transfer_fd()
[all …]
Dalarm.cc172 return NULL; in alarm_new_internal()
202 CHECK(alarm != NULL); in alarm_get_remaining_ms()
221 alarm_set_internal(alarm, interval_ms, cb, data, NULL, true); in alarm_set_on_mloop()
228 CHECK(alarms != NULL); in alarm_set_internal()
229 CHECK(alarm != NULL); in alarm_set_internal()
230 CHECK(cb != NULL); in alarm_set_internal()
246 CHECK(alarms != NULL); in alarm_cancel()
270 alarm->callback = NULL; in alarm_cancel_internal()
271 alarm->data = NULL; in alarm_cancel_internal()
273 alarm->queue = NULL; in alarm_cancel_internal()
[all …]
Dthread.cc68 CHECK(name != NULL); in thread_new_sized()
87 pthread_create(&ret->pthread, NULL, run_thread, &start); in thread_new_sized()
101 return NULL; in thread_new_sized()
120 CHECK(thread != NULL); in thread_join()
123 pthread_join(thread->pthread, NULL); in thread_join()
127 CHECK(thread != NULL); in thread_post()
128 CHECK(func != NULL); in thread_post()
144 CHECK(thread != NULL); in thread_stop()
180 CHECK(thread != NULL); in thread_is_self()
185 CHECK(thread != NULL); in thread_get_reactor()
[all …]
/system/bt/btif/src/
Dbtif_avrcp_audio_track.cc59 NULL /*callback_t*/, NULL /*void* user*/, 0 /*notificationFrames*/, in BtifAvrcpAudioTrackCreate()
61 CHECK(track != NULL); in BtifAvrcpAudioTrackCreate()
64 CHECK(trackHolder != NULL); in BtifAvrcpAudioTrackCreate()
79 if (handle == NULL) { in BtifAvrcpAudioTrackStart()
84 CHECK(trackHolder != NULL); in BtifAvrcpAudioTrackStart()
85 CHECK(trackHolder->track != NULL); in BtifAvrcpAudioTrackStart()
91 if (handle == NULL) { in BtifAvrcpAudioTrackStop()
96 if (trackHolder != NULL && trackHolder->track != NULL) { in BtifAvrcpAudioTrackStop()
103 if (handle == NULL) { in BtifAvrcpAudioTrackDelete()
108 if (trackHolder != NULL && trackHolder->track != NULL) { in BtifAvrcpAudioTrackDelete()
[all …]
Dbtif_hf_client.cc108 static bthf_client_callbacks_t* bt_hf_client_callbacks = NULL;
126 if (bt_hf_client_callbacks == NULL) { \
136 if (bt_hf_client_callbacks == NULL) { \
169 if (cb == NULL || !is_connected(cb)) { in btif_in_hf_client_generic_evt()
217 return NULL; in btif_hf_client_get_cb_by_handle()
241 return NULL; in btif_hf_client_get_cb_by_bda()
261 return NULL; in btif_hf_client_allocate_cb()
302 if (cb == NULL) { in connect_int()
341 if (cb != NULL) { in disconnect()
360 if (cb == NULL || !is_connected(cb)) return BT_STATUS_FAIL; in connect_audio()
[all …]
/system/core/libvndksupport/
Dlinker.c29 static const char* namespace_name = NULL;
32 const char* namespace_names[] = {"sphal", "default", NULL}; in get_vendor_namespace()
33 static struct android_namespace_t* vendor_namespace = NULL; in get_vendor_namespace()
34 if (vendor_namespace == NULL) { in get_vendor_namespace()
36 while (namespace_names[name_idx] != NULL) { in get_vendor_namespace()
37 if (android_get_exported_namespace != NULL) { in get_vendor_namespace()
40 if (vendor_namespace != NULL) { in get_vendor_namespace()
56 if (android_get_exported_namespace == NULL) { in android_is_in_vendor_process()
63 return android_get_exported_namespace("vndk") == NULL; in android_is_in_vendor_process()
68 if (vendor_namespace != NULL) { in android_load_sphal_library()
[all …]
/system/bt/stack/a2dp/
Da2dp_vendor_ldac_decoder.cc46 static void* ldac_decoder_lib_handle = NULL;
120 if (func_ptr == NULL) { in load_func()
125 return NULL; in load_func()
131 if (ldac_decoder_lib_handle != NULL) return true; // Already loaded in A2DP_VendorLoadDecoderLdac()
138 if (ldac_decoder_lib_handle == NULL) { in A2DP_VendorLoadDecoderLdac()
146 if (ldac_get_handle_func == NULL) return false; in A2DP_VendorLoadDecoderLdac()
148 if (ldac_free_handle_func == NULL) return false; in A2DP_VendorLoadDecoderLdac()
151 if (ldac_close_handle_func == NULL) return false; in A2DP_VendorLoadDecoderLdac()
153 if (ldac_get_version_func == NULL) return false; in A2DP_VendorLoadDecoderLdac()
155 if (ldac_get_bitrate_func == NULL) return false; in A2DP_VendorLoadDecoderLdac()
[all …]
Da2dp_vendor_ldac_abr.cc36 static void* ldac_abr_lib_handle = NULL;
66 if (ldac_abr_lib_handle != NULL) return true; // Already loaded in A2DP_VendorLoadLdacAbr()
70 if (ldac_abr_lib_handle == NULL) { in A2DP_VendorLoadLdacAbr()
80 if (ldac_abr_get_handle_func == NULL) { in A2DP_VendorLoadLdacAbr()
90 if (ldac_abr_free_handle_func == NULL) { in A2DP_VendorLoadLdacAbr()
100 if (ldac_abr_init_func == NULL) { in A2DP_VendorLoadLdacAbr()
110 if (ldac_abr_set_thresholds_func == NULL) { in A2DP_VendorLoadLdacAbr()
120 if (ldac_abr_proc_func == NULL) { in A2DP_VendorLoadLdacAbr()
132 ldac_abr_get_handle_func = NULL; in A2DP_VendorUnloadLdacAbr()
133 ldac_abr_free_handle_func = NULL; in A2DP_VendorUnloadLdacAbr()
[all …]
/system/bt/btcore/src/
Ddevice_class.cc63 CHECK(dc != NULL); in device_class_from_stream()
64 CHECK(data != NULL); in device_class_from_stream()
70 CHECK(dc != NULL); in device_class_to_stream()
71 CHECK(data != NULL); in device_class_to_stream()
80 CHECK(dc != NULL); in device_class_from_int()
89 CHECK(dc != NULL); in device_class_to_int()
98 CHECK(p1 != NULL); in device_class_equals()
99 CHECK(p2 != NULL); in device_class_equals()
104 CHECK(dest != NULL); in device_class_copy()
105 CHECK(src != NULL); in device_class_copy()
[all …]
/system/media/radio/src/
Dradio_metadata.c90 if (metadata == NULL) { in check_size()
153 return NULL; in get_entry_at_index()
161 return NULL; in get_entry_at_index()
172 return NULL; in get_entry_at_index()
196 if (metadata_buf == NULL) { in radio_metadata_allocate()
220 if (metadata == NULL || *metadata == NULL || type != RADIO_METADATA_TYPE_INT) { in radio_metadata_add_int()
232 if (metadata == NULL || *metadata == NULL || type != RADIO_METADATA_TYPE_TEXT || in radio_metadata_add_text()
233 value == NULL || strlen(value) >= RADIO_METADATA_TEXT_LEN_MAX) { in radio_metadata_add_text()
245 if (metadata == NULL || *metadata == NULL || type != RADIO_METADATA_TYPE_RAW || value == NULL) { in radio_metadata_add_raw()
255 if (metadata == NULL || *metadata == NULL || type != RADIO_METADATA_TYPE_CLOCK || in radio_metadata_add_clock()
[all …]
/system/extras/verity/
Dgenerate_verity_key.c37 BIO *bfile = NULL; in write_public_keyfile()
38 char *path = NULL; in write_public_keyfile()
64 FILE *f = NULL; in convert_x509()
65 EVP_PKEY *pkey = NULL; in convert_x509()
66 RSA *rsa = NULL; in convert_x509()
67 X509 *cert = NULL; in convert_x509()
79 cert = PEM_read_X509(f, &cert, NULL, NULL); in convert_x509()
124 FILE *f = NULL; in generate_key()
135 RSA_generate_key_ex(rsa, 2048, exponent, NULL); in generate_key()
144 if (!PEM_write_PrivateKey(f, pkey, NULL, NULL, 0, NULL, NULL)) { in generate_key()
/system/sepolicy/tools/
Dsepolicy-check.c24 if (t == NULL) { in cmalloc()
117 type_datum_t *src = NULL; in check_rule()
118 type_datum_t *tgt = NULL; in check_rule()
119 class_datum_t *cls = NULL; in check_rule()
120 perm_datum_t *perm = NULL; in check_rule()
132 if (src == NULL) { in check_rule()
139 if (tgt == NULL) { in check_rule()
146 if (cls == NULL) { in check_rule()
153 if (perm == NULL) { in check_rule()
154 if (cls->comdatum == NULL) { in check_rule()
[all …]
Dversion_policy.c35 char *buff = NULL; in read_cil_file()
50 if (buff == NULL) { in read_cil_file()
62 file = NULL; in read_cil_file()
87 char *base = NULL; in main()
88 char *tgt_policy = NULL; in main()
89 char *num = NULL; in main()
91 char *output = NULL; in main()
92 struct cil_db *base_db = NULL; in main()
93 struct cil_db *out_db = NULL; in main()
137 if (num == NULL || base == NULL || (mapping == false && tgt_policy == NULL)) { in main()
[all …]
/system/libufdt/
Dufdt_overlay.c86 if (prop_data != NULL && len == sizeof(fdt32_t)) { in ufdt_node_try_increase_phandle()
90 if (prop_data != NULL && len == sizeof(fdt32_t)) { in ufdt_node_try_increase_phandle()
135 char *path_mem = NULL; in ufdt_get_fixup_location()
147 if (prop_ptr == NULL) { in ufdt_get_fixup_location()
156 if (offset_ptr == NULL) { in ufdt_get_fixup_location()
172 if (target_node == NULL) { in ufdt_get_fixup_location()
179 if (prop_data == NULL) { in ufdt_get_fixup_location()
196 return NULL; in ufdt_get_fixup_location()
215 if (fixup_pos != NULL) { in ufdt_do_one_fixup()
327 *target_node = NULL; in ufdt_overlay_get_target()
[all …]
Dufdt_node_pool.c67 pool->first_block = NULL; in ufdt_node_pool_construct()
74 while (block != NULL) { in ufdt_node_pool_destruct()
86 pool->first_block = NULL; in ufdt_node_pool_destruct()
87 pool->last_block_ptr = NULL; in ufdt_node_pool_destruct()
109 *next_ptr = NULL; in _ufdt_node_pool_create_block()
111 block->next_block = NULL; in _ufdt_node_pool_create_block()
149 if (origin_first_block == NULL) { in _ufdt_node_pool_preppend_block()
156 block->next_block = NULL; in _ufdt_node_pool_append_block()
169 if (next_block == NULL) { in _ufdt_node_pool_remove_block()
173 block->next_block = NULL; in _ufdt_node_pool_remove_block()
[all …]
Dufdt_node.c28 if (res == NULL) return NULL; in ufdt_node_construct()
30 res->parent.sibling = NULL; in ufdt_node_construct()
35 if (res == NULL) return NULL; in ufdt_node_construct()
37 res->parent.sibling = NULL; in ufdt_node_construct()
38 res->child = NULL; in ufdt_node_construct()
45 if (node == NULL) return; in ufdt_node_destruct()
49 while (it != NULL) { in ufdt_node_destruct()
87 struct ufdt_node **it = NULL; in ufdt_node_get_subnode_by_name_len()
91 return NULL; in ufdt_node_get_subnode_by_name_len()
101 if (!node) return NULL; in ufdt_node_get_property_by_name_len()
[all …]
/system/core/gatekeeperd/
DSoftGateKeeperDevice.cpp27 if (enrolled_password_handle == NULL || enrolled_password_handle_length == NULL || in enroll()
28 desired_password == NULL || desired_password_length == 0) in enroll()
32 if (current_password_handle == NULL || current_password_handle_length == 0 || in enroll()
33 current_password == NULL || current_password_length == 0) { in enroll()
34 current_password_handle = NULL; in enroll()
36 current_password = NULL; in enroll()
77 if (enrolled_password_handle == NULL || in verify()
78 provided_password == NULL) { in verify()
99 if (auth_token != NULL && auth_token_length != NULL) { in verify()
104 if (request_reenroll != NULL) { in verify()
/system/gatekeeper/tests/
Dgatekeeper_device_test.cpp42 ret = hw_get_module_by_class(GATEKEEPER_HARDWARE_MODULE_ID, NULL, &mod); in gatekeeper_device_initialize()
63 ret = device->enroll(device, 400, NULL, 0, NULL, 0, password_payload, password_len, in TEST_F()
87 ret = device->enroll(device, 400, NULL, 0, NULL, 0, password_payload, password_len, in TEST_F()
109 uint8_t *auth_token = NULL; in TEST_F()
114 ret = device->enroll(device, 400, NULL, 0, NULL, 0, password_payload, password_len, in TEST_F()
129 ASSERT_EQ(NULL, auth_token); in TEST_F()
154 uint8_t *auth_token = NULL; in TEST_F()
158 ret = device->enroll(device, 400, NULL, 0, NULL, 0, password_payload, password_len, in TEST_F()
171 ASSERT_EQ(NULL, auth_token); in TEST_F()
179 uint8_t *auth_token = NULL; in TEST_F()
[all …]
/system/bt/bta/mce/
Dbta_mce_act.cc61 tSDP_DISC_REC* p_rec = NULL; in bta_mce_search_cback()
69 if (bta_mce_cb.p_dm_cback == NULL) return; in bta_mce_search_cback()
85 if (p_rec == NULL) break; in bta_mce_search_cback()
93 if (p_attr == NULL) continue; in bta_mce_search_cback()
100 if (p_attr == NULL) break; in bta_mce_search_cback()
105 if (p_attr == NULL) break; in bta_mce_search_cback()
110 } while (p_rec != NULL && found < BTA_MCE_MAX_MAS_INSTANCES); in bta_mce_search_cback()
135 bta_mce_cb.p_dm_cback(BTA_MCE_ENABLE_EVT, &bta_mce, NULL); in bta_mce_enable()
148 if (p_data == NULL) { in bta_mce_get_remote_mas_instances()
162 bta_mce_cb.p_dm_cback(BTA_MCE_MAS_DISCOVERY_COMP_EVT, &bta_mce, NULL); in bta_mce_get_remote_mas_instances()
[all …]
/system/core/libcutils/
Dhashmap.cpp45 assert(hash != NULL); in hashmapCreate()
46 assert(equals != NULL); in hashmapCreate()
49 if (map == NULL) { in hashmapCreate()
50 return NULL; in hashmapCreate()
62 if (map->buckets == NULL) { in hashmapCreate()
64 return NULL; in hashmapCreate()
106 if (newBuckets == NULL) { in expandIfNecessary()
115 while (entry != NULL) { in expandIfNecessary()
143 while (entry != NULL) { in hashmapFree()
171 if (entry == NULL) { in createEntry()
[all …]

12345678910>>...25