111876 Commits

Author SHA1 Message Date
Dianne Hackborn
e56c2c3f05 Fix issue #10795385: System process crash reinstalling GEL -
NPE at com.android.server.am.ProcessRecord.resetPackageList(ProcessRecord.java:596)

Take care of some more cases now that baseProcessTracker can be null.

Change-Id: I394c0b7802788118c3ad6bcac5dfdd23eeda8d58
2013-09-17 11:03:10 -07:00
Dianne Hackborn
8a7a93e20d Merge "Work on issue #10771346: runtime restart" into klp-dev 2013-09-17 01:43:09 +00:00
Christopher Tate
60fcce6cb1 Merge "Introduce maxSdkVersion for <uses-permission>" into klp-dev 2013-09-17 01:01:47 +00:00
Jean-Michel Trivi
3fb53d8238 Merge "Loudness enhancer audio effect" into klp-dev 2013-09-17 00:52:19 +00:00
Dianne Hackborn
50ef0b62f0 Work on issue #10771346: runtime restart
Haven't found the underlying cause, but this will give us more
information when we get into the bad state.

Change-Id: I9aebd3a025a7c0d931f43098461b64ee3c220746
2013-09-16 17:40:27 -07:00
Christopher Tate
fb0676a902 Introduce maxSdkVersion for <uses-permission>
This way an application can automatically sunset its permission requests
when running on later versions of the OS where those permissions are no
longer relevant, but may be alarming to the user.  A canonical example
is WRITE_EXTERNAL_STORAGE, which as of KLP becomes unnecessary for an app
to use the external storage volume solely for its own large-data needs,
without the need for actual file-system sharing among multiple apps.

Bug 9761041

Change-Id: I60130af3a108fe4a750c356038a1c8cb897e9c8b
2013-09-16 17:03:02 -07:00
Vinit Deshapnde
c06b1db222 Merge "Consider current EAP TLS configurations as 'valid'" into klp-dev 2013-09-16 23:52:57 +00:00
John Spurlock
c8d19b894e Merge "Update transient navigation confirmation wording & behavior" into klp-dev 2013-09-16 23:03:25 +00:00
Igor Murashkin
1e4e38252f Merge "camera2: Add key enumeration functionality to CameraMetadata" into klp-dev 2013-09-16 22:47:07 +00:00
Igor Murashkin
901be0ae33 Merge "camera2: Update Face class." into klp-dev 2013-09-16 22:32:11 +00:00
Dianne Hackborn
0a6a80f43d Fix build.
Change-Id: I2b2168ff3b2826a60353fd137a2fa255b1ace4bb
2013-09-16 15:20:27 -07:00
Vinit Deshapnde
3b25f51609 Consider current EAP TLS configurations as 'valid'
Multiple authentication methods are currently considered invalid; but
WPA_EAP and IEEE8021X are set simultaneously. This means we need to
fix code to consider them a valid combination.

Bug: 10325089

Change-Id: I2b4f4d75f21df78bfca66a930e85214c0cd6922e
2013-09-16 15:09:21 -07:00
Dianne Hackborn
61158244b4 Merge "Implement issue #10691359: Kill long-running processes" into klp-dev 2013-09-16 21:33:04 +00:00
Craig Mautner
deec7e481a Merge "Put next task on top of stack if top is finishing." into klp-dev 2013-09-16 21:21:11 +00:00
John Spurlock
d67ec25a9c Update transient navigation confirmation wording & behavior
1. Decrease transient navigation confirmation annoyance.

  - Only use the power-key as a signal if we detect a screen-off
    screen-on within a short threshold value.

 - Auto-confirm if user performs the indicated gesture.

 - Remember confirmation across reboots.

2. Update wording to new final wording.  Remove now obsolete
short + long versions.  Decrease message font temporarily
until the new platform toast redesign is finalized.

3. Remove pre-ship ImmersiveModeTesting debug helper.

Bug:10602929
Change-Id: I0bff826391058c7b282eeb61817b93b79de84893
2013-09-16 17:12:17 -04:00
Xia Wang
326f4505e0 Merge "Update the Connectivity Manager test suit to use InstrumentationTestCase." into klp-dev 2013-09-16 21:11:31 +00:00
Yu Shan Emily Lau
98d18bbc5e Merge "Fix media stress test." into klp-dev 2013-09-16 21:11:25 +00:00
Xia Wang
19306af73a Update the Connectivity Manager test suit to use InstrumentationTestCase.
- Remove ConnectivityManagerTestActivity as the test activity could be destroyed
  after a system config change, which cause test failure in the wifi stress test.
- Update all tests to use InstrumentationTestCase, which instruments the test package.

Bug : 10426067

