Home
last modified time | relevance | path

Searched refs:SettingsStorageService (Results 1 – 5 of 5) sorted by relevance

/packages/apps/TvSettings/Settings/tests/robotests/src/com/android/tv/settings/device/storage/
DFormatActivityFormatReceiverTest.java57 final Intent intent = new Intent(SettingsStorageService.ACTION_FORMAT_AS_PRIVATE); in testFormatAsPrivate_successResumed()
59 intent.putExtra(SettingsStorageService.EXTRA_PRIVATE_BENCH, 123L); in testFormatAsPrivate_successResumed()
60 intent.putExtra(SettingsStorageService.EXTRA_INTERNAL_BENCH, 456L); in testFormatAsPrivate_successResumed()
61 intent.putExtra(SettingsStorageService.EXTRA_SUCCESS, true); in testFormatAsPrivate_successResumed()
73 final Intent intent = new Intent(SettingsStorageService.ACTION_FORMAT_AS_PRIVATE); in testFormatAsPrivate_successNotResumed()
75 intent.putExtra(SettingsStorageService.EXTRA_PRIVATE_BENCH, 123L); in testFormatAsPrivate_successNotResumed()
76 intent.putExtra(SettingsStorageService.EXTRA_INTERNAL_BENCH, 456L); in testFormatAsPrivate_successNotResumed()
77 intent.putExtra(SettingsStorageService.EXTRA_SUCCESS, true); in testFormatAsPrivate_successNotResumed()
89 final Intent intent = new Intent(SettingsStorageService.ACTION_FORMAT_AS_PRIVATE); in testFormatAsPrivate_failure()
91 intent.putExtra(SettingsStorageService.EXTRA_PRIVATE_BENCH, 123L); in testFormatAsPrivate_failure()
[all …]
DSettingsStorageServiceTest.java58 private SettingsStorageService.Impl mSettingsStorageServiceImplSpy;
79 final Intent formatIntent = new Intent(SettingsStorageService.ACTION_FORMAT_AS_PUBLIC); in testFormatAsPublic_success_fromPrivate()
86 new IntentMatcher(new Intent(SettingsStorageService.ACTION_FORMAT_AS_PUBLIC)){ in testFormatAsPublic_success_fromPrivate()
92 && argument.getBooleanExtra(SettingsStorageService.EXTRA_SUCCESS, in testFormatAsPublic_success_fromPrivate()
109 final Intent formatIntent = new Intent(SettingsStorageService.ACTION_FORMAT_AS_PUBLIC); in testFormatAsPublic_success_fromNonPrivate()
116 new IntentMatcher(new Intent(SettingsStorageService.ACTION_FORMAT_AS_PUBLIC)){ in testFormatAsPublic_success_fromNonPrivate()
122 && argument.getBooleanExtra(SettingsStorageService.EXTRA_SUCCESS, in testFormatAsPublic_success_fromNonPrivate()
133 final Intent formatIntent = new Intent(SettingsStorageService.ACTION_FORMAT_AS_PUBLIC); in testFormatAsPublic_failure()
142 new IntentMatcher(new Intent(SettingsStorageService.ACTION_FORMAT_AS_PUBLIC)){ in testFormatAsPublic_failure()
148 && !argument.getBooleanExtra(SettingsStorageService.EXTRA_SUCCESS, in testFormatAsPublic_failure()
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/storage/
DFormatActivity.java96 filter.addAction(SettingsStorageService.ACTION_FORMAT_AS_PRIVATE); in onCreate()
97 filter.addAction(SettingsStorageService.ACTION_FORMAT_AS_PUBLIC); in onCreate()
190 SettingsStorageService.ACTION_FORMAT_AS_PRIVATE) in onReceive()
195 intent.getBooleanExtra(SettingsStorageService.EXTRA_SUCCESS, false); in onReceive()
199 SettingsStorageService.EXTRA_PRIVATE_BENCH, -1); in onReceive()
201 SettingsStorageService.EXTRA_INTERNAL_BENCH, -1); in onReceive()
217 SettingsStorageService.ACTION_FORMAT_AS_PUBLIC) in onReceive()
222 intent.getBooleanExtra(SettingsStorageService.EXTRA_SUCCESS, false); in onReceive()
260 SettingsStorageService.formatAsPrivate(this, diskId); in onRequestFormatAsPrivate()
301 SettingsStorageService.formatAsPublic(this, diskId); in onRequestFormatAsPublic()
DUnmountActivity.java72 new IntentFilter(SettingsStorageService.ACTION_UNMOUNT)); in onCreate()
112 SettingsStorageService.unmount(UnmountActivity.this, mUnmountVolumeId); in onRequestUnmount()
133 if (TextUtils.equals(intent.getAction(), SettingsStorageService.ACTION_UNMOUNT) in onReceive()
137 intent.getBooleanExtra(SettingsStorageService.EXTRA_SUCCESS, false); in onReceive()
DSettingsStorageService.java35 public class SettingsStorageService { class