346 Commits

Author SHA1 Message Date
Michael Wright
4bb5848a93 Validate custom pointer icons aren't null.
am: 35068079c8

Change-Id: I68c8a45c8bd207b82a9d82d6f2fd5c7fb85b098c
2017-01-19 02:16:45 +00:00
Michael Wright
35068079c8 Validate custom pointer icons aren't null.
Bug: 33853287
Test: cts
Change-Id: I844a9aec6e37e306a77eee0644a774f6470cf5df
(cherry picked from commit b004b5137e12bffae9a3d3ae97440c8c24bdc07a)
2017-01-18 20:48:44 +00:00
Mark Salyzyn
96bf5985d5 Replace cutils/log.h and log/logger.h with android/log.h or log/log.h
(part deux)

Test: compile
Bug: 26552300
Bug: 31289077
Change-Id: I7417936c4d3666608fccfe51a312c90ecefba2fb
2017-01-11 15:30:30 -08:00
Mark Salyzyn
52eb4e01a4 Replace cutils/log.h and log/logger.h with log/log.h
Test: compile
Bug: 26552300
Bug: 31289077
Change-Id: I578b15b48f0fc2807a92abbc69a377c3d2191496
2017-01-09 14:31:34 -08:00
Jaekyun Seok
5705ad69db Merge "Remove static link in Android framework under /frameworks/base."
am: c60963e451

Change-Id: I0bbb3cf9a66752f6ee8218a4ac5545091130bbed
2016-12-02 19:35:03 +00:00
Jaekyun Seok
377878b4d4 Remove static link in Android framework under /frameworks/base.
The dependencies to static libraries in frameworks should be removed
as many as possible to reduce a size of the system partition.
And that will improve coverage of the VNDK libraries because this
effort might find new necessary shared libs which were linked
statically before.

Size diffs of libs in /system/lib on angler-userdebug build are as
following.

libandroidfw.so      : 243748 -> 205196 (-38552)
libhwui.so           : 562028 -> 562580 (+552)
libmedia_jni.so      : 293652 -> 293656 (+4)
(All the others have the same size.)

total: (-37996)

Test: building succeeded, and the image was tested on angler.
Bug: 33056637
Change-Id: I3021fb438778eaea2be935b990ec85c4aec6c008
(cherry picked from commit 2b14c5eaf61635d1c3a69a2e59faa23cb6b7f7cb)
2016-12-01 10:31:12 +09:00
Lifu Tang
7c0bd74ddc Fixed the memory leak when receiving Nav messages am: fe427f24e5
am: 8786a6b904

Change-Id: Icf0f81dc2c9c9fa0801edb1e2f13a20460e470f0
2016-10-10 19:21:16 +00:00
Lifu Tang
fe427f24e5 Fixed the memory leak when receiving Nav messages
Bug: 32038182

Change-Id: Ie659dc945d6efc7feaf9285d3e7375c90cba7234
2016-10-09 09:37:12 -07:00
Greg Hackmann
a0126e0857 AlarmManagerService: explain some timerfd_create() failures
When AlarmManagerService is broken, starting the framework fails in
weird and inconsistent ways.  So if we detect your kernel is missing the
required timerfd support, give up immediately and explain why.

Bug: 28357356

Test: manually break timerfd_create syscall, check adb logcat during boot
Change-Id: Iaa153fca38e9cd8e801f3e71c3e1ae2351907828
Signed-off-by: Greg Hackmann <ghackmann@google.com>
2016-09-20 14:33:28 -07:00
Greg Hackmann
d7151c06f1 AlarmManagerService: remove legacy /dev/alarm support
We've removed the Android alarm driver from our supported kernels.  It's
time to remove the userspace callers too: they make the native side of
AlarmManagerService more complex, and send the wrong signal about
/dev/alarm still being supported.

Bug: 28357356

