Commit Graph

8291 Commits

Author SHA1 Message Date
Sujith Ramakrishnan
23635b9f38 Merge "Prevent unwanted keypress actions during TV Setup." into oc-dev am: 564d0bf1be am: a1157b3aa1
am: 708857daac

Change-Id: I1432893fffc95498d4bcb085b04856b1293f51a2
2017-06-29 19:15:40 +00:00
Sujith Ramakrishnan
708857daac Merge "Prevent unwanted keypress actions during TV Setup." into oc-dev am: 564d0bf1be
am: a1157b3aa1

Change-Id: I80fac516afe2c7b75fe775d80444a501585bd3b7
2017-06-29 19:06:33 +00:00
Sujith Ramakrishnan
a1157b3aa1 Merge "Prevent unwanted keypress actions during TV Setup." into oc-dev
am: 564d0bf1be

Change-Id: I1cd59a2966f692a4857343e21bf1586719939490
2017-06-29 18:59:07 +00:00
TreeHugger Robot
564d0bf1be Merge "Prevent unwanted keypress actions during TV Setup." into oc-dev 2017-06-29 18:50:08 +00:00
Mady Mellor
9df9fbdd0d Merge "Adjustments to PIP position while flinging" into oc-dr1-dev am: 176f2533a1
am: 3e7a97f6fa

Change-Id: Ie79d0d1112c8cf840dbd1378d9f1959c6dd633df
2017-06-29 00:00:59 +00:00
Mady Mellor
3e7a97f6fa Merge "Adjustments to PIP position while flinging" into oc-dr1-dev
am: 176f2533a1

Change-Id: Ic5d38c862c155ac025884e53d688826b57829529
2017-06-28 23:53:23 +00:00
TreeHugger Robot
176f2533a1 Merge "Adjustments to PIP position while flinging" into oc-dr1-dev 2017-06-28 23:45:37 +00:00
Sujith Ramakrishnan
0390fff82c Prevent unwanted keypress actions during TV Setup.
- Prevent Search or long-press Home actions
      while TV setup is being completed based
      on flag TV_USER_SETUP_COMPLETE.

Test: Manual - Reset device, ran Setup, tried keys.
Test: Manual - Rebooted device after Setup, tried keys.

Bug: 62419382
Change-Id: Ic8fb0f10943ab7c39a7d9857f62e6ab292231b40
2017-06-28 14:38:30 -07:00
Mady Mellor
15b29c7bba Adjustments to PIP position while flinging
Rather than using a scroller, find the actual edge intercept
based on the trajectory of the fling.

This is done by finding the two points it could intersect with
and checking which point is 'closer' (i.e. would be hit first
by the PIP).

Bias towards using the intersection with the top / bottom edge
if the PIP is being flung along the side it's currently on.

Also increases the maximum time for the fling.

Bug: 35358634
Test: manual - fling PIP around screen while in landscape
      and portrait
Change-Id: I26e943a5ddbc726ab86bc11e4271d4db034f3d47
2017-06-28 20:12:32 +00:00
Sudheer Shanka
7ea1738c1e Merge "Don't callback if all the delta values are zero." 2017-06-27 21:25:11 +00:00
Jeff Sharkey
5ab0243330 Only require that system UIDs tag their sockets.
Apps with a normal UID are typically isolated enough to not require
socket tagging; we're mostly interested in tracking down internal
UIDs that have lots of code sharing the same UID.

Also fix up everyone doing manual string checks of Build.TYPE, since
we now have first-class fields for those.

Bug: 38126076
Test: builds, boots
Change-Id: I3a40348196bd8459289f2b9355d9783a07f1e7dd
2017-06-27 11:11:06 -06:00
TreeHugger Robot
8ad1d78023 Merge "Implement key/value quota-overrun detection in LocalTransport" 2017-06-26 22:26:17 +00:00
Christopher Tate
c8a9d421a5 Implement key/value quota-overrun detection in LocalTransport
We now preflight the effect of a k/v backup delta set against the
current contents of the datastore, so we can detect and report a
quota overrun nondestructively.

