のねのBlog

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

2015-02-01から1ヶ月間の記事一覧

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…

Sambaとハードディスクの速度比較

UbuntuのSambaとハードディスクのベンチマークを測定してみました。 上がUbuntuのSamba 下がハードディスク(RAID1)

"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﹕ 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﹕ 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﹕ 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﹕ *** 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)

adb shell をWindowsで使うと"\r\r\n"("LFLFCR")になる

Windowsで以下のようなadb shellの結果を保存すると 改行コードが"\r\r\n(0x0D,0x0D,0x0A[CRCRLF])になる。 adb shell dumpsys > aaa.txt0x0D,0x0D,0x0A[\r\n]の[\n]を[\r\n]に変えるので、[\r\r\n]になるようだ。以下のように置換の処理を間に入れると、消…

消せる4色ボールペンを買った パイロット フリクションボール4

消せる4色ボールペンを買った。 ボールペンの後ろに付いている部分でこするだけで消える。 消しゴムでは消えにくかった。書きあじが滑らかで、気に入っている。パイロット 4色ボールペン フリクションボール4 LKFB-80EF-BO 0.5mm ボルドー出版社/メーカー: …

Windows7の環境変数、PATH編集ソフト

Rapid Environment Editor

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 } …

aggregation composition

aggregationは、元がなくなっても単体で残ることができます。 たとえば車とエンジンの関係で、車がなくなったとしてもエンジンはエンジンとして残ることができます。compositionは、元がなくなると一緒に消滅します。 たとえばタクシーと運転手の関係で、車…

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 + ".ServiceMonitor"; 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…

dmtracedump

プロファイル dmtracedump -h -g ddms2145480925974807792.trace.out.png ddms2145480925974807792.trace > aaa.html 処理順 dmtracedump -ho -g ddms2145480925974807792.trace.out.png ddms2145480925974807792.trace > aaa.txt

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

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

Ubuntuでファイルマネージャが自動で開かないようにする方法

USBを接続すると、Ubuntuのファイルマネージャが自動起動する。 この自動起動を停止する方法。SystemSettings>SystemのDetails>Removable Mediaで"Never prompt or start programs on media insertion"にチェックした。

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…

zen mode

435 public void onConfigurationChanged(Configuration newConfig) { 436 updateWidth(); 437 if (mZenPanel != null) { 438 mZenPanel.updateLocale(); 439 } 440 } 244 public void updateLocale() { 245 mZenButtons.updateLocale(); 246 } 91 public vo…