Merge "Add temp logging for zen policy changes" into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
aee9bf3fa7
@@ -27,6 +27,7 @@ import android.service.notification.Condition;
|
|||||||
import android.service.notification.IConditionProvider;
|
import android.service.notification.IConditionProvider;
|
||||||
import android.service.notification.NotificationListenerService;
|
import android.service.notification.NotificationListenerService;
|
||||||
import android.service.notification.ZenModeConfig;
|
import android.service.notification.ZenModeConfig;
|
||||||
|
import android.util.Log;
|
||||||
import android.util.Slog;
|
import android.util.Slog;
|
||||||
|
|
||||||
import java.io.PrintWriter;
|
import java.io.PrintWriter;
|
||||||
@@ -122,8 +123,11 @@ public class ZenLog {
|
|||||||
|
|
||||||
public static void traceSetNotificationPolicy(String pkg, int targetSdk,
|
public static void traceSetNotificationPolicy(String pkg, int targetSdk,
|
||||||
NotificationManager.Policy policy) {
|
NotificationManager.Policy policy) {
|
||||||
append(TYPE_SET_NOTIFICATION_POLICY, "pkg=" + pkg + " targetSdk=" + targetSdk
|
String policyLog = "pkg=" + pkg + " targetSdk=" + targetSdk
|
||||||
+ " NotificationPolicy=" + policy.toString());
|
+ " NotificationPolicy=" + policy.toString();
|
||||||
|
append(TYPE_SET_NOTIFICATION_POLICY, policyLog);
|
||||||
|
// TODO(b/180205791): remove when we can better surface apps that are changing policy
|
||||||
|
Log.d(TAG, "Zen Policy Changed: " + policyLog);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void traceSubscribe(Uri uri, IConditionProvider provider, RemoteException e) {
|
public static void traceSubscribe(Uri uri, IConditionProvider provider, RemoteException e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user