Test: bit CtsBackupTestCases:.KeyValueQuotaTest
Change-Id: If69687b891271d7bbb46c3a66728b716dc51fc39
2017-06-26 13:31:57 -07:00
Selim Cinek
f5583930f6 Merge "Fixed an issue in the contrast calculation" into oc-dev am: 9bf5c0c3e1 am: 12a2a7d0f1
am: ec85913a74

Change-Id: I41d8577da4a6ca93252027bd85ee632decaae56f
2017-06-24 01:16:06 +00:00
Selim Cinek
ec85913a74 Merge "Fixed an issue in the contrast calculation" into oc-dev am: 9bf5c0c3e1
am: 12a2a7d0f1

Change-Id: Ice72e01f1ce2a38739c4306b9df4ab33bc16b2c9
2017-06-24 01:05:22 +00:00
Selim Cinek
12a2a7d0f1 Merge "Fixed an issue in the contrast calculation" into oc-dev
am: 9bf5c0c3e1

Change-Id: Ic93f722459de8da30b9b2f8971dfd0b650e37f10
2017-06-24 00:55:48 +00:00
Selim Cinek
ff122e750c Merge "Fixed an issue in the contrast calculation" into oc-dev
am: 9bf5c0c3e1

Change-Id: I9f1dc8c2c6d2ad461efc2722a5b1829f753dfcd4
2017-06-24 00:55:46 +00:00
Selim Cinek
9bf5c0c3e1 Merge "Fixed an issue in the contrast calculation" into oc-dev 2017-06-24 00:44:13 +00:00
Selim Cinek
4c80791919 Fixed an issue in the contrast calculation
The parameters were passed the wrong way around.

Test: manual inspection
Fixes: 62937149
Change-Id: I7ae2bb2a4136da37d6b59b2b1406c68ce7fe7b6b
2017-06-23 17:29:50 -07:00
Christopher Ferris
18f7bcb9a8 Merge "Add a common call when wrapping an app." am: 12e0975963 am: bb6cf84a40
am: 1d10ce12ff

Change-Id: Ib814bcfc56ad6742a023bd7245952cefd51d5fd2
2017-06-22 20:42:00 +00:00
Christopher Ferris
1d10ce12ff Merge "Add a common call when wrapping an app." am: 12e0975963
am: bb6cf84a40

Change-Id: I5a52a1cdfa5994f3f8c44e367c3a0bdbfba838fd
2017-06-22 18:40:30 +00:00
Christopher Ferris
76de39e5eb Add a common call when wrapping an app.
When an application is wrapped using setprop wrap.<application>, it
doesn't set the special zygote flag, or make the mallopt call. This
means that a wrapped application will behave differently, and not
be able to track zygote native allocations versus app native allocations.

This CL adds a nativePreApplicationInit call that is used after the
Zygote is forked, and when a wrapped application is called.

Bug: 62068500

Test: Booted sailfish system. Verified that the zygote has not called
Test: the new function. Verified the function is called when a wrapper
Test: is used. Verified the function is called when the Zygote forks
Test: a process.
Change-Id: I392e1b5429be77def63f7815b072d68e9408cc7f
(cherry picked from commit 2980de4a59)
2017-06-21 17:19:45 -07:00
Christopher Ferris
30be8d998a Merge "Add a common call when wrapping an app." 2017-06-22 00:08:36 +00:00
Dianne Hackborn
6a93509080 Merge "Work on issue #62065889: Assess thresholds and criteria for killing..." 2017-06-21 21:07:05 +00:00
Christopher Ferris
2980de4a59 Add a common call when wrapping an app.
When an application is wrapped using setprop wrap.<application>, it
doesn't set the special zygote flag, or make the mallopt call. This
means that a wrapped application will behave differently, and not
be able to track zygote native allocations versus app native allocations.

This CL adds a nativePreApplicationInit call that is used after the
Zygote is forked, and when a wrapped application is called.

Bug: 62068500

