OSDN Git Service

android-x86/frameworks-base.git
6 years agoalign metrics start time to the previous 5 min start, instead
Chenjie Yu [Mon, 18 Dec 2017 23:20:00 +0000 (15:20 -0800)]
align metrics start time to the previous 5 min start, instead
of the next 5 min start. Also refactor config check condition
to be more readable.

Test: unit test
Change-Id: Iaa6b4a59d27c52996723862d92080d90c9e794cb

6 years agoMerge "Publish Bluetooth HID Device Profile Service API" am: fbd4ea125f am: 6047c90e9b
Hansong Zhang [Mon, 18 Dec 2017 18:14:38 +0000 (18:14 +0000)]
Merge "Publish Bluetooth HID Device Profile Service API" am: fbd4ea125f am: 6047c90e9b
am: cab953250f  -s ours

Change-Id: I8c798b9a2852493a0efff555036c97ebfd2eb3dd

6 years agoMerge "Adopt robolectric 3.5.1"
TreeHugger Robot [Mon, 18 Dec 2017 18:07:35 +0000 (18:07 +0000)]
Merge "Adopt robolectric 3.5.1"

6 years agoMerge "Publish Bluetooth HID Device Profile Service API" am: fbd4ea125f
Hansong Zhang [Mon, 18 Dec 2017 18:06:19 +0000 (18:06 +0000)]
Merge "Publish Bluetooth HID Device Profile Service API" am: fbd4ea125f
am: 6047c90e9b

Change-Id: Icd57d9a0d70bd4bc0dfe1396335254ccef9528b4

6 years agoMerge "docs: Revised wording, section order for ShortcutManager API ref." into oc...
Kevin Hufnagle [Mon, 18 Dec 2017 18:01:46 +0000 (18:01 +0000)]
Merge "docs: Revised wording, section order for ShortcutManager API ref." into oc-mr1-dev am: d642148c84
am: 87ce35c371

Change-Id: I0de0bea5712143e70f851f42fadaed0aa0eece64

6 years agoMerge "Publish Bluetooth HID Device Profile Service API"
Hansong Zhang [Mon, 18 Dec 2017 17:59:44 +0000 (17:59 +0000)]
Merge "Publish Bluetooth HID Device Profile Service API"
am: fbd4ea125f

Change-Id: I97a3b9f865af9d50d52674702c6706729f9ab419

6 years agoMerge "docs: Revised wording, section order for ShortcutManager API ref." into oc...
Kevin Hufnagle [Mon, 18 Dec 2017 17:52:36 +0000 (17:52 +0000)]
Merge "docs: Revised wording, section order for ShortcutManager API ref." into oc-mr1-dev
am: d642148c84

Change-Id: Iabb204baf3772b44b6852ec9d7135db0baf228bc

6 years agoMerge "Add RecoverableKeyStoreDb"
Robert Berry [Mon, 18 Dec 2017 17:50:08 +0000 (17:50 +0000)]
Merge "Add RecoverableKeyStoreDb"

6 years agoMerge "Publish Bluetooth HID Device Profile Service API"
Treehugger Robot [Mon, 18 Dec 2017 17:47:35 +0000 (17:47 +0000)]
Merge "Publish Bluetooth HID Device Profile Service API"

6 years agoMerge "docs: Revised wording, section order for ShortcutManager API ref." into oc...
Kevin Hufnagle [Mon, 18 Dec 2017 17:42:48 +0000 (17:42 +0000)]
Merge "docs: Revised wording, section order for ShortcutManager API ref." into oc-mr1-dev

6 years agoMerge "Add recovery flow utils to KeySyncUtils"
Robert Berry [Mon, 18 Dec 2017 17:01:09 +0000 (17:01 +0000)]
Merge "Add recovery flow utils to KeySyncUtils"

6 years agoMerge "Add platform key generation ID to WrappedKey instances"
Robert Berry [Mon, 18 Dec 2017 16:55:31 +0000 (16:55 +0000)]
Merge "Add platform key generation ID to WrappedKey instances"

6 years agoMerge "rename pulled atoms to shorter names"
TreeHugger Robot [Mon, 18 Dec 2017 16:41:15 +0000 (16:41 +0000)]
Merge "rename pulled atoms to shorter names"

6 years agoAdd RecoverableKeyStoreDb
Robert Berry [Fri, 15 Dec 2017 23:01:22 +0000 (23:01 +0000)]
Add RecoverableKeyStoreDb

Adds database for storing recoverable keys. They are indexed by the
uid of the application that created them, and the alias of the key.
This is the same alias that is used to get the key from
AndroidKeyStore. The database stores the wrapped key, and the version
of the platform key that did the wrapping. It also stores information
about when the key was last synced.

This is used to get the status of the key. e.g., if the platform key
id is not the current platform key id, this is now an unsyncable key.
If the last-synced time is not set, this is a valid key but one that
has not yet been synced. etc., etc.

