Home
last modified time | relevance | path

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

123456789

/frameworks/minikin/tests/util/
DUnicodeUtils.cpp41 LOG_ALWAYS_FATAL_IF(static_cast<uint8_t>(src[input_ix]) >= 0x80); in ParseUnicode()
43 LOG_ALWAYS_FATAL_IF(src[input_ix] == 0); in ParseUnicode()
44 LOG_ALWAYS_FATAL_IF(output_ix >= buf_size); in ParseUnicode()
46 LOG_ALWAYS_FATAL_IF(src[input_ix] != '\''); in ParseUnicode()
53 LOG_ALWAYS_FATAL_IF(src[input_ix] != '+'); in ParseUnicode()
60 LOG_ALWAYS_FATAL_IF(num_hex_digits < 4u); in ParseUnicode()
61 LOG_ALWAYS_FATAL_IF(num_hex_digits > 6u); in ParseUnicode()
62 LOG_ALWAYS_FATAL_IF(codepoint > 0x10FFFFu); in ParseUnicode()
65 LOG_ALWAYS_FATAL_IF(output_ix + 1 > buf_size); in ParseUnicode()
69 LOG_ALWAYS_FATAL_IF(output_ix + 2 > buf_size); in ParseUnicode()
[all …]
DFreeTypeMinikinFontForTest.cpp55 LOG_ALWAYS_FATAL_IF(FT_Set_Char_Size(face, scale, scale, 72 /* dpi */, 72 /* dpi */), in loadGlyphOrDie()
57 LOG_ALWAYS_FATAL_IF(FT_Load_Glyph(face, glyphId, LOAD_FLAG), "Failed to load glyph"); in loadGlyphOrDie()
58 LOG_ALWAYS_FATAL_IF(face->glyph->format != FT_GLYPH_FORMAT_OUTLINE, in loadGlyphOrDie()
67 LOG_ALWAYS_FATAL_IF(fd == -1, "Open failed: %s", font_path.c_str()); in FreeTypeMinikinFontForTest()
69 LOG_ALWAYS_FATAL_IF(fstat(fd, &st) != 0); in FreeTypeMinikinFontForTest()
72 LOG_ALWAYS_FATAL_IF(mFontData == nullptr); in FreeTypeMinikinFontForTest()
75 LOG_ALWAYS_FATAL_IF(FT_Init_FreeType(&mFtLibrary), "Failed to initialize FreeType"); in FreeTypeMinikinFontForTest()
81 LOG_ALWAYS_FATAL_IF(FT_Open_Face(mFtLibrary, &args, index, &mFtFace), "Failed to open FT_Face"); in FreeTypeMinikinFontForTest()
DFileUtils.cpp28 LOG_ALWAYS_FATAL_IF(fp == nullptr); in readWholeFile()
30 LOG_ALWAYS_FATAL_IF(fstat(fileno(fp), &st) != 0); in readWholeFile()
33 LOG_ALWAYS_FATAL_IF(fread(result.data(), 1, st.st_size, fp) != static_cast<size_t>(st.st_size)); in readWholeFile()
DPathUtils.cpp29 LOG_ALWAYS_FATAL_IF(result == nullptr, "dirname failed."); in getDirname()
35 LOG_ALWAYS_FATAL_IF(result == nullptr, "basename failed."); in getBasename()
41 LOG_ALWAYS_FATAL_IF(readlink(SELF_EXE_PATH, buf, PATH_MAX) == -1, "readlink failed."); in getTestDataDir()
/frameworks/base/media/jni/
Dandroid_media_Utils.cpp84 LOG_ALWAYS_FATAL_IF(buffer == NULL, "Input buffer is NULL!!!"); in Image_getBlobSize()
121 LOG_ALWAYS_FATAL_IF(buffer == NULL, "Input buffer is NULL!!!"); in getLockedImageInfo()
122 LOG_ALWAYS_FATAL_IF(base == NULL, "base is NULL!!!"); in getLockedImageInfo()
123 LOG_ALWAYS_FATAL_IF(size == NULL, "size is NULL!!!"); in getLockedImageInfo()
124 LOG_ALWAYS_FATAL_IF(pixelStride == NULL, "pixelStride is NULL!!!"); in getLockedImageInfo()
125 LOG_ALWAYS_FATAL_IF(rowStride == NULL, "rowStride is NULL!!!"); in getLockedImageInfo()
126 LOG_ALWAYS_FATAL_IF((idx >= IMAGE_MAX_NUM_PLANES) || (idx < 0), "idx (%d) is illegal", idx); in getLockedImageInfo()
182 LOG_ALWAYS_FATAL_IF(buffer->stride % 16, in getLockedImageInfo()
203 LOG_ALWAYS_FATAL_IF(idx != 0, "Wrong index: %d", idx); in getLockedImageInfo()
213 LOG_ALWAYS_FATAL_IF(idx != 0, "Wrong index: %d", idx); in getLockedImageInfo()
[all …]
/frameworks/native/libs/gui/
DBufferQueue.cpp109 LOG_ALWAYS_FATAL_IF(outProducer == nullptr, in createBufferQueue()
111 LOG_ALWAYS_FATAL_IF(outConsumer == nullptr, in createBufferQueue()
115 LOG_ALWAYS_FATAL_IF(core == nullptr, in createBufferQueue()
119 LOG_ALWAYS_FATAL_IF(producer == nullptr, in createBufferQueue()
123 LOG_ALWAYS_FATAL_IF(consumer == nullptr, in createBufferQueue()
133 LOG_ALWAYS_FATAL_IF(outProducer == nullptr, "BufferQueue: outProducer must not be NULL"); in createBufferHubQueue()
134 LOG_ALWAYS_FATAL_IF(outConsumer == nullptr, "BufferQueue: outConsumer must not be NULL"); in createBufferHubQueue()
142 LOG_ALWAYS_FATAL_IF(producerQueue == nullptr, "BufferQueue: failed to create ProducerQueue."); in createBufferHubQueue()
145 LOG_ALWAYS_FATAL_IF(consumerQueue == nullptr, "BufferQueue: failed to create ConsumerQueue."); in createBufferHubQueue()
150 LOG_ALWAYS_FATAL_IF(producer == nullptr, "BufferQueue: failed to create BufferQueueProducer"); in createBufferHubQueue()
[all …]
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/base/libs/hwui/jni/
Dgraphics_jni_helpers.h44 LOG_ALWAYS_FATAL_IF(clazz == NULL, "Unable to find class %s", class_name); in FindClassOrDie()
51 LOG_ALWAYS_FATAL_IF(res == NULL, "Unable to find static field %s", field_name); in GetFieldIDOrDie()
58 LOG_ALWAYS_FATAL_IF(res == NULL, "Unable to find method %s", method_name); in GetMethodIDOrDie()
65 LOG_ALWAYS_FATAL_IF(res == NULL, "Unable to find static field %s", field_name); in GetStaticFieldIDOrDie()
72 LOG_ALWAYS_FATAL_IF(res == NULL, "Unable to find static method %s", method_name); in GetStaticMethodIDOrDie()
79 LOG_ALWAYS_FATAL_IF(res == NULL, "Unable to create global reference."); in MakeGlobalRefOrDie()
86 LOG_ALWAYS_FATAL_IF(res < 0, "Unable to register native methods."); in RegisterMethodsOrDie()
DGraphicsStatsService.cpp52 LOG_ALWAYS_FATAL_IF(jdata == nullptr && jpath == nullptr, "Path and data can't both be null"); in addToDump()
56 LOG_ALWAYS_FATAL_IF(buffer.size() != sizeof(ProfileData), in addToDump()
63 LOG_ALWAYS_FATAL_IF(pathChars.size() <= 0 || !pathChars.c_str(), in addToDump()
68 LOG_ALWAYS_FATAL_IF(packageChars.size() <= 0 || !packageChars.c_str(), in addToDump()
71 LOG_ALWAYS_FATAL_IF(!dump, "null passed for dump pointer"); in addToDump()
79 LOG_ALWAYS_FATAL_IF(pathChars.size() <= 0 || !pathChars.c_str(), "Failed to get path chars"); in addFileToDump()
100 LOG_ALWAYS_FATAL_IF(buffer.size() != sizeof(ProfileData), in saveBuffer()
104 LOG_ALWAYS_FATAL_IF(pathChars.size() <= 0 || !pathChars.c_str(), "Failed to get path chars"); in saveBuffer()
106 LOG_ALWAYS_FATAL_IF(packageChars.size() <= 0 || !packageChars.c_str(), in saveBuffer()
Dandroid_graphics_animation_RenderNodeAnimator.cpp70 LOG_ALWAYS_FATAL_IF(!mFinishListener, "Finished listener twice?"); in onAnimationFinished()
91 LOG_ALWAYS_FATAL_IF(property < 0 || property > RenderPropertyAnimator::ALPHA, in toRenderProperty()
97 LOG_ALWAYS_FATAL_IF(field < 0 in toPaintField()
143 LOG_ALWAYS_FATAL_IF(duration < 0, "Duration cannot be negative"); in setDuration()
154 LOG_ALWAYS_FATAL_IF(startDelay < 0, "Start delay cannot be negative"); in setStartDelay()
/frameworks/base/core/jni/
Dcore_jni_helpers.h43 LOG_ALWAYS_FATAL_IF(clazz == NULL, "Unable to find class %s", class_name); in FindClassOrDie()
50 LOG_ALWAYS_FATAL_IF(res == NULL, "Unable to find static field %s with signature %s", field_name, in GetFieldIDOrDie()
58 LOG_ALWAYS_FATAL_IF(res == NULL, "Unable to find method %s with signature %s", method_name, in GetMethodIDOrDie()
66 LOG_ALWAYS_FATAL_IF(res == NULL, "Unable to find static field %s with signature %s", field_name, in GetStaticFieldIDOrDie()
74 LOG_ALWAYS_FATAL_IF(res == NULL, "Unable to find static method %s with signature %s", in GetStaticMethodIDOrDie()
82 LOG_ALWAYS_FATAL_IF(res == NULL, "Unable to create global reference."); in MakeGlobalRefOrDie()
89 LOG_ALWAYS_FATAL_IF(res < 0, "Unable to register native methods."); in RegisterMethodsOrDie()
/frameworks/base/libs/hwui/renderthread/
DVulkanManager.cpp106 LOG_ALWAYS_FATAL_IF(VK_SUCCESS != err); in setupDevice()
110 LOG_ALWAYS_FATAL_IF(VK_SUCCESS != err); in setupDevice()
122 LOG_ALWAYS_FATAL_IF(!hasKHRSurfaceExtension || !hasKHRAndroidSurfaceExtension); in setupDevice()
138 LOG_ALWAYS_FATAL_IF(err < 0); in setupDevice()
150 LOG_ALWAYS_FATAL_IF(mEnumeratePhysicalDevices(mInstance, &gpuCount, nullptr)); in setupDevice()
151 LOG_ALWAYS_FATAL_IF(!gpuCount); in setupDevice()
157 LOG_ALWAYS_FATAL_IF(err && VK_INCOMPLETE != err); in setupDevice()
161 LOG_ALWAYS_FATAL_IF(physDeviceProperties.apiVersion < VK_MAKE_VERSION(1, 1, 0)); in setupDevice()
167 LOG_ALWAYS_FATAL_IF(!queueCount); in setupDevice()
181 LOG_ALWAYS_FATAL_IF(mGraphicsQueueIndex == queueCount); in setupDevice()
[all …]
DReliableSurface.cpp34 LOG_ALWAYS_FATAL_IF(!mWindow, "Error, unable to wrap a nullptr"); in ReliableSurface()
54 LOG_ALWAYS_FATAL_IF(result != NO_ERROR, "Failed to set cancelBuffer interceptor: error = %d", in init()
58 LOG_ALWAYS_FATAL_IF(result != NO_ERROR, "Failed to set dequeueBuffer interceptor: error = %d", in init()
62 LOG_ALWAYS_FATAL_IF(result != NO_ERROR, "Failed to set queueBuffer interceptor: error = %d", in init()
66 LOG_ALWAYS_FATAL_IF(result != NO_ERROR, "Failed to set perform interceptor: error = %d", in init()
70 LOG_ALWAYS_FATAL_IF(result != NO_ERROR, "Failed to set query interceptor: error = %d", in init()
105 LOG_ALWAYS_FATAL_IF(mReservedBuffer, "race condition in reserveNext"); in reserveNext()
DEglManager.cpp107 LOG_ALWAYS_FATAL_IF(mEglDisplay == EGL_NO_DISPLAY, "Failed to get EGL_DEFAULT_DISPLAY! err=%s", in initialize()
111 LOG_ALWAYS_FATAL_IF(eglInitialize(mEglDisplay, &major, &minor) == EGL_FALSE, in initialize()
136 LOG_ALWAYS_FATAL_IF(!DeviceInfo::get()->getWideColorSpace()->toXYZD50(&wideColorGamut), in initialize()
221 LOG_ALWAYS_FATAL_IF(!extensions.has("EGL_KHR_swap_buffers_with_damage"), in initExtensions()
284 LOG_ALWAYS_FATAL_IF(mEglContext == EGL_NO_CONTEXT, "Failed to create context, error = %s", in createContext()
289 LOG_ALWAYS_FATAL_IF(mEglDisplay == EGL_NO_DISPLAY, in createPBufferSurface()
295 LOG_ALWAYS_FATAL_IF(mPBufferSurface == EGL_NO_SURFACE, in createPBufferSurface()
305 LOG_ALWAYS_FATAL_IF(!hasEglContext(), "Not initialized"); in createSurface()
338 LOG_ALWAYS_FATAL_IF(!colorSpace->toXYZD50(&colorGamut), in createSurface()
359 LOG_ALWAYS_FATAL_IF(eglSurfaceAttrib(mEglDisplay, surface, EGL_SWAP_BEHAVIOR, in createSurface()
[all …]
/frameworks/minikin/tests/perftests/
Dmain.cpp28 LOG_ALWAYS_FATAL_IF(fd == -1); in main()
30 LOG_ALWAYS_FATAL_IF(fstat(fd, &st) != 0); in main()
35 LOG_ALWAYS_FATAL_IF(U_FAILURE(errorCode)); in main()
37 LOG_ALWAYS_FATAL_IF(U_FAILURE(errorCode)); in main()
DGraphemeBreak.cpp39 LOG_ALWAYS_FATAL_IF(result_size != 12); in BM_GraphemeBreak_Ascii()
54 LOG_ALWAYS_FATAL_IF(result_size != 12); in BM_GraphemeBreak_Emoji()
69 LOG_ALWAYS_FATAL_IF(result_size != 12); in BM_GraphemeBreak_Emoji_Flags()
/frameworks/minikin/tests/unittest/
DICUEnvironment.h42 LOG_ALWAYS_FATAL_IF(fd == -1); in SetUp()
44 LOG_ALWAYS_FATAL_IF(fstat(fd, &sb) != 0); in SetUp()
52 LOG_ALWAYS_FATAL_IF(U_FAILURE(errorCode)); in SetUp()
56 LOG_ALWAYS_FATAL_IF(U_FAILURE(errorCode)); in SetUp()
/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/libs/hwui/
DAnimationContext.cpp39 LOG_ALWAYS_FATAL_IF(mCurrentFrameAnimations.mNextHandle == current, in destroy()
56 LOG_ALWAYS_FATAL_IF(mCurrentFrameAnimations.mNextHandle, in startFrame()
73 LOG_ALWAYS_FATAL_IF(mCurrentFrameAnimations.mNextHandle == current, in runRemainingAnimations()
95 LOG_ALWAYS_FATAL_IF(mPreviousHandle || mNextHandle, in ~AnimationHandle()
109 LOG_ALWAYS_FATAL_IF(mRenderNode->animators().hasAnimators(), in release()
DDeviceInfo.cpp44 LOG_ALWAYS_FATAL_IF(mMaxTextureSize < 0, "MaxTextureSize has not been initialized yet."); in maxTextureSize()
63 LOG_ALWAYS_FATAL_IF(mDisplays == nullptr || mDisplaysSize <= 0, in updateDisplayInfo()
72LOG_ALWAYS_FATAL_IF(mPhysicalDisplayIndex < 0, "Failed to find a connected physical display!"); in updateDisplayInfo()
112 LOG_ALWAYS_FATAL_IF(status, "Failed to get display config, error %d", status); in updateDisplayInfo()
/frameworks/native/cmds/servicemanager/
Dmain.cpp46 LOG_ALWAYS_FATAL_IF(binder_fd < 0, "Failed to setupPolling: %d", binder_fd); in setupTo()
57 LOG_ALWAYS_FATAL_IF(ret != 1, "Failed to add binder FD to Looper"); in setupTo()
75LOG_ALWAYS_FATAL_IF(fdTimer < 0, "Failed to timerfd_create: fd: %d err: %d", fdTimer, errno); in setupTo()
89LOG_ALWAYS_FATAL_IF(timeRes < 0, "Failed to timerfd_settime: res: %d err: %d", timeRes, errno); in setupTo()
96 LOG_ALWAYS_FATAL_IF(addRes != 1, "Failed to add client callback FD to Looper"); in setupTo()
/frameworks/base/native/android/
Dsystem_fonts.cpp310 LOG_ALWAYS_FATAL_IF(ite == nullptr, "nullptr has passed as iterator argument"); in ASystemFontIterator_next()
347 LOG_ALWAYS_FATAL_IF(font == nullptr, "nullptr has passed as font argument"); in AFont_getFontFilePath()
352 LOG_ALWAYS_FATAL_IF(font == nullptr, "nullptr has passed as font argument"); in AFont_getWeight()
357 LOG_ALWAYS_FATAL_IF(font == nullptr, "nullptr has passed as font argument"); in AFont_isItalic()
362 LOG_ALWAYS_FATAL_IF(font == nullptr, "nullptr has passed to font argument"); in AFont_getLocale()
367 LOG_ALWAYS_FATAL_IF(font == nullptr, "nullptr has passed to font argument"); in AFont_getCollectionIndex()
372 LOG_ALWAYS_FATAL_IF(font == nullptr, "nullptr has passed to font argument"); in AFont_getAxisCount()
377 LOG_ALWAYS_FATAL_IF(font == nullptr, "nullptr has passed to font argument"); in AFont_getAxisTag()
378 LOG_ALWAYS_FATAL_IF(axisIndex >= font->mAxes.size(), in AFont_getAxisTag()
384 LOG_ALWAYS_FATAL_IF(font == nullptr, "nullptr has passed to font argument"); in AFont_getAxisValue()
[all …]
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/libs/hwui/tests/common/
DTestContext.cpp32 LOG_ALWAYS_FATAL_IF(!token, "%s: No internal display", __FUNCTION__); in getDisplayInfo()
35 LOG_ALWAYS_FATAL_IF(status, "%s: Failed to get display info", __FUNCTION__); in getDisplayInfo()
52 LOG_ALWAYS_FATAL_IF(!token, "%s: No internal display", __FUNCTION__); in getActiveDisplayConfig()
55 LOG_ALWAYS_FATAL_IF(status, "%s: Failed to get active display config", __FUNCTION__); in getActiveDisplayConfig()
/frameworks/av/services/audiopolicy/service/
DCaptureStateNotifier.cpp30 LOG_ALWAYS_FATAL_IF(mListener != nullptr); in ~CaptureStateNotifier()
35 LOG_ALWAYS_FATAL_IF(mListener != nullptr); in RegisterListener()
36 LOG_ALWAYS_FATAL_IF(listener == nullptr); in RegisterListener()

123456789