summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Dmitrii Ishcheikin <ishcheikin@google.com> 2024-01-24 16:31:24 +0000
committer Dmitrii Ishcheikin <ishcheikin@google.com> 2024-01-24 18:03:28 +0000
commitc70da3ff38405ce73c2f0feb74117135ed61a92b (patch)
tree63b68f931a5ad21f34fb4db40fcfac14fc8229ac
parentc606b194954f77a7be2e093d645f0c28f013796e (diff)
Add visibility attributes in runtime/p*
Bug: 260881207 Test: presubmit Test: abtd app_compat_drm Test: abtd app_compat_top_100 Test: abtd app_compat_banking Change-Id: Iefca20560bc1753d53e2e1e21daa38c4b6a19fff
-rw-r--r--runtime/parsed_options.cc2
-rw-r--r--runtime/parsed_options.h3
-rw-r--r--runtime/parsed_options_test.cc2
-rw-r--r--runtime/plugin.cc2
-rw-r--r--runtime/plugin.h4
-rw-r--r--runtime/prebuilt_tools_test.cc2
-rw-r--r--runtime/process_state.h4
-rw-r--r--runtime/proxy_test.cc2
-rw-r--r--runtime/proxy_test.h3
9 files changed, 15 insertions, 9 deletions
diff --git a/runtime/parsed_options.cc b/runtime/parsed_options.cc
index 5f350bf750..d241ebe690 100644
--- a/runtime/parsed_options.cc
+++ b/runtime/parsed_options.cc
@@ -38,7 +38,7 @@
#include "cmdline_parser.h"
#include "runtime_options.h"
-namespace art {
+namespace art HIDDEN {
using MemoryKiB = Memory<1024>;
diff --git a/runtime/parsed_options.h b/runtime/parsed_options.h
index 00e0a970e9..527304d5b0 100644
--- a/runtime/parsed_options.h
+++ b/runtime/parsed_options.h
@@ -24,13 +24,14 @@
#include <jni.h>
#include "arch/instruction_set.h"
+#include "base/macros.h"
#include "gc/collector_type.h"
#include "gc/space/large_object_space.h"
// #include "jit/profile_saver_options.h"
#include "runtime_globals.h"
#include "runtime_options.h"
-namespace art {
+namespace art HIDDEN {
class CompilerCallbacks;
class DexFile;
diff --git a/runtime/parsed_options_test.cc b/runtime/parsed_options_test.cc
index 3d45da5c58..973adb5a53 100644
--- a/runtime/parsed_options_test.cc
+++ b/runtime/parsed_options_test.cc
@@ -21,7 +21,7 @@
#include "arch/instruction_set.h"
#include "base/common_art_test.h"
-namespace art {
+namespace art HIDDEN {
class ParsedOptionsTest : public CommonArtTest {
public:
diff --git a/runtime/plugin.cc b/runtime/plugin.cc
index 6b9e0081cf..29ac7a6f8e 100644
--- a/runtime/plugin.cc
+++ b/runtime/plugin.cc
@@ -23,7 +23,7 @@
#include "base/mutex.h"
#include "thread-current-inl.h"
-namespace art {
+namespace art HIDDEN {
using android::base::StringPrintf;
diff --git a/runtime/plugin.h b/runtime/plugin.h
index 4885b2e3c0..6164a330fa 100644
--- a/runtime/plugin.h
+++ b/runtime/plugin.h
@@ -21,7 +21,9 @@
#include <android-base/logging.h>
-namespace art {
+#include "base/macros.h"
+
+namespace art HIDDEN {
// This function is loaded from the plugin (if present) and called during runtime initialization.
// By the time this has been called the runtime has been fully initialized but not other native
diff --git a/runtime/prebuilt_tools_test.cc b/runtime/prebuilt_tools_test.cc
index e05a8e4113..a86cf74c30 100644
--- a/runtime/prebuilt_tools_test.cc
+++ b/runtime/prebuilt_tools_test.cc
@@ -20,7 +20,7 @@
#include "gtest/gtest.h"
-namespace art {
+namespace art HIDDEN {
// Run the tests only on host.
#ifndef ART_TARGET_ANDROID
diff --git a/runtime/process_state.h b/runtime/process_state.h
index aee200a646..94f8bd9219 100644
--- a/runtime/process_state.h
+++ b/runtime/process_state.h
@@ -17,7 +17,9 @@
#ifndef ART_RUNTIME_PROCESS_STATE_H_
#define ART_RUNTIME_PROCESS_STATE_H_
-namespace art {
+#include "base/macros.h"
+
+namespace art HIDDEN {
// The process state passed in from the activity manager, used to determine when to do trimming
// and compaction.
diff --git a/runtime/proxy_test.cc b/runtime/proxy_test.cc
index ac8ec56f09..c57b3d4470 100644
--- a/runtime/proxy_test.cc
+++ b/runtime/proxy_test.cc
@@ -25,7 +25,7 @@
#include "scoped_thread_state_change-inl.h"
#include "well_known_classes.h"
-namespace art {
+namespace art HIDDEN {
namespace proxy_test {
class ProxyTest : public CommonRuntimeTest {
diff --git a/runtime/proxy_test.h b/runtime/proxy_test.h
index 9a014413ef..8c69a2e8c7 100644
--- a/runtime/proxy_test.h
+++ b/runtime/proxy_test.h
@@ -21,13 +21,14 @@
#include <vector>
#include "art_method-inl.h"
+#include "base/macros.h"
#include "class_linker-inl.h"
#include "class_root-inl.h"
#include "mirror/class-inl.h"
#include "mirror/method.h"
#include "obj_ptr-inl.h"
-namespace art {
+namespace art HIDDEN {
namespace proxy_test {
// Generate a proxy class with the given name and interfaces. This is a simplification from what