Home
last modified time | relevance | path

Searched refs:logger (Results 1 – 17 of 17) sorted by relevance

/system/core/liblog/
Dlog_read_kern.c50 #define logger_for_each(logger, logger_list) \ argument
51 for (logger = node_to_item((logger_list)->node.next, struct logger, node); \
52 logger != node_to_item(&(logger_list)->node, struct logger, node); \
53 logger = node_to_item((logger)->node.next, struct logger, node))
153 struct logger { struct
164 static void android_logger_free(struct logger *logger) in android_logger_free() argument
166 if (!logger) { in android_logger_free()
170 while (!list_empty(&logger->log_list)) { in android_logger_free()
172 list_head(&logger->log_list), struct log_list, node); in android_logger_free()
175 if (logger->top->queued_lines) { in android_logger_free()
[all …]
Dlog_read.c192 #define logger_for_each(logger, logger_list) \ argument
193 for (logger = node_to_item((logger_list)->node.next, struct logger, node); \
194 logger != node_to_item(&(logger_list)->node, struct logger, node); \
195 logger = node_to_item((logger)->node.next, struct logger, node))
247 struct logger { struct
255 static void android_logger_free(struct logger *logger) in android_logger_free() argument
257 if (!logger) { in android_logger_free()
261 list_remove(&logger->node); in android_logger_free()
263 free(logger); in android_logger_free()
269 log_id_t android_logger_get_id(struct logger *logger) in android_logger_get_id() argument
[all …]
DREADME6 liblog - Android NDK logger interfaces
61 #include <log/logger.h>
63 log_id_t android_logger_get_id(struct logger *logger)
64 int android_logger_clear(struct logger *logger)
65 int android_logger_get_log_size(struct logger *logger)
66 int android_logger_get_log_readable_size(struct logger *logger)
67 int android_logger_get_log_version(struct logger *logger)
71 struct logger *android_logger_open(struct logger_list *logger_list,
/system/keymaster/
Dkey.cpp32 Key::Key(const KeyBlob& blob, const Logger& logger) : logger_(logger) { in Key() argument
38 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()
53 Key* Key::GenerateKey(const AuthorizationSet& key_description, const Logger& logger, in GenerateKey() argument
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()
76 const uint8_t* key_data, size_t key_data_length, const Logger& logger, in ImportKey() argument
[all …]
Dasymmetric_key.h32 AsymmetricKey(const KeyBlob& blob, const Logger& logger) : Key(blob, logger) {} in AsymmetricKey() argument
50 AsymmetricKey(const AuthorizationSet& auths, const Logger& logger) : Key(auths, logger) {} in AsymmetricKey() argument
62 static RsaKey* GenerateKey(const AuthorizationSet& key_description, const Logger& logger,
65 const Logger& logger, keymaster_error_t* error);
66 RsaKey(const KeyBlob& blob, const Logger& logger, keymaster_error_t* error);
72 RsaKey(RSA* rsa_key, const AuthorizationSet& auths, const Logger& logger) in RsaKey() argument
73 : AsymmetricKey(auths, logger), rsa_key_(rsa_key) {} in RsaKey()
88 static DsaKey* GenerateKey(const AuthorizationSet& key_description, const Logger& logger,
91 const Logger& logger, keymaster_error_t* error);
92 DsaKey(const KeyBlob& blob, const Logger& logger, keymaster_error_t* error);
[all …]
Dkey.h31 static Key* CreateKey(const KeyBlob& blob, const Logger& logger, keymaster_error_t* error);
32 static Key* GenerateKey(const AuthorizationSet& key_description, const Logger& logger,
36 size_t key_data_length, const Logger& logger, keymaster_error_t* error);
56 Key(const KeyBlob& blob, const Logger& logger);
57 Key(const AuthorizationSet& authorizations, const Logger& logger) in Key() argument
58 : logger_(logger), authorizations_(authorizations) {} in Key()
Drsa_operation.h30 RsaOperation(keymaster_purpose_t purpose, const Logger& logger, keymaster_digest_t digest, in RsaOperation() argument
32 : Operation(purpose, logger), rsa_key_(key), digest_(digest), padding_(padding) {} in RsaOperation()
50 RsaSignOperation(keymaster_purpose_t purpose, const Logger& logger, keymaster_digest_t digest, in RsaSignOperation() argument
52 : RsaOperation(purpose, logger, digest, padding, key) {} in RsaSignOperation()
58 RsaVerifyOperation(keymaster_purpose_t purpose, const Logger& logger, keymaster_digest_t digest, in RsaVerifyOperation() argument
60 : RsaOperation(purpose, logger, digest, padding, key) {} in RsaVerifyOperation()
Decdsa_operation.h32 EcdsaOperation(keymaster_purpose_t purpose, const Logger& logger, keymaster_digest_t digest, in EcdsaOperation() argument
34 : Operation(purpose, logger), ecdsa_key_(key), digest_(digest), padding_(padding) {} in EcdsaOperation()
52 EcdsaSignOperation(keymaster_purpose_t purpose, const Logger& logger, keymaster_digest_t digest, in EcdsaSignOperation() argument
54 : EcdsaOperation(purpose, logger, digest, padding, key) {} in EcdsaSignOperation()
60 EcdsaVerifyOperation(keymaster_purpose_t purpose, const Logger& logger, in EcdsaVerifyOperation() argument
62 : EcdsaOperation(purpose, logger, digest, padding, key) {} in EcdsaVerifyOperation()
Ddsa_operation.h32 DsaOperation(keymaster_purpose_t purpose, const Logger& logger, keymaster_digest_t digest, in DsaOperation() argument
34 : Operation(purpose, logger), dsa_key_(key), digest_(digest), padding_(padding) {} in DsaOperation()
52 DsaSignOperation(keymaster_purpose_t purpose, const Logger& logger, keymaster_digest_t digest, in DsaSignOperation() argument
54 : DsaOperation(purpose, logger, digest, padding, key) {} in DsaSignOperation()
60 DsaVerifyOperation(keymaster_purpose_t purpose, const Logger& logger, keymaster_digest_t digest, in DsaVerifyOperation() argument
62 : DsaOperation(purpose, logger, digest, padding, key) {} in DsaVerifyOperation()
Doperation.h35 Operation(keymaster_purpose_t purpose, const Logger& logger) in Operation() argument
36 : purpose_(purpose), logger_(logger) {} in Operation()
41 const Logger& logger() { return logger_; } in logger() function
Dasymmetric_key.cpp125 RsaKey* RsaKey::GenerateKey(const AuthorizationSet& key_description, const Logger& logger, in GenerateKey() argument
154 RsaKey* new_key = new RsaKey(rsa_key.release(), authorizations, logger); in GenerateKey()
161 const Logger& logger, keymaster_error_t* error) { in ImportKey() argument
218 return new RsaKey(rsa_key.release(), authorizations, logger); in ImportKey()
221 RsaKey::RsaKey(const KeyBlob& blob, const Logger& logger, keymaster_error_t* error) in RsaKey() argument
222 : AsymmetricKey(blob, logger) { in RsaKey()
270 DsaKey* DsaKey::GenerateKey(const AuthorizationSet& key_description, const Logger& logger, in GenerateKey() argument
301 logger.info("DSA parameters unspecified, generating them for key size %d", key_size); in GenerateKey()
305 logger.severe("DSA parameter generation failed."); in GenerateKey()
313 logger.severe("Some DSA parameters provided. Provide all or none"); in GenerateKey()
[all …]
Dgoogle_softkeymaster.h26 GoogleSoftKeymaster(size_t operation_table_size, Logger* logger) in GoogleSoftKeymaster() argument
27 : GoogleKeymaster(operation_table_size, logger) { in GoogleSoftKeymaster()
Dgoogle_keymaster.cpp37 GoogleKeymaster::GoogleKeymaster(size_t operation_table_size, Logger* logger) in GoogleKeymaster() argument
39 operation_table_size_(operation_table_size), logger_(logger) { in GoogleKeymaster()
166 UniquePtr<Key> key(Key::GenerateKey(request.key_description, logger(), &response->error)); in GenerateKey()
291 request.key_data_length, logger(), &response->error)); in ImportKey()
348 return Key::CreateKey(*blob, logger(), error); in LoadKey()
/system/core/include/log/
Dlogger.h138 struct logger;
140 log_id_t android_logger_get_id(struct logger *logger);
142 int android_logger_clear(struct logger *logger);
143 long android_logger_get_log_size(struct logger *logger);
144 int android_logger_set_log_size(struct logger *logger, unsigned long size);
145 long android_logger_get_log_readable_size(struct logger *logger);
146 int android_logger_get_log_version(struct logger *logger);
169 struct logger *android_logger_open(struct logger_list *logger_list,
/system/core/logcat/
Dlogcat.cpp37 struct logger *logger; member
705 dev->logger = android_logger_open(logger_list, in main()
707 if (!dev->logger) { in main()
714 ret = android_logger_clear(dev->logger); in main()
721 if (setLogSize && android_logger_set_log_size(dev->logger, setLogSize)) { in main()
729 size = android_logger_get_log_size(dev->logger); in main()
735 readable = android_logger_get_log_readable_size(dev->logger); in main()
/system/core/liblog/tests/
Dliblog_test.cpp606 struct logger * logger; in TEST() local
607 EXPECT_TRUE(NULL != (logger = android_logger_open(logger_list, id))); in TEST()
608 EXPECT_EQ(id, android_logger_get_id(logger)); in TEST()
609 EXPECT_LT(0, android_logger_get_log_size(logger)); in TEST()
610 EXPECT_LT(0, android_logger_get_log_readable_size(logger)); in TEST()
611 EXPECT_LT(0, android_logger_get_log_version(logger)); in TEST()
/system/keymaster/include/keymaster/
Dgoogle_keymaster.h47 GoogleKeymaster(size_t operation_table_size, Logger* logger);
80 const Logger& logger() const { return *logger_; } in logger() function