Test: Booted sailfish system. Verified that the zygote has not called
Test: the new function. Verified the function is called when a wrapper
Test: is used. Verified the function is called when the Zygote forks
Test: a process.
Change-Id: I392e1b5429be77def63f7815b072d68e9408cc7f
2017-06-21 13:49:29 -07:00
Justin Klaassen
eb88dbbbff Merge "Reset last activated time after auto mode changed" into oc-dr1-dev am: 13cfb46e41
am: 93bd71f10a

Change-Id: I4e6dbdf32f99dcd6eea90aed9c36aee3240e3404
2017-06-21 00:04:40 +00:00
Justin Klaassen
93bd71f10a Merge "Reset last activated time after auto mode changed" into oc-dr1-dev
am: 13cfb46e41

Change-Id: Ic54dae12f687caf5288ccbf3cd3c842ce4742721
2017-06-20 23:56:13 +00:00
Mathieu Chartier
8e9149e3c5 Merge "Add property for system server compiler filter" 2017-06-20 23:41:20 +00:00
Justin Klaassen
4bcc06f39c Reset last activated time after auto mode changed
Fixes: 62749129
Test: runtest -c com.android.server.NightDisplayServiceTest \
      frameworks-services
Change-Id: I7e5a4c56cd20be70e693aa2327972b5da77b6f27
2017-06-20 13:29:43 -07:00
Sudheer Shanka
97d15bfd4c Don't callback if all the delta values are zero.
Bug: 25195548
Test: N/A
Change-Id: Ib597ec4c903acfaa78096b8f53dd6b8df7783a3a
2017-06-19 19:19:08 -07:00
Dianne Hackborn
ffca58bc5e Work on issue #62065889: Assess thresholds and criteria for killing...
...background processes (CPU, etc)

Add full configuration params for adjusting these settings (some were
already there).

Also...  as long as we are doing this...

- Get rid of all of the wakelock stuff.  That is completely pointless
now that we aren't even allowing cached processes to hold wake locks.

- This greatly simplifies the code, since we don't need to deal with
two different policies for how we do checks.  Instead, we just regularly
check for CPU and the CPU check interval.

- And make the CPU check more aggressive and have much more flexibility
for tuning: there are now 4 different maximum CPU use levels, depending
on how long the process has been in the cached state.  This allows us to
be more strict on CPU use the longer it is sitting in the background.

Note that CPU use tracking only happens while the device is not
plugged in to power...  I'll leave this for now, but I think in the
future we should think about applying these limits even when plugged
in, because in either case cached apps should really not be doing
much.

Test: manual
Change-Id: I68f4ab68be5f7d5fc4822005107fb60ef07a374d
2017-06-19 16:55:45 -07:00
Vladislav Kaznacheev
b9faebca98 Merge "Do not update currently open tooltip." into oc-dev am: 139dbe5c1c am: 3fd4215760
am: 6063096518

Change-Id: I5e7b6742544a5db4266e95be0ce01830ea62cd92
2017-06-19 21:37:31 +00:00
Vladislav Kaznacheev
6063096518 Merge "Do not update currently open tooltip." into oc-dev am: 139dbe5c1c
am: 3fd4215760

Change-Id: I4b9674e73830462bbe9288ebfa1bbac89af860b3
2017-06-19 21:24:11 +00:00
Vladislav Kaznacheev
2102c3211c Merge "Do not update currently open tooltip." into oc-dev
am: 139dbe5c1c

Change-Id: Ia3fc1f16e71a4a12a0a84704b7ca7a9d2ec33514
2017-06-19 21:12:45 +00:00
Vladislav Kaznacheev
3fd4215760 Merge "Do not update currently open tooltip." into oc-dev
am: 139dbe5c1c

Change-Id: Ia0b5b2c7ee9dc8a0cc975562de350ac0ff4a0449
2017-06-19 21:12:41 +00:00
Lucas Dupin
7b2d2103da Merge "K-Means color clustering" into oc-dr1-dev am: 11cc260047
am: af26f72fb8

