[Catalyst] Add logs for PreferenceService
Bug: 379750656 Flag: com.android.settingslib.flags.settings_catalyst Test: N/A Change-Id: Id012b5532f4ac936cf97902b4657043bac580a29
This commit is contained in:
@@ -27,6 +27,7 @@ import android.service.settings.preferences.MetadataResult
|
||||
import android.service.settings.preferences.SetValueRequest
|
||||
import android.service.settings.preferences.SetValueResult
|
||||
import android.service.settings.preferences.SettingsPreferenceService
|
||||
import android.util.Log
|
||||
import com.android.settings.metrics.SettingsRemoteOpMetricsLogger
|
||||
import com.android.settingslib.graph.GetPreferenceGraphApiHandler
|
||||
import com.android.settingslib.graph.GetPreferenceGraphRequest
|
||||
@@ -70,6 +71,7 @@ class PreferenceService : SettingsPreferenceService() {
|
||||
// MUST get pid/uid in binder thread
|
||||
val callingPid = Binder.getCallingPid()
|
||||
val callingUid = Binder.getCallingUid()
|
||||
Log.i(TAG, "GetAllPreferenceMetadata pid=$callingPid uid=$callingUid")
|
||||
scope.launch {
|
||||
val graphProto =
|
||||
graphApi.invoke(
|
||||
@@ -90,6 +92,7 @@ class PreferenceService : SettingsPreferenceService() {
|
||||
// MUST get pid/uid in binder thread
|
||||
val callingPid = Binder.getCallingPid()
|
||||
val callingUid = Binder.getCallingUid()
|
||||
Log.i(TAG, "GetPreferenceValue pid=$callingPid uid=$callingUid")
|
||||
scope.launch {
|
||||
val apiRequest = transformFrameworkGetValueRequest(request)
|
||||
val response = getApiHandler.invoke(application, callingPid, callingUid, apiRequest)
|
||||
@@ -110,6 +113,7 @@ class PreferenceService : SettingsPreferenceService() {
|
||||
// MUST get pid/uid in binder thread
|
||||
val callingPid = Binder.getCallingPid()
|
||||
val callingUid = Binder.getCallingUid()
|
||||
Log.i(TAG, "SetPreferenceValue pid=$callingPid uid=$callingUid")
|
||||
scope.launch {
|
||||
val apiRequest = transformFrameworkSetValueRequest(request)
|
||||
if (apiRequest == null) {
|
||||
@@ -123,4 +127,8 @@ class PreferenceService : SettingsPreferenceService() {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
companion object {
|
||||
private const val TAG = "PreferenceService"
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user