Test: adb shell am instrument -w -e package com.android.server.locksettings.recoverablekeystore com.android.frameworks.servicestests/android.support.test.runner.AndroidJUnitRunner
Change-Id: I4960452abcdd16c9f39a1f166a086a52dd2f05c0

6 years agoAdd recovery flow utils to KeySyncUtils
Robert Berry [Fri, 15 Dec 2017 14:03:16 +0000 (14:03 +0000)]
Add recovery flow utils to KeySyncUtils

Currently KeySyncUtils only contains methods for the backup to cloud
flow. This adds utility methods for the restore flow, also. We still
haven't merged SecureBox, so the class they defer to at the moment
throws for most of these methods, meaning we can't yet add meaningful
unit tests.

Test: adb shell am instrument -w -e package com.android.server.locksettings.recoverablekeystore com.android.frameworks.servicestests/android.support.test.runner.AndroidJUnitRunner
Change-Id: I27fe8b33dd239488b11f2863b67af4575fa82b47

6 years agoMerge "API updated for ICU4J 60.1"
Victor Chang [Mon, 18 Dec 2017 14:57:47 +0000 (14:57 +0000)]
Merge "API updated for ICU4J 60.1"

6 years agoMerge "Add MtpStorageManager for monitoring filesystem events"
TreeHugger Robot [Mon, 18 Dec 2017 13:52:14 +0000 (13:52 +0000)]
Merge "Add MtpStorageManager for monitoring filesystem events"

6 years agoShow Floating Toolbar when tapping a selectable TextLink in TextView.
Richard Ledley [Thu, 30 Nov 2017 10:54:08 +0000 (10:54 +0000)]
Show Floating Toolbar when tapping a selectable TextLink in TextView.

Test: bit FrameworksCoreTests:android.widget.TextViewActivityTest\#testToolbarAppearsAfterLinkClicked
Bug: b/67629726
Change-Id: Ied7a1903a308db37d0eb288c8e611da8229f381a

6 years agoMerge "Fix flakey shortcut manager tests."
Makoto Onuki [Mon, 18 Dec 2017 02:36:47 +0000 (02:36 +0000)]
Merge "Fix flakey shortcut manager tests."

6 years agoMerge "Turn off verbose logging, remove the fake config."
TreeHugger Robot [Sun, 17 Dec 2017 17:01:36 +0000 (17:01 +0000)]
Merge "Turn off verbose logging, remove the fake config."

6 years agoMerge "add feature: GaugeMetricProducer now takes repeated list of fields bug fix...
TreeHugger Robot [Sun, 17 Dec 2017 16:58:46 +0000 (16:58 +0000)]
Merge "add feature: GaugeMetricProducer now takes repeated list of fields bug fix: GaugeMetricProducer now works better with pulled events. unit test also includes GaugeMetricProducer_test"

6 years agoMerge "Split logging related functinonality out into NotificationLogger."
TreeHugger Robot [Sun, 17 Dec 2017 09:05:12 +0000 (09:05 +0000)]
Merge "Split logging related functinonality out into NotificationLogger."

6 years agorename pulled atoms to shorter names
Chenjie Yu [Wed, 13 Dec 2017 01:54:33 +0000 (17:54 -0800)]
rename pulled atoms to shorter names

Test: unit test
Change-Id: I337341dc69ea658f5972cd9962c536a1f11d77f9

6 years agoMerge "align metrics to 5min bundary We use one alarm clock for all pulled atoms...
TreeHugger Robot [Sun, 17 Dec 2017 03:14:27 +0000 (03:14 +0000)]
Merge "align metrics to 5min bundary We use one alarm clock for all pulled atoms. If metrics from different configs are not aligned, the clock will be set to repeat at higher and higher frequency, and consume a lot of battery. Current implementation assumes a 5min minimum bucket size. New metric start time is set to be aligned to the start time of statsd in the next 5min. So it will ignore events up to 5min."

6 years agoadd feature: GaugeMetricProducer now takes repeated list of fields
Chenjie Yu [Tue, 12 Dec 2017 01:41:20 +0000 (17:41 -0800)]
add feature: GaugeMetricProducer now takes repeated list of fields
bug fix: GaugeMetricProducer now works better with pulled events.
unit test also includes GaugeMetricProducer_test

Test: unit test
Change-Id: Ic60f09342d14cfb107be2130d445b323a56909e0

6 years agoalign metrics to 5min bundary
Chenjie Yu [Fri, 15 Dec 2017 00:48:54 +0000 (16:48 -0800)]
align metrics to 5min bundary
We use one alarm clock for all pulled atoms.
If metrics from different configs are not aligned,
the clock will be set to repeat at higher and higher
frequency, and consume a lot of battery.
Current implementation assumes a 5min minimum bucket
size. New metric start time is set to be aligned to
the start time of statsd in the next 5min.
So it will ignore events up to 5min.

align puller alarm to minute bundary

Test: unit test
Change-Id: I77ffa3c13de363c780b1000181b9a9b780dd0846

