Loading services/core/Android.bp +2 −0 Original line number Diff line number Diff line Loading @@ -150,6 +150,7 @@ java_library_static { ], libs: [ "accounts_flags_lib", "android.frameworks.location.altitude-V2-java", "android.hardware.common-V2-java", "android.hardware.gnss-V2-java", Loading Loading @@ -178,6 +179,7 @@ java_library_static { ], static_libs: [ "accounts_flags_lib", "android.frameworks.vibrator-V1-java", // AIDL "android.frameworks.devicestate-V1-java", // AIDL "android.hardware.authsecret-V1.0-java", Loading services/core/java/com/android/server/accounts/AccountsDb.java +14 −0 Original line number Diff line number Diff line Loading @@ -200,6 +200,13 @@ class AccountsDb implements AutoCloseable { super(context, ceDatabaseName, null, CE_DATABASE_VERSION); } @Override public void onConfigure(SQLiteDatabase db) { if (Flags.sqliteSyncNormal()) { db.execSQL("PRAGMA synchronous = NORMAL"); } } /** * This call needs to be made while the mCacheLock is held. * @param db The database. Loading Loading @@ -514,6 +521,13 @@ class AccountsDb implements AutoCloseable { mUserId = userId; } @Override public void onConfigure(SQLiteDatabase db) { if (Flags.sqliteSyncNormal()) { db.execSQL("PRAGMA synchronous = NORMAL"); } } /** * This call needs to be made while the mCacheLock is held. The way to * ensure this is to get the lock any time a method is called ont the DatabaseHelper Loading services/core/java/com/android/server/accounts/Android.bp 0 → 100644 +17 −0 Original line number Diff line number Diff line package { default_team: "trendy_team_authentication", } java_aconfig_library { name: "accounts_flags_lib", aconfig_declarations: "accounts_flags", } aconfig_declarations { name: "accounts_flags", package: "com.android.server.accounts", container: "system", srcs: [ "flags.aconfig", ], } services/core/java/com/android/server/accounts/flags.aconfig 0 → 100644 +9 −0 Original line number Diff line number Diff line package: "com.android.server.accounts" container: "system" flag { name: "sqlite_sync_normal" namespace: "system_performance" description: "Whether to enable normal sync mode for the accounts database." bug: "438408487" } No newline at end of file Loading
services/core/Android.bp +2 −0 Original line number Diff line number Diff line Loading @@ -150,6 +150,7 @@ java_library_static { ], libs: [ "accounts_flags_lib", "android.frameworks.location.altitude-V2-java", "android.hardware.common-V2-java", "android.hardware.gnss-V2-java", Loading Loading @@ -178,6 +179,7 @@ java_library_static { ], static_libs: [ "accounts_flags_lib", "android.frameworks.vibrator-V1-java", // AIDL "android.frameworks.devicestate-V1-java", // AIDL "android.hardware.authsecret-V1.0-java", Loading
services/core/java/com/android/server/accounts/AccountsDb.java +14 −0 Original line number Diff line number Diff line Loading @@ -200,6 +200,13 @@ class AccountsDb implements AutoCloseable { super(context, ceDatabaseName, null, CE_DATABASE_VERSION); } @Override public void onConfigure(SQLiteDatabase db) { if (Flags.sqliteSyncNormal()) { db.execSQL("PRAGMA synchronous = NORMAL"); } } /** * This call needs to be made while the mCacheLock is held. * @param db The database. Loading Loading @@ -514,6 +521,13 @@ class AccountsDb implements AutoCloseable { mUserId = userId; } @Override public void onConfigure(SQLiteDatabase db) { if (Flags.sqliteSyncNormal()) { db.execSQL("PRAGMA synchronous = NORMAL"); } } /** * This call needs to be made while the mCacheLock is held. The way to * ensure this is to get the lock any time a method is called ont the DatabaseHelper Loading
services/core/java/com/android/server/accounts/Android.bp 0 → 100644 +17 −0 Original line number Diff line number Diff line package { default_team: "trendy_team_authentication", } java_aconfig_library { name: "accounts_flags_lib", aconfig_declarations: "accounts_flags", } aconfig_declarations { name: "accounts_flags", package: "com.android.server.accounts", container: "system", srcs: [ "flags.aconfig", ], }
services/core/java/com/android/server/accounts/flags.aconfig 0 → 100644 +9 −0 Original line number Diff line number Diff line package: "com.android.server.accounts" container: "system" flag { name: "sqlite_sync_normal" namespace: "system_performance" description: "Whether to enable normal sync mode for the accounts database." bug: "438408487" } No newline at end of file