Home
last modified time | relevance | path

Searched refs:error (Results 1 – 25 of 101) sorted by relevance

12345

/system/extras/tests/bionic/libstdc++/
Dtest_cctype.cpp31 #error "Wrong header file included!!"
42 #error "should be a real function"
45 #error "should be a real function"
48 #error "should be a real function"
51 #error "should be a real function"
54 #error "should be a real function"
57 #error "should be a real function"
60 #error "should be a real function"
63 #error "should be a real function"
66 #error "should be a real function"
[all …]
Dtest_cstdio.cpp31 #error "Wrong header file included!!"
43 #error "BUFSIZ must be a macro"
47 #error "EOF must be a macro"
51 #error "FILENAME_MAX must be a macro"
55 #error "FOPEN_MAX must be a macro"
59 #error "L_tmpnam must be a macro"
63 #error "NULL must be a macro"
67 #error "SEEK_CUR must be a macro"
71 #error "SEEK_END must be a macro"
74 #error "SEEK_SET must be a macro"
[all …]
Dtest_ctime.cpp31 #error "Wrong header file included!!"
44 #error "CLOCKS_PER_SEC must be a macro"
48 #error "should be a real function"
51 #error "should be a real function"
54 #error "should be a real function"
57 #error "should be a real function"
60 #error "should be a real function"
63 #error "should be a real function"
66 #error "should be a real function"
69 #error "should be a real function"
[all …]
Dtest_csignal.cpp31 #error "Wrong header file included!!"
43 #error "raise must not be a macro"
47 #error "SIGABRT must be a macro"
51 #error "SIGILL must be a macro"
Dtest_csetjmp.cpp31 #error "Wrong header file included!!"
44 #error "longjmp must not be a macro"
48 #error "setjmp must be a macro"
/system/keymaster/
Dkey.cpp38 Key* Key::CreateKey(const KeyBlob& blob, const Logger& logger, keymaster_error_t* error) { in CreateKey() argument
41 return new RsaKey(blob, logger, error); in CreateKey()
43 return new DsaKey(blob, logger, error); in CreateKey()
45 return new EcdsaKey(blob, logger, error); in CreateKey()
47 *error = KM_ERROR_UNSUPPORTED_ALGORITHM; in CreateKey()
54 keymaster_error_t* error) { in GenerateKey() argument
57 *error = KM_ERROR_UNSUPPORTED_ALGORITHM; in GenerateKey()
63 return RsaKey::GenerateKey(key_description, logger, error); in GenerateKey()
65 return DsaKey::GenerateKey(key_description, logger, error); in GenerateKey()
67 return EcdsaKey::GenerateKey(key_description, logger, error); in GenerateKey()
[all …]
Dasymmetric_key.cpp108 Operation* AsymmetricKey::CreateOperation(keymaster_purpose_t purpose, keymaster_error_t* error) { in CreateOperation() argument
111 *error = KM_ERROR_UNSUPPORTED_DIGEST; in CreateOperation()
117 *error = KM_ERROR_UNSUPPORTED_PADDING_MODE; in CreateOperation()
121 return CreateOperation(purpose, digest, padding, error); in CreateOperation()
126 keymaster_error_t* error) { in GenerateKey() argument
127 if (!error) in GenerateKey()
144 *error = KM_ERROR_MEMORY_ALLOCATION_FAILED; in GenerateKey()
150 *error = KM_ERROR_UNKNOWN_ERROR; in GenerateKey()
155 *error = new_key ? KM_ERROR_OK : KM_ERROR_MEMORY_ALLOCATION_FAILED; in GenerateKey()
161 const Logger& logger, keymaster_error_t* error) { in ImportKey() argument
[all …]
Dgoogle_keymaster.cpp61 response->error = KM_ERROR_UNSUPPORTED_ALGORITHM; in check_supported()
79 response->error = KM_ERROR_OK; in SupportedBlockModes()
89 response->error = KM_ERROR_OK; in SupportedPaddingModes()
108 response->error = KM_ERROR_OK; in SupportedDigests()
128 response->error = KM_ERROR_OK; in SupportedImportFormats()
148 response->error = KM_ERROR_OK; in SupportedExportFormats()
166 UniquePtr<Key> key(Key::GenerateKey(request.key_description, logger(), &response->error)); in GenerateKey()
167 if (response->error != KM_ERROR_OK) in GenerateKey()
170 response->error = SerializeKey(key.get(), origin(), &response->key_blob, &response->enforced, in GenerateKey()
178 response->error = KM_ERROR_UNKNOWN_ERROR; in GetKeyCharacteristics()
[all …]
Dasymmetric_key.h47 virtual Operation* CreateOperation(keymaster_purpose_t purpose, keymaster_error_t* error);
57 keymaster_padding_t padding, keymaster_error_t* error) = 0;
63 keymaster_error_t* error);
65 const Logger& logger, keymaster_error_t* error);
66 RsaKey(const KeyBlob& blob, const Logger& logger, keymaster_error_t* error);
69 keymaster_padding_t padding, keymaster_error_t* error);
89 keymaster_error_t* error);
91 const Logger& logger, keymaster_error_t* error);
92 DsaKey(const KeyBlob& blob, const Logger& logger, keymaster_error_t* error);
95 keymaster_padding_t padding, keymaster_error_t* error);
[all …]
Dgoogle_keymaster_test.cpp61 EXPECT_EQ(KM_ERROR_OK, response.error); in TEST_F()
74 EXPECT_EQ(KM_ERROR_OK, response.error); in TEST_F()
78 EXPECT_EQ(KM_ERROR_OK, response.error); in TEST_F()
82 EXPECT_EQ(KM_ERROR_OK, response.error); in TEST_F()
86 EXPECT_EQ(KM_ERROR_UNSUPPORTED_ALGORITHM, response.error); in TEST_F()
95 EXPECT_EQ(KM_ERROR_OK, response.error); in TEST_F()
100 EXPECT_EQ(KM_ERROR_OK, response.error); in TEST_F()
105 EXPECT_EQ(KM_ERROR_OK, response.error); in TEST_F()
110 EXPECT_EQ(KM_ERROR_UNSUPPORTED_ALGORITHM, response.error); in TEST_F()
119 EXPECT_EQ(KM_ERROR_OK, response.error); in TEST_F()
[all …]
Dgoogle_keymaster_messages_test.cpp72 msg.error = KM_ERROR_OK; in TEST()
79 msg.error = KM_ERROR_MEMORY_ALLOCATION_FAILED; in TEST()
87 rsp.error = KM_ERROR_OK; in TEST()
99 rsp.error = KM_ERROR_OK; in TEST()
124 rsp.error = KM_ERROR_OK; in TEST()
130 EXPECT_EQ(KM_ERROR_OK, deserialized->error); in TEST()
137 rsp.error = KM_ERROR_UNSUPPORTED_ALGORITHM; in TEST()
143 EXPECT_EQ(KM_ERROR_UNSUPPORTED_ALGORITHM, deserialized->error); in TEST()
162 msg.error = KM_ERROR_OK; in TEST()
186 msg.error = KM_ERROR_OK; in TEST()
[all …]
Dkey.h31 static Key* CreateKey(const KeyBlob& blob, const Logger& logger, keymaster_error_t* error);
33 keymaster_error_t* error);
36 size_t key_data_length, const Logger& logger, keymaster_error_t* error);
39 virtual Operation* CreateOperation(keymaster_purpose_t purpose, keymaster_error_t* error) = 0;
/system/extras/libpagemap/
Dpm_process.c36 int error; in pm_process_create() local
48 error = snprintf(filename, MAX_FILENAME, "/proc/%d/pagemap", pid); in pm_process_create()
49 if (error < 0 || error >= MAX_FILENAME) { in pm_process_create()
50 error = (error < 0) ? (errno) : (-1); in pm_process_create()
52 return error; in pm_process_create()
57 error = errno; in pm_process_create()
59 return error; in pm_process_create()
62 error = read_maps(proc); in pm_process_create()
63 if (error) { in pm_process_create()
65 return error; in pm_process_create()
[all …]
Dpm_map.c36 int error; in pm_map_usage_flags() local
41 error = pm_map_pagemap(map, &pagemap, &len); in pm_map_usage_flags()
42 if (error) return error; in pm_map_usage_flags()
55 error = pm_kernel_flags(map->proc->ker, PM_PAGEMAP_PFN(pagemap[i]), in pm_map_usage_flags()
57 if (error) goto out; in pm_map_usage_flags()
63 error = pm_kernel_count(map->proc->ker, PM_PAGEMAP_PFN(pagemap[i]), in pm_map_usage_flags()
65 if (error) goto out; in pm_map_usage_flags()
77 error = 0; in pm_map_usage_flags()
82 return error; in pm_map_usage_flags()
94 int error; in pm_map_workingset() local
[all …]
Dpm_kernel.c30 int error; in pm_kernel_create() local
41 error = errno; in pm_kernel_create()
43 return error; in pm_kernel_create()
48 error = errno; in pm_kernel_create()
51 return error; in pm_kernel_create()
67 int error; in pm_kernel_pids() local
87 error = errno; in pm_kernel_pids()
90 return error; in pm_kernel_pids()
105 error = errno; in pm_kernel_pids()
107 return error; in pm_kernel_pids()
/system/extras/tests/sdcard/
Dsysutil.cpp96 bool error = false; in readStringFromFile() local
101 while (size > 0 && !error && !eof && attempts < kMaxAttempts) in readStringFromFile()
109 error = EAGAIN != errno && EINTR != errno; in readStringFromFile()
110 if (error) in readStringFromFile()
129 if (error) in readStringFromFile()
162 bool error = false; in writeStringToFile() local
165 while (size > 0 && !error && attempts < kMaxAttempts) in writeStringToFile()
171 error = EAGAIN != errno && EINTR != errno; in writeStringToFile()
172 if (error) in writeStringToFile()
186 if (error) in writeStringToFile()
[all …]
/system/core/fastbootd/
Dsecure.c63 goto error; in cert_store_from_path()
67 goto error; in cert_store_from_path()
73 goto error; in cert_store_from_path()
76 goto error; in cert_store_from_path()
82 goto error; in cert_store_from_path()
85 goto error; in cert_store_from_path()
90 goto error; in cert_store_from_path()
95 error: in cert_store_from_path()
108 goto error; in cert_read()
127 error: in cert_read()
Dsocket_client.c73 goto error; in run_socket_client()
77 goto error; in run_socket_client()
83 goto error; in run_socket_client()
87 goto error; in run_socket_client()
92 error: in run_socket_client()
/system/extras/procmem/
Dprocmem.c75 int error; in main() local
102 error = pm_kernel_create(&ker); in main()
103 if (error) { in main()
111 error = pm_process_create(ker, pid, &proc); in main()
112 if (error) { in main()
119 error = pm_process_workingset(proc, NULL, 1); in main()
120 if (error) { in main()
128 error = pm_process_maps(proc, &maps, &num_maps); in main()
129 if (error) { in main()
169 error = pm_map_workingset(mi->map, &mi->usage); in main()
[all …]
/system/core/libcutils/
Dsocket_local_client.c60 goto error; in socket_make_sockaddr_un()
77 goto error; in socket_make_sockaddr_un()
90 goto error; in socket_make_sockaddr_un()
102 goto error; in socket_make_sockaddr_un()
115 error: in socket_make_sockaddr_un()
136 goto error; in socket_local_client_connect()
140 goto error; in socket_local_client_connect()
145 error: in socket_local_client_connect()
Dsocket_network_client.c50 int flags = 0, error = 0, ret = 0; in socket_network_client_timeout() local
52 socklen_t len = sizeof(error); in socket_network_client_timeout()
104 if (getsockopt(s, SOL_SOCKET, SO_ERROR, &error, &len) < 0) { in socket_network_client_timeout()
113 if (error) { // check if we had a socket error in socket_network_client_timeout()
114 errno = error; in socket_network_client_timeout()
/system/extras/ext4_utils/
Dindirect.c58 error("failed to reserve oob block"); in reserve_indirect_block()
63 error("failed to advance %d blocks", len); in reserve_indirect_block()
71 error("failed to reserve oob block"); in reserve_dindirect_block()
88 error("failed to reserve oob block"); in reserve_tindirect_block()
117 error("failed to reserve oob block"); in fill_dindirect_block()
131 error("failed to advance %d blocks", ind_block_len); in fill_dindirect_block()
147 error("failed to reserve oob block"); in fill_tindirect_block()
177 error("failed to advance %d blocks", len); in inode_attach_direct_blocks()
198 error("failed to advance oob block"); in inode_attach_indirect_blocks()
209 error("failed to advance %d blocks", len); in inode_attach_indirect_blocks()
[all …]
/system/netd/client/
DNetdClient.cpp44 int closeFdAndSetErrno(int fd, int error) { in closeFdAndSetErrno() argument
46 errno = -error; in closeFdAndSetErrno()
66 if (int error = FwmarkClient().send(&command, sizeof(command), acceptedSocket)) { in netdClientAccept4() local
67 return closeFdAndSetErrno(acceptedSocket, error); in netdClientAccept4()
76 if (int error = FwmarkClient().send(&command, sizeof(command), sockfd)) { in netdClientConnect() local
77 errno = -error; in netdClientConnect()
91 if (int error = setNetworkForSocket(netId, socketFd)) { in netdClientSocket() local
92 return closeFdAndSetErrno(socketFd, error); in netdClientSocket()
126 int error = setNetworkForSocket(netId, socketFd); in setNetworkForTarget() local
127 if (!error) { in setNetworkForTarget()
[all …]
/system/core/toolbox/upstream-netbsd/usr.bin/grep/
Dfile.c149 goto error; in grep_fgetln()
172 goto error; in grep_fgetln()
176 goto error; in grep_fgetln()
187 goto error; in grep_fgetln()
196 error: in grep_fgetln()
208 goto error; in grep_file_init()
212 goto error; in grep_file_init()
217 goto error; in grep_file_init()
225 error: in grep_file_init()
/system/core/toolbox/
Dvmstat.c138 int error; in read_state() local
140 error = read_meminfo(s); in read_state()
141 if (error) { in read_state()
142 fprintf(stderr, "vmstat: could not read /proc/meminfo: %s\n", strerror(error)); in read_state()
146 error = read_stat(s); in read_state()
147 if (error) { in read_state()
148 fprintf(stderr, "vmstat: could not read /proc/stat: %s\n", strerror(error)); in read_state()
152 error = read_vmstat(s); in read_state()
153 if (error) { in read_state()
154 fprintf(stderr, "vmstat: could not read /proc/vmstat: %s\n", strerror(error)); in read_state()

12345