Home
last modified time | relevance | path

Searched refs:executor (Results 1 – 7 of 7) sorted by relevance

/platform_testing/libraries/compatibility-common-util/src/com/android/compatibility/common/util/
DBusinessLogic.java77 public void applyLogicFor(String testName, BusinessLogicExecutor executor) { in applyLogicFor() argument
82 applyLogicsFor(testName, executor); // handle this special case separately in applyLogicFor()
87 rulesList.invokeRules(executor); in applyLogicFor()
99 private void applyLogicsFor(String testName, BusinessLogicExecutor executor) { in applyLogicsFor() argument
107 rulesList.invokeRules(executor); in applyLogicsFor()
111 executor.logInfo("Test %s (%s) skipped for reason: %s", testName, description, in applyLogicsFor()
238 public void invokeRules(BusinessLogicExecutor executor) { in invokeRules() argument
241 if (rule.invokeConditions(executor)) { in invokeRules()
242 rule.invokeActions(executor); in invokeRules()
268 public boolean invokeConditions(BusinessLogicExecutor executor) { in invokeConditions() argument
[all …]
/platform_testing/libraries/audio-test-harness/server/src/main/java/com/android/media/audiotestharness/server/
DAudioTestHarnessServerModule.java43 private AudioTestHarnessServerModule(Executor executor) { in AudioTestHarnessServerModule() argument
44 this.mExecutor = executor; in AudioTestHarnessServerModule()
54 public static AudioTestHarnessServerModule create(Executor executor) { in create() argument
55 Preconditions.checkNotNull(executor, "Executor cannot be null."); in create()
56 return new AudioTestHarnessServerModule(executor); in create()
DAudioTestHarnessGrpcServer.java75 private AudioTestHarnessGrpcServer(int port, ExecutorService executor, Injector injector) { in AudioTestHarnessGrpcServer() argument
79 this.mExecutor = executor; in AudioTestHarnessGrpcServer()
94 int port, ExecutorService executor, Injector injector) { in create() argument
97 Preconditions.checkNotNull(executor, "Executor cannot be null."), in create()
109 ExecutorService executor = Executors.newFixedThreadPool(THREAD_COUNT); in createOnPort() local
110 Injector injector = Guice.createInjector(AudioTestHarnessServerModule.create(executor)); in createOnPort()
112 return create(port, executor, injector); in createOnPort()
147 ServerBuilder<?> serverBuilder = ServerBuilder.forPort(mPort).executor(mExecutor); in open()
/platform_testing/libraries/audio-test-harness/server/src/main/java/com/android/media/audiotestharness/server/javasound/
DJavaAudioCapturerFactory.java35 public JavaAudioCapturerFactory(Executor executor) { in JavaAudioCapturerFactory() argument
36 mExecutor = executor; in JavaAudioCapturerFactory()
DJavaAudioCapturer.java83 Executor executor) { in JavaAudioCapturer() argument
88 mExecutorService = executor; in JavaAudioCapturer()
103 Executor executor) { in create() argument
108 return new JavaAudioCapturer(audioDevice, audioFormat, targetDataLine, executor); in create()
/platform_testing/tests/health/scenarios/src/android/platform/test/scenario/generic/
DMathWork.java60 ScheduledThreadPoolExecutor executor = new ScheduledThreadPoolExecutor(mThreads.get()); in testDoMath() local
67 executor.scheduleAtFixedRate( in testDoMath()
76 executor.shutdownNow(); in testDoMath()
/platform_testing/libraries/audio-test-harness/client-lib/src/main/java/com/android/media/audiotestharness/client/grpc/
DGrpcAudioTestHarnessClient.java109 public Builder setExecutor(Executor executor) { in setExecutor() argument
110 mExecutor = executor; in setExecutor()
139 .executor(mExecutor) in build()