Home
last modified time | relevance | path

Searched refs:LOG_ALWAYS_FATAL_IF (Results 1 – 25 of 172) sorted by relevance

1234567

/frameworks/minikin/tests/util/
DUnicodeUtils.cpp38 LOG_ALWAYS_FATAL_IF(static_cast<uint8_t>(src[input_ix]) >= 0x80); in ParseUnicode()
40 LOG_ALWAYS_FATAL_IF(src[input_ix] == 0); in ParseUnicode()
41 LOG_ALWAYS_FATAL_IF(output_ix >= buf_size); in ParseUnicode()
43 LOG_ALWAYS_FATAL_IF(src[input_ix] != '\''); in ParseUnicode()
50 LOG_ALWAYS_FATAL_IF(src[input_ix] != '+'); in ParseUnicode()
57 LOG_ALWAYS_FATAL_IF(num_hex_digits < 4u); in ParseUnicode()
58 LOG_ALWAYS_FATAL_IF(num_hex_digits > 6u); in ParseUnicode()
59 LOG_ALWAYS_FATAL_IF(codepoint > 0x10FFFFu); in ParseUnicode()
62 LOG_ALWAYS_FATAL_IF(output_ix + 1 > buf_size); in ParseUnicode()
66 LOG_ALWAYS_FATAL_IF(output_ix + 2 > buf_size); in ParseUnicode()
[all …]
DFileUtils.cpp27 LOG_ALWAYS_FATAL_IF(fp == nullptr); in readWholeFile()
29 LOG_ALWAYS_FATAL_IF(fstat(fileno(fp), &st) != 0); in readWholeFile()
32 LOG_ALWAYS_FATAL_IF(fread(result.data(), 1, st.st_size, fp) != static_cast<size_t>(st.st_size)); in readWholeFile()
DMinikinFontForTest.cpp44 LOG_ALWAYS_FATAL_IF(fd == -1); in MinikinFontForTest()
46 LOG_ALWAYS_FATAL_IF(fstat(fd, &st) != 0); in MinikinFontForTest()
49 LOG_ALWAYS_FATAL_IF(mFontData == nullptr); in MinikinFontForTest()
/frameworks/base/core/jni/
Dcore_jni_helpers.h29 LOG_ALWAYS_FATAL_IF(clazz == NULL, "Unable to find class %s", class_name); in FindClassOrDie()
36 LOG_ALWAYS_FATAL_IF(res == NULL, "Unable to find static field %s", field_name); in GetFieldIDOrDie()
43 LOG_ALWAYS_FATAL_IF(res == NULL, "Unable to find method %s", method_name); in GetMethodIDOrDie()
50 LOG_ALWAYS_FATAL_IF(res == NULL, "Unable to find static field %s", field_name); in GetStaticFieldIDOrDie()
57 LOG_ALWAYS_FATAL_IF(res == NULL, "Unable to find static method %s", method_name); in GetStaticMethodIDOrDie()
64 LOG_ALWAYS_FATAL_IF(res == NULL, "Unable to create global reference."); in MakeGlobalRefOrDie()
71 LOG_ALWAYS_FATAL_IF(res < 0, "Unable to register native methods."); in RegisterMethodsOrDie()
Dandroid_view_RenderNodeAnimator.cpp75 LOG_ALWAYS_FATAL_IF(!mFinishListener, "Finished listener twice?"); in onAnimationFinished()
96 LOG_ALWAYS_FATAL_IF(property < 0 || property > RenderPropertyAnimator::ALPHA, in toRenderProperty()
102 LOG_ALWAYS_FATAL_IF(field < 0 in toPaintField()
148 LOG_ALWAYS_FATAL_IF(duration < 0, "Duration cannot be negative"); in setDuration()
159 LOG_ALWAYS_FATAL_IF(startDelay < 0, "Start delay cannot be negative"); in setStartDelay()
/frameworks/base/services/core/jni/
Dcom_android_server_GraphicsStatsService.cpp45 LOG_ALWAYS_FATAL_IF(jdata == nullptr && jpath == nullptr, "Path and data can't both be null"); in addToDump()
49 LOG_ALWAYS_FATAL_IF(buffer.size() != sizeof(ProfileData), in addToDump()
55LOG_ALWAYS_FATAL_IF(pathChars.size() <= 0 || !pathChars.c_str(), "Failed to get path chars"); in addToDump()
59LOG_ALWAYS_FATAL_IF(packageChars.size() <= 0 || !packageChars.c_str(), "Failed to get path chars"); in addToDump()
61 LOG_ALWAYS_FATAL_IF(!dump, "null passed for dump pointer"); in addToDump()
69 LOG_ALWAYS_FATAL_IF(pathChars.size() <= 0 || !pathChars.c_str(), "Failed to get path chars"); in addFileToDump()
83 LOG_ALWAYS_FATAL_IF(buffer.size() != sizeof(ProfileData), in saveBuffer()
86 LOG_ALWAYS_FATAL_IF(pathChars.size() <= 0 || !pathChars.c_str(), "Failed to get path chars"); in saveBuffer()
88LOG_ALWAYS_FATAL_IF(packageChars.size() <= 0 || !packageChars.c_str(), "Failed to get path chars"); in saveBuffer()
/frameworks/minikin/tests/perftests/
Dmain.cpp30 LOG_ALWAYS_FATAL_IF(fd == -1); in main()
32 LOG_ALWAYS_FATAL_IF(fstat(fd, &st) != 0); in main()
37 LOG_ALWAYS_FATAL_IF(U_FAILURE(errorCode)); in main()
39 LOG_ALWAYS_FATAL_IF(U_FAILURE(errorCode)); in main()
DGraphemeBreak.cpp38 LOG_ALWAYS_FATAL_IF(result_size != 12); in BM_GraphemeBreak_Ascii()
53 LOG_ALWAYS_FATAL_IF(result_size != 12); in BM_GraphemeBreak_Emoji()
68 LOG_ALWAYS_FATAL_IF(result_size != 12); in BM_GraphemeBreak_Emoji_Flags()
/frameworks/native/libs/gui/
DBufferQueue.cpp83 LOG_ALWAYS_FATAL_IF(outProducer == NULL, in createBufferQueue()
85 LOG_ALWAYS_FATAL_IF(outConsumer == NULL, in createBufferQueue()
89 LOG_ALWAYS_FATAL_IF(core == NULL, in createBufferQueue()
93 LOG_ALWAYS_FATAL_IF(producer == NULL, in createBufferQueue()
97 LOG_ALWAYS_FATAL_IF(consumer == NULL, in createBufferQueue()
DStreamSplitter.cpp131 LOG_ALWAYS_FATAL_IF(status != NO_ERROR, in onFrameAvailable()
138 LOG_ALWAYS_FATAL_IF(status != NO_ERROR, in onFrameAvailable()
165 LOG_ALWAYS_FATAL_IF(status != NO_ERROR, in onFrameAvailable()
180 LOG_ALWAYS_FATAL_IF(status != NO_ERROR, in onFrameAvailable()
203 LOG_ALWAYS_FATAL_IF(status != NO_ERROR, in onBufferReleasedByOutput()
234 LOG_ALWAYS_FATAL_IF(status != NO_ERROR, in onBufferReleasedByOutput()
239 LOG_ALWAYS_FATAL_IF(status != NO_ERROR, in onBufferReleasedByOutput()
/frameworks/native/services/vr/hardware_composer/
Dvr_hardware_composer_service.cpp31 LOG_ALWAYS_FATAL_IF(!service.get(), "Failed to get service"); in main()
32 LOG_ALWAYS_FATAL_IF(service->isRemote(), "Service is remote"); in main()
35 LOG_ALWAYS_FATAL_IF(service->registerAsService(instance) != android::OK, in main()
48 LOG_ALWAYS_FATAL_IF(status != android::OK, in main()
/frameworks/base/media/jni/
Dandroid_media_Utils.cpp614 LOG_ALWAYS_FATAL_IF(buffer == NULL, "Input buffer is NULL!!!"); in Image_getJpegSize()
650 LOG_ALWAYS_FATAL_IF(buffer == NULL, "Input buffer is NULL!!!"); in getLockedImageInfo()
651 LOG_ALWAYS_FATAL_IF(base == NULL, "base is NULL!!!"); in getLockedImageInfo()
652 LOG_ALWAYS_FATAL_IF(size == NULL, "size is NULL!!!"); in getLockedImageInfo()
653 LOG_ALWAYS_FATAL_IF(pixelStride == NULL, "pixelStride is NULL!!!"); in getLockedImageInfo()
654 LOG_ALWAYS_FATAL_IF(rowStride == NULL, "rowStride is NULL!!!"); in getLockedImageInfo()
655 LOG_ALWAYS_FATAL_IF((idx >= IMAGE_MAX_NUM_PLANES) || (idx < 0), "idx (%d) is illegal", idx); in getLockedImageInfo()
711 LOG_ALWAYS_FATAL_IF(buffer->stride % 16, in getLockedImageInfo()
732 LOG_ALWAYS_FATAL_IF(idx != 0, "Wrong index: %d", idx); in getLockedImageInfo()
742 LOG_ALWAYS_FATAL_IF(idx != 0, "Wrong index: %d", idx); in getLockedImageInfo()
[all …]
/frameworks/base/libs/hwui/
DAnimationContext.cpp41 LOG_ALWAYS_FATAL_IF(mCurrentFrameAnimations.mNextHandle == current, in destroy()
58 LOG_ALWAYS_FATAL_IF(mCurrentFrameAnimations.mNextHandle, in startFrame()
75 LOG_ALWAYS_FATAL_IF(mCurrentFrameAnimations.mNextHandle == current, in runRemainingAnimations()
100 LOG_ALWAYS_FATAL_IF(mPreviousHandle || mNextHandle, in ~AnimationHandle()
114 LOG_ALWAYS_FATAL_IF(mRenderNode->animators().hasAnimators(), in release()
DExtensions.cpp69 LOG_ALWAYS_FATAL_IF(!mHasSRGB, "Linear blending requires ES 3.0 or EXT_sRGB"); in Extensions()
70 LOG_ALWAYS_FATAL_IF(!mHasSRGBWriteControl, "Linear blending requires EXT_sRGB_write_control"); in Extensions()
DGpuMemoryTracker.cpp57 LOG_ALWAYS_FATAL_IF(!result.second, in startTrackingObject()
64 LOG_ALWAYS_FATAL_IF(removed != 1, in stopTrackingObject()
71 LOG_ALWAYS_FATAL_IF(gGpuThread != 0, "We already have a gpu thread? " in onGpuContextCreated()
DDeviceInfo.cpp36 LOG_ALWAYS_FATAL_IF(!sDeviceInfo, "DeviceInfo not yet initialized."); in get()
64 LOG_ALWAYS_FATAL_IF(status, "Failed to get display info, error %d", status); in loadDisplayInfo()
DBakedOpRenderer.cpp33 LOG_ALWAYS_FATAL_IF(mRenderTarget.offscreenBuffer, "already has layer..."); in startTemporaryLayer()
46 LOG_ALWAYS_FATAL_IF(mRenderTarget.offscreenBuffer, "already has layer..."); in startRepaintLayer()
71 LOG_ALWAYS_FATAL_IF(status != GL_FRAMEBUFFER_COMPLETE, in startRepaintLayer()
120 LOG_ALWAYS_FATAL_IF(mRenderTarget.frameBufferId != 0, "primary framebufferId must be 0"); in startFrame()
207 LOG_ALWAYS_FATAL_IF(mRenderTarget.frameBufferId != 0, "decoration only supported for FBO 0"); in drawRects()
242LOG_ALWAYS_FATAL_IF(clip->mode != ClipMode::RectangleList, "can't rectlist clip without rectlist"); in setupStencilRectList()
276 LOG_ALWAYS_FATAL_IF(clip->mode != ClipMode::Region, "can't region clip without region"); in setupStencilRegion()
DDeferredLayerUpdater.cpp89 LOG_ALWAYS_FATAL_IF(mLayer->getApi() != Layer::Api::OpenGL, in apply()
112 LOG_ALWAYS_FATAL_IF(mLayer->getApi() != Layer::Api::OpenGL, in doUpdateTexImage()
151 LOG_ALWAYS_FATAL_IF(mLayer->getApi() != Layer::Api::Vulkan, in doUpdateVkTexImage()
DAnimatorManager.cpp65 LOG_ALWAYS_FATAL_IF(mAnimationHandle && handle, "Already have an AnimationHandle!"); in setAnimationHandle()
67 LOG_ALWAYS_FATAL_IF(!mAnimationHandle && mAnimators.size(), in setAnimationHandle()
94 LOG_ALWAYS_FATAL_IF(animator->target() == &mParent, "Target has not been changed"); in onAnimatorTargetChanged()
/frameworks/base/libs/hwui/renderthread/
DEglManager.cpp101 LOG_ALWAYS_FATAL_IF(mEglDisplay == EGL_NO_DISPLAY, in initialize()
105 LOG_ALWAYS_FATAL_IF(eglInitialize(mEglDisplay, &major, &minor) == EGL_FALSE, in initialize()
138 LOG_ALWAYS_FATAL_IF(!glInterface.get()); in initialize()
159 LOG_ALWAYS_FATAL_IF(!extensions.has("EGL_KHR_swap_buffers_with_damage"), in initExtensions()
241 LOG_ALWAYS_FATAL_IF(mEglContext == EGL_NO_CONTEXT, in createContext()
246 LOG_ALWAYS_FATAL_IF(mEglDisplay == EGL_NO_DISPLAY, in createPBufferSurface()
307 LOG_ALWAYS_FATAL_IF(surface == EGL_NO_SURFACE, in createSurface()
312LOG_ALWAYS_FATAL_IF(eglSurfaceAttrib(mEglDisplay, surface, EGL_SWAP_BEHAVIOR, EGL_BUFFER_DESTROYED… in createSurface()
385 LOG_ALWAYS_FATAL_IF(surface == EGL_NO_SURFACE, in beginFrame()
DRenderThread.cpp73 LOG_ALWAYS_FATAL_IF(task->mNext || mTail == task, "Task is already in the queue!"); in queue()
105 LOG_ALWAYS_FATAL_IF(task->mNext || mHead == task, "Task is already in the queue!"); in queueAtFront()
117 LOG_ALWAYS_FATAL_IF(!task->mNext && mTail != task, in remove()
182 LOG_ALWAYS_FATAL_IF(mDisplayEventReceiver, "Initializing a second DisplayEventReceiver?"); in initializeDisplayEventReceiver()
185 LOG_ALWAYS_FATAL_IF(status != NO_ERROR, "Initialization of DisplayEventReceiver " in initializeDisplayEventReceiver()
197 LOG_ALWAYS_FATAL_IF(status, "Failed to get display info\n"); in initThreadLocals()
350 LOG_ALWAYS_FATAL_IF(status != NO_ERROR, in requestVsync()
362 LOG_ALWAYS_FATAL_IF(result == Looper::POLL_ERROR, in threadLoop()
/frameworks/base/native/android/
Dsharedmem.cpp37 LOG_ALWAYS_FATAL_IF(clazz == nullptr, "Failed to find android.os.SharedMemory"); in jniInit()
39 LOG_ALWAYS_FATAL_IF(sSharedMemory.clazz == nullptr, in jniInit()
42 LOG_ALWAYS_FATAL_IF(sSharedMemory.getFd == nullptr, in jniInit()
/frameworks/base/cmds/app_process/
Dapp_main.cpp156 LOG_ALWAYS_FATAL_IF(androidRoot == NULL, "ANDROID_DATA environment variable unset"); in maybeCreateDalvikCache()
161 LOG_ALWAYS_FATAL_IF((numChars >= PATH_MAX || numChars < 0), in maybeCreateDalvikCache()
165 LOG_ALWAYS_FATAL_IF((result < 0 && errno != EEXIST), in maybeCreateDalvikCache()
172LOG_ALWAYS_FATAL_IF((result < 0), "Error changing dalvik-cache ownership : %s", strerror(errno)); in maybeCreateDalvikCache()
175 LOG_ALWAYS_FATAL_IF((result < 0), in maybeCreateDalvikCache()
/frameworks/ex/framesequence/jni/utils/
Dlog.h186 #ifndef LOG_ALWAYS_FATAL_IF
187 #define LOG_ALWAYS_FATAL_IF(cond, ...) \ macro
214 #define LOG_FATAL_IF(cond, ...) LOG_ALWAYS_FATAL_IF(cond, ## __VA_ARGS__)
/frameworks/base/libs/hwui/hwui/
DTypeface.cpp71 LOG_ALWAYS_FATAL_IF(gDefaultTypeface == nullptr); in resolveDefault()
183 LOG_ALWAYS_FATAL_IF(fd == -1, "Failed to open file %s", kRobotoFont); in setRobotoTypefaceForTest()
185 LOG_ALWAYS_FATAL_IF(fstat(fd, &st) == -1, "Failed to stat file %s", kRobotoFont); in setRobotoTypefaceForTest()
189 LOG_ALWAYS_FATAL_IF(typeface == nullptr, "Failed to make typeface from %s", kRobotoFont); in setRobotoTypefaceForTest()

1234567