6 years agoAdd platform key generation ID to WrappedKey instances
Robert Berry [Thu, 14 Dec 2017 17:04:07 +0000 (17:04 +0000)]
Add platform key generation ID to WrappedKey instances

This is so that when we persist them, we can tell that they were wrapped
with a specific version of the platform key. This will be useful for us
to provide error messages to the users of recoverable keys. (i.e., in
the case where the user had an application key that was wrapped with a
platform key that is no longer valid, they MUST rotate key.)

Test: adb shell am instrument -w -e package com.android.server.locksettings.recoverablekeystore com.android.frameworks.servicestests/android.support.test.runner.AndroidJUnitRunner
Change-Id: I91569bcaf23b49d89a9caa9d313d9c93952b620d

6 years agoMerge "Throw on attempt to unwrap a WrappedKey with old PlatformKey"
Robert Berry [Sat, 16 Dec 2017 22:54:17 +0000 (22:54 +0000)]
Merge "Throw on attempt to unwrap a WrappedKey with old PlatformKey"

6 years agoTurn off verbose logging, remove the fake config.
Yao Chen [Sat, 16 Dec 2017 22:34:20 +0000 (14:34 -0800)]
Turn off verbose logging, remove the fake config.

Test: statsd_test & manual
Change-Id: I43068c8db006cbbeccacaa9d8426ab4d0394313a

6 years agoMerge "Log if reading cpu freq times takes too long."
Sudheer Shanka [Sat, 16 Dec 2017 20:12:40 +0000 (20:12 +0000)]
Merge "Log if reading cpu freq times takes too long."

6 years agoMerge "Start processes asynchronously in AMS."
Sudheer Shanka [Sat, 16 Dec 2017 18:36:48 +0000 (18:36 +0000)]
Merge "Start processes asynchronously in AMS."

6 years agoMerge "Global app standby flag"
TreeHugger Robot [Sat, 16 Dec 2017 18:30:23 +0000 (18:30 +0000)]
Merge "Global app standby flag"

6 years agoMerge "Make IMM more robust for window focus stealing"
TreeHugger Robot [Sat, 16 Dec 2017 18:23:40 +0000 (18:23 +0000)]
Merge "Make IMM more robust for window focus stealing"

6 years agoGlobal app standby flag
Amith Yamasani [Fri, 15 Dec 2017 18:51:53 +0000 (10:51 -0800)]
Global app standby flag

Disable app standby features if app_standby_enabled
is set to 0. This allows for UI and experiments to
control the feature.

Bug: 70655630
Test: adb shell settings put global app_standby_enabled 0
      adb shell dumpsys usagestats
      adb shell am get-standby-bucket <packagename>

Change-Id: Id6c62b078e52040767100f2997832cc586bb0806

6 years agoMerge "Revert "Log an App Op when an accessibility action is performed.""
TreeHugger Robot [Sat, 16 Dec 2017 11:57:25 +0000 (11:57 +0000)]
Merge "Revert "Log an App Op when an accessibility action is performed.""

6 years agoThrow on attempt to unwrap a WrappedKey with old PlatformKey
Robert Berry [Fri, 15 Dec 2017 15:25:01 +0000 (15:25 +0000)]
Throw on attempt to unwrap a WrappedKey with old PlatformKey

Also brings the decrypt key inline with the representation in
ag/3362855. When getting the latest decrypt/encrypt key we will
always want to know the generation ID, so that we can either
persist that information with the WrappedKey, or check against
WrappedKeys we're attempting to decrypt. As such it makes sense
to have methods return a class that wraps the key and ID, as they
always belong together.

Test: adb shell am instrument -w -e package com.android.server.locksettings.recoverablekeystore com.android.frameworks.servicestests/android.support.test.runner.AndroidJUnitRunner
Change-Id: I2c7e97af9ed87216ff2f133a1e3efd546431ab7e

6 years agoMerge "Remove recents button and longpress home when connected to service (1/2)"
TreeHugger Robot [Sat, 16 Dec 2017 04:29:35 +0000 (04:29 +0000)]
Merge "Remove recents button and longpress home when connected to service (1/2)"

6 years agoMerge "Allow interval updating when no GPS fix & scheduling not supported."
Mohammed Khider [Sat, 16 Dec 2017 04:19:23 +0000 (04:19 +0000)]
Merge "Allow interval updating when no GPS fix & scheduling not supported."

6 years agoMerge "Stats log api for attribution chain."
TreeHugger Robot [Sat, 16 Dec 2017 04:15:11 +0000 (04:15 +0000)]
Merge "Stats log api for attribution chain."

6 years agoMerge "Map "shell ime" to "shell cmd input_method ime""
TreeHugger Robot [Sat, 16 Dec 2017 03:40:10 +0000 (03:40 +0000)]
Merge "Map "shell ime" to "shell cmd input_method ime""

6 years agoMerge "bugfix: adjust StatsLogEventWrapper length to make sure we don't lose data"
TreeHugger Robot [Sat, 16 Dec 2017 03:15:59 +0000 (03:15 +0000)]
Merge "bugfix: adjust StatsLogEventWrapper length to make sure we don't lose data"

