Sync lastest lifecycle interface
Bug: 142938506 Test: rebuild Change-Id: I6a8d75e5a3ba8564cfb400a88d6582c962c965ee
This commit is contained in:
@@ -47,8 +47,4 @@ public abstract class InstrumentedFragment extends ObservableFragment implements
|
||||
mVisibilityLoggerMixin.setSourceMetricsCategory(getActivity());
|
||||
super.onResume();
|
||||
}
|
||||
|
||||
protected final VisibilityLoggerMixin getVisibilityLogger() {
|
||||
return mVisibilityLoggerMixin;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -91,10 +91,6 @@ public abstract class InstrumentedPreferenceFragment extends ObservablePreferenc
|
||||
return getPreferenceManager().getContext();
|
||||
}
|
||||
|
||||
protected final VisibilityLoggerMixin getVisibilityLogger() {
|
||||
return mVisibilityLoggerMixin;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the res id for static preference xml for this fragment.
|
||||
*/
|
||||
|
||||
@@ -25,11 +25,11 @@ import com.android.settingslib.core.instrumentation.EventLogWriter;
|
||||
public class SettingsEventLogWriter extends EventLogWriter {
|
||||
|
||||
@Override
|
||||
public void visible(Context context, int source, int category) {
|
||||
public void visible(Context context, int source, int category, int latency) {
|
||||
if (shouldDisableGenericEventLogging()) {
|
||||
return;
|
||||
}
|
||||
super.visible(context, source, category);
|
||||
super.visible(context, source, category, latency);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -61,12 +61,12 @@ public class SettingsIntelligenceLogWriter implements LogWriter {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void visible(Context context, int attribution, int pageId) {
|
||||
action(attribution /* attribution */,
|
||||
public void visible(Context context, int attribution, int pageId, int latency) {
|
||||
action(attribution /* from pageId */,
|
||||
SettingsEnums.PAGE_VISIBLE /* action */,
|
||||
pageId /* pageId */,
|
||||
pageId /* target pageId */,
|
||||
"" /* changedPreferenceKey */,
|
||||
0 /* changedPreferenceIntValue */);
|
||||
latency /* changedPreferenceIntValue */);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -26,13 +26,13 @@ import com.android.settingslib.core.instrumentation.LogWriter;
|
||||
public class StatsLogWriter implements LogWriter {
|
||||
|
||||
@Override
|
||||
public void visible(Context context, int attribution, int pageId) {
|
||||
public void visible(Context context, int attribution, int pageId, int latency) {
|
||||
StatsLog.write(StatsLog.SETTINGS_UI_CHANGED /* Atom name */,
|
||||
attribution,
|
||||
attribution, /* from pageId */
|
||||
SettingsEnums.PAGE_VISIBLE /* action */,
|
||||
pageId,
|
||||
pageId, /* target pageId */
|
||||
null /* changedPreferenceKey */,
|
||||
0 /* changedPreferenceIntValue */);
|
||||
latency /* changedPreferenceIntValue */);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user