OSDN Git Service

Do not use many FDs in FontManagerService.
authorSeigo Nonaka <nona@google.com>
Tue, 28 Mar 2017 02:46:51 +0000 (19:46 -0700)
committerSeigo Nonaka <nona@google.com>
Wed, 29 Mar 2017 17:01:16 +0000 (17:01 +0000)
commitc0cf4f09f4c520b2aaafbe8a0cb0feb530c2e021
treeac73ae893cf0debead669d67496d4bfee54d9c1c
parent76d779374a92f502579e72f822cf815e54be33ea
Do not use many FDs in FontManagerService.

Currently there are over 170 font files are installed in system directory.
Opening 170+ files and keep them is not unacceptable. Pass URI instead.

At the same time, this CL hides full font path from FontConfig since
/system/fonts directory will be deprecated in future.

Bug: 36660849
Test: android.text.cts.FontManagerTest passed
Change-Id: I1d216dc9c6dec702a4ce3b946bfda6dcbe12b7fe
(cherry picked from commit 455f1bfc05bf972ee4fe8cd5fa135ed232126bb7)
api/current.txt
api/system-current.txt
api/test-current.txt
core/java/android/text/FontConfig.java
graphics/java/android/graphics/FontListParser.java
graphics/java/android/graphics/Typeface.java
services/core/java/com/android/server/FontManagerService.java