6 years agoMerge "Log daveys"
TreeHugger Robot [Sat, 16 Dec 2017 02:55:35 +0000 (02:55 +0000)]
Merge "Log daveys"

6 years agoMerge "Added back the recents button to activity over lockscreen"
TreeHugger Robot [Sat, 16 Dec 2017 02:50:40 +0000 (02:50 +0000)]
Merge "Added back the recents button to activity over lockscreen"

6 years agoMerge "Delay touching disks when secure keyguard showing."
Jeff Sharkey [Sat, 16 Dec 2017 02:20:32 +0000 (02:20 +0000)]
Merge "Delay touching disks when secure keyguard showing."

6 years agoAdopt robolectric 3.5.1
James Lemieux [Sat, 16 Dec 2017 01:49:49 +0000 (17:49 -0800)]
Adopt robolectric 3.5.1

Bug: 70581603
Test: make RunSettingsLibRoboTests
Change-Id: I18dd5d74dae0570d2909998a0bab1d812b9f8f6e

6 years agoAllow interval updating when no GPS fix & scheduling not supported.
gomo [Thu, 14 Dec 2017 03:04:12 +0000 (19:04 -0800)]
Allow interval updating when no GPS fix & scheduling not supported.

Since Android-L we have the following isse for GPS chipsets that do not
have GPS_CAPABILITY_SCHEDULING:
1) A location request is ongoing with an interval < 1 minute that
mFixInterval < NO_FIX_TIMEOUT. In which case, the TimeOutIntent will
not be set
2) A new location request arrives with a large interval where we want
the TimeOutIntent to kick in if needed
3) The above scenario has to happen in GPS signal denied environment
with no fix possible as a single reported location will cause hibernate()
to be called and engine to be stopped

Bug:68827168
Test: Current tests pass.

Change-Id: I4b3abf4b6f91a8eeb119bdbdb19f2fb0ed9e28cd

6 years agoLog daveys
John Reck [Sat, 16 Dec 2017 00:00:48 +0000 (16:00 -0800)]
Log daveys

Bug: 70339576
Test: Checked that it logged with a lower threshold
Change-Id: I271f8af2a3ee63769edc71291b70f19512974d78

6 years agoMerge "Made Autofill Field Classification API public and documented it."
TreeHugger Robot [Sat, 16 Dec 2017 00:57:50 +0000 (00:57 +0000)]
Merge "Made Autofill Field Classification API public and documented it."

6 years agoRevert "Log an App Op when an accessibility action is performed."
Phil Weaver [Sat, 16 Dec 2017 00:55:51 +0000 (00:55 +0000)]
Revert "Log an App Op when an accessibility action is performed."

CTS tests are now throwing security exceptions for accessibility actions.

This reverts commit 19eb58959b2b9cbf0d082ddc0640a6da99c8a3dc.

Change-Id: I2027ee4cca0fcc2b38bb615a58d992ef309e2d70

6 years agoStats log api for attribution chain.
Yangster-mac [Tue, 12 Dec 2017 06:55:49 +0000 (22:55 -0800)]
Stats log api for attribution chain.

Test: all unit test passed.
Change-Id: I628d409e517f4f95c8da1d0c7fd4d514c1d9196d

6 years agoMap "shell ime" to "shell cmd input_method ime"
Yohei Yukawa [Sat, 16 Dec 2017 00:52:05 +0000 (16:52 -0800)]
Map "shell ime" to "shell cmd input_method ime"

This is a follow up CL to my following CLs:
 * Use IBinder#shellCommand() for 'adb shell ime' [1]
 * Add a shell command to reset selected/enabled IMEs [2]

Previously
  adb shell ime <command>
was an alias of
  adb shell cmd input_method <command>

With this CL,
  adb shell ime <command>
is now an alias of
  adb shell cmd input_method ime <command>

This allows us to rename a sub command "reset-ime" to "reset" without
worrying about ambiguity about what will be reset.

Note also that the built-in "dump" command now works only as
  shell cmd input_method dump

 [1]: I9a2dbbf1d4494addbe22c82e2c416eedc4d585f2
      926488d70d09baefee0489537b2915602deaeebf
 [2]: I1e27aa1c9edf5d9a6d529c469ad42fd1e42b13b1
      cc97ebd031b4d4be6f69e3163c362bce6878baf1

Bug: 70475949
Fixes: 70731324
Test: Manually tested as follows.
  1. make -j SoftKeyboard
  2. adb install -r $OUT/system/app/SoftKeyboard/SoftKeyboard.apk
  3. adb shell ime enable com.example.android.softkeyboard/.SoftKeyboard
  4. adb shell ime set com.example.android.softkeyboard/.SoftKeyboard
  5. Make sure that SoftKeyboard is enabled and selected
  6. adb shell ime reset
  7. Make sure that SoftKeyboard is no longer enabled and selected
Change-Id: I2a325dcd6108e357420d47880e4cbd9f81670ec9

