のねのBlog

パソコンの問題や、ソフトウェアの開発で起きた問題など書いていきます。よろしくお願いします^^。

typeface.builder

Typeface.java
platform_frameworks_base/Typeface.java at master · aosp-mirror/platform_frameworks_base · GitHub

SparseArray.java
platform_frameworks_base/SparseArray.java at master · aosp-mirror/platform_frameworks_base · GitHub

qiita.com

AssetManager.java
platform_frameworks_base/AssetManager.java at master · aosp-mirror/platform_frameworks_base · GitHub

FontFamily.java
platform_frameworks_base/FontFamily.java at b056324630b8adfeb38393bcab49f3b9c720f4fd · aosp-mirror/platform_frameworks_base · GitHub

Cross Reference: /frameworks/base/core/jni/android/graphics/FontFamily.cpp

    266 ///////////////////////////////////////////////////////////////////////////////
    267 
    268 static const JNINativeMethod gFontFamilyMethods[] = {
    269     { "nInitBuilder",          "(Ljava/lang/String;I)J", (void*)FontFamily_initBuilder },
    270     { "nCreateFamily",         "(J)J", (void*)FontFamily_create },
    271     { "nAllowUnsupportedFont", "(J)V", (void*)FontFamily_allowUnsupportedFont },
    272     { "nAbort",                "(J)V", (void*)FontFamily_abort },
    273     { "nUnrefFamily",          "(J)V", (void*)FontFamily_unref },
    274     { "nAddFont",              "(JLjava/nio/ByteBuffer;III)Z", (void*)FontFamily_addFont },
    275     { "nAddFontWeightStyle",   "(JLjava/nio/ByteBuffer;III)Z",
    276             (void*)FontFamily_addFontWeightStyle },
    277     { "nAddFontFromAssetManager",    "(JLandroid/content/res/AssetManager;Ljava/lang/String;IZIII)Z",
    278             (void*)FontFamily_addFontFromAssetManager },
    279     { "nAddAxisValue",         "(JIF)V", (void*)FontFamily_addAxisValue },
    280 };
 ||<

[http://tools.oesf.biz/android-8.1.0_r1.0/xref/frameworks/base/core/jni/android/graphics/FontFamily.cpp#FontFamily_abort:title]
>||
static void FontFamily_abort(jlong builderPtr) {
     89     NativeFamilyBuilder* builder = reinterpret_cast<NativeFamilyBuilder*>(builderPtr);
     90     delete builder;
     91 }