mirror of
https://github.com/chararomandroid/android_device_samsung_a20
synced 2026-08-23 04:25:33 -04:00
universal7885: format code using clang-format-15
This commit is contained in:
parent
bfcbd0d355
commit
cb072badd5
55 changed files with 3946 additions and 3783 deletions
|
|
@ -32,27 +32,27 @@ using android::OK;
|
|||
using android::status_t;
|
||||
|
||||
namespace skeymaster {
|
||||
IKeymasterDevice* CreateSKeymasterDevice(SecurityLevel securityLevel);
|
||||
} // namespace skeymaster
|
||||
IKeymasterDevice *CreateSKeymasterDevice(SecurityLevel securityLevel);
|
||||
} // namespace skeymaster
|
||||
|
||||
int main() {
|
||||
IKeymasterDevice* keymaster =
|
||||
skeymaster::CreateSKeymasterDevice(SecurityLevel::TRUSTED_ENVIRONMENT);
|
||||
IKeymasterDevice *keymaster =
|
||||
skeymaster::CreateSKeymasterDevice(SecurityLevel::TRUSTED_ENVIRONMENT);
|
||||
|
||||
configureRpcThreadpool(1, true);
|
||||
configureRpcThreadpool(1, true);
|
||||
|
||||
status_t status = keymaster->registerAsService();
|
||||
status_t status = keymaster->registerAsService();
|
||||
|
||||
if (status != OK) {
|
||||
LOG(ERROR) << "Could not register service for Keymaster HAL";
|
||||
goto shutdown;
|
||||
}
|
||||
if (status != OK) {
|
||||
LOG(ERROR) << "Could not register service for Keymaster HAL";
|
||||
goto shutdown;
|
||||
}
|
||||
|
||||
LOG(INFO) << "Keymaster HAL service is Ready.";
|
||||
joinRpcThreadpool();
|
||||
LOG(INFO) << "Keymaster HAL service is Ready.";
|
||||
joinRpcThreadpool();
|
||||
|
||||
shutdown:
|
||||
// In normal operation, we don't expect the thread pool to shutdown
|
||||
LOG(ERROR) << "Keymaster HAL failed to join thread pool.";
|
||||
return -1;
|
||||
// In normal operation, we don't expect the thread pool to shutdown
|
||||
LOG(ERROR) << "Keymaster HAL failed to join thread pool.";
|
||||
return -1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue