Home
last modified time | relevance | path

Searched refs:sync (Results 1 – 25 of 186) sorted by relevance

12345678

/frameworks/base/media/jni/
Dandroid_media_MediaSync.cpp124 static sp<JMediaSync> setMediaSync(JNIEnv *env, jobject thiz, const sp<JMediaSync> &sync) { in setMediaSync() argument
126 if (sync != NULL) { in setMediaSync()
127 sync->incStrong(thiz); in setMediaSync()
133 env->SetLongField(thiz, gFields.context, (jlong)sync.get()); in setMediaSync()
174 sp<JMediaSync> sync = getMediaSync(env, thiz); in android_media_MediaSync_native_setSurface() local
175 if (sync == NULL) { in android_media_MediaSync_native_setSurface()
191 status_t err = sync->setSurface(bufferProducer); in android_media_MediaSync_native_setSurface()
207 sp<JMediaSync> sync = getMediaSync(env, thiz); in android_media_MediaSync_native_setAudioTrack() local
208 if (sync == NULL) { in android_media_MediaSync_native_setAudioTrack()
222 status_t err = sync->setAudioTrack(audioTrack); in android_media_MediaSync_native_setAudioTrack()
[all …]
Dandroid_media_SyncParams.cpp60 sync.mSource = (AVSyncSource)env->GetIntField(params, fields.sync_source); in fillFromJobject()
61sync.mAudioAdjustMode = (AVSyncAudioAdjustMode)env->GetIntField(params, fields.audio_adjust_mode); in fillFromJobject()
62 sync.mTolerance = env->GetFloatField(params, fields.tolerance); in fillFromJobject()
77 env->SetIntField(params, fields.sync_source, (jint)sync.mSource); in asJobject()
78 env->SetIntField(params, fields.audio_adjust_mode, (jint)sync.mAudioAdjustMode); in asJobject()
79 env->SetFloatField(params, fields.tolerance, (jfloat)sync.mTolerance); in asJobject()
/frameworks/base/libs/hwui/tests/unit/
DWebViewFunctorManagerTests.cpp55 EXPECT_EQ(0, counts.sync); in TEST()
61 handle->sync(syncData); in TEST()
64 EXPECT_EQ(1, counts.sync); in TEST()
68 handle->sync(syncData); in TEST()
71 EXPECT_EQ(2, counts.sync); in TEST()
79 EXPECT_EQ(2, counts.sync); in TEST()
95 handle->sync(syncData); in TEST()
105 EXPECT_EQ(5, counts.sync); in TEST()
121 handle->sync(syncData); in TEST()
125 EXPECT_EQ(1, counts.sync); in TEST()
[all …]
/frameworks/native/opengl/specs/
DEGL_ANDROID_native_fence_sync.txt39 This extension enables the creation of EGL fence sync objects that are
41 using a file descriptor. These EGL fence sync objects have nearly
47 object that behaves similarly to an EGL fence sync object. These native
89 "If <type> is EGL_SYNC_NATIVE_FENCE_ANDROID, an EGL native fence sync
95 The default values for the EGL native fence sync object attributes are as
115 "When a fence sync object is created or when an EGL native fence sync
120 with the newly created sync object.
122 After associating the fence command with an EGL native fence sync object,
127 new native fence object is signaled when the EGL native fence sync object
130 When the condition of the sync object is satisfied by the fence command,
[all …]
/frameworks/opt/gamesdk/src/swappyVk/
DSwappyVk.cpp564 VkSync sync; in initializeVkSyncObjects() local
590 res = vkCreateFence(mDevice, &fence_ci, NULL, &sync.fence); in initializeVkSyncObjects()
599 res = vkCreateSemaphore(mDevice, &semaphore_ci, NULL, &sync.semaphore); in initializeVkSyncObjects()
606 res = vkAllocateCommandBuffers(mDevice, &present_cmd_info, &sync.command); in initializeVkSyncObjects()
619 res = vkBeginCommandBuffer(sync.command, &cmd_buf_info); in initializeVkSyncObjects()
631 res = vkCreateEvent(mDevice, &event_info, NULL, &sync.event); in initializeVkSyncObjects()
637 vkCmdSetEvent(sync.command, sync.event, VK_PIPELINE_STAGE_BOTTOM_OF_PIPE_BIT); in initializeVkSyncObjects()
639 res = vkEndCommandBuffer(sync.command); in initializeVkSyncObjects()
645 mFreeSync[queue].push_back(sync); in initializeVkSyncObjects()
654 VkSync sync = mPendingSync[it->first].front(); in destroyVkSyncObjects() local
[all …]
/frameworks/base/media/java/android/media/
DJetPlayer.java334 public boolean setMuteFlags(int muteFlags, boolean sync) { in setMuteFlags() argument
335 return native_setMuteFlags(muteFlags, sync); in setMuteFlags()
350 public boolean setMuteArray(boolean[] muteArray, boolean sync) { in setMuteArray() argument
353 return native_setMuteArray(muteArray, sync); in setMuteArray()
367 public boolean setMuteFlag(int trackId, boolean muteFlag, boolean sync) { in setMuteFlag() argument
368 return native_setMuteFlag(trackId, muteFlag, sync); in setMuteFlag()
555 private native final boolean native_setMuteFlags(int muteFlags, boolean sync); in native_setMuteFlags() argument
556 private native final boolean native_setMuteArray(boolean[]muteArray, boolean sync); in native_setMuteArray() argument
557 private native final boolean native_setMuteFlag(int trackId, boolean muteFlag, boolean sync); in native_setMuteFlag() argument
/frameworks/native/opengl/libs/EGL/
DeglApi.cpp426 EGLBoolean eglDestroySync(EGLDisplay dpy, EGLSyncKHR sync) { in eglDestroySync() argument
430 return cnx->platform.eglDestroySync(dpy, sync); in eglDestroySync()
433 EGLBoolean eglDestroySyncKHR(EGLDisplay dpy, EGLSyncKHR sync) { in eglDestroySyncKHR() argument
437 return cnx->platform.eglDestroySyncKHR(dpy, sync); in eglDestroySyncKHR()
440 EGLBoolean eglSignalSyncKHR(EGLDisplay dpy, EGLSyncKHR sync, EGLenum mode) { in eglSignalSyncKHR() argument
444 return cnx->platform.eglSignalSyncKHR(dpy, sync, mode); in eglSignalSyncKHR()
447 EGLint eglClientWaitSync(EGLDisplay dpy, EGLSync sync, EGLint flags, EGLTimeKHR timeout) { in eglClientWaitSync() argument
451 return cnx->platform.eglClientWaitSyncKHR(dpy, sync, flags, timeout); in eglClientWaitSync()
454 EGLint eglClientWaitSyncKHR(EGLDisplay dpy, EGLSyncKHR sync, EGLint flags, EGLTimeKHR timeout) { in eglClientWaitSyncKHR() argument
458 return cnx->platform.eglClientWaitSyncKHR(dpy, sync, flags, timeout); in eglClientWaitSyncKHR()
[all …]
Degl_platform_entries.cpp1301 static void queueSync(EGLSyncKHR sync) { in queueSync() argument
1310 thread.mQueue.push_back(sync); in queueSync()
1333 EGLSyncKHR sync; in threadLoop() local
1340 sync = mQueue[0]; in threadLoop()
1349 EGLint result = eglClientWaitSyncKHR(dpy, sync, 0, EGL_FOREVER_KHR); in threadLoop()
1355 eglDestroySyncKHR(dpy, sync); in threadLoop()
1385 EGLSyncKHR sync = eglCreateSyncKHR(dpy, EGL_SYNC_FENCE_KHR, nullptr); in eglSwapBuffersWithDamageKHRImpl() local
1386 if (sync != EGL_NO_SYNC_KHR) { in eglSwapBuffersWithDamageKHRImpl()
1387 FrameCompletionThread::queueSync(sync); in eglSwapBuffersWithDamageKHRImpl()
1853 EGLBoolean eglDestroySyncTmpl(EGLDisplay dpy, EGLSyncKHR sync, in eglDestroySyncTmpl() argument
[all …]
/frameworks/native/opengl/tools/glgen/specs/egl/
DEGL15.spec3 // EGLBoolean eglGetSyncAttrib ( EGLDisplay dpy, EGLSync sync, EGLint attribute, EGLAttrib *value )
4 EGLBoolean eglDestroySync ( EGLDisplay dpy, EGLSync sync )
5 EGLint eglClientWaitSync ( EGLDisplay dpy, EGLSync sync, EGLint flags, EGLTime timeout )
/frameworks/base/services/core/java/com/android/server/wm/
DWallpaperWindowToken.java60 String action, int x, int y, int z, Bundle extras, boolean sync) { in sendWindowWallpaperCommand() argument
64 wallpaper.mClient.dispatchWallpaperCommand(action, x, y, z, extras, sync); in sendWindowWallpaperCommand()
66 sync = false; in sendWindowWallpaperCommand()
72 void updateWallpaperOffset(int dw, int dh, boolean sync) { in updateWallpaperOffset() argument
76 if (wallpaperController.updateWallpaperOffset(wallpaper, dw, dh, sync)) { in updateWallpaperOffset()
78 sync = false; in updateWallpaperOffset()
/frameworks/base/opengl/java/android/opengl/
DEGL15.java95 EGLSync sync, in eglGetSyncAttrib() argument
105 EGLSync sync in eglDestroySync() argument
112 EGLSync sync, in eglClientWaitSync() argument
150 EGLSync sync, in eglWaitSync() argument
/frameworks/base/core/java/com/android/internal/view/
DBaseIWindow.java91 public void dispatchWallpaperOffsets(float x, float y, float xStep, float yStep, boolean sync) { in dispatchWallpaperOffsets() argument
92 if (sync) { in dispatchWallpaperOffsets()
123 int z, Bundle extras, boolean sync) { in dispatchWallpaperCommand() argument
124 if (sync) { in dispatchWallpaperCommand()
/frameworks/native/opengl/include/EGL/
Deglext.h153 typedef EGLBoolean (EGLAPIENTRYP PFNEGLDESTROYSYNCKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync);
154 typedef EGLint (EGLAPIENTRYP PFNEGLCLIENTWAITSYNCKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync, EGLint …
155 typedef EGLBoolean (EGLAPIENTRYP PFNEGLGETSYNCATTRIBKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync, EGLi…
158 EGLAPI EGLBoolean EGLAPIENTRY eglDestroySyncKHR (EGLDisplay dpy, EGLSyncKHR sync);
159 EGLAPI EGLint EGLAPIENTRY eglClientWaitSyncKHR (EGLDisplay dpy, EGLSyncKHR sync, EGLint flags, EGLT…
160 EGLAPI EGLBoolean EGLAPIENTRY eglGetSyncAttribKHR (EGLDisplay dpy, EGLSyncKHR sync, EGLint attribut…
322 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSIGNALSYNCKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync, EGLenum…
324 EGLAPI EGLBoolean EGLAPIENTRY eglSignalSyncKHR (EGLDisplay dpy, EGLSyncKHR sync, EGLenum mode);
459 typedef EGLint (EGLAPIENTRYP PFNEGLWAITSYNCKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync, EGLint flags);
461 EGLAPI EGLint EGLAPIENTRY eglWaitSyncKHR (EGLDisplay dpy, EGLSyncKHR sync, EGLint flags);
[all …]
/frameworks/base/libs/hwui/
DWebViewFunctorManager.h41 void sync(const WebViewSyncData& syncData) const { mReference.sync(syncData); } in sync() function
60 void sync(const WebViewSyncData& syncData) const;
/frameworks/base/libs/hwui/renderthread/
DEglManager.cpp524 EGLSyncKHR sync = eglCreateSyncKHR(mEglDisplay, EGL_SYNC_NATIVE_FENCE_ANDROID, attribs); in fenceWait() local
525 if (sync == EGL_NO_SYNC_KHR) { in fenceWait()
534 eglWaitSyncKHR(mEglDisplay, sync, 0); in fenceWait()
536 eglDestroySyncKHR(mEglDisplay, sync); in fenceWait()
560 EGLSyncKHR sync = eglCreateSyncKHR(mEglDisplay, EGL_SYNC_NATIVE_FENCE_ANDROID, nullptr); in createReleaseFence() local
561 if (sync == EGL_NO_SYNC_KHR) { in createReleaseFence()
566 int fenceFd = eglDupNativeFenceFDANDROID(mEglDisplay, sync); in createReleaseFence()
567 eglDestroySyncKHR(mEglDisplay, sync); in createReleaseFence()
/frameworks/native/services/surfaceflinger/
DRegionSamplingThread.cpp105 mScheduler.withPrimaryDispSync([this](android::DispSync& sync) { in startVsyncListener() argument
106 sync.addEventListener("SamplingThreadDispSyncListener", 0, this, mLastCallbackTime); in startVsyncListener()
120 mScheduler.withPrimaryDispSync([this](android::DispSync& sync) { in stopVsyncListenerLocked() argument
121 sync.removeEventListener(this, &mLastCallbackTime); in stopVsyncListenerLocked()
132 mScheduler.withPrimaryDispSync([this](android::DispSync& sync) { in onDispSyncEvent() argument
133 sync.changePhaseOffset(this, mTargetSamplingOffset.count()); in onDispSyncEvent()
141 [this](android::DispSync& sync) { sync.changePhaseOffset(this, 0); }); in onDispSyncEvent() argument
/frameworks/base/core/java/com/android/internal/os/
DAtomicFile.java97 FileUtils.sync(str); in finishWrite()
110 FileUtils.sync(str); in failWrite()
134 FileUtils.sync(fos); in truncate()
/frameworks/av/media/libmedia/
DIMediaPlayer.cpp265 status_t setSyncSettings(const AVSyncSettings& sync, float videoFpsHint) in setSyncSettings() argument
269 data.writeInt32((int32_t)sync.mSource); in setSyncSettings()
270 data.writeInt32((int32_t)sync.mAudioAdjustMode); in setSyncSettings()
271 data.writeFloat(sync.mTolerance); in setSyncSettings()
277 status_t getSyncSettings(AVSyncSettings* sync /* nonnull */, float* videoFps /* nonnull */) in getSyncSettings() argument
288 *sync = settings; in getSyncSettings()
765 AVSyncSettings sync; in onTransact() local
766 sync.mSource = (AVSyncSource)data.readInt32(); in onTransact()
767 sync.mAudioAdjustMode = (AVSyncAudioAdjustMode)data.readInt32(); in onTransact()
768 sync.mTolerance = data.readFloat(); in onTransact()
[all …]
/frameworks/rs/
Drs.spec86 sync
92 sync
97 sync
104 sync
120 sync
132 sync
462 sync
/frameworks/av/media/libmediaplayer2/include/mediaplayer2/
DMediaPlayer2Interface.h191 virtual status_t setSyncSettings(const AVSyncSettings& sync, float /* videoFps */) { in setSyncSettings() argument
194 if (sync.mSource != AVSYNC_SOURCE_DEFAULT) { in setSyncSettings()
200 AVSyncSettings* sync /* nonnull */, float* videoFps /* nonnull */) { in getSyncSettings() argument
201 *sync = AVSyncSettings(); in getSyncSettings()
/frameworks/av/media/libmediaplayer2/nuplayer2/
DNuPlayer2Renderer.h59 status_t setSyncSettings(const AVSyncSettings &sync, float videoFpsHint);
60 status_t getSyncSettings(AVSyncSettings *sync /* nonnull */, float *videoFps /* nonnull */);
261 status_t onConfigSync(const AVSyncSettings &sync, float videoFpsHint);
262 status_t onGetSyncSettings(AVSyncSettings *sync /* nonnull */, float *videoFps /* nonnull */);
/frameworks/av/media/libmediaplayerservice/nuplayer/
DNuPlayerRenderer.h57 status_t setSyncSettings(const AVSyncSettings &sync, float videoFpsHint);
58 status_t getSyncSettings(AVSyncSettings *sync /* nonnull */, float *videoFps /* nonnull */);
260 status_t onConfigSync(const AVSyncSettings &sync, float videoFpsHint);
261 status_t onGetSyncSettings(AVSyncSettings *sync /* nonnull */, float *videoFps /* nonnull */);
/frameworks/base/core/jni/
Dandroid_opengl_EGL15.cpp246 …(JNIEnv *_env, jobject _this, jobject dpy, jobject sync, jint attribute, jlongArray value_ref, jin… in android_eglGetSyncAttrib() argument
252 EGLSync sync_native = (EGLSync) fromEGLHandle(_env, eglsyncGetHandleID, sync); in android_eglGetSyncAttrib()
299 (JNIEnv *_env, jobject _this, jobject dpy, jobject sync) { in android_eglDestroySync() argument
302 EGLSync sync_native = (EGLSync) fromEGLHandle(_env, eglsyncGetHandleID, sync); in android_eglDestroySync()
314 (JNIEnv *_env, jobject _this, jobject dpy, jobject sync, jint flags, jlong timeout) { in android_eglClientWaitSync() argument
317 EGLSync sync_native = (EGLSync) fromEGLHandle(_env, eglsyncGetHandleID, sync); in android_eglClientWaitSync()
455 (JNIEnv *_env, jobject _this, jobject dpy, jobject sync, jint flags) { in android_eglWaitSync() argument
458 EGLSync sync_native = (EGLSync) fromEGLHandle(_env, eglsyncGetHandleID, sync); in android_eglWaitSync()
/frameworks/av/media/libstagefright/
DMediaSync.cpp45 sp<MediaSync> sync = new MediaSync(); in create() local
46 sync->mLooper->registerHandler(sync); in create()
47 return sync; in create()
811 MediaSync::InputListener::InputListener(const sp<MediaSync> &sync) in InputListener() argument
812 : mSync(sync) {} in InputListener()
831 MediaSync::OutputListener::OutputListener(const sp<MediaSync> &sync, in OutputListener() argument
833 : mSync(sync), in OutputListener()
/frameworks/base/libs/hwui/surfacetexture/
DEGLConsumer.cpp480 EGLSyncKHR sync = eglCreateSyncKHR(dpy, EGL_SYNC_NATIVE_FENCE_ANDROID, nullptr); in syncForReleaseLocked() local
481 if (sync == EGL_NO_SYNC_KHR) { in syncForReleaseLocked()
486 int fenceFd = eglDupNativeFenceFDANDROID(dpy, sync); in syncForReleaseLocked()
487 eglDestroySyncKHR(dpy, sync); in syncForReleaseLocked()
567 EGLSyncKHR sync = eglCreateSyncKHR(dpy, EGL_SYNC_NATIVE_FENCE_ANDROID, attribs); in doGLFenceWaitLocked() local
568 if (sync == EGL_NO_SYNC_KHR) { in doGLFenceWaitLocked()
577 eglWaitSyncKHR(dpy, sync, 0); in doGLFenceWaitLocked()
579 eglDestroySyncKHR(dpy, sync); in doGLFenceWaitLocked()

12345678