Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 13f1f45e authored by Nicolas Geoffray's avatar Nicolas Geoffray
Browse files

Move GraphicsStatsService native method registration to zygote.

It used to be in system server, but this is for a class in boot
classpath so we can move it to AndroidRuntime.cpp and avoid system
server dirtying memory for these methods.

Test: m
Bug: 162110941
Change-Id: Ifda5957aab757fe47c97b1aee0a6a8b7a059ac3d
parent 4734b581
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1564,6 +1564,7 @@ static const RegJNIRec gRegJNI[] = {
        REG_JNI(register_android_graphics_classes),
        REG_JNI(register_android_graphics_BLASTBufferQueue),
        REG_JNI(register_android_graphics_GraphicBuffer),
        REG_JNI(register_android_graphics_GraphicsStatsService),
        REG_JNI(register_android_graphics_SurfaceTexture),
        REG_JNI(register_android_database_CursorWindow),
        REG_JNI(register_android_database_SQLiteConnection),
+0 −1
Original line number Diff line number Diff line
@@ -103,7 +103,6 @@ extern "C" jint JNI_OnLoad(JavaVM* vm, void* /* reserved */)
    register_android_server_HardwarePropertiesManagerService(env);
    register_android_server_storage_AppFuse(env);
    register_android_server_SyntheticPasswordManager(env);
    register_android_graphics_GraphicsStatsService(env);
    register_android_hardware_display_DisplayViewport(env);
    register_android_server_am_CachedAppOptimizer(env);
    register_android_server_am_LowMemDetector(env);