Home
last modified time | relevance | path

Searched refs:debugApp (Results 1 – 6 of 6) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/development/
DWaitForDebuggerPreferenceControllerTest.java80 final String debugApp = "foobar"; in onPreferenceChange_settingEnabledFoobarApp_waitForDebuggerShouldBeOn() local
81 Settings.Global.putString(mContentResolver, Settings.Global.DEBUG_APP, debugApp); in onPreferenceChange_settingEnabledFoobarApp_waitForDebuggerShouldBeOn()
86 .setDebugApp(debugApp, true /* waitForDebugger */, true /* persistent */); in onPreferenceChange_settingEnabledFoobarApp_waitForDebuggerShouldBeOn()
92 final String debugApp = "foobar"; in onPreferenceChange_settingDisabledFoobarApp_waitForDebuggerShouldBeOff() local
93 Settings.Global.putString(mContentResolver, Settings.Global.DEBUG_APP, debugApp); in onPreferenceChange_settingDisabledFoobarApp_waitForDebuggerShouldBeOff()
97 .setDebugApp(debugApp, false /* waitForDebugger */, true /* persistent */); in onPreferenceChange_settingDisabledFoobarApp_waitForDebuggerShouldBeOff()
102 final String debugApp = null; in updateState_settingEnabledNullDebugApp_preferenceShouldBeCheckedAndDisabled() local
103 Settings.Global.putString(mContentResolver, Settings.Global.DEBUG_APP, debugApp); in updateState_settingEnabledNullDebugApp_preferenceShouldBeCheckedAndDisabled()
114 final String debugApp = "foobar"; in updateState_settingEnabledFoobarApp_preferenceShouldBeCheckedAndDisabled() local
115 Settings.Global.putString(mContentResolver, Settings.Global.DEBUG_APP, debugApp); in updateState_settingEnabledFoobarApp_preferenceShouldBeCheckedAndDisabled()
[all …]
DSelectDebugAppPreferenceControllerTest.java90 final String debugApp = "foobar"; in updateState_foobarAppSelected_shouldUpdateSummaryWithDebugAppLabel() local
92 Settings.Global.putString(contentResolver, Settings.Global.DEBUG_APP, debugApp); in updateState_foobarAppSelected_shouldUpdateSummaryWithDebugAppLabel()
95 verify(mPreference).setSummary(mContext.getString(R.string.debug_app_set, debugApp)); in updateState_foobarAppSelected_shouldUpdateSummaryWithDebugAppLabel()
100 final String debugApp = null; in updateState_noAppSelected_shouldUpdateSummaryWithNoAppSelected() local
102 Settings.Global.putString(contentResolver, Settings.Global.DEBUG_APP, debugApp); in updateState_noAppSelected_shouldUpdateSummaryWithNoAppSelected()
/packages/apps/Settings/src/com/android/settings/development/
DSelectDebugAppPreferenceController.java94 final String debugApp = Settings.Global.getString( in updatePreferenceSummary() local
96 if (debugApp != null && debugApp.length() > 0) { in updatePreferenceSummary()
98 getAppLabel(debugApp))); in updatePreferenceSummary()
104 private String getAppLabel(String debugApp) { in getAppLabel() argument
106 final ApplicationInfo ai = mPackageManager.getApplicationInfo(debugApp, in getAppLabel()
109 return lab != null ? lab.toString() : debugApp; in getAppLabel()
111 return debugApp; in getAppLabel()
DWaitForDebuggerPreferenceController.java60 final String debugApp = Settings.Global.getString( in onPreferenceChange() local
62 writeDebuggerAppOptions(debugApp, debuggerEnabled, true /* persistent */); in onPreferenceChange()
81 private void updateState(Preference preference, String debugApp) { in updateState() argument
85 writeDebuggerAppOptions(debugApp, debuggerEnabled, true /* persistent */); in updateState()
87 switchPreference.setEnabled(!TextUtils.isEmpty(debugApp)); in updateState()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/development/
DSelectDebugAppPreferenceController.java94 final String debugApp = Settings.Global.getString( in updatePreferenceSummary() local
96 if (debugApp != null && debugApp.length() > 0) { in updatePreferenceSummary()
98 getAppLabel(debugApp))); in updatePreferenceSummary()
104 private String getAppLabel(String debugApp) { in getAppLabel() argument
106 final ApplicationInfo ai = mPackageManager.getApplicationInfo(debugApp, in getAppLabel()
109 return lab != null ? lab.toString() : debugApp; in getAppLabel()
111 return debugApp; in getAppLabel()
DWaitForDebuggerPreferenceController.java60 final String debugApp = Settings.Global.getString( in onPreferenceChange() local
62 writeDebuggerAppOptions(debugApp, debuggerEnabled, true /* persistent */); in onPreferenceChange()
81 private void updateState(Preference preference, String debugApp) { in updateState() argument
85 writeDebuggerAppOptions(debugApp, debuggerEnabled, true /* persistent */); in updateState()
87 switchPreference.setEnabled(!TextUtils.isEmpty(debugApp)); in updateState()