Test: cts-tradefed run singleCommand cts -d -c android.app.cts.AlarmManagerTest
Change-Id: I619e2d8a98e4c4728131a2d826b1295f858abedd
Signed-off-by: Greg Hackmann <ghackmann@google.com>
2016-09-20 10:35:40 -07:00
Elliott Hughes
f0c606eb3e Stop including libcore/include/ in most of frameworks/base.
frameworks/base/core/jni/android_text_StaticLayout.cpp does actually use
ScopedIcuLocale, so I've left that for now.

Change-Id: I6458cd133871281a747a9da2e304da10b445051a
2016-09-15 13:13:39 -07:00
Chih-Hung Hsieh
6d09d547b0 Fix google-explicit-constructor warnings.
* Add explicit keyword to conversion constructors.
Bug: 28341362
Test: build with WITH_TIDY=1

Change-Id: Ic550902559b0800bdcfc0b1d301313a909434eed
2016-08-29 14:51:31 -07:00
Christopher Ferris
8f7223e420 Merge \"Remove dependency on android_alarm.h.\"
am: c95e7a3014

Change-Id: I19908fa29772c89b8112e371702da6197b20465d
2016-07-20 18:10:47 +00:00
Christopher Ferris
338893e47e Remove dependency on android_alarm.h.
android_alarm.h no longer exists in upstream android kernels. Since it's
only used by the AlarmManagerService, copy in the parts of the file that
are needed into that one file.

Bug: 30072483
Change-Id: I5c994dfa2ad261da48a67e5c35dc4b6618b82aa1
2016-07-19 12:23:26 -07:00
Greg Hackmann
f11d0fe8c5 Merge "Revert "AlarmManagerService: remove legacy /dev/alarm support"" am: 6fb921a61b
am: 359a4d9569

* commit '359a4d9569fd88a896650065256e8a377546b8e2':
  Revert "AlarmManagerService: remove legacy /dev/alarm support"

Change-Id: I0f1ed806b1261796da0dad770c50e8e1b9f5b3e1
2016-05-28 16:41:13 +00:00
Greg Hackmann
dea57bac3d Revert "AlarmManagerService: remove legacy /dev/alarm support"
This reverts commit f68cdb9cb4841765d9d55d4a95259e9c3bb3ecc1.

Change-Id: I13e954656771f32c6156b4c4adb52922bcd0717a
2016-05-28 13:07:22 +00:00
Greg Hackmann
cac03c5cdf Merge "AlarmManagerService: remove legacy /dev/alarm support" am: 1f336bb051
am: 2c4b276df4

* commit '2c4b276df4ea5655d41b8e239ca44ef6559e485d':
  AlarmManagerService: remove legacy /dev/alarm support

Change-Id: I4cb2036c9a06adaaf9b93bc35821106dc2144c67
2016-05-27 21:25:54 +00:00
Greg Hackmann
f68cdb9cb4 AlarmManagerService: remove legacy /dev/alarm support
We've removed the Android alarm driver from our supported kernels.  It's
time to remove the userspace callers too: they make the native side of
AlarmManagerService more complex, and send the wrong signal about
/dev/alarm still being supported.

Bug: 28357356

Change-Id: I225d76c3f4e695a831d4419e050e8e178e1224b5
Signed-off-by: Greg Hackmann <ghackmann@google.com>
2016-05-27 12:55:02 -07:00
Wyatt Riley
a868723467 Merge "Prevent use of a null sCallbackObj by Hardware FLP" into nyc-dev
am: 793ac34219

* commit '793ac342196c57f6b89ad9d1425fc420fbb44bb5':
  Prevent use of a null sCallbackObj by Hardware FLP

Change-Id: I9f7984826be418e8703bce449a9753d40e477fd0
2016-05-26 22:07:30 +00:00
Wyatt Riley
793ac34219 Merge "Prevent use of a null sCallbackObj by Hardware FLP" into nyc-dev 2016-05-26 22:03:26 +00:00
Michael Wright
4f6ae7bbaa Merge "DO NOT MERGE Remove Pointer Capture API" into nyc-dev
am: c396f0f70e

