Update version information in `system/libartpalette`. am: 23137ec171
Original change: https://android-review.googlesource.com/c/platform/system/libartpalette/+/2870437
Change-Id: I165426862175e3071afd0d18b8cfe953645c3dae
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
diff --git a/libartpalette.map.txt b/libartpalette.map.txt
index fbe1ae3..c79ddba 100644
--- a/libartpalette.map.txt
+++ b/libartpalette.map.txt
@@ -46,7 +46,7 @@
PaletteReportLockContention; # systemapi
} LIBARTPALETTE_1;
-LIBARTPALETTE_3 { # introduced=UpsideDownCake
+LIBARTPALETTE_3 { # introduced=34
global:
# --- VERSION 03 API ---
PaletteSetTaskProfiles; # systemapi
diff --git a/palette_android.cc b/palette_android.cc
index 191596f..6f27201 100644
--- a/palette_android.cc
+++ b/palette_android.cc
@@ -38,8 +38,6 @@
#include "palette_system.h"
-// Methods in version 1 API, corresponding to SDK level 31.
-
// Conversion map for "nice" values.
//
// We use Android thread priority constants to be consistent with the rest
@@ -58,6 +56,9 @@
ANDROID_PRIORITY_URGENT_DISPLAY // 10 (MAX_PRIORITY)
};
+// Unless explicitly mentioned otherwise, the following methods have been
+// introduced in version 1 API, corresponding to SDK level 31.
+
palette_status_t PaletteSchedSetPriority(int32_t tid, int32_t managed_priority) {
if (managed_priority < art::palette::kMinManagedThreadPriority ||
managed_priority > art::palette::kMaxManagedThreadPriority) {
@@ -248,8 +249,7 @@
return PALETTE_STATUS_OK;
}
-// Methods in version 3 API, corresponding to SDK level UpsideDownCake.
-
+// Introduced in version 3 API, corresponding to SDK level 34.
palette_status_t PaletteSetTaskProfiles(int32_t tid, const char* const profiles[],
size_t profiles_len) {
std::vector<std::string> p;
diff --git a/palette_android_partner.cc b/palette_android_partner.cc
index a67ac50..7f0040e 100644
--- a/palette_android_partner.cc
+++ b/palette_android_partner.cc
@@ -19,7 +19,8 @@
#include <android-base/macros.h>
#include <stdbool.h>
-// Methods in version 1 API, corresponding to SDK level 31.
+// Unless explicitly mentioned otherwise, the following methods have been
+// introduced in version 1 API, corresponding to SDK level 31.
palette_status_t PaletteShouldReportDex2oatCompilation(bool* value) {
*value = 0;
@@ -61,8 +62,7 @@
return PALETTE_STATUS_OK;
}
-// Methods in version 2 API, corresponding to SDK level 33.
-
+// Introduced in version 2 API, corresponding to SDK level 33.
palette_status_t PaletteReportLockContention(
JNIEnv* env ATTRIBUTE_UNUSED, int32_t wait_ms ATTRIBUTE_UNUSED,
const char* filename ATTRIBUTE_UNUSED, int32_t line_number ATTRIBUTE_UNUSED,
diff --git a/palette_fake.cc b/palette_fake.cc
index 2a5c0b1..e094936 100644
--- a/palette_fake.cc
+++ b/palette_fake.cc
@@ -26,12 +26,13 @@
#include "palette_system.h"
-// Methods in version 1 API, corresponding to SDK level 31.
-
// Cached thread priority for testing. No thread priorities are ever affected.
static std::mutex g_tid_priority_map_mutex;
static std::map<int32_t, int32_t> g_tid_priority_map;
+// Unless explicitly mentioned otherwise, the following methods have been
+// introduced in version 1 API, corresponding to SDK level 31.
+
palette_status_t PaletteSchedSetPriority(int32_t tid, int32_t priority) {
if (priority < art::palette::kMinManagedThreadPriority ||
priority > art::palette::kMaxManagedThreadPriority) {
@@ -130,8 +131,7 @@
return PALETTE_STATUS_OK;
}
-// Methods in version 2 API, corresponding to SDK level 33.
-
+// Introduced in version 2 API, corresponding to SDK level 33.
palette_status_t PaletteReportLockContention(
JNIEnv* env ATTRIBUTE_UNUSED, int32_t wait_ms ATTRIBUTE_UNUSED,
const char* filename ATTRIBUTE_UNUSED, int32_t line_number ATTRIBUTE_UNUSED,
@@ -141,8 +141,7 @@
return PALETTE_STATUS_OK;
}
-// Methods in version 3 API, corresponding to SDK level UpsideDownCake.
-
+// Introduced in version 3 API, corresponding to SDK level 34.
palette_status_t PaletteSetTaskProfiles(int32_t tid ATTRIBUTE_UNUSED,
const char* const profiles[] ATTRIBUTE_UNUSED,
size_t profiles_len ATTRIBUTE_UNUSED) {