Change-Id: Ibf6f1f7cffd7a7eabc4cc63c7e033b59274b724e
2013-09-16 14:07:25 -07:00
Dianne Hackborn
35f72be50b Implement issue #10691359: Kill long-running processes
We now have the activity manager kill long-running processes
during idle maintanence.

This involved adding some more information to the activity manager
about the current memory state, so that it could know if it really
should bother killing anything.  While doing this, I also improved
how we determine when memory is getting low by better ignoring cases
where processes are going away for other reasons (such as now idle
maintenance).  We now won't raise our memory state if either a process
is going away because we wanted it gone for another reason or the
total number of processes is not decreasing.

The idle maintanence killing also uses new per-process information
about whether the process has ever gone into the cached state since
the last idle maintenance, and the initial pss and current pss size
over its run time.

Change-Id: Iceaa7ffb2ad2015c33a64133a72a272b56dbad53
2013-09-16 14:05:34 -07:00
Chet Haase
c05c36285d Merge "Ensure that transitions animating alpha end on a reasonable value" into klp-dev 2013-09-16 21:03:28 +00:00
Igor Murashkin
5cf86aa756 Merge "media: Update ImageReader to remove MaxImagesAcquiredException" into klp-dev 2013-09-16 21:02:32 +00:00
Chet Haase
23c61f6bc5 Ensure that transitions animating alpha end on a reasonable value
The Fade transition sets an initial alpha value of 0 when items are
appearing. This makes items invisible to start with, and then they
eventually fade in as part of the transition when the transition's
animation runs.

But if that animation/transition gets interrupted, or not started, then
the alpha value would not be restored, and the value would stay 0,
making the items invisible indefinitely. This is what was happening in
the action bar of the People app when performing a search.

The fix is to handle Transition and animation events to restore the alpha
to its true value when the transition completes, whether that
transition is canceled or not.

Issue #10726905 ActionBar weirdness in People app

Change-Id: Idb65fd8d471d2ac0a1ddc243fee00ae99f7e72d8
2013-09-16 13:58:23 -07:00
Yuhao Zheng
af672998af Merge "Fix Settings app crash while enabling tethering" into klp-dev 2013-09-16 20:36:50 +00:00
Vinit Deshapnde
7354b834fc Merge "Fix an NPE in WifiService" into klp-dev 2013-09-16 20:25:52 +00:00
Yuhao Zheng
8c461c6fc6 Fix Settings app crash while enabling tethering
While enabling Portable Wifi hotspot in Settings, a null WifiConfiguration
is provided. This null config is on purpose and meanful, and it should bypass
the validation test to avoid the NullPointerException.

Bug: 10780414

Change-Id: Ic507ecae463946c925b3d5fb5a1d185b37db410f
2013-09-16 13:24:04 -07:00
Igor Murashkin
26cb5fd5ff Merge "media: Update ImageReader APIs" into klp-dev 2013-09-16 20:19:15 +00:00
Daniel Sandler
311daf2053 Merge "New platlogo for K." into klp-dev 2013-09-16 20:09:05 +00:00
Craig Mautner
7dd9fdfca0 Put next task on top of stack if top is finishing.
In the case where the top task is finishing and another task is
launching make sure that the next task will be launched once the
top task actually completes pausing.

In the case of b/10550460 the top task, Dialtacts, was finishing
but had not yet completed pausing. It was configured to return to
the home screen (mLaunchHomeTaskNext true) but because its finishing
flag was set all the tests we have thought that the InCallActivity
task was the top task. When it finally did complete the
mLaunchHomeTaskNext flag caused the home activity to be started
instead of the InCallActivity.

If the InCallActivity task had been moved above the Dialtacts task
at the time it was judged to be the top task the home activity
would not have been launched when Dialtacts completed. This fix
moves the judged top task over the finishing top task.

Fixes bug 10550460.

Change-Id: I14052ad2282008679b560dd7fb16b216664ec24d
2013-09-16 13:05:41 -07:00
Yu Shan Emily Lau
c10b55a5e4 Fix media stress test.
1) Fix the CamcorderProifle initalization.
2) Insert 2 seconds after camera release.

Change-Id: Ib22f1922a917233f3d1020dc67de834e00fd0959
2013-09-16 12:50:12 -07:00
Vinit Deshapnde
ffec332727 Fix an NPE in WifiService
The check to validate incoming configurations is flagging a correct
API usage as well - which doesn't provide any configuration to test.
Fixing code to accommodate this.

Bug: 10749041