* commit 'c396f0f70ef40ea0fb42a0872a13f4c4e9a6a5f0':
  DO NOT MERGE Remove Pointer Capture API

Change-Id: Iede50a709849ed27cb9723a565b946e00fb23be7
2016-05-26 14:39:03 +00:00
Michael Wright
c396f0f70e Merge "DO NOT MERGE Remove Pointer Capture API" into nyc-dev 2016-05-26 14:03:47 +00:00
Wyatt Riley
c8f13d504f Prevent use of a null sCallbackObj by Hardware FLP
Bug: 28730136
Change-Id: I5898583e8108c4cfa8574a0adc5b50d6983b247e
2016-05-25 20:01:22 -07:00
Wyatt Riley
0174dbfc24 Merge "Adding SBAS offset to Gps/Gnss SvStatus converter" into nyc-dev
am: 0f6363e8b3

* commit '0f6363e8b3b091508181ea6cef5f5f87a4f75016':
  Adding SBAS offset to Gps/Gnss SvStatus converter

Change-Id: If32179b0ea76b730b4944d0e487abf9427a69bc5
2016-05-24 19:12:28 +00:00
Wyatt Riley
f6527aebbc Adding SBAS offset to Gps/Gnss SvStatus converter
Opposite sign of Glonass & BDS offsets.  Noticed after screenshot search & further testing.

Bug: 28623392
Change-Id: I6a7c98f455ee7df278eed985ba57ec1c12d888e0
2016-05-24 09:25:02 -07:00
Chih-Hung Hsieh
03df422689 Merge "Fix misc-macro-parentheses warnings in services jni." am: fe91d2a83d
am: d05b6478d5

* commit 'd05b6478d5341f7d70e78fad031d2d426155f68a':
  Fix misc-macro-parentheses warnings in services jni.

Change-Id: Ibee251ace2e3f15b98a8f91da0d8450069500177
2016-05-19 23:34:54 +00:00
Chih-Hung Hsieh
6c89616c38 Fix misc-macro-parentheses warnings in services jni.
Bug: 28705665
Change-Id: Iaf965875b667e45e1557e447de7988f729adfd52
2016-05-19 15:29:38 -07:00
Wyatt Riley
8a6eee8956 Merge "Mapping up/down of legacy Gps vs. Gnss Status" into nyc-dev
am: b5b03bc450

* commit 'b5b03bc450235ffa85ac636da460b61f1e99bff1':
  Mapping up/down of legacy Gps vs. Gnss Status

Change-Id: I19c8d74c51d92b9aaf3d60163dc686fe7d7b04b8
2016-05-19 18:45:18 +00:00
Wyatt Riley
b5b03bc450 Merge "Mapping up/down of legacy Gps vs. Gnss Status" into nyc-dev 2016-05-19 18:37:54 +00:00
Wyatt Riley
49d9891c57 Mapping up/down of legacy Gps vs. Gnss Status
- Maps incoming (from HAL) GpsSvStatus for Glonass, Beidou, SBAS, and QZSS
  from defacto (NMEA-like) numbers to internal platform with detected constellation.
- Maps outgoing (to Java API) GpsStatus getSatellite info back into the de-facto
  overloaded (beyond 32) "GPS" ID numbers.
- Simplifies Glonass ID definition for N (comments only.)
- This enables GPS/GNSS Test apps a non-degrading upgrade path.

Bug: 28623392
Change-Id: I9a19db1f11267032c6927daed767df5afa51c770
2016-05-19 09:55:42 -07:00
Michael Wright
1831ca8f04 Merge "DO NOT MERGE Rename PointerIcon and Pointer Capture APIs" into nyc-dev
am: a1e0cebf3a