6 years agoMerge "Minimal reformat to match internal master." am: 0d75603ea7 am: 5df94f6c14
Elliott Hughes [Sat, 16 Dec 2017 00:47:55 +0000 (00:47 +0000)]
Merge "Minimal reformat to match internal " am: 0d75603ea7 am: 5df94f6c14
am: 98202d9c6a

Change-Id: I990a0933fe9d50a98919452f7f0513d6f036a637

6 years agoMerge "Minimal reformat to match internal master." am: 0d75603ea7
Elliott Hughes [Sat, 16 Dec 2017 00:40:08 +0000 (00:40 +0000)]
Merge "Minimal reformat to match internal " am: 0d75603ea7
am: 5df94f6c14

Change-Id: I33cc16e2a9ecd91e97b0824834760f88b13cac2e

6 years agoMerge "Minimal reformat to match internal master."
Elliott Hughes [Sat, 16 Dec 2017 00:32:22 +0000 (00:32 +0000)]
Merge "Minimal reformat to match internal master."
am: 0d75603ea7

Change-Id: I0447a57265c8a73f40dc6f75964516d31f175165

6 years agoMerge "Fix temporary file name strlcpy size."
Ivan Lozano [Sat, 16 Dec 2017 00:24:47 +0000 (00:24 +0000)]
Merge "Fix temporary file name strlcpy size."

6 years agoMerge "Minimal reformat to match internal master."
Elliott Hughes [Sat, 16 Dec 2017 00:15:02 +0000 (00:15 +0000)]
Merge "Minimal reformat to match internal master."

6 years agoPublish Bluetooth HID Device Profile Service API
Hansong Zhang [Thu, 7 Dec 2017 00:20:22 +0000 (16:20 -0800)]
Publish Bluetooth HID Device Profile Service API

Enable the BluetoothHidDevice API in framework.

Bug: 63384609
Test: SL4A HID test; test with apps using BluetoothHidDevice
Merged-In: I52ca4674f11179f865bdff22e0289dfe893c40f5
Change-Id: I52ca4674f11179f865bdff22e0289dfe893c40f5
(cherry picked from commit 7bb587d72b8bb5ba8bd2d7530dbd89b4faac289f)

6 years agoMerge "Adds API for apps to push events to statsd."
TreeHugger Robot [Sat, 16 Dec 2017 00:03:53 +0000 (00:03 +0000)]
Merge "Adds API for apps to push events to statsd."

6 years agoMerge "Add hints for toggles in Slice"
TreeHugger Robot [Sat, 16 Dec 2017 00:00:26 +0000 (00:00 +0000)]
Merge "Add hints for toggles in Slice"

6 years agoMerge "Notify system when uiAutomation terminates"
Phil Weaver [Sat, 16 Dec 2017 00:00:12 +0000 (00:00 +0000)]
Merge "Notify system when uiAutomation terminates"

6 years agodocs: Revised wording, section order for ShortcutManager API ref.
Kevin Hufnagle [Sat, 2 Dec 2017 00:01:36 +0000 (16:01 -0800)]
docs: Revised wording, section order for ShortcutManager API ref.

Provided more thorough description of static shortcut options,
integrated shortcut limits section with the "updating shortcuts"
example, added more links to narrative documentation.

Test: make ds-docs -j8

Bug: 64727234
Change-Id: I70c16082e3e85a31b501c8e313d93200d827c7f4

6 years agoMerge "Consolidate Keystore alias prefixes."
Janis Danisevskis [Fri, 15 Dec 2017 23:48:55 +0000 (23:48 +0000)]
Merge "Consolidate Keystore alias prefixes."

6 years agoMerge "Add android.test.base/stubs dependency"
TreeHugger Robot [Fri, 15 Dec 2017 23:47:40 +0000 (23:47 +0000)]
Merge "Add android.test.base/stubs dependency"

6 years agoMake IMM more robust for window focus stealing
Yohei Yukawa [Fri, 15 Dec 2017 23:47:33 +0000 (15:47 -0800)]
Make IMM more robust for window focus stealing

This CL is a generalized version of my previous CL [1], which addresed
Bug 31056744 where InputMethodManager (IMM) fails to recover from
failure mode when IMMS#startInputOrWindowGainedFocus() failes because
the app's window is no longer eligible to be the IME target.

This CL finally addressed one TODO in that CL. InputBindResult now has
the error code, which allows us to force restart input upon the next
window-focus-in event.  This should make IMM much more robust for
that kind of failure modes.  For instance, Bug 70629102 is fixed as
demonstrated in a newly added CTS test case [2].  Hopefully this may
also fix Bug 31056744, which we still do not know how to reproduce.

 [1]: I60adb38013b063918b074c7b947649eada77b2c8
      8e9214b4bd7e6a9d944ad1527199226e575a7530
 [2]: I4ea24c87cbbd05e4e68ad7dfafb774c8520188e2

Bug: 31056744
Fixes: 70629102
Test: Added a test case for Bug 70629102
      atest CtsInputMethodTestCases
