Log source with visibility change
- Add a method in VisibilityLoggerMixin to log visible event using LogMaker, which allows logging additional FIELD_CONTEXT field. - In Utils.startFragment, add current page's metricsCategory as an extra to next page. - In next page's onResume(), extract the previous page's metricsCategory and send it to VisibilityLoggerMixin.visible() - Update all caller with additional paramters Change-Id: I8e1f2597fa465b7d3aa16fa1d21c052a3219694a Fix: 35359289 Test: RunSettingsRoboTests
This commit is contained in:
@@ -567,7 +567,8 @@ public class DevelopmentSettings extends RestrictedSettingsFragment
|
||||
void addDashboardCategoryPreferences() {
|
||||
final PreferenceScreen screen = getPreferenceScreen();
|
||||
final List<Preference> tilePrefs = mDashboardFeatureProvider.getPreferencesForCategory(
|
||||
getActivity(), getPrefContext(), CategoryKey.CATEGORY_SYSTEM_DEVELOPMENT);
|
||||
getActivity(), getPrefContext(), getMetricsCategory(),
|
||||
CategoryKey.CATEGORY_SYSTEM_DEVELOPMENT);
|
||||
if (tilePrefs != null) {
|
||||
for (Preference preference : tilePrefs) {
|
||||
screen.addPreference(preference);
|
||||
@@ -2469,10 +2470,6 @@ public class DevelopmentSettings extends RestrictedSettingsFragment
|
||||
writeUSBAudioOptions();
|
||||
} else if (preference == mForceResizable) {
|
||||
writeForceResizableOptions();
|
||||
} else if (INACTIVE_APPS_KEY.equals(preference.getKey())) {
|
||||
startInactiveAppsFragment();
|
||||
} else if (BACKGROUND_CHECK_KEY.equals(preference.getKey())) {
|
||||
startBackgroundCheckFragment();
|
||||
} else if (preference == mBluetoothDisableAbsVolume) {
|
||||
writeBluetoothDisableAbsVolumeOptions();
|
||||
} else if (preference == mWebViewMultiprocess) {
|
||||
@@ -2486,18 +2483,6 @@ public class DevelopmentSettings extends RestrictedSettingsFragment
|
||||
return false;
|
||||
}
|
||||
|
||||
private void startInactiveAppsFragment() {
|
||||
((SettingsActivity) getActivity()).startPreferencePanel(
|
||||
InactiveApps.class.getName(),
|
||||
null, R.string.inactive_apps_title, null, null, 0);
|
||||
}
|
||||
|
||||
private void startBackgroundCheckFragment() {
|
||||
((SettingsActivity) getActivity()).startPreferencePanel(
|
||||
BackgroundCheckSummary.class.getName(),
|
||||
null, R.string.background_check_title, null, null, 0);
|
||||
}
|
||||
|
||||
private boolean showKeyguardConfirmation(Resources resources, int requestCode) {
|
||||
return new ChooseLockSettingsHelper(getActivity(), this).launchConfirmationActivity(
|
||||
requestCode, resources.getString(R.string.oem_unlock_enable));
|
||||
|
||||
Reference in New Issue
Block a user