Add a new NFC developer setting option for NFCSNOOP
Add a new developer setting option to enable full NFCSNOOP log. Bug: 204397062 Test: manual Change-Id: I3fd34500e5e7093c9d77ff737987a35f6866814e
This commit is contained in:
@@ -81,7 +81,8 @@ public class DevelopmentSettingsDashboardFragment extends RestrictedDashboardFra
|
||||
implements OnMainSwitchChangeListener, OemUnlockDialogHost, AdbDialogHost,
|
||||
AdbClearKeysDialogHost, LogPersistDialogHost,
|
||||
BluetoothRebootDialog.OnRebootDialogListener,
|
||||
AbstractBluetoothPreferenceController.Callback {
|
||||
AbstractBluetoothPreferenceController.Callback,
|
||||
NfcRebootDialog.OnNfcRebootDialogConfirmedListener {
|
||||
|
||||
private static final String TAG = "DevSettingsDashboard";
|
||||
|
||||
@@ -395,6 +396,20 @@ public class DevelopmentSettingsDashboardFragment extends RestrictedDashboardFra
|
||||
leAudioFeatureController.onRebootDialogCanceled();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onNfcRebootDialogConfirmed() {
|
||||
final NfcSnoopLogPreferenceController controller =
|
||||
getDevelopmentOptionsController(NfcSnoopLogPreferenceController.class);
|
||||
controller.onNfcRebootDialogConfirmed();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onNfcRebootDialogCanceled() {
|
||||
final NfcSnoopLogPreferenceController controller =
|
||||
getDevelopmentOptionsController(NfcSnoopLogPreferenceController.class);
|
||||
controller.onNfcRebootDialogCanceled();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onActivityResult(int requestCode, int resultCode, Intent data) {
|
||||
boolean handledResult = false;
|
||||
@@ -555,6 +570,7 @@ public class DevelopmentSettingsDashboardFragment extends RestrictedDashboardFra
|
||||
controllers.add(new BluetoothLeAudioHwOffloadPreferenceController(context, fragment));
|
||||
controllers.add(new BluetoothMaxConnectedAudioDevicesPreferenceController(context));
|
||||
controllers.add(new NfcStackDebugLogPreferenceController(context));
|
||||
controllers.add(new NfcSnoopLogPreferenceController(context, fragment));
|
||||
controllers.add(new ShowTapsPreferenceController(context));
|
||||
controllers.add(new PointerLocationPreferenceController(context));
|
||||
controllers.add(new ShowSurfaceUpdatesPreferenceController(context));
|
||||
|
Reference in New Issue
Block a user