Test: Manually made sure that Bug 28281870 is still fixed:
      1. Open app that has EditText.
      2. Start Input.
      3. Long press the task switch button to start multi-window mode.
      4. Tap the EditText that is used in step 2.
      5. Make sure that the IME still works as expected
Test: atest CtsViewTestCates
Change-Id: I7572d4b9d678f3669ca54d55718877b145015777

6 years agobugfix: adjust StatsLogEventWrapper length to make sure we don't
Chenjie Yu [Fri, 15 Dec 2017 22:45:41 +0000 (14:45 -0800)]
bugfix: adjust StatsLogEventWrapper length to make sure we don't
lose data

Test: manual test
Change-Id: I7bf014e7e2007e0e065aa7ca99522d9effcf1a68

6 years agoRemove recents button and longpress home when connected to service (1/2)
Matthew Ng [Fri, 15 Dec 2017 01:37:35 +0000 (17:37 -0800)]
Remove recents button and longpress home when connected to service (1/2)

When overview is connected to the launcher service, long press to launch
assistant, the diamond animation and the recents button will be
removed.

Test: manual - enable new experience in launcher settings
Bug: 67957962
Change-Id: I8e976ae36465476e6287e0c1190cd2964099bbc6

6 years agoMerge "Dump services permissions on 'package' service."
TreeHugger Robot [Fri, 15 Dec 2017 22:25:33 +0000 (22:25 +0000)]
Merge "Dump services permissions on 'package' service."

6 years agoMerge "Fixed create app shortcut text and icon alignment in RTL Language" am: 29f61c2...
susanta.patra [Fri, 15 Dec 2017 22:24:46 +0000 (22:24 +0000)]
Merge "Fixed create app shortcut text and icon alignment in RTL Language" am: 29f61c21f4 am: c1a2cd2175
am: acbb9830c1

Change-Id: I3aa27e3e6d744a27ff4ee2ad9f1de7fc181f4c38

6 years agoMerge "Fixed create app shortcut text and icon alignment in RTL Language" am: 29f61c21f4
susanta.patra [Fri, 15 Dec 2017 22:16:02 +0000 (22:16 +0000)]
Merge "Fixed create app shortcut text and icon alignment in RTL Language" am: 29f61c21f4
am: c1a2cd2175

Change-Id: Id0fc2be3255620089a632236af2997213a9d6003

6 years agoMerge "Update documentation for DIRTY in VoicemailContract"
TreeHugger Robot [Fri, 15 Dec 2017 22:11:47 +0000 (22:11 +0000)]
Merge "Update documentation for DIRTY in VoicemailContract"

6 years agoMerge "Fixed create app shortcut text and icon alignment in RTL Language"
susanta.patra [Fri, 15 Dec 2017 22:10:00 +0000 (22:10 +0000)]
Merge "Fixed create app shortcut text and icon alignment in RTL Language"
am: 29f61c21f4

Change-Id: Iaa0829e9844278731e403e13b2cc8a3400969bb4

6 years agoMerge "Update documentation for preferred phone account columns"
TreeHugger Robot [Fri, 15 Dec 2017 22:02:17 +0000 (22:02 +0000)]
Merge "Update documentation for preferred phone account columns"

6 years agoMerge "Fixed create app shortcut text and icon alignment in RTL Language"
Treehugger Robot [Fri, 15 Dec 2017 21:58:07 +0000 (21:58 +0000)]
Merge "Fixed create app shortcut text and icon alignment in RTL Language"

6 years agoMerge "Improved Cell Broadcast debug messages."
TreeHugger Robot [Fri, 15 Dec 2017 21:56:39 +0000 (21:56 +0000)]
Merge "Improved Cell Broadcast debug messages."

6 years agoMerge "Move EntropyMixer I/O from main thread to I/O thread"
Alex Klyubin [Fri, 15 Dec 2017 21:34:59 +0000 (21:34 +0000)]
Merge "Move EntropyMixer I/O from main thread to I/O thread"

6 years agoMerge "For loop condition fix"
Todd Kennedy [Fri, 15 Dec 2017 21:04:34 +0000 (21:04 +0000)]
Merge "For loop condition fix"

6 years agoMerge "Turn on connected device by default"
TreeHugger Robot [Fri, 15 Dec 2017 21:02:01 +0000 (21:02 +0000)]
Merge "Turn on connected device by default"

6 years agoMerge "Statsd value metric anomaly detection"
TreeHugger Robot [Fri, 15 Dec 2017 20:53:43 +0000 (20:53 +0000)]
Merge "Statsd value metric anomaly detection"

6 years agoMerge "Add hostdex target for android.test.base"
TreeHugger Robot [Fri, 15 Dec 2017 20:52:20 +0000 (20:52 +0000)]
Merge "Add hostdex target for android.test.base"

6 years agoDelay touching disks when secure keyguard showing.
Jeff Sharkey [Fri, 15 Dec 2017 05:15:14 +0000 (22:15 -0700)]
Delay touching disks when secure keyguard showing.

