otautil: Rename dir/sys/thermal utils.
Test: mmma -j bootable/recovery Change-Id: I32ab98549e91f993364306e4a88dc654221b3869
This commit is contained in:
parent
13446c032b
commit
17054c051a
16 changed files with 20 additions and 20 deletions
|
@ -49,10 +49,10 @@
|
|||
#include <ziparchive/zip_archive.h>
|
||||
|
||||
#include "common.h"
|
||||
#include "otautil/SysUtil.h"
|
||||
#include "otautil/ThermalUtil.h"
|
||||
#include "otautil/error_code.h"
|
||||
#include "otautil/paths.h"
|
||||
#include "otautil/sysutil.h"
|
||||
#include "otautil/thermalutil.h"
|
||||
#include "private/install.h"
|
||||
#include "roots.h"
|
||||
#include "ui.h"
|
||||
|
|
|
@ -40,10 +40,10 @@ cc_library_static {
|
|||
target: {
|
||||
android: {
|
||||
srcs: [
|
||||
"DirUtil.cpp",
|
||||
"SysUtil.cpp",
|
||||
"ThermalUtil.cpp",
|
||||
"dirutil.cpp",
|
||||
"mounts.cpp",
|
||||
"sysutil.cpp",
|
||||
"thermalutil.cpp",
|
||||
],
|
||||
|
||||
static_libs: [
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include "otautil/DirUtil.h"
|
||||
#include "otautil/dirutil.h"
|
||||
|
||||
#include <dirent.h>
|
||||
#include <errno.h>
|
|
@ -14,7 +14,7 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include "otautil/SysUtil.h"
|
||||
#include "otautil/sysutil.h"
|
||||
|
||||
#include <errno.h> // TEMP_FAILURE_RETRY
|
||||
#include <fcntl.h>
|
|
@ -14,7 +14,7 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include "otautil/ThermalUtil.h"
|
||||
#include "otautil/thermalutil.h"
|
||||
|
||||
#include <dirent.h>
|
||||
#include <stdio.h>
|
|
@ -67,7 +67,7 @@
|
|||
#include "fuse_sideload.h"
|
||||
#include "install.h"
|
||||
#include "minui/minui.h"
|
||||
#include "otautil/DirUtil.h"
|
||||
#include "otautil/dirutil.h"
|
||||
#include "otautil/error_code.h"
|
||||
#include "otautil/paths.h"
|
||||
#include "roots.h"
|
||||
|
|
|
@ -40,10 +40,10 @@
|
|||
|
||||
#include "common/test_constants.h"
|
||||
#include "edify/expr.h"
|
||||
#include "otautil/SysUtil.h"
|
||||
#include "otautil/error_code.h"
|
||||
#include "otautil/paths.h"
|
||||
#include "otautil/print_sha1.h"
|
||||
#include "otautil/sysutil.h"
|
||||
#include "updater/blockimg.h"
|
||||
#include "updater/install.h"
|
||||
#include "updater/updater.h"
|
||||
|
|
|
@ -16,7 +16,6 @@
|
|||
|
||||
#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
#include <gtest/gtest.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <sys/stat.h>
|
||||
|
@ -28,9 +27,10 @@
|
|||
#include <android-base/file.h>
|
||||
#include <android-base/stringprintf.h>
|
||||
#include <android-base/test_utils.h>
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
#include "common/test_constants.h"
|
||||
#include "otautil/SysUtil.h"
|
||||
#include "otautil/sysutil.h"
|
||||
#include "verifier.h"
|
||||
|
||||
using namespace std::string_literals;
|
||||
|
|
|
@ -22,7 +22,8 @@
|
|||
|
||||
#include <android-base/test_utils.h>
|
||||
#include <gtest/gtest.h>
|
||||
#include <otautil/DirUtil.h>
|
||||
|
||||
#include "otautil/dirutil.h"
|
||||
|
||||
TEST(DirUtilTest, create_invalid) {
|
||||
// Requesting to create an empty dir is invalid.
|
||||
|
|
|
@ -14,14 +14,13 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
#include <string>
|
||||
|
||||
#include <android-base/file.h>
|
||||
#include <android-base/test_utils.h>
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
#include "otautil/SysUtil.h"
|
||||
#include "otautil/sysutil.h"
|
||||
|
||||
TEST(SysUtilTest, InvalidArgs) {
|
||||
MemMapping mapping;
|
||||
|
|
|
@ -23,10 +23,10 @@
|
|||
#include <android-base/file.h>
|
||||
#include <android-base/test_utils.h>
|
||||
#include <gtest/gtest.h>
|
||||
#include <otautil/SysUtil.h>
|
||||
#include <ziparchive/zip_archive.h>
|
||||
|
||||
#include "common/test_constants.h"
|
||||
#include "otautil/sysutil.h"
|
||||
|
||||
TEST(ZipTest, OpenFromMemory) {
|
||||
std::string zip_path = from_testdata_base("ziptest_dummy-update.zip");
|
||||
|
|
|
@ -58,7 +58,7 @@
|
|||
|
||||
#include "edify/expr.h"
|
||||
#include "otafault/ota_io.h"
|
||||
#include "otautil/DirUtil.h"
|
||||
#include "otautil/dirutil.h"
|
||||
#include "otautil/error_code.h"
|
||||
#include "otautil/mounts.h"
|
||||
#include "otautil/print_sha1.h"
|
||||
|
|
|
@ -32,9 +32,9 @@
|
|||
|
||||
#include "edify/expr.h"
|
||||
#include "otafault/config.h"
|
||||
#include "otautil/DirUtil.h"
|
||||
#include "otautil/SysUtil.h"
|
||||
#include "otautil/dirutil.h"
|
||||
#include "otautil/error_code.h"
|
||||
#include "otautil/sysutil.h"
|
||||
#include "updater/blockimg.h"
|
||||
#include "updater/install.h"
|
||||
|
||||
|
|
Loading…
Reference in a new issue