Change-Id: I1985de652f8d4643a8a5a170fd7f43c33c6c0bd7
2017-06-17 17:33:26 +00:00
Lucas Dupin
af26f72fb8 Merge "K-Means color clustering" into oc-dr1-dev
am: 11cc260047

Change-Id: If99425cb57a322900f476227932cdcadd85abf00
2017-06-17 17:26:20 +00:00
Lucas Dupin
1d3c00d5c7 K-Means color clustering
Test: runtest -x tests/Internal/src/com/android/internal/ml/clustering/KMeansTest.java
Bug: 37014702
Change-Id: Idabc163df5ded362acbe462ae6b351394a36db10
2017-06-16 18:04:42 -07:00
Vladislav Kaznacheev
dd469d171d Do not update currently open tooltip.
Currently if View.setTooltipText is called while
the tooltip is being shown for that view, it will
update the displayed text. The tooltip then will
resize to wrap around the new text, but not change
its position. This looks confusing if the new text
is significantly shorter or longer.

Removing this functionality until proper
re-positioning is implemented.

Bug: 38491655
Test: android.view.cts.TooltipTest passes
Change-Id: I79689288185888854b992b89e19fe381d3ac50e4
2017-06-16 11:31:23 -07:00
Mathieu Chartier
5e07a0d9ca Add property for system server compiler filter
The property is dalvik.vm.systemservercompilerfilter, this changes
if dexopt is needed.

Bug: 62356545
Test: adb shell setprop dalvik.vm.systemservercompilerfilter quicken
Test: adb shell stop && adb shell start

Change-Id: I2ef3737f24816a4cb75e718abf274a891eb9fda1
2017-06-16 09:52:36 -07:00
Chris Thornton
f972cc3e12 Merge "Add SoundTriggerManager APIs to use a PendingIntent to get callbacks." into oc-dr1-dev am: 6f071c369e
am: 2fe6586160

Change-Id: I13fcdd58bd9219ce6c65e4bf90d107222047fc42
2017-06-14 19:48:28 +00:00
Chris Thornton
2fe6586160 Merge "Add SoundTriggerManager APIs to use a PendingIntent to get callbacks." into oc-dr1-dev
am: 6f071c369e

Change-Id: I98f9c06856a70a5a4b3634f41860068c331f0c83
2017-06-14 19:16:36 +00:00
TreeHugger Robot
6f071c369e Merge "Add SoundTriggerManager APIs to use a PendingIntent to get callbacks." into oc-dr1-dev 2017-06-14 19:10:43 +00:00
Chris Thornton
ba08b7945a Add SoundTriggerManager APIs to use a PendingIntent to get callbacks.
Test: APIs exercised using a special test app not in this CL.

Change-Id: I99425d1e67a778513e6c75e7d595c072032aa2ab
2017-06-13 18:37:48 -07:00
Eugene Susla
bc27890991 Merge "Support associating with an already-paired device" into oc-dev am: c041c7a34e am: c26f789ae2
am: dfa5272295

Change-Id: Ic68002087eacf339356e13e10698d88e1ff30c40
2017-06-14 00:39:58 +00:00
Eugene Susla
dfa5272295 Merge "Support associating with an already-paired device" into oc-dev am: c041c7a34e
am: c26f789ae2

Change-Id: Ice5843da51415f87140a6311415a7074b155cdb3
2017-06-14 00:24:12 +00:00
Eugene Susla
c26f789ae2 Merge "Support associating with an already-paired device" into oc-dev
am: c041c7a34e

Change-Id: I31ab12934cd18aace7aece30fd5551e20e02216e
2017-06-14 00:17:25 +00:00
Eugene Susla
99f209be12 Merge "Support associating with an already-paired device" into oc-dev
am: c041c7a34e

Change-Id: I0af2c5f93b8e0387f28f9c34c81b20ad5a9875e2
2017-06-14 00:17:19 +00:00
TreeHugger Robot
c041c7a34e Merge "Support associating with an already-paired device" into oc-dev 2017-06-14 00:03:53 +00:00
Eugene Susla
02228bd9e6 Merge "Serialize all standard actions as bit mask" 2017-06-13 18:14:35 +00:00