読者です 読者をやめる 読者になる 読者になる

のねのBlog

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

Android

FT_GLYPH_FORMAT_COMPOSITE

FT_GLYPH_FORMAT_COMPOSITE The glyph image is a composite of several other images. This format is only used with FT_LOAD_NO_RECURSE, and is used to report compound glyphs (like accented characters). 2453 FT_LOCAL_DEF( FT_Error ) 2454 TT_Loa…

composite glyph

1655 /* otherwise, load a composite! */ 1656 else if ( loader->n_contours == -1 ) 1657 { 1658 FT_UInt start_point; 1659 FT_UInt start_contour; 1660 FT_ULong ins_pos; /* position of composite instructions, if any */ 1661 1662 1663 start_poi…

TT_CONFIG_OPTION_EMBEDDED_BITMAPS

30 #ifdef TT_CONFIG_OPTION_EMBEDDED_BITMAPS 31 #include "pngshim.c" 32 #include "ttsbit.c" 33 #endif

FT_DEFINE_SFNT_INTERFACE

565 #ifndef FT_CONFIG_OPTION_PIC 566 567 #define FT_DEFINE_SFNT_INTERFACE( \ 568 class_, \ 569 goto_table_, \ 570 init_face_, \ 571 load_face_, \ 572 done_face_, \ 573 get_interface_, \ 574 load_any_, \ 575 load_head_, \ 576 load_hhea_, \ …

ebdt

460 FT_DEFINE_SFNT_INTERFACE( 461 sfnt_interface, 462 tt_face_goto_table, 463 464 sfnt_init_face, 465 sfnt_load_face, 466 sfnt_done_face, 467 sfnt_get_interface, 468 469 tt_face_load_any, 470 471 tt_face_load_head, 472 tt_face_load_hhea, 4…

truetype cmap format 2 その2

Freetype2の場合: ※TT_PEAK_USHORTの場合、ポインタの場所を読む。(ポインタは進めない。) ※TT_NEXT_USHORTの場合、ポインタの場所を読み、ポインタを進める。 391 /* return sub header corresponding to a given character code */ 392 /* NULL on inval…

ARG_1_AND_2_ARE_WORDS

if ($flags & self::ARG_1_AND_2_ARE_WORDS) { if ($flags & self::ARGS_ARE_XY_VALUES) { $e = $font->readInt16(); $f = $font->readInt16(); } else { $point_compound = $font->readUInt16(); $point_component = $font->readUInt16(); } } else { if ($…

glib-2.46.2 ./configure --prefix=$HOME/usr

~/layout/oss/glib-2.46.2:$ ./configure --prefix=$HOME/usr

icu4c thaidict.txt

platform_external_icu4c/thaidict.txt at master 揃 android/platform_external_icu4c

mbp01:~ m_fujii$ brew doctor Please note that these warnings are just used to help the Homebrew maintainers with debugging if you file an issue. If everything you use Homebrew for is working fine: please don't worry and just ignore them. T…

calabash-android ERROR: Failed to build gem native extension.

>gem install calabash-android Fetching: builder-3.2.2.gem (100%) Fetching: diff-lcs-1.2.5.gem (100%) Fetching: multi_json-1.11.2.gem (100%) Fetching: gherkin-2.12.2-x86-mingw32.gem (100%) Fetching: multi_test-0.1.2.gem (100%) Fetching: cuc…

android adb audit avc denied

SELinux関係みたいだ。 08-10 10:39:05.960: W/adb(18810): type=1400 audit(0.0:256479): avc: denied { read } for name="usb" dev="tmpfs" ino=6306 scontext=u:r:shell:s0 tcontext=u:object_r:usb_device:s0 tclass=dir permissive=0https://source.and…

ndk-stack

ndk-stackndk-stack は、 android NDK についてくるツールの一つです。 使い方はおもに以下の2通りぐらいです。 logcatから直接使う場合$ adb logcat | ndk-stack -sym proj.android/obj/local/armeabi/ 保存してあるlogcatを読み込む場合$ ndk-stack -sym p…

android::SparseBitSet::nextSetBit

39 FontCollection::FontCollection(const vector<FontFamily*>& typefaces) : 40 mMaxChar(0) { 41 AutoMutex _l(gMinikinLock); 42 mId = sNextId++; 43 vector<uint32_t> lastChar; 44 size_t nTypefaces = typefaces.size(); 45 #ifdef VERBOSE_DEBUG 46 ALOGD("nTypefaces = %d</uint32_t></fontfamily*>…

AOSP Android 差分

前準備 $ mkdir android $ cd android $ repo init -u https://android.googlesource.com/platform/manifest -b android-5.1..1_r1 $ repo syncファイル差分すべてを取得 $ repo forall -p -c git diff android-5.1.0_r1..android-5.1.1_r1 > diff_android-5…

MAPI

VPNを構成しなくても実現する方法があります。Outlookとメールボックスサーバ間のMAPI/RPCプロトコル通信をHTTP/HTTPSでカプセルして、クライアントアクセスサーバを仲介役とする“Outlook Anywhere”機能 >diff.txt diff_android-5.1.0_r1_android-5.1.1_r1.t…

Android Log

横にしたとき 05-11 16:46:47.667: I/ActivityManager(682): Config changes=480 {1.0 ?mcc?mnc en_CA ldltr sw360dp w598dp h335dp 480dpi nrml land finger -keyb/v/h -nav/h s.884}縦にしたとき 05-11 16:47:44.508: I/ActivityManager(682): Config chan…

Android bugreportsの取り出し方

バグレポートの取り出し方のメモ adb shell $su #chmod 777 /data #chmod 777 /data/data #chmod 777 /data/data/com.android.shell #chmod 777 /data/data/com.android.shell/files #chmod 777 /data/data/com.android.shell/files/bugreports #chmod 777 /…

pa_gapps-modular-pico-5.1-20150315-signedのupdater-scriptのbin

pa_gapps-modular-pico-5.1-20150315-signedのupdater-scriptのbin

updater-script

gapps-L-3-17-15.zipのupdater-script

Android Device Monitorでマスクしたいときの方法

Android Device Monitorのログでマスクしたいときの設定方法 by Log tag: ^(?!.*QSEECOMD|WifiStateMachine|wpa_supplicant)Filter tags in LogCat (in Android Eclipse Plug-In)

valgrind: failed to start tool 'memcheck' for platform 'arm-linux': Permission denied

#chown -R shell.shell /data/local/Inst #cd /data/local/Inst/bin #./valgrind # su shell $ ./valgrind valgrind: failed to start tool 'memcheck' for platform 'arm-linux': Permission denied $ whoami whoami: unknown uid 2000ユーザーをSHELLにし…

android valgrind build

ビルド環境 ・valgrind-3.10.1 ・android-ndk-r10d ・ubuntu 14.04

android valgrind その2

>adb shell shell@hammerhead:/ $ su shell@hammerhead:/ # chmod 777 /data/local shell@hammerhead:/ # chmod 777 /data/local/Inst shell@hammerhead:/ # mkdir /data/local/Inst shell@hammerhead:/ # chmod 777 /data/local/Inst shell@hammerhead:/ # …

android valgrind

AOSPのoutフォルダ ~/LP501r1_debug/android/out/target/product/hammerhead/system/lib/valgrind$ ll total 39668 drwxrwxr-x 2 user user 4096 3月 24 11:22 ./ drwxrwxr-x 8 user user 12288 3月 24 11:21 ../ -rwxrwxr-x 1 user user 5625000 3月 24 11:…

ubuntu 14.04 clan 3.5

sudo ln -s /usr/bin/clang-3.5 /usr/bin/clang sudo ln -s /usr/bin/clang++-3.5 /usr/bin/clang++ sudo ln -s /usr/bin/scan-build-3.5 /usr/bin/scan-buildscan-build -V -k --status-bugs -o analyze_out --use-analyzer=/usr/bin/clang --use-cc=clang …

FAILED BINDER TRANSACTION

636 void signalExceptionForError(JNIEnv* env, jobject obj, status_t err, 637 bool canThrowRemoteException) 638 { 639 switch (err) { 640 case UNKNOWN_ERROR: 641 jniThrowException(env, "java/lang/RuntimeException", "Unknown error"); 642 brea…

InputDispatcher

I/InputDispatcher(685): Window 'Window{2d5a5961 u0 com.android.settings/com.android.settings.SubSettings}' spent 3366.0ms processing the last input event: MotionEvent( deviceId=4, source=0x00001002, action=2, flags=0x00000000, metaState=0x…

FontCollection

(gdb) bt #0 android::FontCollection::itemize (this=0xaffb9158, string=string@entry=0x9f3e1c80, string_size=string_size@entry=8, style=..., result=result@entry=0xbeeacddc) at frameworks/minikin/libs/minikin/FontCollection.cpp:183 #1 0xb5771…

"Hung broadcast"

3473 case LAUNCH_TIMEOUT_MSG: { 3474 if (mService.mDidDexOpt) { 3475 mService.mDidDexOpt = false; 3476 mHandler.sendEmptyMessageDelayed(LAUNCH_TIMEOUT_MSG, LAUNCH_TIMEOUT); 3477 return; 3478 } 3479 synchronized (mService) { 3480 if (mLaunc…

"Launch timeout has expired, giving up wake lock!"

3473 case LAUNCH_TIMEOUT_MSG: { 3474 if (mService.mDidDexOpt) { 3475 mService.mDidDexOpt = false; 3476 mHandler.sendEmptyMessageDelayed(LAUNCH_TIMEOUT_MSG, LAUNCH_TIMEOUT); 3477 return; 3478 } 3479 synchronized (mService) { 3480 if (mLaunc…

"reacting to signal"

04-02 14:25:27.316 673-680/system_process I/art&#65109; Thread[5,tid=680,WaitingInMainSignalCatcherLoop,Thread*=0xaf60e400,peer=0x12c02080,"Signal Catcher"]: reacting to signal 3 168 int SignalCatcher::WaitForSignal(Thread* self, SignalSet…

"Sending signal. PID: "

04-02 14:25:28.656 673-781/system_process I/Process&#65109; Sending signal. PID: 1075 SIG: 3 863 void android_os_Process_sendSignal(JNIEnv* env, jobject clazz, jint pid, jint sig) 864 { 865 if (pid > 0) { 866 ALOGI("Sending signal. PID: %"…

"Launch timeout has expired, giving up wake lock!"

3427 private final class ActivityStackSupervisorHandler extends Handler { 3428 3429 public ActivityStackSupervisorHandler(Looper looper) { 3430 super(looper); 3431 } 3432 3433 void activityIdleInternal(ActivityRecord r) { 3434 synchronized…

art "Long monitor contention event with owner method="

--------- beginning of main 04-02 14:25:17.040 673-781/system_process W/art&#65109; Long monitor contention event with owner method= void com.android.server.wm.WindowManagerService.removeWindow (com.android.server.wm.Session, android.view.…

SystemUIでBreakをかけると、1分ぐらいで、WatchDog Timeoutする

/system_process W/Watchdog&#65109; *** WATCHDOG KILLING SYSTEM PROCESS: Blocked in monitor com.android.server.am.ActivityManagerService on foreground thread (android.fg), Blocked in handler on main thread (main), Blocked in handler on disp…

SystemBar StatusBar NavigationBar

SystemBar=StatusBar+NavigationBar the system bars (that is, the status and the navigation bars)

weight bold

41 42 // Resolve the 1..9 weight based on base weight and bold flag 43 static void resolveStyle(TypefaceImpl* typeface) { 44 int weight = typeface->fBaseWeight / 100; 45 if (typeface->fSkiaStyle & SkTypeface::kBold) { 46 weight += 3; 47 } …

PhoneStatusBar onConfigurationChange

3125 // SystemUIService notifies SystemBars of configuration changes, which then calls down here 3126 @Override 3127 protected void onConfigurationChanged(Configuration newConfig) { 3128 super.onConfigurationChanged(newConfig); // calls re…

Config.updateFrom

824 public int updateFrom(Configuration delta) { 825 int changed = 0; 826 if (delta.fontScale > 0 && fontScale != delta.fontScale) { 827 changed |= ActivityInfo.CONFIG_FONT_SCALE; 828 fontScale = delta.fontScale; 829 } 830 if (delta.mcc !=…

BaseStatusBar

648 @Override 649 protected void onConfigurationChanged(Configuration newConfig) { 650 final Locale locale = mContext.getResources().getConfiguration().locale; 651 final int ld = TextUtils.getLayoutDirectionFromLocale(locale); 652 final fl…

SystemBars

161 public ServiceMonitor(String ownerTag, boolean debug, 162 Context context, String settingKey, Callbacks callbacks) { 163 mTag = ownerTag + &quot;.ServiceMonitor&quot;; 164 mDebug = debug; 165 mContext = context; 166 mSettingKey = setti…

com.android.internal.statusbar.IStatusBar

23 oneway interface IStatusBar 24 { 25 void setIcon(int index, in StatusBarIcon icon); 26 void removeIcon(int index); 27 void disable(int state); 28 void animateExpandNotificationsPanel(); 29 void animateExpandSettingsPanel(); 30 void anim…

handleConfigurationChanged

4041 final void handleConfigurationChanged(Configuration config, CompatibilityInfo compat) { 4042 4043 int configDiff = 0; 4044 4045 synchronized (mResourcesManager) { 4046 if (mPendingConfiguration != null) { 4047 if (!mPendingConfigurati…

logcatのログ(Android Device Monitor)でQSEECOMD以外を表示する方法

logcatのログ(Android Device Monitor)でQSEECOMD以外を表示する方法 by Log Tag: ^(?!.*QSEECOMD)

Quick Settings NotificationPanelView

1512 @Override 1513 protected void onConfigurationChanged(Configuration newConfig) { 1514 super.onConfigurationChanged(newConfig); 1515 mAfforanceHelper.onConfigurationChanged(); 1516 }

Quick Settings

281 @Override 282 public void onAnnouncementRequested(CharSequence announcement) { 283 announceForAccessibility(announcement); 284 } 5234 public void announceForAccessibility(CharSequence text) { 5235 if (AccessibilityManager.getInstance(m…

Quick Settings FlashLight

72 @Override 73 protected void handleUpdateState(BooleanState state, Object arg) { 74 if (state.value) { 75 mWasLastOn = SystemClock.uptimeMillis(); 76 } 77 78 if (arg instanceof Boolean) { 79 state.value = (Boolean) arg; 80 } 81 82 if (!s…

Quick Settings Airplane mode

156 protected void handleRefreshState(Object arg) { 157 handleUpdateState(mTmpState, arg); 158 final boolean changed = mTmpState.copyTo(mState); 159 if (changed) { 160 handleStateChanged(); 161 } 162 } 63 @Override 64 protected void handle…

zen mode

120 @Override 121 protected void onFinishInflate() { 122 super.onFinishInflate(); 123 124 mZenButtons = (SegmentedButtons) findViewById(R.id.zen_buttons); 125 mZenButtons.addButton(R.string.interruption_level_none, <=="なし" Global.ZEN_MOD…