/cts/tests/tests/tv/src/android/media/tv/cts/ |
D | TvInputServiceTest.java | 228 CountingSession session = CountingTvInputService.sSession; in verifyCommandTune() local 229 return session != null && session.mTuneCount > 0 && session.mCreateOverlayView > 0; in verifyCommandTune() 241 CountingSession session = CountingTvInputService.sSession; in verifyCommandSetStreamVolume() local 242 return session != null && session.mSetStreamVolumeCount > 0; in verifyCommandSetStreamVolume() 254 CountingSession session = CountingTvInputService.sSession; in verifyCommandSetCaptionEnabled() local 255 return session != null && session.mSetCaptionEnabledCount > 0; in verifyCommandSetCaptionEnabled() 268 CountingSession session = CountingTvInputService.sSession; in verifyCommandSelectTrack() local 269 return session != null && session.mSelectTrackCount > 0; in verifyCommandSelectTrack() 281 CountingSession session = CountingTvInputService.sSession; in verifyCommandDispatchKeyDown() local 282 return session != null && session.mKeyDownCount > 0; in verifyCommandDispatchKeyDown() [all …]
|
D | HardwareSessionTest.java | 94 CountingSession session = HardwareProxyTvInputService.sSession; in verifyCommandTuneAndHardwareVideoAvailable() local 95 return session != null && session.mTuneCount > 0 in verifyCommandTuneAndHardwareVideoAvailable() 96 && session.mHardwareVideoAvailableCount > 0; in verifyCommandTuneAndHardwareVideoAvailable()
|
/cts/tests/tests/hardware/src/android/hardware/camera2/cts/helpers/ |
D | CameraSessionUtils.java | 85 public void onConfigured(CameraCaptureSession session) { in onConfigured() argument 86 mSessionQueue.offer(session); in onConfigured() 87 super.onConfigured(session); in onConfigured() 117 CameraCaptureSession session, CaptureRequest request, Handler handler) in getCapturedResult() argument 119 session.capture(request, this, handler); in getCapturedResult() 126 public void onCaptureStarted(CameraCaptureSession session, CaptureRequest request, in onCaptureStarted() argument 129 super.onCaptureStarted(session, request, timestamp, frameNumber); in onCaptureStarted() 133 public void onCaptureCompleted(CameraCaptureSession session, CaptureRequest request, in onCaptureCompleted() argument 136 super.onCaptureCompleted(session, request, result); in onCaptureCompleted() 183 CameraCaptureSession session = listener.getConfiguredSession(device, outputs, handler); in configureAndVerifySession() local [all …]
|
D | Camera2Focuser.java | 93 public Camera2Focuser(CameraDevice camera, CameraCaptureSession session, Surface requestSurface, in Camera2Focuser() argument 99 if (session == null) { in Camera2Focuser() 116 mSession = session; in Camera2Focuser() 348 public void onCaptureProgressed(CameraCaptureSession session, CaptureRequest request, in createCaptureListener() argument 363 public void onCaptureCompleted(CameraCaptureSession session, CaptureRequest request, in createCaptureListener() argument
|
/cts/tests/tests/security/jni/ |
D | android_security_cts_AudioPolicyBinderTest.cpp | 34 static bool init(sp<IAudioPolicyService>& aps, audio_io_handle_t *output, int *session) in init() argument 40 if (session != NULL) { in init() 41 *session = AUDIO_UNIQUE_ID_ALLOCATE; in init() 74 if (session != NULL) { in init() 76 *session = AudioSystem::newAudioUniqueId(); in init() 77 if (*session == AUDIO_UNIQUE_ID_ALLOCATE) { in init() 94 int session; in android_security_cts_AudioPolicy_test_startOutput() local 96 if (!init(aps, &output, &session)) { in android_security_cts_AudioPolicy_test_startOutput() 101 (audio_session_t)session); in android_security_cts_AudioPolicy_test_startOutput() 106 (audio_session_t)session); in android_security_cts_AudioPolicy_test_startOutput() [all …]
|
/cts/tests/tests/print/src/android/print/cts/services/ |
D | PrinterDiscoverySessionCallbacks.java | 27 public void setSession(StubbablePrinterDiscoverySession session) { in setSession() argument 28 mSession = session; in setSession()
|
/cts/tests/tests/print/src/android/print/cts/ |
D | PrinterDiscoverySessionLifecycleTest.java | 288 StubbablePrinterDiscoverySession session = sessionCallbacks.getSession(); in getAddedPrinterIdForLocalId() 289 reportedPrinters.addAll(session.getPrinters()); in getAddedPrinterIdForLocalId() 314 StubbablePrinterDiscoverySession session = ((PrinterDiscoverySessionCallbacks) in createFirstMockPrinterDiscoverySessionCallbacks() 317 if (session.getPrinters().isEmpty()) { in createFirstMockPrinterDiscoverySessionCallbacks() 321 PrinterId firstPrinterId = session.getService().generatePrinterId( in createFirstMockPrinterDiscoverySessionCallbacks() 329 PrinterId secondPrinterId = session.getService().generatePrinterId( in createFirstMockPrinterDiscoverySessionCallbacks() 336 session.addPrinters(printers); in createFirstMockPrinterDiscoverySessionCallbacks() 344 StubbablePrinterDiscoverySession session = ((PrinterDiscoverySessionCallbacks) in createFirstMockPrinterDiscoverySessionCallbacks() local 348 List<PrinterInfo> reportedPrinters = session.getPrinters(); in createFirstMockPrinterDiscoverySessionCallbacks() 383 session.addPrinters(printers); in createFirstMockPrinterDiscoverySessionCallbacks()
|
D | PageRangeAdjustmentTest.java | 642 StubbablePrinterDiscoverySession session = mock.getSession(); in createMockFirstPrinterDiscoverySessionCallbacks() 643 PrintService service = session.getService(); in createMockFirstPrinterDiscoverySessionCallbacks() 645 if (session.getPrinters().isEmpty()) { in createMockFirstPrinterDiscoverySessionCallbacks() 665 session.addPrinters(printers); in createMockFirstPrinterDiscoverySessionCallbacks()
|
/cts/tests/tests/hardware/src/android/hardware/camera2/cts/ |
D | CameraDeviceTest.java | 428 public void onCaptureCompleted(CameraCaptureSession session, CaptureRequest request, in testChainedOperation() argument 432 session.getDevice().createCaptureRequest(CameraDevice.TEMPLATE_PREVIEW); in testChainedOperation() 436 session.abortCaptures(); in testChainedOperation() 437 session.capture(request2.build(), in testChainedOperation() 439 session.setRepeatingRequest(request2.build(), in testChainedOperation() 441 session.stopRepeating(); in testChainedOperation() 443 CameraDevice camera = session.getDevice(); in testChainedOperation() 444 session.close(); in testChainedOperation() 453 public void onCaptureFailed(CameraCaptureSession session, CaptureRequest request, in testChainedOperation() argument 456 CameraDevice camera = session.getDevice(); in testChainedOperation() [all …]
|
D | CaptureResultTest.java | 304 CameraCaptureSession session = configureAndVerifySession(mockSessionListener, in testResultTimestamps() local 316 session, previewBuilder.build(), mHandler); in testResultTimestamps() 324 session, multiBuilder.build(), mHandler); in testResultTimestamps() 339 session, previewBuilder.build(), mHandler); in testResultTimestamps() 341 session, previewBuilder.build(), mHandler); in testResultTimestamps() 628 CameraCaptureSession session, CaptureRequest request, long timestamp, long frameNumber) in onCaptureStarted() argument 635 public void onCaptureCompleted(CameraCaptureSession session, CaptureRequest request, in onCaptureCompleted() argument 658 public void onCaptureProgressed(CameraCaptureSession session, CaptureRequest request, in onCaptureProgressed() argument
|
D | SurfaceViewPreviewTest.java | 466 CameraCaptureSession session, in verifyCaptureResults() argument 476 eq(session), in verifyCaptureResults() 502 eq(session), in verifyCaptureResults() 509 eq(session), in verifyCaptureResults()
|
D | CameraTestUtils.java | 389 public void onCaptureStarted(CameraCaptureSession session, CaptureRequest request, in onCaptureStarted() argument 400 public void onCaptureCompleted(CameraCaptureSession session, CaptureRequest request, in onCaptureCompleted() argument 412 public void onCaptureFailed(CameraCaptureSession session, CaptureRequest request, in onCaptureFailed() argument 423 public void onCaptureSequenceCompleted(CameraCaptureSession session, int sequenceId, in onCaptureSequenceCompleted() argument 711 CameraCaptureSession session = in configureCameraSession() local 714 session.isReprocessable()); in configureCameraSession() 718 … CameraConstrainedHighSpeedCaptureSession.class.isAssignableFrom(session.getClass())); in configureCameraSession() 720 return session; in configureCameraSession() 755 CameraCaptureSession session = in configureReprocessableCameraSession() local 757 assertTrue("Camera session should be a reprocessable session", session.isReprocessable()); in configureReprocessableCameraSession() [all …]
|
/cts/tests/tests/media/src/android/media/cts/ |
D | LoudnessEnhancerTest.java | 54 int session = am.generateAudioSessionId(); in test0_0ConstructorAndRelease() local 55 assertTrue("cannot generate new session", session != AudioManager.ERROR); in test0_0ConstructorAndRelease() 56 getLoudnessEnhancer(session); in test0_0ConstructorAndRelease() 193 private void getLoudnessEnhancer(int session) { in getLoudnessEnhancer() argument 196 mLE = new LoudnessEnhancer(session); in getLoudnessEnhancer()
|
D | MediaSessionManagerTest.java | 19 import android.media.session.MediaController; 20 import android.media.session.MediaSessionManager;
|
D | PresetReverbTest.java | 251 private void getReverb(int session) { in getReverb() argument 252 if (mReverb == null || session != mSession) { in getReverb() 253 if (session != mSession && mReverb != null) { in getReverb() 258 mReverb = new PresetReverb(0, session); in getReverb() 259 mSession = session; in getReverb()
|
D | BassBoostTest.java | 290 private void getBassBoost(int session) { in getBassBoost() argument 291 if (mBassBoost == null || session != mSession) { in getBassBoost() 292 if (session != mSession && mBassBoost != null) { in getBassBoost() 297 mBassBoost = new BassBoost(0, session); in getBassBoost() 298 mSession = session; in getBassBoost()
|
D | EqualizerTest.java | 311 private void getEqualizer(int session) { in getEqualizer() argument 312 if (mEqualizer == null || session != mSession) { in getEqualizer() 313 if (session != mSession && mEqualizer != null) { in getEqualizer() 318 mEqualizer = new Equalizer(0, session); in getEqualizer() 319 mSession = session; in getEqualizer()
|
D | EnvReverbTest.java | 410 private void getReverb(int session) { in getReverb() argument 411 if (mReverb == null || session != mSession) { in getReverb() 412 if (session != mSession && mReverb != null) { in getReverb() 417 mReverb = new EnvironmentalReverb(0, session); in getReverb() 418 mSession = session; in getReverb()
|
D | VisualizerTest.java | 453 private void getVisualizer(int session) { in getVisualizer() argument 454 if (mVisualizer == null || session != mSession) { in getVisualizer() 455 if (session != mSession && mVisualizer != null) { in getVisualizer() 460 mVisualizer = new Visualizer(session); in getVisualizer() 461 mSession = session; in getVisualizer()
|
D | VirtualizerTest.java | 548 private void getVirtualizer(int session) { in getVirtualizer() argument 549 if (mVirtualizer == null || session != mSession) { in getVirtualizer() 550 if (session != mSession && mVirtualizer != null) { in getVirtualizer() 555 mVirtualizer = new Virtualizer(0, session); in getVirtualizer() 556 mSession = session; in getVirtualizer()
|
D | MediaSessionTest.java | 27 import android.media.session.MediaController; 28 import android.media.session.MediaSession; 29 import android.media.session.MediaSession.QueueItem; 30 import android.media.session.PlaybackState;
|
D | MediaControllerTest.java | 21 import android.media.session.MediaController; 22 import android.media.session.MediaSession; 23 import android.media.session.PlaybackState.CustomAction;
|
D | StubMediaBrowserService.java | 21 import android.media.session.MediaSession;
|
D | AudioEffectTest.java | 840 private void getEffect(UUID type, int session) { in getEffect() argument 841 if (mEffect == null || session != mSession) { in getEffect() 842 if (session != mSession && mEffect != null) { in getEffect() 850 session); in getEffect() 851 mSession = session; in getEffect()
|
/cts/tools/tradefed-host/src/com/android/cts/tradefed/result/ |
D | PlanCreator.java | 81 public PlanCreator(String planName, int session, CtsTestStatus result) { in PlanCreator() argument 83 mSessionId = session; in PlanCreator()
|