* commit 'a1e0cebf3a18ac097d370e21d698e079f974bfff':
  DO NOT MERGE Rename PointerIcon and Pointer Capture APIs

Change-Id: I20532a3148a99d4ea91ba7dc050f8669d5f19400
2016-05-19 15:12:30 +00:00
Michael Wright
778e3b91ac DO NOT MERGE Remove Pointer Capture API
The underlying implementation needs to be completely rethought. If a
process crashed while you were in pointer capture mode, you were
pretty much stuck in it. If the mouse happened to move outside of
your bounds right before you called the API, you'd never actually get
an event (whatever it was hovering over would). There's no easy way
for the system to tell you when you enter or exit this mode because
it doesn't actually track who the current request is from.

These are all solvable, but not in the N time frame. Maybe next time.

Bug: 26830970
Change-Id: I03efd63c499b86dc278491ca3284566c1965581f
2016-05-17 18:02:37 +01:00
Michael Wright
f9d9ce7705 DO NOT MERGE Rename PointerIcon and Pointer Capture APIs
This is a response to API council feedback.

Bug: 26830970
Change-Id: Ia2d284b5c1ab8365bedfdc37d129be4b8146036b
2016-05-17 18:02:32 +01:00
Dongwon Kang
e530644bb6 Merge "Revert "TIF: add signal detection feature for HW inputs"" into nyc-dev
am: b69b5b4a6d

* commit 'b69b5b4a6ddf14ad41de93a46095466858fbdec2':
  Revert "TIF: add signal detection feature for HW inputs"

Change-Id: I88dbff74104a5d905c2b68188ba5d7739ae41fcb
2016-05-04 17:42:50 +00:00
Dongwon Kang
b69b5b4a6d Merge "Revert "TIF: add signal detection feature for HW inputs"" into nyc-dev 2016-05-04 17:33:54 +00:00
Dongwon Kang
4a3a601082 Revert "TIF: add signal detection feature for HW inputs"
This reverts commit 102d0b7b6970523ca7040e30d4e4fd1a349a01cc.

Change-Id: I50a66d7bd1baaea134ddd6638c3cfe65860e681d
2016-05-03 16:52:55 -07:00
Badhri Jagan Sridharan
f4810694ff Merge "Change low power stats format to make it easier for parsing" into nyc-dev
am: 49bdf11cd5

* commit '49bdf11cd5e388c0c91cfa095f3b6314902f9994':
  Change low power stats format to make it easier for parsing

Change-Id: I9bb5d7867a2895ea7ff7ac8123187f81c7c89a16
2016-05-03 18:55:51 +00:00
Badhri Jagan Sridharan
15c4e31b0f Change low power stats format to make it easier for parsing
New format: PlatformIdleStat state_1 name=XO_shutdown time=0 count=0
voter_1 name=APSS time=48264099 count=484 voter_2 name=MPSS
time=48573849 count=39857 voter_3 name=LPASS time=49584723 count=2082 
state_2 name=VMIN time=47171000 count=38222

Old format: PlatformIdleStat XO_shutdown_time=0 XO_shutdown_count=0 
APSS_time=9467486 APSS_count=583 MPSS_time=10835070 MPSS_count=9131
LPASS_time=10624719 LPASS_count=595 VMIN_time=9231000 VMIN_count=7878

In the old format it was hard to differentiate between the various
low power states and the voters for each state.

Bug:26564574

Change-Id: I3930aaf1c8c6e17066ef043552096ba61373f9f4
2016-05-03 18:42:09 +00:00
Chih-Hung Hsieh
85e0c89ba5 resolve merge conflicts of 1599b981 to nyc-dev-plus-aosp
Change-Id: I90807581e10b6a0024515ff634ac8b29eaa5fc9f
2016-04-28 12:08:15 -07:00
Badhri Jagan Sridharan
b0ec5e2114 Merge "Add low power stats to batteryhistory" into nyc-dev
am: 5149abe

