/system/bt/osi/test/ |
D | fixed_queue_test.cpp | 20 static future_t *received_message_future = NULL; 34 int result = select(FD_SETSIZE, &rfds, NULL, NULL, &tv); in is_fd_readable() 45 EXPECT_TRUE(msg != NULL); in fixed_queue_ready() 56 EXPECT_TRUE(queue != NULL); in TEST_F() 57 fixed_queue_free(queue, NULL); in TEST_F() 61 EXPECT_TRUE(queue != NULL); in TEST_F() 62 fixed_queue_free(queue, NULL); in TEST_F() 66 EXPECT_TRUE(queue != NULL); in TEST_F() 67 fixed_queue_free(queue, NULL); in TEST_F() 71 EXPECT_TRUE(queue != NULL); in TEST_F() [all …]
|
D | hash_map_test.cpp | 46 hash_map_t *hash_map = hash_map_new(5, hash_map_fn00, NULL, NULL, NULL); in TEST_F() 47 ASSERT_TRUE(hash_map != NULL); in TEST_F() 52 hash_map_t *hash_map = hash_map_new(5, hash_map_fn00, NULL, NULL, NULL); in TEST_F() 53 ASSERT_TRUE(hash_map != NULL); in TEST_F() 85 hash_map_t *hash_map = hash_map_new(5, hash_map_fn00, NULL, NULL, NULL); in TEST_F() 86 ASSERT_TRUE(hash_map != NULL); in TEST_F() 116 hash_map_t *hash_map = hash_map_new(5, hash_map_fn00, key_free_fn00, data_free_fn00, NULL); in TEST_F() 117 ASSERT_TRUE(hash_map != NULL); in TEST_F() 145 EXPECT_TRUE(val != NULL); in TEST_F() 171 EXPECT_TRUE(data != NULL); in hash_test_iter_ro_cb() [all …]
|
/system/security/keystore-engine/ |
D | android_engine.cpp | 58 if (key_id != NULL) { in key_id_dup() 81 NULL /* argp */, in KeystoreEngine() 82 NULL /* new_func */, in KeystoreEngine() 86 NULL /* argp */, in KeystoreEngine() 87 NULL /* new_func */, in KeystoreEngine() 143 if (key_id == NULL) { in rsa_private_transform() 152 if (service == NULL) { in rsa_private_transform() 157 uint8_t* reply = NULL; in rsa_private_transform() 200 NULL /* app_data */, 202 NULL /* init */, [all …]
|
D | dsa_meth.cpp | 54 if (key_id == NULL) { in keystore_dsa_do_sign() 63 if (service == NULL) { in keystore_dsa_do_sign() 70 uint8_t* reply = NULL; in keystore_dsa_do_sign() 88 Unique_DSA_SIG dsa_sig(d2i_DSA_SIG(NULL, in keystore_dsa_do_sign() 91 if (dsa_sig.get() == NULL) { in keystore_dsa_do_sign() 104 NULL, /* dsa_sign_setup */ 105 NULL, /* dsa_do_verify */ 106 NULL, /* dsa_mod_exp */ 107 NULL, /* bn_mod_exp */ 108 NULL, /* init */ [all …]
|
D | eng_keystore.cpp | 97 rsa_key_handle = RSA_get_ex_new_index(0, NULL, keyhandle_new, keyhandle_dup, keyhandle_free); in init_key_handle() 98 dsa_key_handle = DSA_get_ex_new_index(0, NULL, keyhandle_new, keyhandle_dup, keyhandle_free); in init_key_handle() 114 if (service == NULL) { in keystore_loadkey() 119 uint8_t *pubkey = NULL; in keystore_loadkey() 125 return NULL; in keystore_loadkey() 129 return NULL; in keystore_loadkey() 133 Unique_EVP_PKEY pkey(d2i_PUBKEY(NULL, &tmp, pubkeyLen)); in keystore_loadkey() 135 if (pkey.get() == NULL) { in keystore_loadkey() 137 return NULL; in keystore_loadkey() 155 return NULL; in keystore_loadkey() [all …]
|
D | rsa_meth.cpp | 50 if (padded.get() == NULL) { in keystore_rsa_priv_enc() 77 if (key_id == NULL) { in keystore_rsa_priv_enc() 86 if (service == NULL) { in keystore_rsa_priv_enc() 91 uint8_t* reply = NULL; in keystore_rsa_priv_enc() 121 if (key_id == NULL) { in keystore_rsa_priv_dec() 130 if (service == NULL) { in keystore_rsa_priv_dec() 137 uint8_t* reply = NULL; in keystore_rsa_priv_dec() 186 NULL, /* rsa_pub_enc (wrap) */ 187 NULL, /* rsa_pub_dec (verification) */ 190 NULL, /* rsa_mod_exp */ [all …]
|
/system/bt/btif/src/ |
D | btif_config.c | 99 if (p_device_type == NULL) in btif_get_device_type() 117 if (p_addr_type == NULL) in btif_get_address_type() 140 pthread_mutex_init(&lock, NULL); in init() 146 const char *file_source = NULL; in init() 170 if (file_source != NULL) in init() 185 const char* time_str = config_get_string(config, INFO_SECTION, FILE_TIMESTAMP, NULL); in init() 186 if (time_str != NULL) { in init() 189 time_t current_time = time(NULL); in init() 214 config_timer = NULL; in init() 215 config = NULL; in init() [all …]
|
D | btif_avrcp_audio_track.cpp | 45 NULL /*callback_t*/, NULL /*void* user*/, 0 /*notificationFrames*/, in BtifAvrcpAudioTrackCreate() 47 assert(track != NULL); in BtifAvrcpAudioTrackCreate() 50 assert(trackHolder != NULL); in BtifAvrcpAudioTrackCreate() 67 assert(handle != NULL); in BtifAvrcpAudioTrackStart() 69 assert(trackHolder != NULL); in BtifAvrcpAudioTrackStart() 70 assert(trackHolder->track != NULL); in BtifAvrcpAudioTrackStart() 77 if (handle == NULL) { in BtifAvrcpAudioTrackStop() 82 if (trackHolder != NULL && trackHolder->track != NULL) { in BtifAvrcpAudioTrackStop() 90 if (handle == NULL) { in BtifAvrcpAudioTrackDelete() 95 if (trackHolder != NULL && trackHolder->track != NULL) { in BtifAvrcpAudioTrackDelete() [all …]
|
/system/core/toolbox/upstream-netbsd/usr.bin/grep/ |
D | grep.c | 172 {"binary-files", required_argument, NULL, BIN_OPT}, 173 {"decompress", no_argument, NULL, DECOMPRESS_OPT}, 174 {"help", no_argument, NULL, HELP_OPT}, 175 {"mmap", no_argument, NULL, MMAP_OPT}, 176 {"line-buffered", no_argument, NULL, LINEBUF_OPT}, 177 {"label", required_argument, NULL, LABEL_OPT}, 178 {"color", optional_argument, NULL, COLOR_OPT}, 179 {"colour", optional_argument, NULL, COLOR_OPT}, 180 {"exclude", required_argument, NULL, R_EXCLUDE_OPT}, 181 {"include", required_argument, NULL, R_INCLUDE_OPT}, [all …]
|
/system/bt/osi/src/ |
D | fixed_queue.c | 47 pthread_mutex_init(&ret->lock, NULL); in fixed_queue_new() 50 ret->list = list_new(NULL); in fixed_queue_new() 65 fixed_queue_free(ret, NULL); in fixed_queue_new() 66 return NULL; in fixed_queue_new() 87 if (queue == NULL) in fixed_queue_is_empty() 98 if (queue == NULL) in fixed_queue_length() 109 assert(queue != NULL); in fixed_queue_capacity() 115 assert(queue != NULL); in fixed_queue_enqueue() 116 assert(data != NULL); in fixed_queue_enqueue() 128 assert(queue != NULL); in fixed_queue_dequeue() [all …]
|
D | list.c | 27 return NULL; in list_new_internal() 47 assert(list != NULL); in list_is_empty() 52 assert(list != NULL); in list_contains() 53 assert(data != NULL); in list_contains() 64 assert(list != NULL); in list_length() 69 assert(list != NULL); in list_front() 76 assert(list != NULL); in list_back() 83 assert(list != NULL); in list_back_node() 90 assert(list != NULL); in list_insert_after() 91 assert(prev_node != NULL); in list_insert_after() [all …]
|
D | hash_map.c | 60 assert(hash_fn != NULL); in hash_map_new_internal() 62 assert(zeroed_allocator != NULL); in hash_map_new_internal() 65 if (hash_map == NULL) in hash_map_new_internal() 66 return NULL; in hash_map_new_internal() 76 if (hash_map->bucket == NULL) { in hash_map_new_internal() 78 return NULL; in hash_map_new_internal() 93 if (hash_map == NULL) in hash_map_free() 101 assert(hash_map != NULL); in hash_map_is_empty() 106 assert(hash_map != NULL); in hash_map_size() 111 assert(hash_map != NULL); in hash_map_num_buckets() [all …]
|
D | config.c | 78 return NULL; in config_new_empty() 82 assert(filename != NULL); in config_new() 86 return NULL; in config_new() 92 return NULL; in config_new() 97 config = NULL; in config_new() 105 assert(src != NULL); in config_new_clone() 109 assert(ret != NULL); in config_new_clone() 137 assert(config != NULL); in config_has_section() 138 assert(section != NULL); in config_has_section() 140 return (section_find(config, section) != NULL); in config_has_section() [all …]
|
D | socket.c | 72 return NULL; in socket_new() 94 assert(socket != NULL); in socket_listen() 114 assert(socket != NULL); in socket_accept() 117 OSI_NO_INTR(fd = accept(socket->fd, NULL, NULL)); in socket_accept() 120 return NULL; in socket_accept() 130 assert(socket != NULL); in socket_read() 131 assert(buf != NULL); in socket_read() 140 assert(socket != NULL); in socket_write() 141 assert(buf != NULL); in socket_write() 150 assert(socket != NULL); in socket_write_and_transfer_fd() [all …]
|
D | alarm.c | 162 return NULL; in alarm_new_internal() 198 return NULL; in alarm_new_internal() 212 assert(alarm != NULL); in alarm_get_remaining_ms() 232 assert(queue != NULL); in alarm_set_on_queue() 240 assert(alarms != NULL); in alarm_set_internal() 241 assert(alarm != NULL); in alarm_set_internal() 242 assert(cb != NULL); in alarm_set_internal() 259 assert(alarms != NULL); in alarm_cancel() 281 alarm->callback = NULL; in alarm_cancel_internal() 282 alarm->data = NULL; in alarm_cancel_internal() [all …]
|
/system/bt/profile/src/ |
D | manager.c | 43 NULL, in init() 44 NULL, in init() 45 NULL); in init() 48 return NULL; in init() 55 profile_map = NULL; in clean_up() 57 return NULL; in clean_up() 63 .start_up = NULL, 64 .shut_down = NULL, 67 NULL 75 assert(profile != NULL); in profile_register() [all …]
|
/system/netd/server/ |
D | NetlinkManager.cpp | 52 NetlinkManager *NetlinkManager::sInstance = NULL; 61 mBroadcaster = NULL; in NetlinkManager() 81 return NULL; in setupSocket() 87 return NULL; in setupSocket() 93 return NULL; in setupSocket() 99 return NULL; in setupSocket() 105 return NULL; in setupSocket() 109 return NULL; in setupSocket() 113 return NULL; in setupSocket() 121 return NULL; in setupSocket() [all …]
|
/system/security/softkeymaster/ |
D | keymaster_openssl.cpp | 106 ERR_remove_thread_state(NULL); in logOpenSSLError() 115 int privateLen = i2d_PrivateKey(pkey, NULL); in wrap_key() 129 if (derData.get() == NULL) { in wrap_key() 168 if (keyBlob == NULL) { in unwrap_key() 170 return NULL; in unwrap_key() 177 return NULL; in unwrap_key() 182 return NULL; in unwrap_key() 195 return NULL; in unwrap_key() 201 return NULL; in unwrap_key() 208 return NULL; in unwrap_key() [all …]
|
/system/bt/btcore/src/ |
D | device_class.c | 60 assert(dc != NULL); in device_class_from_stream() 61 assert(data != NULL); in device_class_from_stream() 66 assert(dc != NULL); in device_class_to_stream() 67 assert(data != NULL); in device_class_to_stream() 76 assert(dc != NULL); in device_class_from_int() 85 assert(dc != NULL); in device_class_to_int() 91 assert(p1 != NULL); in device_class_equals() 92 assert(p2 != NULL); in device_class_equals() 97 assert(dest != NULL); in device_class_copy() 98 assert(src != NULL); in device_class_copy() [all …]
|
/system/media/radio/src/ |
D | radio_metadata.c | 143 return NULL; in get_entry_at_index() 151 return NULL; in get_entry_at_index() 157 return NULL; in get_entry_at_index() 181 if (metadata_buf == NULL) { in radio_metadata_allocate() 205 if (metadata == NULL || *metadata == NULL || type != RADIO_METADATA_TYPE_INT) { in radio_metadata_add_int() 217 if (metadata == NULL || *metadata == NULL || type != RADIO_METADATA_TYPE_TEXT || in radio_metadata_add_text() 218 value == NULL || strlen(value) >= RADIO_METADATA_TEXT_LEN_MAX) { in radio_metadata_add_text() 230 if (metadata == NULL || *metadata == NULL || type != RADIO_METADATA_TYPE_RAW || value == NULL) { in radio_metadata_add_raw() 240 if (metadata == NULL || *metadata == NULL || type != RADIO_METADATA_TYPE_CLOCK || in radio_metadata_add_clock() 241 clock == NULL || clock->timezone_offset_in_minutes < (-12 * 60) || in radio_metadata_add_clock() [all …]
|
/system/bt/stack/btu/ |
D | btu_init.c | 140 if (btu_bta_msg_queue == NULL) in BTU_StartUp() 144 if (btu_general_alarm_queue == NULL) in BTU_StartUp() 148 if (bt_workqueue_thread == NULL) in BTU_StartUp() 154 thread_post(bt_workqueue_thread, btu_task_start_up, NULL); in BTU_StartUp() 163 btu_task_shut_down(NULL); in BTU_ShutDown() 165 fixed_queue_free(btu_bta_msg_queue, NULL); in BTU_ShutDown() 166 btu_bta_msg_queue = NULL; in BTU_ShutDown() 168 fixed_queue_free(btu_general_alarm_queue, NULL); in BTU_ShutDown() 169 btu_general_alarm_queue = NULL; in BTU_ShutDown() 173 bt_workqueue_thread = NULL; in BTU_ShutDown()
|
/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/core/adb/ |
D | usb_windows.cpp | 126 if (NULL != dev_name) { in known_device_locked() 130 if((NULL != usb->interface_name) && in known_device_locked() 143 if (NULL != dev_name) { in known_device() 153 if (NULL == handle) in register_new_device() 220 const HINSTANCE instance = GetModuleHandleW(NULL); in _power_notification_thread() 240 NULL, NULL, instance, NULL)) { in _power_notification_thread() 246 while (GetMessageW(&msg, NULL, 0, 0)) { in _power_notification_thread() 272 if (NULL == ret) { in do_usb_open() 284 if (NULL == ret->adb_interface) { in do_usb_open() 295 if (NULL == ret->adb_read_pipe) { in do_usb_open() [all …]
|
/system/bt/stack/btm/ |
D | btm_ble_adv_filter.c | 264 tBTM_BLE_PF_CFG_CBACK *p_scan_cfg_cback = NULL; in btm_ble_scan_pf_cmpl_cback() 265 tBTM_BLE_PF_PARAM_CBACK *p_filt_param_cback = NULL; in btm_ble_scan_pf_cmpl_cback() 294 if(NULL != btm_ble_adv_filt_cb.p_filt_stat_cback) in btm_ble_scan_pf_cmpl_cback() 324 btm_ble_cs_update_pf_counter(action, cond_type, NULL, num_avail); in btm_ble_scan_pf_cmpl_cback() 348 if(NULL != p_scan_cfg_cback) in btm_ble_scan_pf_cmpl_cback() 352 if(NULL != p_filt_param_cback) in btm_ble_scan_pf_cmpl_cback() 374 if (p_le_bda == NULL) in btm_ble_find_addr_filter_counter() 385 return NULL; in btm_ble_find_addr_filter_counter() 411 return NULL; in btm_ble_alloc_addr_filter_counter() 428 if (BTM_BLE_PF_TYPE_ALL == filter_type && NULL == p_bd_addr) in btm_ble_dealloc_addr_filter_counter() [all …]
|
/system/bt/device/src/classic/ |
D | peer.c | 52 NULL, in init() 56 pthread_mutex_init(&bag_of_peers_lock, NULL); in init() 59 return NULL; in init() 66 peers_by_address = NULL; in clean_up() 69 return NULL; in clean_up() 75 .start_up = NULL, 76 .shut_down = NULL, 79 NULL 87 assert(address != NULL); in classic_peer_by_address() 112 assert(peer != NULL); in classic_peer_get_address()
|