/packages/modules/AdServices/adservices/tests/cts/src/android/adservices/utils/ |
D | ScenarioLoader.java | 54 static Scenario load(String scenarioPath, Map<String, String> substitutionVariables) in load() 69 private static Scenario parseScenario(JSONObject json, Map<String, String> variables) in parseScenario() 71 ImmutableMap.Builder<Scenario.Request, Scenario.MockResponse> builder = in parseScenario() 76 Pair<Scenario.Request, Scenario.MockResponse> mock = parseMock(mockObject, variables); in parseScenario() 79 return new Scenario(builder.build()); in parseScenario() 82 private static Pair<Scenario.Request, Scenario.MockResponse> parseMock( in parseMock() 94 Scenario.Request request = parseRequest(requestJson, variables); in parseMock() 95 Scenario.MockResponse parsedMock = in parseMock() 96 Scenario.MockResponse.newBuilder() in parseMock() 109 private static Scenario.Request parseRequest(JSONObject json, Map<String, String> variables) { in parseRequest() [all …]
|
D | ScenarioDispatcher.java | 57 private final ImmutableMap<Scenario.Request, Scenario.MockResponse> mRequestToMockMap; 164 for (Scenario.Request mockRequest : mRequestToMockMap.keySet()) { in dispatch() 167 Scenario.MockResponse mock = mRequestToMockMap.get(mockRequest); in dispatch() 168 Scenario.Response mockResponse = Objects.requireNonNull(mock).getDefaultResponse(); in dispatch()
|
/packages/modules/AdServices/adservices/libraries/health/runners/concurrent-longevity/adservices/src/android/adservices/test/longevity/concurrent/ |
D | ConcurrentProfile.java | 24 import android.adservices.test.longevity.concurrent.proto.Configuration.Scenario; 25 import android.adservices.test.longevity.concurrent.proto.Configuration.Scenario.Journey; 26 import android.adservices.test.longevity.concurrent.proto.Configuration.Scenario.Journey.ExtraArg; 84 private List<Scenario> mOrderedScenariosList; 105 List<Scenario> orderedScenarios = new ArrayList<>(mConfiguration.getScenariosList()); in ConcurrentProfile() 171 Scenario nextScenario = mOrderedScenariosList.get(mScenarioIndex + 1); in getTimeUntilNextScenarioMs() 202 public Scenario getCurrentScenario() { in getCurrentScenario() 279 Scenario scenario = mOrderedScenariosList.get(i); in getTestSequenceFromConfiguration() 298 for (Scenario scenario : mOrderedScenariosList) { in validateConfig() 368 private void validateExtraArgs(Scenario scenario) { in validateExtraArgs() [all …]
|
D | ProfileSuite.java | 19 import android.adservices.test.longevity.concurrent.proto.Configuration.Scenario; 20 import android.adservices.test.longevity.concurrent.proto.Configuration.Scenario.Journey.ExtraArg; 109 for (Scenario.Journey journey : mProfile.getCurrentScenario().getJourneysList()) { in runChild() 177 Runner runner, Scenario scenario, long timeout, boolean shouldIdle) { in getScheduledRunner() 216 android.platform.test.scenario.annotation.Scenario.class)) { in validateSuiteAndScenarios()
|
D | ScheduledScenarioRunner.java | 22 import android.adservices.test.longevity.concurrent.proto.Configuration.Scenario; 72 public ScheduledScenarioRunner(Scenario scenario, long timeout, boolean shouldIdle) in ScheduledScenarioRunner() 77 ScheduledScenarioRunner(Scenario scenario, long timeout, boolean shouldIdle, Bundle arguments) in ScheduledScenarioRunner() 111 .equals(Scenario.AfterTest.STAY_IN_APP)) { in withAfters()
|
D | ConcurrentRunner.java | 19 import android.adservices.test.longevity.concurrent.proto.Configuration.Scenario; 20 import android.adservices.test.longevity.concurrent.proto.Configuration.Scenario.Journey; 59 protected final Scenario mScenario; 66 public ConcurrentRunner(Scenario scenario, String scheduleIdx) throws InitializationError { in ConcurrentRunner() 274 @android.platform.test.scenario.annotation.Scenario
|
/packages/services/Telephony/tests/src/com/android/phone/ |
D | LocationAccessPolicyTest.java | 51 private static class Scenario { class in LocationAccessPolicyTest 112 public Scenario build() { in build() 113 return new Scenario(mAppSdkLevel, mAppHasFineManifest, mAppHasCoarseManifest, in build() 128 private Scenario(int appSdkLevel, boolean appHasFineManifest, boolean appHasCoarseManifest, in Scenario() method in LocationAccessPolicyTest.Scenario 160 Scenario mScenario; 180 public LocationAccessPolicyTest(Scenario scenario) { in LocationAccessPolicyTest() 192 private void setupScenario(Scenario s) { in setupScenario() 243 public static Collection<Scenario> getScenarios() { in getScenarios() 244 List<Scenario> scenarios = new ArrayList<>(); in getScenarios() 245 scenarios.add(new Scenario.Builder() in getScenarios() [all …]
|
/packages/modules/Permission/tests/cts/permission/src/android/permission/cts/ |
D | NearbyDevicesRenouncePermissionTest.java | 103 private enum Scenario { enum in NearbyDevicesRenouncePermissionTest 186 assertThat(performScan(Scenario.DEFAULT)).isEqualTo(Result.FULL); in scanWithoutRenouncingNotesBluetoothAndLocation() 198 assertThat(performScan(Scenario.RENOUNCE)).isEqualTo(Result.FILTERED); in scanRenouncingLocationNotesBluetoothButNotLocation() 210 assertThat(performScan(Scenario.RENOUNCE_MIDDLE)).isEqualTo(Result.FILTERED); in scanRenouncingInMiddleOfChainNotesBluetoothButNotLocation() 220 assertThat(performScan(Scenario.RENOUNCE_END)).isEqualTo(Result.FILTERED); in scanRenouncingAtEndOfChainNotesBluetoothButNotLocation() 227 private Result performScan(Scenario scenario) { in performScan() 269 private Context createContext(Scenario scenario, Context context) throws Exception { in createContext() 270 if (scenario == Scenario.DEFAULT) { in createContext()
|
/packages/modules/AdServices/adservices/tests/perf/src/android/adservices/test/scenario/adservices/iapc/ |
D | GetAdIdApiCallCacheDisabled.java | 21 import android.platform.test.scenario.annotation.Scenario; 29 @Scenario
|
D | GetAdIdApiCall.java | 21 import android.platform.test.scenario.annotation.Scenario; 29 @Scenario
|
/packages/modules/AdServices/adservices/tests/perf/src/android/adservices/test/scenario/adservices/fledge/ |
D | SelectAdsFiveBuyersLargeLatency.java | 19 import android.platform.test.scenario.annotation.Scenario; 25 @Scenario
|
D | SelectAdsOneBuyerLargeLatency.java | 19 import android.platform.test.scenario.annotation.Scenario; 25 @Scenario
|
/packages/modules/AdServices/adservices/tests/perf/src/android/adservices/test/scenario/adservices/measurement/ |
D | MeasurementLatencyTest.java | 19 import android.platform.test.scenario.annotation.Scenario; 25 @Scenario
|
/packages/modules/AdServices/adservices/tests/perf/src/android/adservices/test/scenario/adservices/measurement/load/scenarios/ |
D | DeviceExecuteShellCommand.java | 20 import android.platform.test.scenario.annotation.Scenario; 30 @Scenario
|
D | DeviceChangeTime.java | 20 import android.platform.test.scenario.annotation.Scenario; 30 @Scenario
|
D | ForceRunJob.java | 20 import android.platform.test.scenario.annotation.Scenario; 33 @Scenario
|
/packages/modules/OnDevicePersonalization/tests/perftests/scenarios/src/android/ondevicepersonalization/test/scenario/ondevicepersonalization/ |
D | RequestAdAndClickAd.java | 18 import android.platform.test.scenario.annotation.Scenario; 29 @Scenario
|
D | RequestAd.java | 18 import android.platform.test.scenario.annotation.Scenario; 29 @Scenario
|
D | DownloadVendorData.java | 18 import android.platform.test.scenario.annotation.Scenario; 29 @Scenario
|
D | ReportConversion.java | 18 import android.platform.test.scenario.annotation.Scenario; 29 @Scenario
|
/packages/modules/OnDevicePersonalization/tests/perftests/scenarios/src/android/federatedcompute/test/scenario/federatedcompute/ |
D | ScheduleAndForceTraining.java | 18 import android.platform.test.scenario.annotation.Scenario; 29 @Scenario
|
D | ScheduleAndForceEncryptionKeyFetchJob.java | 18 import android.platform.test.scenario.annotation.Scenario; 29 @Scenario
|
D | ScheduleNonExistentPopulationForTraining.java | 18 import android.platform.test.scenario.annotation.Scenario; 29 @Scenario
|
D | ScheduleAndCancelTraining.java | 18 import android.platform.test.scenario.annotation.Scenario; 29 @Scenario
|
D | ScheduleRecurrentTrainingAndExecute.java | 19 import android.platform.test.scenario.annotation.Scenario; 30 @Scenario
|