Home
last modified time | relevance | path

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

12345678910>>...16

/system/media/radio/src/
Dradio_metadata.c91 if (metadata == NULL) { in check_size()
154 return NULL; in get_entry_at_index()
162 return NULL; in get_entry_at_index()
173 return NULL; in get_entry_at_index()
198 if (metadata_buf == NULL) { in radio_metadata_allocate()
222 if (metadata == NULL || *metadata == NULL || type != RADIO_METADATA_TYPE_INT) { in radio_metadata_add_int()
234 if (metadata == NULL || *metadata == NULL || type != RADIO_METADATA_TYPE_TEXT || in radio_metadata_add_text()
235 value == NULL || strlen(value) >= RADIO_METADATA_TEXT_LEN_MAX) { in radio_metadata_add_text()
247 if (metadata == NULL || *metadata == NULL || type != RADIO_METADATA_TYPE_RAW || value == NULL) { in radio_metadata_add_raw()
257 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 …]
Dseamendc.c39 char *buff = NULL; in read_binary_policy()
40 sepol_handle_t *handle = NULL; in read_binary_policy()
64 if (buff == NULL) { in read_binary_policy()
90 if (file != NULL && fclose(file) == EOF && rc == SEPOL_OK) { in read_binary_policy()
94 if(handle != NULL) { in read_binary_policy()
108 FILE *file = NULL; in read_cil_files()
109 char *buff = NULL; in read_cil_files()
115 if (file == NULL) { in read_cil_files()
130 if (buff == NULL) { in read_cil_files()
143 file = NULL; in read_cil_files()
[all …]
Dversion_policy.c34 char *buff = NULL; in read_cil_file()
49 if (buff == NULL) { in read_cil_file()
61 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 FILE *output_file = NULL; in main()
93 struct cil_db *base_db = NULL; in main()
94 struct cil_db *out_db = 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()
177 if (target_node == NULL) { in ufdt_get_fixup_location()
184 if (prop_data == NULL) { in ufdt_get_fixup_location()
202 return NULL; in ufdt_get_fixup_location()
221 if (fixup_pos != NULL) { in ufdt_do_one_fixup()
333 *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()
37 res = NULL; in ufdt_node_construct()
43 if (res == NULL) return NULL; in ufdt_node_construct()
45 res->parent.sibling = NULL; in ufdt_node_construct()
46 res->child = NULL; in ufdt_node_construct()
53 if (node == NULL) return; in ufdt_node_destruct()
57 while (it != NULL) { in ufdt_node_destruct()
95 struct ufdt_node **it = NULL; in ufdt_node_get_subnode_by_name_len()
99 return NULL; in ufdt_node_get_subnode_by_name_len()
[all …]
Dufdt_prop_dict.c52 if (prop == NULL) return prop_ptr; in _ufdt_prop_dict_find_index_by_name()
55 if (prop_name != NULL && dto_strcmp(prop_name, name) == 0) return prop_ptr; in _ufdt_prop_dict_find_index_by_name()
59 return NULL; in _ufdt_prop_dict_find_index_by_name()
65 if (name == NULL) return NULL; in _ufdt_prop_dict_find_index()
75 if (props == NULL) return -1; in _ufdt_prop_dict_construct_int()
91 if (dict == NULL) return; in ufdt_prop_dict_destruct()
97 if (dict == NULL) return -1; in _ufdt_prop_dict_enlarge_if_needed()
110 if (prop == NULL) continue; in _ufdt_prop_dict_enlarge_if_needed()
113 if (new_prop_ptr == NULL) { in _ufdt_prop_dict_enlarge_if_needed()
132 if (prop_ptr == NULL) { in ufdt_prop_dict_add()
[all …]
Dufdt_convert.c29 void **fdtps = NULL; in ufdt_construct()
30 struct ufdt *res_ufdt = NULL; in ufdt_construct()
33 if (fdtps == NULL) goto error; in ufdt_construct()
37 if (res_ufdt == NULL) goto error; in ufdt_construct()
41 res_ufdt->num_used_fdtps = (fdtp != NULL ? 1 : 0); in ufdt_construct()
42 res_ufdt->root = NULL; in ufdt_construct()
43 res_ufdt->phandle_table.data = NULL; in ufdt_construct()
52 return NULL; in ufdt_construct()
56 if (tree == NULL) return; in ufdt_destruct()
66 if (fdtp == NULL) { in ufdt_add_fdt()
[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 …]
Dstr_parms.cpp73 if (!s) return NULL; in str_parms_create()
78 return NULL; in str_parms_create()
190 kvpair = strtok_r(NULL, ";", &tmpstr); in str_parms_create_str()
203 return NULL; in str_parms_create_str()
209 void *tmp_key = NULL; in str_parms_add_str()
210 void *tmp_val = NULL; in str_parms_add_str()
211 void *old_val = NULL; in str_parms_add_str()
219 if (tmp_key == NULL) { in str_parms_add_str()
224 if (tmp_val == NULL) { in str_parms_add_str()
229 if (old_val == NULL) { in str_parms_add_str()
[all …]
/system/core/trusty/storage/proxy/
Dproxy.c66 if (file_mapping == NULL) { in parse_and_append_file_mapping()
71 if (file_mapping_dup == NULL) { in parse_and_append_file_mapping()
76 if (file_name == NULL) { in parse_and_append_file_mapping()
80 const char* backing_storage = strtok(NULL, ":"); in parse_and_append_file_mapping()
81 if (backing_storage == NULL) { in parse_and_append_file_mapping()
87 if (new_node == NULL) { in parse_and_append_file_mapping()
100 static const struct option _lopts[] = {{"help", no_argument, NULL, 'h'},
101 {"trusty_dev", required_argument, NULL, 'd'},
102 {"data_path", required_argument, NULL, 'p'},
103 {"rpmb_dev", required_argument, NULL, 'r'},
[all …]
/system/core/mkbootfs/
Dmkbootfs.c35 static struct fs_config_entry* canned_config = NULL;
36 static const char* target_out_path = NULL;
49 struct fs_config_entry* empty_path_config = NULL; in fix_stat()
152 if (d == NULL) err(1, "cannot open directory '%s'", in); in _archive_dir()
157 if (names == NULL) { in _archive_dir()
171 if (names == NULL) { in _archive_dir()
176 if (names[entries] == NULL) { in _archive_dir()
239 _eject(&s, out, olen, NULL, 0); in _archive()
264 if (fp == NULL) err(1, "failed to open canned file '%s'", filename); in read_canned_config()
266 char* line = NULL; in read_canned_config()
[all …]
/system/media/audio_utils/
Dresampler.c53 if (rsmp != NULL) { in resampler_reset()
56 if (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()
[all …]
/system/core/libstats/pull_lazy/tests/
Dlibstatspull_lazy_test.cpp37 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/libufdt/tests/src/
Dufdt_gen_test_dts.c54 { "no-header", no_argument, NULL, 'H' },
55 { "plugin", no_argument, NULL, 'p' },
56 { "depth", required_argument, NULL, 'd' },
57 { "unused", required_argument, NULL, 'u' },
58 { "node", required_argument, NULL, 'n' },
59 { "append", required_argument, NULL, 'a' },
60 { "override", required_argument, NULL, 'w' },
61 { "output", required_argument, NULL, 'o' },
62 { 0, 0, NULL, 0 }
154 const char *filename = NULL; in main()
[all …]
/system/extras/ioshark/
Dcompile_ioshark.c91 struct in_mem_file_op *in_mem_file_op_head = NULL, *in_mem_file_op_tail = NULL;
129 if (s == NULL) { in get_tracetype()
154 if (s2 == NULL) { in get_tracetype()
182 if (s == NULL) { in get_pathname()
188 if (s2 == NULL) { in get_pathname()
198 if (s == NULL) { in get_pathname()
208 if (s2 == NULL) { in get_pathname()
226 if (s == NULL) { in get_syscall()
233 if (s2 == NULL) { in get_syscall()
251 if (s == NULL) { in get_mmap_offset_len_prot()
[all …]
/system/libufdt/utils/src/
Dmkdtimg.c44 { NULL, NULL, NULL }
49 for (info = command_infos; info->command != NULL; info++) { in search_command()
54 if (info->command == NULL) { in search_command()
56 return NULL; in search_command()
63 for (info = command_infos; info->command != NULL; info++) { in print_all_commands()
79 for (info = command_infos; info->command != NULL; info++) { in output_all_usage()
106 if (info == NULL) { in handle_command_help()
124 if (info == NULL) { in main()
Dmkdtimg_dump.c34 static struct option options[] = {{"output", required_argument, NULL, 'o'},
35 {"dtb", required_argument, NULL, 'b'},
36 {0, 0, NULL, 0}};
40 void *fdt = NULL; in read_fdt_from_image()
43 if (fdt == NULL) { in read_fdt_from_image()
45 return NULL; in read_fdt_from_image()
53 return NULL; in read_fdt_from_image()
62 FILE *out_fp = NULL; in write_fdt_to_file()
85 if (fdt == NULL) { in free_fdt()
147 (const char *)fdt_getprop(fdt, root_node_off, "compatible", NULL); in output_fdt_info()
[all …]
Dmkdtimg_cfg_create.c36 { "dtb-dir", required_argument, NULL, 'd' },
37 { 0, 0, NULL, 0 }
64 while (fgets(line, sizeof(line), cfg_fp) != NULL) { in parse_config_entry_count()
81 while (fgets(line, sizeof(line), cfg_fp) != NULL) { in output_img_with_config()
122 FILE *cfg_fp = NULL; in process_command_cfg_create()
123 FILE *img_fp = NULL; in process_command_cfg_create()
126 if (cfg_fp == NULL) { in process_command_cfg_create()
134 if (img_fp == NULL) { in process_command_cfg_create()
139 if (params->dtb_dir != NULL) { in process_command_cfg_create()
182 int c = getopt_long(argc, argv, short_options, options, NULL); in handle_command_cfg_create()
/system/nfc/src/nfa/rw/
Dnfa_rw_main.cc99 if (p_t1t->p_cur_cmd_buf != NULL) { in nfa_rw_sys_disable()
101 p_t1t->p_cur_cmd_buf = NULL; in nfa_rw_sys_disable()
106 if (p_t2t->p_cur_cmd_buf != NULL) { in nfa_rw_sys_disable()
108 p_t2t->p_cur_cmd_buf = NULL; in nfa_rw_sys_disable()
110 if (p_t2t->p_sec_cmd_buf != NULL) { in nfa_rw_sys_disable()
112 p_t2t->p_sec_cmd_buf = NULL; in nfa_rw_sys_disable()
117 if (p_t3t->p_cur_cmd_buf != NULL) { in nfa_rw_sys_disable()
119 p_t3t->p_cur_cmd_buf = NULL; in nfa_rw_sys_disable()
126 if (p_i93->p_retry_cmd != NULL) { in nfa_rw_sys_disable()
128 p_i93->p_retry_cmd = NULL; in nfa_rw_sys_disable()
[all …]
/system/media/camera/src/
Dcamera_metadata.c227 if (src == NULL) { in allocate_copy_camera_metadata_checked()
228 return NULL; in allocate_copy_camera_metadata_checked()
234 return NULL; in allocate_copy_camera_metadata_checked()
243 return NULL; in allocate_copy_camera_metadata_checked()
270 if (dst == NULL) return NULL; in place_camera_metadata()
277 return NULL; in place_camera_metadata()
295 assert(validate_camera_metadata_structure(metadata, NULL) == OK); in place_camera_metadata()
317 if (metadata == NULL) return ERROR; in get_camera_metadata_size()
323 if (metadata == NULL) return ERROR; in get_camera_metadata_compact_size()
349 if (dst == NULL) return NULL; in copy_camera_metadata()
[all …]
/system/memory/libion/tests/
Dmap_test.cpp40 ptr = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, map_fd, 0); in TEST_F()
41 ASSERT_TRUE(ptr != NULL); in TEST_F()
61 ptr = (unsigned char*)mmap(NULL, getpagesize() * 2, PROT_READ | PROT_WRITE, MAP_SHARED, in TEST_F()
63 ASSERT_TRUE(ptr != NULL); in TEST_F()
70 ptr = (unsigned char*)mmap(NULL, getpagesize(), PROT_READ | PROT_WRITE, MAP_SHARED, map_fd, in TEST_F()
72 ASSERT_TRUE(ptr != NULL); in TEST_F()
94 ptr = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, map_fd, 0); in TEST_F()
95 ASSERT_TRUE(ptr != NULL); in TEST_F()
119 ptr = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, map_fd, 0); in TEST_F()
120 ASSERT_TRUE(ptr != NULL); in TEST_F()
/system/core/libstats/socket_lazy/tests/
Dlibstatssocket_lazy_test.cpp39 AStatsEvent* event = NULL; in TEST_F()
50 EXPECT_DEATH(AStatsEvent_writeByteArray(event, NULL, 0), kLoadFailed); in TEST_F()
51 EXPECT_DEATH(AStatsEvent_writeString(event, NULL), kLoadFailed); in TEST_F()
52 EXPECT_DEATH(AStatsEvent_writeStringArray(event, NULL, 0), kLoadFailed); in TEST_F()
53 EXPECT_DEATH(AStatsEvent_writeAttributionChain(event, NULL, NULL, 0), kLoadFailed); in TEST_F()

12345678910>>...16