Home
last modified time | relevance | path

Searched refs:Scenario (Results 1 – 25 of 55) sorted by relevance

123

/packages/modules/AdServices/adservices/tests/cts/src/android/adservices/utils/
DScenarioLoader.java54 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 …]
DScenarioDispatcher.java57 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/
DConcurrentProfile.java24 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 …]
DProfileSuite.java19 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()
DScheduledScenarioRunner.java22 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()
DConcurrentRunner.java19 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/
DLocationAccessPolicyTest.java51 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/
DNearbyDevicesRenouncePermissionTest.java103 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/
DGetAdIdApiCallCacheDisabled.java21 import android.platform.test.scenario.annotation.Scenario;
29 @Scenario
DGetAdIdApiCall.java21 import android.platform.test.scenario.annotation.Scenario;
29 @Scenario
/packages/modules/AdServices/adservices/tests/perf/src/android/adservices/test/scenario/adservices/fledge/
DSelectAdsFiveBuyersLargeLatency.java19 import android.platform.test.scenario.annotation.Scenario;
25 @Scenario
DSelectAdsOneBuyerLargeLatency.java19 import android.platform.test.scenario.annotation.Scenario;
25 @Scenario
/packages/modules/AdServices/adservices/tests/perf/src/android/adservices/test/scenario/adservices/measurement/
DMeasurementLatencyTest.java19 import android.platform.test.scenario.annotation.Scenario;
25 @Scenario
/packages/modules/AdServices/adservices/tests/perf/src/android/adservices/test/scenario/adservices/measurement/load/scenarios/
DDeviceExecuteShellCommand.java20 import android.platform.test.scenario.annotation.Scenario;
30 @Scenario
DDeviceChangeTime.java20 import android.platform.test.scenario.annotation.Scenario;
30 @Scenario
DForceRunJob.java20 import android.platform.test.scenario.annotation.Scenario;
33 @Scenario
/packages/modules/OnDevicePersonalization/tests/perftests/scenarios/src/android/ondevicepersonalization/test/scenario/ondevicepersonalization/
DRequestAdAndClickAd.java18 import android.platform.test.scenario.annotation.Scenario;
29 @Scenario
DRequestAd.java18 import android.platform.test.scenario.annotation.Scenario;
29 @Scenario
DDownloadVendorData.java18 import android.platform.test.scenario.annotation.Scenario;
29 @Scenario
DReportConversion.java18 import android.platform.test.scenario.annotation.Scenario;
29 @Scenario
/packages/modules/OnDevicePersonalization/tests/perftests/scenarios/src/android/federatedcompute/test/scenario/federatedcompute/
DScheduleAndForceTraining.java18 import android.platform.test.scenario.annotation.Scenario;
29 @Scenario
DScheduleAndForceEncryptionKeyFetchJob.java18 import android.platform.test.scenario.annotation.Scenario;
29 @Scenario
DScheduleNonExistentPopulationForTraining.java18 import android.platform.test.scenario.annotation.Scenario;
29 @Scenario
DScheduleAndCancelTraining.java18 import android.platform.test.scenario.annotation.Scenario;
29 @Scenario
DScheduleRecurrentTrainingAndExecute.java19 import android.platform.test.scenario.annotation.Scenario;
30 @Scenario

123