We've tried our best to protect against malicious storage devices
with limited SELinux domains, but let's be even more paranoid and
refuse to look at disks inserted while a secure keyguard is
showing.  We'll gladly scan them right away once the user confirms
their credentials.

Test: builds, boots, manual testing
Bug: 68054513
Change-Id: I19b7446e855176921ed477ef6d07bc9a2cc0ef9a

6 years agodocs: Added code tag to meta-data name and fixed some @see tags am: f2a8aea735
Ricardo Loo Foronda [Fri, 15 Dec 2017 20:38:54 +0000 (20:38 +0000)]
docs: Added code tag to meta-data name and fixed some @see tags am: f2a8aea735
am: 0d69f1b342

Change-Id: Ib0e6d759d002cf5418755312c42e32e07ece0576

6 years agodocs: Added code tag to meta-data name and fixed some @see tags
Ricardo Loo Foronda [Fri, 15 Dec 2017 20:31:18 +0000 (20:31 +0000)]
docs: Added code tag to meta-data name and fixed some @see tags
am: f2a8aea735

Change-Id: If5601165a816e0dadc672008f8d5049563ee577f

6 years agoStart processes asynchronously in AMS.
Sudheer Shanka [Mon, 16 Oct 2017 17:20:32 +0000 (10:20 -0700)]
Start processes asynchronously in AMS.

Currently, process start is initiated in ActivityManagerService
holding the main lock and this takes ~40ms to complete. As seen
in some of the issues in previous releases, this is one of the
contributors of the lock contention in system_server. This change
tries to address this issue by moving the process start outside
the locked section.

When a process start is required, instead of doing it synchronously,
this request will be posted on a handler thread. On the handler thread,
this process start request will be completed without holding a lock.
If for some reason, we decide the process is not needed anymore before
it is actually started or being started, then AMS does everything as
usual removing the references to the process from internal state except
actually killing the process which will be handled on the handler
thread.

Bug: 68775202
Test: Ran app startup perf tests using forrest, will update the bug with results.
Test: https://docs.google.com/spreadsheets/d/1cW81guRALZXKsN-WZsKyQiCSY-RgkJ2m_M9IfqIquz8
Test: cts-tradefed run singleCommand cts-dev -m CtsActivityManagerDeviceTestCases
Test: cts-tradefed run singleCommand cts-dev -m CtsWindowManagerDeviceTestCases
Test: cts-tradefed run singleCommand cts-dev -m CtsAppTestCases
Test: cts-tradefed run singleCommand cts-dev -m CtsMultiUserHostTestCases
Test: adb shell am instrument -e package com.android.server.am -w \
      com.android.frameworks.servicestests/android.support.test.runner.AndroidJUnitRunner
Test: adb shell am instrument -e class com.android.server.pm.UserManagerTest -w \
      com.android.frameworks.servicestests/android.support.test.runner.AndroidJUnitRunner
Test: adb shell am instrument -e package android.content -w \
      com.android.frameworks.coretests/android.support.test.runner.AndroidJUnitRunner
Test: cts-tradefed run singleCommand cts-dev -m CtsProviderTestCases
Test: cts-tradefed run singleCommand cts-dev -m CtsContentTestCases -t \
      android.content.cts.ContentResolverTest
Test: cts-tradefed run singleCommand cts-dev -m CtsContentTestCases -t \
      android.content.cts.ContentProviderTest
Test: cts-tradefed run singleCommand cts-dev -m CtsWebkitTestCases
Test: cts-tradefed run singleCommand cts-dev -m CtsHostsideWebViewTests
Test: cts-tradefed run singleCommand cts-dev -m CtsAssistTestCases
Test: make WebViewLoadingTests && make tradefed-all && tradefed.sh \
      run template/local_min --template:map test=WebViewLoadingTests
Test: adb shell setprop wrap.com.google.android.apps.maps \
      '"LIBC_DEBUG_MALLOC_OPTIONS=backtrace logwrapper"'
      && adb shell dumpsys meminfo --unreachable <PID_OF_APP>
      && check ppid of <APP> is logwrapper's pid.
Test: cts-tradefed run singleCommand cts-dev -m CtsWrapWrapNoDebugTestCases
Test: cts-tradefed run singleCommand cts-dev -m CtsWrapWrapDebugTestCases
Test: cts-tradefed run singleCommand cts-dev -m CtsWrapNoWrapTestCases
Test: cts-tradefed run singleCommand cts-dev -m CtsWrapWrapDebugMallocDebugTestCases
Test: manual

Change-Id: I1fe7ce48cd5a4aadccaf6b3d6fdb5cad3304f1d3

6 years agoMerge "Use iterator to remove elements from cache"
TreeHugger Robot [Fri, 15 Dec 2017 20:17:45 +0000 (20:17 +0000)]
Merge "Use iterator to remove elements from cache"

6 years agoUpdate documentation for preferred phone account columns
Ta-wei Yen [Wed, 13 Dec 2017 23:25:49 +0000 (15:25 -0800)]
Update documentation for preferred phone account columns

