242460eac7
This is the second CL on migrating keystore logging to statsd. This migrates the logging for key operation events. Three new ResponseCodes are added for the logging purpose of the abort operations. Test: Adding tests for logging is yet to be decided. Change-Id: Iede72341b0f4c80199c9e16cef96a5d98bca8754 Merged-In: I68c1d89beeb733e4b6ba493b8d95935b7e73df60
28 lines
911 B
C++
28 lines
911 B
C++
/*
|
|
* Copyright (C) 2018 The Android Open Source Project
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/
|
|
|
|
#ifndef KEY_OPERATION_LOG_HANDLER_H_
|
|
#define KEY_OPERATION_LOG_HANDLER_H_
|
|
|
|
#include "operation_struct.h"
|
|
|
|
namespace keystore {
|
|
|
|
void logKeystoreKeyOperationEvent(const Operation& op, bool wasSuccessful, int32_t errorCode);
|
|
|
|
} // namespace keystore
|
|
|
|
#endif // KEY_OPERATION_LOG_HANDLER_H_
|