Home
last modified time | relevance | path

Searched refs:sync (Results 1 – 25 of 190) 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/base/media/java/android/media/
DJetPlayer.java336 public boolean setMuteFlags(int muteFlags, boolean sync) { in setMuteFlags() argument
337 return native_setMuteFlags(muteFlags, sync); in setMuteFlags()
352 public boolean setMuteArray(boolean[] muteArray, boolean sync) { in setMuteArray() argument
355 return native_setMuteArray(muteArray, sync); in setMuteArray()
369 public boolean setMuteFlag(int trackId, boolean muteFlag, boolean sync) { in setMuteFlag() argument
370 return native_setMuteFlag(trackId, muteFlag, sync); in setMuteFlag()
557 private native final boolean native_setMuteFlags(int muteFlags, boolean sync); in native_setMuteFlags() argument
558 private native final boolean native_setMuteArray(boolean[]muteArray, boolean sync); in native_setMuteArray() argument
559 private native final boolean native_setMuteFlag(int trackId, boolean muteFlag, boolean sync); in native_setMuteFlag() argument
/frameworks/native/opengl/libs/EGL/
DeglApi.cpp423 EGLBoolean eglDestroySync(EGLDisplay dpy, EGLSyncKHR sync) { in eglDestroySync() argument
427 return cnx->platform.eglDestroySync(dpy, sync); in eglDestroySync()
430 EGLBoolean eglDestroySyncKHR(EGLDisplay dpy, EGLSyncKHR sync) { in eglDestroySyncKHR() argument
434 return cnx->platform.eglDestroySyncKHR(dpy, sync); in eglDestroySyncKHR()
437 EGLBoolean eglSignalSyncKHR(EGLDisplay dpy, EGLSyncKHR sync, EGLenum mode) { in eglSignalSyncKHR() argument
441 return cnx->platform.eglSignalSyncKHR(dpy, sync, mode); in eglSignalSyncKHR()
444 EGLint eglClientWaitSync(EGLDisplay dpy, EGLSync sync, EGLint flags, EGLTimeKHR timeout) { in eglClientWaitSync() argument
448 return cnx->platform.eglClientWaitSyncKHR(dpy, sync, flags, timeout); in eglClientWaitSync()
451 EGLint eglClientWaitSyncKHR(EGLDisplay dpy, EGLSyncKHR sync, EGLint flags, EGLTimeKHR timeout) { in eglClientWaitSyncKHR() argument
455 return cnx->platform.eglClientWaitSyncKHR(dpy, sync, flags, timeout); in eglClientWaitSyncKHR()
[all …]
Degl_platform_entries.cpp1320 static void queueSync(EGLSyncKHR sync) { in queueSync() argument
1329 thread.mQueue.push_back(sync); in queueSync()
1352 EGLSyncKHR sync; in threadLoop() local
1359 sync = mQueue[0]; in threadLoop()
1368 EGLint result = eglClientWaitSyncKHR(dpy, sync, 0, EGL_FOREVER_KHR); in threadLoop()
1374 eglDestroySyncKHR(dpy, sync); in threadLoop()
1404 EGLSyncKHR sync = eglCreateSyncKHR(dpy, EGL_SYNC_FENCE_KHR, nullptr); in eglSwapBuffersWithDamageKHRImpl() local
1405 if (sync != EGL_NO_SYNC_KHR) { in eglSwapBuffersWithDamageKHRImpl()
1406 FrameCompletionThread::queueSync(sync); in eglSwapBuffersWithDamageKHRImpl()
1872 EGLBoolean eglDestroySyncTmpl(EGLDisplay dpy, EGLSyncKHR sync, in eglDestroySyncTmpl() argument
[all …]
/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/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/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.java102 public void dispatchWallpaperOffsets(float x, float y, float xStep, float yStep, boolean sync) { in dispatchWallpaperOffsets() argument
103 if (sync) { in dispatchWallpaperOffsets()
134 int z, Bundle extras, boolean sync) { in dispatchWallpaperCommand() argument
135 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/av/media/extractors/fuzzers/
DREADME.md56 $ adb sync data
85 $ adb sync data
119 $ adb sync data
153 $ adb sync data
187 $ adb sync data
227 $ adb sync data
257 $ adb sync data
286 $ adb sync data
320 $ adb sync data
/frameworks/native/services/surfaceflinger/
DRegionSamplingThread.cpp108 mScheduler.withPrimaryDispSync([this](android::DispSync& sync) { in startVsyncListener() argument
109 sync.addEventListener("SamplingThreadDispSyncListener", 0, this, mLastCallbackTime); in startVsyncListener()
123 mScheduler.withPrimaryDispSync([this](android::DispSync& sync) { in stopVsyncListenerLocked() argument
124 sync.removeEventListener(this, &mLastCallbackTime); in stopVsyncListenerLocked()
135 mScheduler.withPrimaryDispSync([this](android::DispSync& sync) { in onDispSyncEvent() argument
136 sync.changePhaseOffset(this, mTargetSamplingOffset.count()); in onDispSyncEvent()
144 [this](android::DispSync& sync) { sync.changePhaseOffset(this, 0); }); in onDispSyncEvent() argument
/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/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/native/services/inputflinger/reader/mapper/
DSwitchInputMapper.cpp40 sync(rawEvent->when); in process()
56 void SwitchInputMapper::sync(nsecs_t when) { in sync() function in android::SwitchInputMapper
/frameworks/rs/
Drs.spec86 sync
92 sync
97 sync
104 sync
120 sync
132 sync
462 sync
/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/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()
/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/core/java/android/content/
DIContentService.aidl62 void sync(in SyncRequest request, String callingPackage); in sync() method
85 void setSyncAutomatically(in Account account, String providerName, boolean sync); in setSyncAutomatically() argument
86 void setSyncAutomaticallyAsUser(in Account account, String providerName, boolean sync, in setSyncAutomaticallyAsUser() argument

12345678