のねのBlog

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

Android

git push

$git config --global push.default simple $git push fatal: The current branch feat01_enc_fujii has no upstream branch. To push the current branch and set the remote as upstream, use git push --set-upstream origin feat01 $git push --set-upst…

originのurlを変える

$git remote add origin git@bitbucket.org:user01/android7.0-minikin.git fatal: remote origin already exists.$git remote -v origin https://android.googlesource.com/platform/frameworks/minikin/ (fetch) origin https://android.googlesource.com/…

getFontTable

80 bool FontFamily::addFont(MinikinFont* typeface) { 81 AutoMutex _l(gMinikinLock); 82 const uint32_t os2Tag = MinikinFont::MakeTag('O', 'S', '/', '2'); 83 HbBlob os2Table(getFontTable(typeface, os2Tag)); 84 if (os2Table.get() == nullptr) …

NewWithProc

166 SkAutoTUnref<SkData> data(SkData::NewWithProc(fontPtr, fontSize, 167 release_global_ref, reinterpret_cast<void*>(fontRef))); Cross Reference: /frameworks/base/core/jni/android/graphics/FontFamily.cpp 106 SkData* SkData::NewWithProc( const void* ptr, </void*></skdata>…

getFontTable

82 hb_blob_t* getFontTable(MinikinFont* minikinFont, uint32_t tag) { 83 assertMinikinLocked(); 84 hb_font_t* font = getHbFontLocked(minikinFont); 85 hb_face_t* face = hb_font_get_face(font); 86 hb_blob_t* blob = hb_face_reference_table(fac…

MinikinDestroyFunc

31 static hb_blob_t* referenceTable(hb_face_t* /* face */, hb_tag_t tag, void* userData) { 32 MinikinFont* font = reinterpret_cast<MinikinFont*>(userData); 33 MinikinDestroyFunc destroy = 0; 34 size_t size = 0; 35 const void* buffer = font->GetTable(tag</minikinfont*>…

getCoverage

6.0.0_r1 188 const SparseBitSet* FontFamily::getCoverage() { 189 if (!mCoverageValid) { 190 const FontStyle defaultStyle; 191 MinikinFont* typeface = getClosestMatch(defaultStyle).font; 192 const uint32_t cmapTag = MinikinFont::MakeTag('c'…

addFont

6.0.0_r1 103 bool FontFamily::addFont(MinikinFont* typeface) { 104 AutoMutex _l(gMinikinLock); 105 const uint32_t os2Tag = MinikinFont::MakeTag('O', 'S', '/', '2'); 106 size_t os2Size = 0; 107 bool ok = typeface->GetTable(os2Tag, NULL, &os…

aosp build/envsetup.shのコマンド

Invoke ". build/envsetup.sh" from your shell to add the following functions to your environment: - lunch: lunch <product_name>-<build_variant> - tapas: tapas [<App1> <App2> ...] [arm|x86|mips|armv5|arm64|x86_64|mips64] [eng|userdebug|user] - croot: Changes directory to the top of</app2></app1></build_variant></product_name>…

tapas コマンド

BuildingTrade Federation is set up in a lightweight "unbundled" branch that uses slightly different build commands from the platform source. In particular, unbundled branches use the tapas command to set up the build environment, rather th…

hb_blob_t

53 struct hb_blob_t { 54 hb_object_header_t header; 55 ASSERT_POD (); 56 57 bool immutable; 58 59 const char *data; 60 unsigned int length; 61 hb_memory_mode_t mode; 62 63 void *user_data; 64 hb_destroy_func_t destroy; 65 };Cross Reference…

MinikinFont

100 class MinikinFont : public MinikinRefCounted { 101 public: 102 MinikinFont(int32_t uniqueId) : mUniqueId(uniqueId) {} 103 104 virtual ~MinikinFont(); 105 106 virtual float GetHorizontalAdvance(uint32_t glyph_id, 107 const MinikinPaint …

minikin HbFontCache

bFontCache* getFontCacheLocked() { ALOGD("[S] minikin/HbFontCache.cpp getFontCacheLocked"); assertMinikinLocked(); static HbFontCache* cache = nullptr; if (cache == nullptr) { cache = new HbFontCache(); } ALOGD("[E] minikin/HbFontCache.cpp…

Minikin getFontTable

80 bool FontFamily::addFont(MinikinFont* typeface) { 81 AutoMutex _l(gMinikinLock); 82 const uint32_t os2Tag = MinikinFont::MakeTag('O', 'S', '/', '2'); 83 HbBlob os2Table(getFontTable(typeface, os2Tag)); 84 if (os2Table.get() == nullptr) …

getHbFontLocked

50 // An RAII wrapper for hb_blob_t 51 class HbBlob { 52 public: 53 // Takes ownership of hb_blob_t object, caller is no longer 54 // responsible for calling hb_blob_destroy(). 55 HbBlob(hb_blob_t* blob) : mBlob(blob) { 56 } 57 58 ~HbBlob(…

Doxygen Android

INPUT = ../../android/external/skia/src \ ../../android/external/harfbuzz_ng/src \ ../../android/external/freetype/src \ ../../android/frameworks/base/graphics/java/ \ ../../android/frameworks/base/graphics/jni/ \ ../../android/frameworks/…

jack-admin

jack-admin kill-server jack-admin start-server$jack-adminUsage : android/out/host/linux-x86/bin/jack-admin [ install-server uninstall-server list update start-server stop-server kill-server list-server server-stat server-log server-gc clea…

Communication error with Jack server

Communication error with Jack server (28), try 'jack-diagnose' or see Jack server log Communication error with Jack server 28. Try 'jack-diagnose' Communication error with Jack server 28. Try 'jack-diagnose' ninja: build stopped: subcomman…

秀丸 強調表示 行

秀丸 強調表示 正規表現 .*skia.*oshiete.goo.ne.jp

logcat monitor filter

stackoverflow.com ^(?!.*(WifiHAL|art|NvCameraHal3Core|NvOsDebugPrintf|auditd|vold|TrustyKeymaster|Cryptfs)).*$^(?!.*( PackageManager|PackageParser|CwMcuSensor|SensorService|BatteryStatsService|SystemServiceManager|SystemServer|EventHub|Inp…

Ubuntu 16.04 Samba 書き込み

Ubuntu 16.04: sambaをインストールしてWindows 10とファイル共有する - Narrow Escape

sdk hide

stackoverflow.com

Android StudioでAOSPのFrameworkのデバッグ

ronubo.blogspot.jpRemoteでportを8700にする。

adbd cannot run as root in production builds

adbd cannot run as root in production builds

Android Studio

1:20:46 Frameworks detected: Android framework is detected in the project Configurestackoverflow.com stackoverflow.com

git prompt

export PS1='[\w]:\[\033[01;32m\]$(if git status &>/dev/null;then echo $(parse_git_branch);fi)\[\033[00m\]$'

mmコマンドで、エラーmake failed to build some targets

/external/skia $mm make: Entering directory '/home/android' ============================================ PLATFORM_VERSION_CODENAME=REL PLATFORM_VERSION=7.0 TARGET_PRODUCT=aosp_flounder TARGET_BUILD_VARIANT=userdebug TARGET_BUILD_TYPE=relea…

コマンドでgit

$git checkout -b feat02_fujii feat01_u01Switched to a new branch 'feat02_u01' $git branch -a feat01 feat01_u01 * feat02_u01 proj1 remotes/origin/HEAD -> origin/proj1 remotes/origin/feat01 remotes/origin/proj$git branch -d feat02_u01

VS2015のNDKにシンボリックリンクを貼る

>cd C:\Android >mklink /D ndk c:\ProgramData\Microsoft\AndroidNDK64\android-ndk-r11c ndk <<===>> c:\ProgramData\Microsoft\AndroidNDK64\android-ndk-r11c のシンボリック リンクが作成されました

ndk

developer.android.com