/aosp_15_r20/cts/common/device-side/bedstead/nene/src/test/java/com/android/bedstead/nene/utils/ |
H A D | ShellCommandTest.java | 52 assertThrows(NullPointerException.class, () -> ShellCommand.builder(null)); in constructBuilder_nullCommand_throwsException() 57 assertThat(ShellCommand.builder(/* command= */ COMMAND)).isNotNull(); in constructBuilder_constructs() 62 assertThat(ShellCommand.builder(/* command= */ COMMAND).build()).isEqualTo(COMMAND); in build_containsCommand() 67 ShellCommand.Builder builder = ShellCommand.builder("command") in build_containsOption() 76 ShellCommand.Builder builder = ShellCommand.builder("command") in build_containsOptions() 87 ShellCommand.Builder builder = ShellCommand.builder("command") in build_containsOperand() 96 ShellCommand.Builder builder = ShellCommand.builder("command") in build_containsOperands() 106 ShellCommand.Builder builder = ShellCommand.builder("command") in build_interleavesOptionsAndOperands() 117 assertThat(ShellCommand.builder(LIST_USERS_COMMAND).execute()) in execute_returnsOutput() 127 () -> ShellCommand.builder(INVALID_COMMAND_LEGACY_OUTPUT).execute()); in execute_invalidCommand_legacyOutput_throwsException() [all …]
|
/aosp_15_r20/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/shell/adselection/ |
D | AdSelectionShellCommandFactoryTest.java | 29 import com.android.adservices.service.shell.ShellCommand; 64 ShellCommand shellCommand = mFactory.getShellCommand(ConsentedDebugShellCommand.CMD); in test_consentedDebugCmd() 70 ShellCommand shellCommand = mFactory.getShellCommand(GetAdSelectionDataCommand.CMD); in test_GetAdSelectionDataCmd() 86 ShellCommand shellCommand = mFactory.getShellCommand(ConsentedDebugShellCommand.CMD); in test_consentedDebugCmdDisabled() 102 ShellCommand shellCommand = mFactory.getShellCommand(GetAdSelectionDataCommand.CMD); in test_GetAdSelectionDataCmdDisabled() 108 ShellCommand shellCommand = mFactory.getShellCommand(ViewAuctionResultCommand.CMD); in test_viewAuctionResultCmd() 124 ShellCommand shellCommand = mFactory.getShellCommand(ViewAuctionResultCommand.CMD); in test_viewAuctionResultCmdDisabled() 130 ShellCommand shellCommand = mFactory.getShellCommand("invalid"); in test_invalidCmd() 136 ShellCommand shellCommand = mFactory.getShellCommand(null); in test_nullCmd() 142 ShellCommand shellCommand = mFactory.getShellCommand(""); in test_emptyCmd() [all …]
|
/aosp_15_r20/frameworks/base/services/core/java/com/android/server/pm/ |
H A D | PackageManagerShellCommandDataLoader.java | 27 import android.os.ShellCommand; 56 static final SparseArray<WeakReference<ShellCommand>> sShellCommands = new SparseArray<>(); 65 private static String getDataLoaderParamsArgs(ShellCommand shellCommand) { in getDataLoaderParamsArgs() 72 WeakReference<ShellCommand> oldRef = sShellCommands.valueAt(i); in getDataLoaderParamsArgs() 93 static DataLoaderParams getStreamingDataLoaderParams(ShellCommand shellCommand) { in getStreamingDataLoaderParams() 98 static DataLoaderParams getIncrementalDataLoaderParams(ShellCommand shellCommand) { in getIncrementalDataLoaderParams() 307 ShellCommand shellCommand = lookupShellCommand(mParams.getArguments()); in onPrepareImage() 359 static ShellCommand lookupShellCommand(String args) { in lookupShellCommand() 365 final WeakReference<ShellCommand> shellCommandRef; in lookupShellCommand() 369 final ShellCommand shellCommand = in lookupShellCommand() [all …]
|
/aosp_15_r20/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/shell/customaudience/ |
D | CustomAudienceShellCommandFactoryTest.java | 27 import com.android.adservices.service.shell.ShellCommand; 57 ShellCommand shellCommand = mFactory.getShellCommand(CustomAudienceViewCommand.CMD); in test_viewCmd() 63 ShellCommand shellCommand = mFactory.getShellCommand(CustomAudienceListCommand.CMD); in test_listCmd() 69 ShellCommand shellCommand = mFactory.getShellCommand(CustomAudienceRefreshCommand.CMD); in test_refreshCmd() 75 ShellCommand shellCommand = mFactory.getShellCommand("invalid"); in test_invalidCmd() 81 ShellCommand shellCommand = mFactory.getShellCommand(null); in test_nullCmd() 87 ShellCommand shellCommand = mFactory.getShellCommand(""); in test_emptyCmd() 100 ShellCommand shellCommand = mFactory.getShellCommand(CustomAudienceListCommand.CMD); in test_cliDisabled() 113 ShellCommand shellCommand = mFactory.getShellCommand("invalid"); in test_invalidCmdCLIDisabled()
|
/aosp_15_r20/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/shell/adservicesapi/ |
D | AdServicesApiShellCommandFactoryTest.java | 24 import com.android.adservices.service.shell.ShellCommand; 45 ShellCommand shellCommand = in test_enableAdServicesCmd() 52 ShellCommand shellCommand = mFactory.getShellCommand("invalid"); in test_invalidCmd() 58 ShellCommand shellCommand = mFactory.getShellCommand(null); in test_nullCmd() 64 ShellCommand shellCommand = mFactory.getShellCommand(""); in test_emptyCmd() 70 ShellCommand shellCommand = mFactory.getShellCommand(DevSessionCommand.CMD); in test_devSessionCmd() 81 ShellCommand shellCommand = factory.getShellCommand(DevSessionCommand.CMD); in test_devSessionDisabledCmd()
|
/aosp_15_r20/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/shell/signals/ |
D | SignalsShellCommandFactoryTest.java | 27 import com.android.adservices.service.shell.ShellCommand; 70 ShellCommand shellCommand = mFactory.getShellCommand(GenerateInputForEncodingCommand.CMD); in test_generateInputCmd() 76 ShellCommand shellCommand = mFactory.getShellCommand("invalid"); in test_invalidCmd() 82 ShellCommand shellCommand = mFactory.getShellCommand(null); in test_nullCmd() 88 ShellCommand shellCommand = mFactory.getShellCommand(""); in test_emptyCmd() 103 ShellCommand shellCommand = mFactory.getShellCommand(GenerateInputForEncodingCommand.CMD); in test_cliDisabled() 118 ShellCommand shellCommand = mFactory.getShellCommand("invalid"); in test_invalidCmdCLIDisabled()
|
/aosp_15_r20/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/shell/customaudience/ |
D | CustomAudienceShellCommandFactory.java | 36 import com.android.adservices.service.shell.ShellCommand; 53 private final Map<String, ShellCommand> mAllCommandsMap; 64 Set<ShellCommand> allCommands = in CustomAudienceShellCommandFactory() 78 ShellCommand::getCommandName, Function.identity())); in CustomAudienceShellCommandFactory() 105 public ShellCommand getShellCommand(String cmd) { in getShellCommand() 112 ShellCommand command = mAllCommandsMap.get(cmd); in getShellCommand() 130 .map(ShellCommand::getCommandHelp) in getAllCommandsHelp()
|
/aosp_15_r20/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/shell/adservicesapi/ |
D | AdServicesApiShellCommandFactory.java | 40 import com.android.adservices.service.shell.ShellCommand; 56 private final Map<String, ShellCommand> mAllCommandsMap; 62 Set<ShellCommand> allCommands = in AdServicesApiShellCommandFactory() 71 ShellCommand::getCommandName, Function.identity())); in AdServicesApiShellCommandFactory() 97 public ShellCommand getShellCommand(String cmd) { in getShellCommand() 105 ShellCommand command = mAllCommandsMap.get(cmd); in getShellCommand() 120 .map(ShellCommand::getCommandHelp) in getAllCommandsHelp()
|
/aosp_15_r20/frameworks/base/services/tests/timetests/src/com/android/server/timedetector/ |
H A D | NetworkTimeSuggestionTest.java | 25 import android.os.ShellCommand; 68 ShellCommand testShellCommand = createShellCommandWithArgsAndOptions( in testParseCommandLineArg_noReferenceTime() 75 ShellCommand testShellCommand = createShellCommandWithArgsAndOptions( in testParseCommandLineArg_noUnixEpochTime() 82 ShellCommand testShellCommand = createShellCommandWithArgsAndOptions( in testParseCommandLineArg_noUncertaintyMillis() 89 ShellCommand testShellCommand = createShellCommandWithArgsAndOptions( in testParseCommandLineArg_validSuggestion() 100 ShellCommand testShellCommand = createShellCommandWithArgsAndOptions( in testParseCommandLineArg_unknownArgument()
|
H A D | GnssTimeSuggestionTest.java | 25 import android.os.ShellCommand; 58 ShellCommand testShellCommand = createShellCommandWithArgsAndOptions( in testParseCommandLineArg_noReferenceTime() 65 ShellCommand testShellCommand = createShellCommandWithArgsAndOptions( in testParseCommandLineArg_noUnixEpochTime() 72 ShellCommand testShellCommand = createShellCommandWithArgsAndOptions( in testParseCommandLineArg_validSuggestion() 83 ShellCommand testShellCommand = createShellCommandWithArgsAndOptions( in testParseCommandLineArg_unknownArgument()
|
/aosp_15_r20/frameworks/base/core/tests/timetests/src/android/app/time/ |
H A D | TimeStateTest.java | 26 import android.os.ShellCommand; 69 ShellCommand testShellCommand = createShellCommandWithArgsAndOptions( in testParseCommandLineArg_noElapsedRealtime() 76 ShellCommand testShellCommand = createShellCommandWithArgsAndOptions( in testParseCommandLineArg_noUnixEpochTime() 83 ShellCommand testShellCommand = createShellCommandWithArgsAndOptions( in testParseCommandLineArg_noUserShouldConfirmTime() 90 ShellCommand testShellCommand = createShellCommandWithArgsAndOptions( in testParseCommandLineArg_validSuggestion() 99 ShellCommand testShellCommand = createShellCommandWithArgsAndOptions( in testParseCommandLineArg_unknownArgument()
|
H A D | ExternalTimeSuggestionTest.java | 23 import android.os.ShellCommand; 43 ShellCommand testShellCommand = createShellCommandWithArgsAndOptions( in testParseCommandLineArg_noReferenceTime() 50 ShellCommand testShellCommand = createShellCommandWithArgsAndOptions( in testParseCommandLineArg_noUnixEpochTime() 57 ShellCommand testShellCommand = createShellCommandWithArgsAndOptions( in testParseCommandLineArg_validSuggestion() 67 ShellCommand testShellCommand = createShellCommandWithArgsAndOptions( in testParseCommandLineArg_unknownArgument()
|
H A D | UnixEpochTimeTest.java | 23 import android.os.ShellCommand; 44 ShellCommand testShellCommand = createShellCommandWithArgsAndOptions( in testParseCommandLineArg_noElapsedRealtime() 51 ShellCommand testShellCommand = createShellCommandWithArgsAndOptions( in testParseCommandLineArg_noUnixEpochTime() 58 ShellCommand testShellCommand = createShellCommandWithArgsAndOptions( in testParseCommandLineArg_validSuggestion() 67 ShellCommand testShellCommand = createShellCommandWithArgsAndOptions( in testParseCommandLineArg_unknownArgument()
|
H A D | TimeZoneStateTest.java | 26 import android.os.ShellCommand; 68 ShellCommand testShellCommand = createShellCommandWithArgsAndOptions( in testParseCommandLineArg_noZoneId() 75 ShellCommand testShellCommand = createShellCommandWithArgsAndOptions( in testParseCommandLineArg_noUserShouldConfirmId() 82 ShellCommand testShellCommand = createShellCommandWithArgsAndOptions( in testParseCommandLineArg_validSuggestion() 91 ShellCommand testShellCommand = createShellCommandWithArgsAndOptions( in testParseCommandLineArg_unknownArgument()
|
/aosp_15_r20/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/shell/signals/ |
D | SignalsShellCommandFactory.java | 39 import com.android.adservices.service.shell.ShellCommand; 62 private final Map<String, ShellCommand> mAllCommandsMap; 74 Set<ShellCommand> allCommandsMap = in SignalsShellCommandFactory() 87 ShellCommand::getCommandName, Function.identity())); in SignalsShellCommandFactory() 139 public ShellCommand getShellCommand(String cmd) { in getShellCommand() 146 ShellCommand command = mAllCommandsMap.get(cmd); in getShellCommand() 164 .map(ShellCommand::getCommandHelp) in getAllCommandsHelp()
|
/aosp_15_r20/frameworks/base/services/tests/timetests/src/com/android/server/timezonedetector/ |
H A D | LocationAlgorithmEventTest.java | 33 import android.os.ShellCommand; 89 ShellCommand testShellCommand = in testParseCommandLineArg_noStatus() 101 ShellCommand testShellCommand = createShellCommandWithArgsAndOptions( in testParseCommandLineArg_noSuggestion() 113 ShellCommand testShellCommand = createShellCommandWithArgsAndOptions( in testParseCommandLineArg_suggestionUncertain() 130 ShellCommand testShellCommand = createShellCommandWithArgsAndOptions( in testParseCommandLineArg_suggestionEmpty() 147 ShellCommand testShellCommand = createShellCommandWithArgsAndOptions( in testParseCommandLineArg_suggestionPresent() 164 ShellCommand testShellCommand = createShellCommandWithArgsAndOptions( in testParseCommandLineArg_unknownArgument()
|
H A D | ShellCommandTestSupport.java | 21 import android.os.ShellCommand; 36 public static ShellCommand createShellCommandWithArgsAndOptions(String argsWithSpaces) { in createShellCommandWithArgsAndOptions() 43 public static ShellCommand createShellCommandWithArgsAndOptions(List<String> args) { in createShellCommandWithArgsAndOptions() 44 ShellCommand command = mock(ShellCommand.class); in createShellCommandWithArgsAndOptions()
|
/aosp_15_r20/cts/tests/devicepolicy/src/android/devicepolicy/cts/ |
H A D | ProfileOwnerTest.kt | 35 import com.android.bedstead.nene.utils.ShellCommand in <lambda>() 56 ShellCommand in <lambda>() 77 ShellCommand in <lambda>() 100 ShellCommand in <lambda>() 118 ShellCommand in <lambda>() 157 ShellCommand in <lambda>() 196 ShellCommand in <lambda>() 233 ShellCommand in <lambda>() 255 ShellCommand in <lambda>()
|
/aosp_15_r20/frameworks/base/services/core/java/com/android/server/graphics/fonts/ |
H A D | FontManagerShellCommand.java | 34 import android.os.ShellCommand; 63 public class FontManagerShellCommand extends ShellCommand { 300 private void writeCommandResult(ShellCommand shell, SystemFontException e) { in writeCommandResult() 311 private int dump(ShellCommand shell) { in dump() 336 private int installCert(ShellCommand shell) throws SystemFontException { in installCert() 363 private int update(ShellCommand shell) throws SystemFontException { in update() 422 private int updateFamily(ShellCommand shell) throws SystemFontException { in updateFamily() 489 private int clear(ShellCommand shell) { in clear() 495 private int restart(ShellCommand shell) { in restart() 501 private int status(ShellCommand shell) { in status() [all …]
|
/aosp_15_r20/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/users/ |
H A D | UserReference.java | 58 import com.android.bedstead.nene.utils.ShellCommand; 59 import com.android.bedstead.nene.utils.ShellCommand.Builder; 197 ShellCommand.builder("pm remove-user") in remove() 245 ShellCommand.builder("pm remove-user") in removeWhenPossible() 297 Builder builder = ShellCommand.builder("am start-user") in startUser() 343 ShellCommand.builder("am stop-user") in stop() 390 ShellCommand.builder("am switch-user") in switchTo() 680 ShellCommand.builder("cmd lock_settings") in getScreenLockDisabled() 692 ShellCommand.builder("cmd lock_settings") in setScreenLockDisabled() 724 ShellCommand.Builder commandBuilder = ShellCommand.builder("cmd lock_settings") in setLockCredential() [all …]
|
/aosp_15_r20/frameworks/base/core/tests/timetests/src/android/app/timezonedetector/ |
H A D | ShellCommandTestSupport.java | 21 import android.os.ShellCommand; 36 public static ShellCommand createShellCommandWithArgsAndOptions(String argsWithSpaces) { in createShellCommandWithArgsAndOptions() 43 public static ShellCommand createShellCommandWithArgsAndOptions(List<String> args) { in createShellCommandWithArgsAndOptions() 44 ShellCommand command = mock(ShellCommand.class); in createShellCommandWithArgsAndOptions()
|
/aosp_15_r20/frameworks/base/core/tests/timetests/src/android/app/timedetector/ |
H A D | TelephonyTimeSuggestionTest.java | 27 import android.os.ShellCommand; 111 ShellCommand testShellCommand = createShellCommandWithArgsAndOptions( in testParseCommandLineArg_noSlotIndex() 118 ShellCommand testShellCommand = createShellCommandWithArgsAndOptions( in testParseCommandLineArg_noReferenceTime() 125 ShellCommand testShellCommand = createShellCommandWithArgsAndOptions( in testParseCommandLineArg_noUnixEpochTime() 132 ShellCommand testShellCommand = createShellCommandWithArgsAndOptions( in testParseCommandLineArg_validSuggestion() 145 ShellCommand testShellCommand = createShellCommandWithArgsAndOptions( in testParseCommandLineArg_unknownArgument()
|
H A D | ManualTimeSuggestionTest.java | 27 import android.os.ShellCommand; 78 ShellCommand testShellCommand = createShellCommandWithArgsAndOptions( in testParseCommandLineArg_noReferenceTime() 85 ShellCommand testShellCommand = createShellCommandWithArgsAndOptions( in testParseCommandLineArg_noUnixEpochTime() 92 ShellCommand testShellCommand = createShellCommandWithArgsAndOptions( in testParseCommandLineArg_validSuggestion() 103 ShellCommand testShellCommand = createShellCommandWithArgsAndOptions( in testParseCommandLineArg_unknownArgument()
|
/aosp_15_r20/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/shell/adselection/ |
D | AdSelectionShellCommandFactory.java | 50 import com.android.adservices.service.shell.ShellCommand; 67 private final Map<String, ShellCommand> mAllCommandsMap; 86 Set<ShellCommand> allCommands = in AdSelectionShellCommandFactory() 99 ShellCommand::getCommandName, Function.identity())); in AdSelectionShellCommandFactory() 168 public ShellCommand getShellCommand(String cmd) { in getShellCommand() 176 ShellCommand command = mAllCommandsMap.get(cmd); in getShellCommand() 209 .map(ShellCommand::getCommandHelp) in getAllCommandsHelp()
|
/aosp_15_r20/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/device/ |
H A D | Device.java | 32 import com.android.bedstead.nene.utils.ShellCommand; 76 String unused1 = ShellCommand.builder("input keyevent") in wakeUp() 92 String unused1 = ShellCommand.builder("input keyevent") in sleep() 108 String unused = ShellCommand.builder("wm dismiss-keyguard") in unlock() 123 String unused = ShellCommand.builder("svc power stayon") in keepScreenOn()
|