/system/bt/osi/test/ |
D | fixed_queue_test.cc | 18 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 …]
|
D | list_test.cc | 13 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/bt/osi/src/ |
D | fixed_queue.cc | 52 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 …]
|
D | list.cc | 28 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 …]
|
D | socket.cc | 72 return NULL; in socket_new() 93 CHECK(socket != NULL); in socket_listen() 115 CHECK(socket != NULL); in socket_accept() 118 OSI_NO_INTR(fd = accept(socket->fd, NULL, NULL)); in socket_accept() 121 return NULL; in socket_accept() 131 CHECK(socket != NULL); in socket_read() 132 CHECK(buf != NULL); in socket_read() 141 CHECK(socket != NULL); in socket_write() 142 CHECK(buf != NULL); in socket_write() 152 CHECK(socket != NULL); in socket_write_and_transfer_fd() [all …]
|
D | alarm.cc | 170 return NULL; in alarm_new_internal() 201 CHECK(alarm != NULL); in alarm_get_remaining_ms() 220 alarm_set_internal(alarm, interval_ms, cb, data, NULL, true); in alarm_set_on_mloop() 227 CHECK(alarms != NULL); in alarm_set_internal() 228 CHECK(alarm != NULL); in alarm_set_internal() 229 CHECK(cb != NULL); in alarm_set_internal() 245 CHECK(alarms != NULL); in alarm_cancel() 269 alarm->callback = NULL; in alarm_cancel_internal() 270 alarm->data = NULL; in alarm_cancel_internal() 272 alarm->queue = NULL; in alarm_cancel_internal() [all …]
|
D | thread.cc | 68 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() 178 CHECK(thread != NULL); in thread_is_self() 183 CHECK(thread != NULL); in thread_get_reactor() [all …]
|
/system/bt/stack/a2dp/ |
D | a2dp_vendor_ldac_abr.cc | 36 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() 89 if (ldac_abr_free_handle_func == NULL) { in A2DP_VendorLoadLdacAbr() 98 if (ldac_abr_init_func == NULL) { in A2DP_VendorLoadLdacAbr() 107 if (ldac_abr_set_thresholds_func == NULL) { in A2DP_VendorLoadLdacAbr() 116 if (ldac_abr_proc_func == NULL) { in A2DP_VendorLoadLdacAbr() 127 ldac_abr_get_handle_func = NULL; in A2DP_VendorUnloadLdacAbr() 128 ldac_abr_free_handle_func = NULL; in A2DP_VendorUnloadLdacAbr() [all …]
|
D | a2dp_vendor_ldac_decoder.cc | 48 static void* ldac_bco_lib_handle = NULL; 113 if (func_ptr == NULL) { in load_func() 117 return NULL; in load_func() 123 if (ldac_bco_lib_handle != NULL) return true; // Already loaded in A2DP_VendorLoadDecoderLdac() 128 pthread_mutex_init(&(a2dp_ldac_decoder_cb.mutex), NULL); in A2DP_VendorLoadDecoderLdac() 132 if (ldac_bco_lib_handle == NULL) { in A2DP_VendorLoadDecoderLdac() 140 if (ldac_BCO_init_func == NULL) return false; in A2DP_VendorLoadDecoderLdac() 143 if (ldac_BCO_cleanup_func == NULL) return false; in A2DP_VendorLoadDecoderLdac() 147 if (ldac_BCO_decode_packet_func == NULL) return false; in A2DP_VendorLoadDecoderLdac() 150 if (ldac_BCO_start_func == NULL) return false; in A2DP_VendorLoadDecoderLdac() [all …]
|
/system/bt/btcore/src/ |
D | device_class.cc | 63 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/ |
D | radio_metadata.c | 90 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/ |
D | generate_verity_key.c | 37 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/ |
D | sepolicy-check.c | 24 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 …]
|
/system/libufdt/ |
D | ufdt_overlay.c | 86 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 …]
|
D | ufdt_node_pool.c | 67 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 …]
|
D | ufdt_node.c | 28 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/gatekeeper/tests/ |
D | gatekeeper_device_test.cpp | 42 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/btif/src/ |
D | btif_hf_client.cc | 104 static bthf_client_callbacks_t* bt_hf_client_callbacks = NULL; 122 if (bt_hf_client_callbacks == NULL) { \ 132 if (bt_hf_client_callbacks == NULL) { \ 165 if (cb == NULL || !is_connected(cb)) { in btif_in_hf_client_generic_evt() 213 return NULL; in btif_hf_client_get_cb_by_handle() 237 return NULL; in btif_hf_client_get_cb_by_bda() 257 return NULL; in btif_hf_client_allocate_cb() 298 if (cb == NULL) { in connect_int() 337 if (cb != NULL) { in disconnect() 356 if (cb == NULL || !is_connected(cb)) return BT_STATUS_FAIL; in connect_audio() [all …]
|
D | btif_avrcp_audio_track.cc | 63 CHECK(trackHolder != NULL); in BtifAvrcpAudioTrackCreate() 78 if (handle == NULL) { in BtifAvrcpAudioTrackStart() 83 CHECK(trackHolder != NULL); in BtifAvrcpAudioTrackStart() 84 CHECK(trackHolder->stream != NULL); in BtifAvrcpAudioTrackStart() 90 if (handle == NULL) { in BtifAvrcpAudioTrackStop() 95 if (trackHolder != NULL && trackHolder->stream != NULL) { in BtifAvrcpAudioTrackStop() 102 if (handle == NULL) { in BtifAvrcpAudioTrackDelete() 107 if (trackHolder != NULL && trackHolder->stream != NULL) { in BtifAvrcpAudioTrackDelete() 118 outputPcmSampleFile = NULL; in BtifAvrcpAudioTrackDelete() 123 if (handle == NULL) { in BtifAvrcpAudioTrackPause() [all …]
|
/system/bt/stack/avdt/ |
D | avdt_l2c.cc | 53 avdt_l2c_congestion_ind_cback, NULL, 54 avdt_on_l2cap_error, NULL, 55 NULL, NULL 71 AvdtpCcb* p_ccb = NULL; in avdt_sec_check_complete_term() 77 if (p_tbl == NULL) return; in avdt_sec_check_complete_term() 101 AvdtpCcb* p_ccb = NULL; in avdt_sec_check_complete_orig() 107 if (p_tbl == NULL) return; in avdt_sec_check_complete_orig() 130 AvdtpTransportChannel* p_tbl = NULL; in avdt_l2c_connect_ind_cback() 135 if (p_ccb == NULL) { in avdt_l2c_connect_ind_cback() 144 if (p_ccb == NULL) { in avdt_l2c_connect_ind_cback() [all …]
|
/system/bt/stack/avct/ |
D | avct_api.cc | 129 if (p_ccb == NULL) { in AVCT_CreateConn() 139 if (p_lcb == NULL) { in AVCT_CreateConn() 141 if (p_lcb == NULL) { in AVCT_CreateConn() 143 avct_ccb_dealloc(p_ccb, AVCT_NO_EVT, 0, NULL); in AVCT_CreateConn() 149 avct_ccb_dealloc(p_ccb, AVCT_NO_EVT, 0, NULL); in AVCT_CreateConn() 187 if (p_ccb == NULL) { in AVCT_RemoveConn() 191 else if (p_ccb->p_lcb == NULL) { in AVCT_RemoveConn() 192 avct_ccb_dealloc(p_ccb, AVCT_NO_EVT, 0, NULL); in AVCT_RemoveConn() 230 if (p_ccb == NULL) { in AVCT_CreateBrowse() 243 if ((p_ccb->p_lcb == NULL) || (p_ccb->p_lcb->allocated == 0)) { in AVCT_CreateBrowse() [all …]
|
/system/core/libcutils/ |
D | hashmap.cpp | 45 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 …]
|
/system/core/libstats/pull_lazy/tests/ |
D | libstatspull_lazy_test.cpp | 37 AStatsManager_PullAtomMetadata* metadata = NULL; in TEST_F() 44 EXPECT_DEATH(AStatsManager_PullAtomMetadata_setAdditiveFields(metadata, NULL, 0), kLoadFailed); in TEST_F() 46 EXPECT_DEATH(AStatsManager_PullAtomMetadata_getAdditiveFields(metadata, NULL), kLoadFailed); in TEST_F() 50 AStatsEventList* event_list = NULL; in TEST_F() 55 AStatsManager_PullAtomCallback callback = NULL; in TEST_F() 56 EXPECT_DEATH(AStatsManager_setPullAtomCallback(0, NULL, callback, NULL), kLoadFailed); in TEST_F()
|
/system/bt/main/ |
D | bte_init_cpp_logging.cc | 28 config_get_string(*config, CONFIG_DEFAULT_SECTION, "LoggingV", NULL); in init_cpp_logging() 30 *config, CONFIG_DEFAULT_SECTION, "LoggingVModule", NULL); in init_cpp_logging() 33 const char* argv[] = {"bt_stack", NULL, NULL}; in init_cpp_logging() 35 if (loggingV != NULL) { in init_cpp_logging() 40 if (loggingVModule != NULL) { in init_cpp_logging()
|
/system/media/audio_utils/ |
D | resampler.c | 57 if (rsmp != NULL && rsmp->speex_resampler != NULL) { in resampler_reset() 80 if (rsmp == NULL || out == NULL || outFrameCount == NULL) { in resampler_resample_from_provider() 83 if (rsmp->provider == NULL) { in resampler_resample_from_provider() 111 if (buf.raw == NULL) { in resampler_resample_from_provider() 161 if (rsmp == NULL || in == NULL || inFrameCount == NULL || in resampler_resample_from_input() 162 out == NULL || outFrameCount == NULL) { in resampler_resample_from_input() 165 if (rsmp->provider != NULL) { in resampler_resample_from_input() 203 if (resampler == NULL) { in create_resampler() 207 *resampler = NULL; in create_resampler() 220 if (rsmp->speex_resampler == NULL) { in create_resampler() [all …]
|