Change-Id: I972f0edbdfa14aaa3edb34e4c6784b436c288383
2013-09-16 12:41:12 -07:00
Daniel Sandler
1656a346d9 Merge "Point the QS alarm tile at AlarmClock.ACTION_SHOW_ALARMS." into klp-dev 2013-09-16 18:40:14 +00:00
Daniel Sandler
80c3c4e960 New platlogo for K.
Bug: 10605145
Change-Id: I23f285ec24118982b10f5d801b75925b9dc81c64
2013-09-16 14:40:03 -04:00
Daniel Sandler
9cb5445d26 Merge "Fix recent SystemUI dump crash." into klp-dev 2013-09-16 18:36:04 +00:00
Glenn Kasten
6b2b845948 Merge "Miscellaneous fixes to SoundPool unit test" into klp-dev 2013-09-16 18:24:13 +00:00
Glenn Kasten
36317eac4b Merge "Stress test for AudioTrack shared memory bug" into klp-dev 2013-09-16 18:23:54 +00:00
Zhijun He
78a1de6519 Merge "Camera2: Add MAX_CAMERAS_IN_USE error case handling" into klp-dev 2013-09-16 18:21:17 +00:00
Joe Fernandez
e8311187c3 am da304484: am a1e59983: am 27ab2172: Merge "docs: SDK / ADT 22.2 Release Notes" into jb-mr2-docs
* commit 'da304484a14062703284596d50f33df28fe66cc4':
  docs: SDK / ADT 22.2 Release Notes
2013-09-16 11:18:51 -07:00
Joe Fernandez
da304484a1 am a1e59983: am 27ab2172: Merge "docs: SDK / ADT 22.2 Release Notes" into jb-mr2-docs
* commit 'a1e59983ef6e1f6b0a1c8e65b439e80846f8b662':
  docs: SDK / ADT 22.2 Release Notes
2013-09-16 11:15:37 -07:00
Joe Fernandez
f47b13d4be am 7bacc72c: am 90bb0cf7: am 385179b2: Merge "Update RenderScript docs to include Support Library APIs" into jb-mr2-docs
* commit '7bacc72c748249926ee0d4733d194ff712aacddb':
  Update RenderScript docs to include Support Library APIs
2013-09-16 11:15:22 -07:00
Joe Fernandez
a1e59983ef am 27ab2172: Merge "docs: SDK / ADT 22.2 Release Notes" into jb-mr2-docs
* commit '27ab217212a663e22133cdd2a72ef27bdf5f778c':
  docs: SDK / ADT 22.2 Release Notes
2013-09-16 11:13:08 -07:00
Jean-Michel Trivi
d69e4e1422 Loudness enhancer audio effect
LoudnessEnhancer as android.media.AudioEffect subclass

Define UUID for loudness enhancer effect

Bug 8413913

Change-Id: If0ae6023f77ccf3aafbb55f2b3135b2ea1bb8365
2013-09-16 11:12:27 -07:00
Joe Fernandez
7bacc72c74 am 90bb0cf7: am 385179b2: Merge "Update RenderScript docs to include Support Library APIs" into jb-mr2-docs
* commit '90bb0cf7680874a5332fd5f063b54e7f65ef2cea':
  Update RenderScript docs to include Support Library APIs
2013-09-16 11:12:05 -07:00
Joe Fernandez
27ab217212 Merge "docs: SDK / ADT 22.2 Release Notes" into jb-mr2-docs 2013-09-16 18:10:55 +00:00
Joe Fernandez
90bb0cf768 am 385179b2: Merge "Update RenderScript docs to include Support Library APIs" into jb-mr2-docs
* commit '385179b2811e95833066dfdb801e963e43229b97':
  Update RenderScript docs to include Support Library APIs
2013-09-16 11:09:40 -07:00
Joe Fernandez
d3e7723a1e am 2793a3b3: am d82b567c: am 881a4b82: Support Library 18.1 Release Notes
* commit '2793a3b3fdb24a1fe5f28076a6f8a5f17bc3b0c3':
  Support Library 18.1 Release Notes
2013-09-16 11:08:47 -07:00
Joe Fernandez
385179b281 Merge "Update RenderScript docs to include Support Library APIs" into jb-mr2-docs 2013-09-16 18:07:19 +00:00
Joe Fernandez
2793a3b3fd am d82b567c: am 881a4b82: Support Library 18.1 Release Notes
* commit 'd82b567c718dafdcd3477cb3da8f729bd64859cc':
  Support Library 18.1 Release Notes
2013-09-16 11:06:33 -07:00
Chet Haase
978a455d66 Merge "Plug leaks in transitions" into klp-dev 2013-09-16 18:05:43 +00:00
Joe Fernandez
d82b567c71 am 881a4b82: Support Library 18.1 Release Notes
* commit '881a4b8235160884b9fc7aa9a6c6b13be5567aa4':
  Support Library 18.1 Release Notes
2013-09-16 11:05:12 -07:00
John Spurlock
41c1e359c6 Fix recent SystemUI dump crash.
If only string format specification errors were compilation errors...

Bug:10781286
Change-Id: I2843a805f6bba35f9cddcbfe7e551d3f0248e789
2013-09-16 13:57:13 -04:00