/frameworks/minikin/tests/util/ |
D | UnicodeUtils.cpp | 41 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 …]
|
D | FreeTypeMinikinFontForTest.cpp | 55 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()
|
D | FileUtils.cpp | 28 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()
|
D | PathUtils.cpp | 29 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/ |
D | android_media_Utils.cpp | 84 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/ |
D | BufferQueue.cpp | 88 LOG_ALWAYS_FATAL_IF(outProducer == nullptr, in createBufferQueue() 90 LOG_ALWAYS_FATAL_IF(outConsumer == nullptr, in createBufferQueue() 94 LOG_ALWAYS_FATAL_IF(core == nullptr, in createBufferQueue() 98 LOG_ALWAYS_FATAL_IF(producer == nullptr, in createBufferQueue() 102 LOG_ALWAYS_FATAL_IF(consumer == nullptr, in createBufferQueue() 112 LOG_ALWAYS_FATAL_IF(outProducer == nullptr, "BufferQueue: outProducer must not be NULL"); in createBufferHubQueue() 113 LOG_ALWAYS_FATAL_IF(outConsumer == nullptr, "BufferQueue: outConsumer must not be NULL"); in createBufferHubQueue() 121 LOG_ALWAYS_FATAL_IF(producerQueue == nullptr, "BufferQueue: failed to create ProducerQueue."); in createBufferHubQueue() 124 LOG_ALWAYS_FATAL_IF(consumerQueue == nullptr, "BufferQueue: failed to create ConsumerQueue."); in createBufferHubQueue() 129 LOG_ALWAYS_FATAL_IF(producer == nullptr, "BufferQueue: failed to create BufferQueueProducer"); in createBufferHubQueue() [all …]
|
D | StreamSplitter.cpp | 131 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/services/core/jni/ |
D | com_android_server_GraphicsStatsService.cpp | 45 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() 55 … LOG_ALWAYS_FATAL_IF(pathChars.size() <= 0 || !pathChars.c_str(), "Failed to get path chars"); in addToDump() 59 …LOG_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() 88 …LOG_ALWAYS_FATAL_IF(packageChars.size() <= 0 || !packageChars.c_str(), "Failed to get path chars"); in saveBuffer()
|
/frameworks/base/libs/hwui/renderthread/ |
D | VulkanManager.cpp | 106 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() 156 LOG_ALWAYS_FATAL_IF(mEnumeratePhysicalDevices(mInstance, &gpuCount, nullptr)); in setupDevice() 157 LOG_ALWAYS_FATAL_IF(!gpuCount); in setupDevice() 163 LOG_ALWAYS_FATAL_IF(err && VK_INCOMPLETE != err); in setupDevice() 167 LOG_ALWAYS_FATAL_IF(physDeviceProperties.apiVersion < VK_MAKE_VERSION(1, 1, 0)); in setupDevice() 173 LOG_ALWAYS_FATAL_IF(!queueCount); in setupDevice() 187 LOG_ALWAYS_FATAL_IF(mGraphicsQueueIndex == queueCount); in setupDevice() [all …]
|
D | RenderThread.cpp | 70 LOG_ALWAYS_FATAL_IF(status != NO_ERROR, "requestNextVsync failed with status: %d", status); in requestNextVsync() 121 LOG_ALWAYS_FATAL_IF(hasInstance(), "can't set an onStartHook after we've started..."); in setOnStartHook() 156 LOG_ALWAYS_FATAL_IF(mVsyncSource, "Initializing a second DisplayEventReceiver?"); in initializeDisplayEventReceiver() 163 LOG_ALWAYS_FATAL_IF(status != NO_ERROR, in initializeDisplayEventReceiver() 208 LOG_ALWAYS_FATAL_IF(!glInterface.get()); in requireGlContext() 216 LOG_ALWAYS_FATAL_IF(!grContext.get()); in requireGlContext() 230 LOG_ALWAYS_FATAL_IF(!grContext.get()); in requireVkContext()
|
D | EglManager.cpp | 107 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() 281 LOG_ALWAYS_FATAL_IF(mEglContext == EGL_NO_CONTEXT, "Failed to create context, error = %s", in createContext() 286 LOG_ALWAYS_FATAL_IF(mEglDisplay == EGL_NO_DISPLAY, in createPBufferSurface() 298 LOG_ALWAYS_FATAL_IF(!hasEglContext(), "Not initialized"); in createSurface() 331 LOG_ALWAYS_FATAL_IF(!colorSpace->toXYZD50(&colorGamut), in createSurface() 352 LOG_ALWAYS_FATAL_IF(eglSurfaceAttrib(mEglDisplay, surface, EGL_SWAP_BEHAVIOR, in createSurface() 426 LOG_ALWAYS_FATAL_IF(surface == EGL_NO_SURFACE, "Tried to beginFrame on EGL_NO_SURFACE!"); in beginFrame()
|
/frameworks/base/core/jni/ |
D | core_jni_helpers.h | 43 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", field_name); in GetFieldIDOrDie() 57 LOG_ALWAYS_FATAL_IF(res == NULL, "Unable to find method %s", method_name); in GetMethodIDOrDie() 64 LOG_ALWAYS_FATAL_IF(res == NULL, "Unable to find static field %s", field_name); in GetStaticFieldIDOrDie() 71 LOG_ALWAYS_FATAL_IF(res == NULL, "Unable to find static method %s", method_name); in GetStaticMethodIDOrDie() 78 LOG_ALWAYS_FATAL_IF(res == NULL, "Unable to create global reference."); in MakeGlobalRefOrDie() 85 LOG_ALWAYS_FATAL_IF(res < 0, "Unable to register native methods."); in RegisterMethodsOrDie()
|
D | android_view_RenderNodeAnimator.cpp | 75 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/libs/hwui/ |
D | DeviceInfo.cpp | 59 LOG_ALWAYS_FATAL_IF(token == nullptr, in QueryDisplayInfo() 64 LOG_ALWAYS_FATAL_IF(status, "Failed to get display info, error %d", status); in QueryDisplayInfo() 74 LOG_ALWAYS_FATAL_IF(token == nullptr, in QueryMaxRefreshRate() 80 LOG_ALWAYS_FATAL_IF(status, "Failed to getDisplayConfigs, error %d", status); in QueryMaxRefreshRate() 81 LOG_ALWAYS_FATAL_IF(configs.size() == 0, "getDisplayConfigs returned 0 configs?"); in QueryMaxRefreshRate() 100 LOG_ALWAYS_FATAL_IF(status, "Failed to get composition preference, error %d", status); in queryWideColorGamutPreference() 138 LOG_ALWAYS_FATAL_IF(mMaxTextureSize < 0, "MaxTextureSize has not been initialized yet."); in maxTextureSize()
|
D | AnimationContext.cpp | 39 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()
|
D | HardwareBitmapUploader.cpp | 64 LOG_ALWAYS_FATAL_IF(mPendingUploads, "terminate called while uploads in progress"); in destroy() 163 LOG_ALWAYS_FATAL_IF(!mEglManager.hasEglContext(), "Forgot to begin an upload?"); in getUploadEglDisplay() 173 LOG_ALWAYS_FATAL_IF(display == EGL_NO_DISPLAY, "Failed to get EGL_DEFAULT_DISPLAY! err=%s", in onUploadHardwareBitmap() 202 LOG_ALWAYS_FATAL_IF(uploadFence == EGL_NO_SYNC_KHR, in onUploadHardwareBitmap() 209 LOG_ALWAYS_FATAL_IF(waitStatus != EGL_CONDITION_SATISFIED_KHR, in onUploadHardwareBitmap() 250 LOG_ALWAYS_FATAL_IF(mGrContext, in onBeginUpload() 260 LOG_ALWAYS_FATAL_IF(!mGrContext, "failed to create GrContext for vulkan uploads"); in onBeginUpload()
|
D | GpuMemoryTracker.cpp | 54 LOG_ALWAYS_FATAL_IF(!result.second, in startTrackingObject() 61 LOG_ALWAYS_FATAL_IF(removed != 1, "stopTrackingObject removed %zd, is %p not being tracked?", in stopTrackingObject() 67 LOG_ALWAYS_FATAL_IF(gGpuThread != 0, in onGpuContextCreated()
|
/frameworks/native/services/vr/hardware_composer/ |
D | vr_hardware_composer_service.cpp | 31 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/native/services/surfaceflinger/Scheduler/ |
D | RefreshRateConfigs.h | 63 LOG_ALWAYS_FATAL_IF(!mRefreshRateSwitchingSupported); in getRefreshRateMap() 72 LOG_ALWAYS_FATAL_IF(refreshRate == mRefreshRateMap.end()); in getRefreshRateFromType() 91 LOG_ALWAYS_FATAL_IF(configId >= mRefreshRates.size()); in getRefreshRateFromConfigId() 108 LOG_ALWAYS_FATAL_IF(config >= mRefreshRates.size()); in setCurrentConfig() 136 LOG_ALWAYS_FATAL_IF(configs.empty()); in init() 137 LOG_ALWAYS_FATAL_IF(currentConfig >= configs.size()); in init()
|
/frameworks/native/cmds/servicemanager/ |
D | main.cpp | 46 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() 75 … LOG_ALWAYS_FATAL_IF(fdTimer < 0, "Failed to timerfd_create: fd: %d err: %d", fdTimer, errno); in setupTo() 89 … LOG_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/ |
D | system_fonts.cpp | 297 LOG_ALWAYS_FATAL_IF(ite == nullptr, "nullptr has passed as iterator argument"); in ASystemFontIterator_next() 338 LOG_ALWAYS_FATAL_IF(font == nullptr, "nullptr has passed as font argument"); in AFont_getFontFilePath() 343 LOG_ALWAYS_FATAL_IF(font == nullptr, "nullptr has passed as font argument"); in AFont_getWeight() 348 LOG_ALWAYS_FATAL_IF(font == nullptr, "nullptr has passed as font argument"); in AFont_isItalic() 353 LOG_ALWAYS_FATAL_IF(font == nullptr, "nullptr has passed to font argument"); in AFont_getLocale() 358 LOG_ALWAYS_FATAL_IF(font == nullptr, "nullptr has passed to font argument"); in AFont_getCollectionIndex() 363 LOG_ALWAYS_FATAL_IF(font == nullptr, "nullptr has passed to font argument"); in AFont_getAxisCount() 368 LOG_ALWAYS_FATAL_IF(font == nullptr, "nullptr has passed to font argument"); in AFont_getAxisTag() 369 LOG_ALWAYS_FATAL_IF(axisIndex >= font->mAxes.size(), in AFont_getAxisTag() 375 LOG_ALWAYS_FATAL_IF(font == nullptr, "nullptr has passed to font argument"); in AFont_getAxisValue() [all …]
|
D | sharedmem.cpp | 39 LOG_ALWAYS_FATAL_IF(clazz == nullptr, "Failed to find android.os.SharedMemory"); in jniInit() 41 LOG_ALWAYS_FATAL_IF(sSharedMemory.clazz == nullptr, in jniInit() 44 LOG_ALWAYS_FATAL_IF(sSharedMemory.getFd == nullptr, in jniInit()
|
/frameworks/minikin/tests/perftests/ |
D | GraphemeBreak.cpp | 39 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/base/cmds/app_process/ |
D | app_main.cpp | 142 LOG_ALWAYS_FATAL_IF(androidRoot == NULL, "ANDROID_DATA environment variable unset"); in maybeCreateDalvikCache() 147 LOG_ALWAYS_FATAL_IF((numChars >= PATH_MAX || numChars < 0), in maybeCreateDalvikCache() 151 LOG_ALWAYS_FATAL_IF((result < 0 && errno != EEXIST), in maybeCreateDalvikCache() 158 … LOG_ALWAYS_FATAL_IF((result < 0), "Error changing dalvik-cache ownership : %s", strerror(errno)); in maybeCreateDalvikCache() 161 LOG_ALWAYS_FATAL_IF((result < 0), in maybeCreateDalvikCache()
|
/frameworks/ex/framesequence/jni/utils/ |
D | log.h | 186 #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__)
|