のねのBlog

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

2012-11-01から1ヶ月間の記事一覧

freetype

190 FT_CALLBACK_DEF( FT_Error ) 191 ftc_basic_family_load_glyph( FTC_Family ftcfamily, 192 FT_UInt gindex, 193 FTC_Cache cache, 194 FT_Glyph *aglyph ) 195 { 196 FTC_BasicFamily family = (FTC_BasicFamily)ftcfamily; 197 FT_Error error; 198 F…

Log: Couldn't rename file, to backup file

544 private void writeToFile(MemoryCommitResult mcr) { 545 // Rename the current file so it may be used as a backup during the next read 546 if (mFile.exists()) { 547 if (!mcr.changesMade) { 548 // If the file already exists, but no change…

am_kill too many background

14745 if (!app.killedBackground) { 14746 if (app.curAdj >= ProcessList.HIDDEN_APP_MIN_ADJ) { 14747 numHidden++; 14748 if (numHidden > mProcessLimit) { 14749 Slog.i(TAG, "No longer want " + app.processName 14750 + " (pid " + app.pid + "): h…

Font

203 void Font::render(SkPaint* paint, const char *text, uint32_t start, uint32_t len, 204 int numGlyphs, SkPath* path, float hOffset, float vOffset) { 205 if (numGlyphs == 0 || text == NULL || len == 0) { 206 return; 207 } 208 209 text += …

eclipse error

Error: Android source build in eclipse - Stack Overflow

.classpathは隠しファイルだった。

development/ide/eclipse/の中に、.classpathがない。 表示>隠しファイルを表示する(Ctrl+H)にしたところ 表示されるようになった。 隠しファイルだったのか。 cd /path/to/android/root cp development/ide/eclipse/.classpath . chmod u+w .classpath

Androidの最大プロセス数は?

最大が32768で、制限されて5548なのかな。 shell@android:/ # cat /proc/sys/kernel/pid_max cat /proc/sys/kernel/pid_max 32768 shell@android:/ # ulimit -a ulimit -a time(cpu-seconds) unlimited file(blocks) unlimited coredump(blocks) 0 data(KiB)…

アクティビティのスタックのダンプ(dump activity stack)

>adb shell dumpsys activity > activity.log # ダンプログ出力元クラスは下記 # com.android.server.am.ActivityManagerService.dumpHistoryList # (FileDescriptor, PrintWriter, List, String, String, boolean, boolean, boolean, String) >adb shell du…

アプリ

628 private boolean isInterestingProcess(ActivityManager.RunningAppProcessInfo pi) { 629 if ((pi.flags&ActivityManager.RunningAppProcessInfo.FLAG_CANT_SAVE_STATE) != 0) { 630 return true; 631 } 632 if ((pi.flags&ActivityManager.RunningAppP…

設定アプリでプロセスを止めるとき

Settings>App>Running Process 110 public void onClick(View v) { 111 if (v == mReportButton) { 160 } 162 if (mManageIntent != null) { 175 } else if (mServiceItem != null) { 177 } else if (mActiveItem.mItem.mBackground) { 181 } else { 182 // …