Fixes: 70299454
Test: N/A
Change-Id: Ib8af85b5c618c1a2c62bc6c09daae057521de5d6

6 years agoUpdate documentation for DIRTY in VoicemailContract
Ta-wei Yen [Fri, 15 Dec 2017 20:03:51 +0000 (12:03 -0800)]
Update documentation for DIRTY in VoicemailContract

Change-Id: I1196e5043b1c30a14d7463bd0a5ba1db485c1f57
Fixes: 70639523
Test: N/A

6 years agoMerge "Add surface/shown position to proto output"
TreeHugger Robot [Fri, 15 Dec 2017 19:49:32 +0000 (19:49 +0000)]
Merge "Add surface/shown position to proto output"

6 years agoMerge "Add APIs for slice pinning"
Jason Monk [Fri, 15 Dec 2017 19:49:02 +0000 (19:49 +0000)]
Merge "Add APIs for slice pinning"

6 years agoFor loop condition fix
Erik Wolsheimer [Fri, 15 Dec 2017 19:31:33 +0000 (11:31 -0800)]
For loop condition fix

Change-Id: I5bddde2ea0bbbcfb4d16c91fc4ddc98a49040e10

6 years agoMerge "Publish Bluetooth HID Device Profile Service API"
Hansong Zhang [Fri, 15 Dec 2017 19:26:11 +0000 (19:26 +0000)]
Merge "Publish Bluetooth HID Device Profile Service API"

6 years agoTurn on connected device by default
jackqdyulei [Fri, 15 Dec 2017 18:59:15 +0000 (10:59 -0800)]
Turn on connected device by default

Bug: 69926683
Test: Build
Change-Id: Ia3389f459e7c9c6de3f549c60470bf12660d7a87

6 years agoMerge "Binding on-demand #6: Transport attributes usage"
Bernardo Rufino [Fri, 15 Dec 2017 18:58:06 +0000 (18:58 +0000)]
Merge "Binding on-demand #6: Transport attributes usage"

6 years agoMinimal reformat to match internal master.
Elliott Hughes [Fri, 15 Dec 2017 18:37:01 +0000 (10:37 -0800)]
Minimal reformat to match internal master.

Internal master SHA 1bcacfdcab0eaa0cee92bd7f5a1b5e271dd68e52 reformats
this entire project. To be able to update google-benchmark I need to
make a small change to this file. This is the minimal change that avoids
merge conflicts.

Bug: N/A
Test: builds
Change-Id: If3568a0f59a7c007858435953e127167f5862825

6 years agoMerge "Decrease frequency of jobs in middle buckets"
Esteban Talavera [Fri, 15 Dec 2017 18:34:22 +0000 (18:34 +0000)]
Merge "Decrease frequency of jobs in middle buckets"

6 years agoMerge "Adds MMTel APIs in temporary namespace" am: 4e54d6092b am: ac0d27659a
Brad Ebinger [Fri, 15 Dec 2017 18:20:32 +0000 (18:20 +0000)]
Merge "Adds MMTel APIs in temporary namespace" am: 4e54d6092b am: ac0d27659a
am: 0af882d629

Change-Id: I37c0ea61549282255f416855ec6663688e9d7cf3

6 years agoMerge "Adds MMTel APIs in temporary namespace" am: 4e54d6092b
Brad Ebinger [Fri, 15 Dec 2017 18:12:49 +0000 (18:12 +0000)]
Merge "Adds MMTel APIs in temporary namespace" am: 4e54d6092b
am: ac0d27659a

Change-Id: I815f2ea36c951f71c7b8feb85a42546eeea47000

6 years agoStatsd value metric anomaly detection
Bookatz [Fri, 15 Dec 2017 02:38:27 +0000 (18:38 -0800)]
Statsd value metric anomaly detection

Add anomly detection to Value metric in statsd.

Test: make statsd_test && adb sync data && adb shell data/nativetest64/statsd_test/statsd_test
Test: run cts-dev -m CtsStatsdHostTestCases -t android.cts.statsd.HostAtomTests#testValueAnomalyDetection
Fixes: 70240042
Change-Id: I05cf36495cdfd0ac7aa1a922f0e253a60fda1787

6 years agoMerge "Adds MMTel APIs in temporary namespace"
Brad Ebinger [Fri, 15 Dec 2017 18:05:43 +0000 (18:05 +0000)]
Merge "Adds MMTel APIs in temporary namespace"
am: 4e54d6092b

Change-Id: I95ad16f1e08ff11f9af8f626f6a8827308e806dd

6 years agoMerge "Adds MMTel APIs in temporary namespace"
Brad Ebinger [Fri, 15 Dec 2017 17:53:16 +0000 (17:53 +0000)]
Merge "Adds MMTel APIs in temporary namespace"

6 years agoMerge "Minor LoadedApk refactoring."
Jeff Hamilton [Fri, 15 Dec 2017 17:53:03 +0000 (17:53 +0000)]
Merge "Minor LoadedApk refactoring."