* commit '5149abe73eb52e5b0df16572397a58c295e23da3':
  Add low power stats to batteryhistory

Change-Id: I9778ada1ccc73041f4682c29d9c8d4ad1bf9e5c1
2016-04-27 23:51:39 +00:00
Badhri Jagan Sridharan
68cdf1997f Add low power stats to batteryhistory
Exports SOC specific low power state info to batterystats service.
BatteryStats service queries the powerHAL module whenever and
updates the HistoryStepDetails whenever setBatteryState is called by the
BatteryService. The stats get appended to the battery history whenever
there is a change in the battery level.

Bug: 26564574
Change-Id: I02b4db00aec0c69d1558492224f3a4dc1c386fa6
2016-04-27 13:08:40 -07:00
Chih-Hung Hsieh
c6baf563ba Fix google-explicit-constructor warnings.
Bug: 28341362
Change-Id: Ibdd6a210bb7ff228e3624cc319169f77aca3b51e
2016-04-27 11:38:12 -07:00
Sujith Ramakrishnan
de3f4aead5 Merge "Unbundle RemoteService on TV - part 3" into nyc-dev
am: 7981e8f

* commit '7981e8ff6509769a590f15b440f989437d732be5':
  Unbundle RemoteService on TV - part 3

Change-Id: Ib5eb6363e904a1f66000d12263f66a8e5bd1f663
2016-04-22 21:02:04 +00:00
Sujith Ramakrishnan
b5b86c1100 Unbundle RemoteService on TV - part 3
- New service TVRemoteService triggered by SystemServer
- Provider service proxy and watcher for maintaining connections to unbundled
  services which have the BIND_TV_REMOTE_SERVICE permission.
- Shared library to facilitate connections between unbundled service and
  TVRemoteService.
- Unbundled service needs TV_VIRTUAL_REMOTE_CONTROLLER
  permission to be fully functional.

b/23792608

Change-Id: Ief5c6995883d1f7268a73bdd0c920c4c3f42cddb
2016-04-22 12:21:34 -07:00
Lifu Tang
ffc60f50be Merge "Added defensive code to prevent system crash" into nyc-dev
am: a381455

* commit 'a381455472a814c8dbd98fcb4312f46ed1373c88':
  Added defensive code to prevent system crash

Change-Id: I97dd4a994c86bf9bc845de08a8ff9c303bb86240
2016-04-20 22:30:55 +00:00
Lifu Tang
428b882710 Merge "Fixed bug in upgrading GpsMeasurement" into nyc-dev
am: e1b5171

* commit 'e1b51715bdd1d59913ef4cb83071ef8eaac968de':
  Fixed bug in upgrading GpsMeasurement

Change-Id: Ic20b5232d5114486dbefb5c4adf1409ecf1b3870
2016-04-20 22:30:53 +00:00
Lifu Tang
a381455472 Merge "Added defensive code to prevent system crash" into nyc-dev 2016-04-20 22:19:19 +00:00
Lifu Tang
8b7ad976bf Added defensive code to prevent system crash
Bug: 26940611
Change-Id: I8226d1acb42ccc7d2cd910e30b47c7c63c9f490b
2016-04-20 12:21:23 -07:00
Lifu Tang
8ad4430c57 Fixed bug in upgrading GpsMeasurement
Bug: 28278410
Change-Id: I936e257d68c348654d6031eb3e8f6d63b28d5e0a
2016-04-20 11:48:16 -07:00
Mike Cailean
53ca6bfe58 Merge "Fixed bugs when deliver GnssMeasurement from N-HAL" into nyc-dev
am: ceeb44d

* commit 'ceeb44daf9fcd2b78a4f64d3b0d4f709b093e3c2':
  Fixed bugs when deliver GnssMeasurement from N-HAL

Change-Id: I970b1bafe67cfcc0caec5ad4fbe3073bb1e679d8
2016-04-13 23:46:36 +00:00