27027 Commits

Author SHA1 Message Date
Filip Gruszczynski
aaf1811dda Calculate outsets before window frame adjustment.
Bug: 21635628
Change-Id: I2d818e6d543c885dca2d19553bad5ce1adda95a6
2015-06-05 13:37:40 -07:00
Jorim Jaggi
3bb96c7b3b Merge "Refinements for app transitions" into mnc-dev 2015-06-05 20:19:40 +00:00
Chris Wren
dfa4af2dfa Merge "remove obsolete notification visibility log" into mnc-dev 2015-06-05 20:13:47 +00:00
Chris Wren
7a4f9ca937 remove obsolete notification visibility log
Bug: 21248682
Change-Id: I8656a924514dd01ebc003f3cc81b1a9316919321
2015-06-05 16:12:18 -04:00
Jorim Jaggi
1d763a6d60 Refinements for app transitions
- Use refined interpolator for most of the transitions which respond
to touch faster than a normal fast_out_slow_in interpolator.
- Tune clip reveal animation: Get rid of horizontal movement, only do
slight vertical movement, and make horizontal reveal animation faster
so there is a more staggered animation to resemble an opening paper

Change-Id: Id94328906f9b194fb97d702e9b102c7aeef96bb8
2015-06-05 11:42:34 -07:00
Amith Yamasani
8fa24e91c4 Merge "Fix permission check in DPM.getPermissionGrantState" into mnc-dev 2015-06-05 18:36:08 +00:00
Chris Wren
b1e0438ce3 Merge "add a log for notification alerts." into mnc-dev 2015-06-05 18:22:21 +00:00
Chris Wren
82ba59de0e add a log for notification alerts.
Bug: 21242827
Change-Id: I1b8beee5cc12a9cd23e81554f7f2236ddc29e2b6
2015-06-05 13:49:59 -04:00
Filip Gruszczynski
b0c673b50e resolved conflicts for merge of f6a04305 to mnc-dev
Change-Id: I92e666bfd6d8ad051bdee7dce5712b9cb8e6a01d
2015-06-05 09:43:06 -07:00
Mady Mellor
e860891b1a Change stylus button press to context click in View - API review feedback
Updates all references in View's onStylusButtonPress to onContextClick
as per API review feedback.

Additionally listens for mouse right clicks and calls the onContextClick
method for these as well for the stylus button press.

Bug: 21572278
Change-Id: I5c1ee8c8f23a77d7c677b86356e89d0e4fc40056
2015-06-05 09:02:55 -07:00
Lorenzo Colitti
06400475c7 Delete code that checks for the simulator, it's long gone.
Exhibit A: http://b/5010576

Bug: 19316303
Change-Id: I093e4320f12459adaa51c6a14350e7a60e02937d
2015-06-05 17:21:29 +09:00
Lorenzo Colitti
a34af2c0d7 Merge "Remove "returning Blocked NetworkInfo" logspam." into mnc-dev 2015-06-05 07:50:44 +00:00
Mike Lockwood
e0a6ca64fa MidiManager: proxy all requests to open devices through MidiService
Previously when a MidiManager client opened a virtual or Bluetooth device,
the client bound directly to the virtual device's MidiDeviceService
or BluetoothMidiDevice's IMidiDeviceServer for the given BluetoothDevice.
Only USB devices were opened in MidiService.

Now opening any type of MIDI device is done via IMidiManager.openDevice() or
IMidiManager.openBluetoothDevice().  MidiService tracks all connnections between
clients and devices.

Services that implement virtual devices must now require android.permission.BIND_MIDI_DEVICE_SERVICE
so only MidiService can bind to these services.

Bug: 21044677

Change-Id: I7172f7b1e0cbfe4a2a87dff376c32dc9b41aa563
2015-06-04 19:16:23 -07:00
Lorenzo Colitti
48a423f045 Remove "returning Blocked NetworkInfo" logspam.
Bug: 20006730
Change-Id: I2061127e3c7283c0a4899940d3fc224ca114f754
2015-06-05 10:58:17 +09:00
Amith Yamasani
369d656533 Fix permission check in DPM.getPermissionGrantState
It was querying for permission of user 0 instead of the calling user.
Switched to passing in the explicity userId.
Also set the flags before granting/revoking permission from DPM.

Bug: 21430988
Change-Id: Id0d2dc65e20108cefa3eeb4363f866d49c791cc4
2015-06-04 17:58:11 -07:00
Yohei Yukawa
34df42d597 Merge "Make IMMS#mSettingsObserver multiuser-aware." into mnc-dev 2015-06-04 21:38:20 +00:00
Paul Lawrence
8836528d7b Merge "Move crypt commands to a different listener in vold" into mnc-dev 2015-06-04 21:32:38 +00:00
Feixiong Zhang
170d44083f Merge "Fix the empty reason field in connectivity change intent." into mnc-dev 2015-06-04 18:54:49 +00:00
Feixiong Zhang
376133f606 Fix the empty reason field in connectivity change intent.
The code set it to null instead of info.getReason.

Change-Id: I1b26ad040c23da7080dbfaeb5376181998115805
2015-06-04 11:38:41 -07:00
Dmitriy Ivanov
a25a3d6187 Fix abi detection for system apks
Prebuilts open their libraries directly from  apk.
Because of that abi detection is no longer as
special as it was before.

Bug: 20810492
Bug: 8076853
Change-Id: Icbd39d6062f3c1fcad2038e712b98fbdd9aa2196
2015-06-04 11:12:51 -07:00
Paul Lawrence
1c62cbbdfe Move crypt commands to a different listener in vold
In order to prevent this bug from happening, we must allow vold cryptfs
commands to complete while a long running mount is underway.

While waiting for vold to be changed to a binder interface, we will simply
create two listeners, one for cryptfs and one for everything else.

Bug: 19197175
Change-Id: I8c40211dc1ef5ecec765ab587f093e757f1173d3
2015-06-04 10:44:43 -07:00
Android (Google) Code Review
a1b35394b6 Merge "Don't leak windows on removal with dummy animations" into mnc-dev 2015-06-04 17:30:05 +00:00
Stefan Kuhne
79f4718d7c Don't leak windows on removal with dummy animations
Dummy animations might never end. Do not hold a window removal
for it.

Bug: 21403998
Change-Id: Ie907d31f51e130e245a70249a983d490f3d42b21
2015-06-04 10:28:07 -07:00
Dianne Hackborn
b0a5e78fc0 Merge "More API changes." into mnc-dev 2015-06-04 16:56:52 +00:00
Paul Jensen
577d79b556 Merge "Revive ConnectivityServiceTest and add some tests." into mnc-dev 2015-06-04 13:11:34 +00:00
Paul Jensen
d7b6ca91e9 Revive ConnectivityServiceTest and add some tests.
Change-Id: I44740a7b21cff18ac2a67d09c4d0e597add19ee0
2015-06-04 09:09:36 -04:00
Lorenzo Colitti
597d3e59fe Merge "Actually close sockets when stopping the receive thread." into mnc-dev 2015-06-04 13:00:50 +00:00
Narayan Kamath
cd1fc1465b Don't compile all splits when installing one.
This patch consists of two broad changes :
- don't "force" dex2oat when installing a new app. this should never
  be necessary because we will always compare checksums.

- when staging a new install, we "inherit" (hard link) all compiled
  oat files from the previous install. this will ensure that we compile
  only those files that have changed, and not all of them

bug: 20889739
Change-Id: I3e14335f3bcfe76d1d24d233f53a728a6d90e8a1
2015-06-04 12:35:54 +01:00
Lorenzo Colitti
be843e8394 Actually close sockets when stopping the receive thread.
Contrary to the expectations of the code, IoUtils.closeQuietly()
does not unblock system calls. So mReceiveThread.halt() was not
actually stopping the receive thread.

This wasn't actually a problem, because after "stopping" the
receive thread, either the interface would go down (interrupting
the previous receive thread with ENETDOWN), or a packet would
arrive to both the old and new receive threads, stopping the
old one. But the lack of a "stopping receive thread" message at
the expected time was confusing.

While I'm at it, also add the string for CMD_TIMEOUT.

Bug: 19704592
Change-Id: I74732429118af780453028898148519b294fa9d3
2015-06-04 20:07:14 +09:00
Yohei Yukawa
8148297143 Make IMMS#mSettingsObserver multiuser-aware.
It turns out that IMMS#SettingsObserver has monitored
only main user's the secure settings. As a result, when the
secondary user changes enabled IMEs in the settigs app,
IMMS only updates internal enabled IME lists only when
the user is switched for secondary users.  If a secondary
user enables or disables IMEs at the settings app, such
changes are not correctly notified to IMMS.

This CL addresses above inconsistency by explicitly
specifying the user ID when calling
ContentResolver#registerContentObserver().

This CL also allows dumpsys to contain internal state of
IMMS#mSettingsObserver in case we need to diagnose
problems only with bugreports.

Bug: 19340792
Bug: 19587437
Bug: 21612582
Change-Id: I34b437928c147e9fdbe935f725624cc97c816cb3
2015-06-04 01:55:22 -07:00
Yohei Yukawa
cc71518aef Merge "Include InputMethodSubtypeSwitchingController in state dump." into mnc-dev 2015-06-04 08:06:10 +00:00
Yohei Yukawa
1d283bf269 Merge "Show more logs when switching users and IMMS#DEBUG==true." into mnc-dev 2015-06-04 08:05:05 +00:00
Lorenzo Colitti
b988a080ae Merge "Actually fall back from yiaddr to ciaddr." into mnc-dev 2015-06-04 08:00:42 +00:00
Yohei Yukawa
d724886cc1 Include InputMethodSubtypeSwitchingController in state dump.
In order to diagnose IME issues in multi-user / multi-profile
environment, internal state of
InputMethodSubtypeSwitchingController needs to be included in
the bugreport.

Bug: 19340792
Bug: 19587437
Bug: 21612582
Change-Id: I34aca2c1a4330ec08b5e40441e631809a8bb844e
2015-06-04 00:13:50 -07:00
Yohei Yukawa
90bf7084bf Show more logs when switching users and IMMS#DEBUG==true.
This CL changes nothing but adds more logging points in IMMS when
switching users and IMMS#DEBUG==true.

No impact in production code.

Bug: 19340792
Bug: 19587437
Bug: 21612582
Change-Id: Ibaeb77ae50d246fc322cb023da7750d7415a58ab
2015-06-03 23:50:27 -07:00
Lorenzo Colitti
f68edb1611 Actually fall back from yiaddr to ciaddr.
The initial implementation of toDhcpResults attempted to get the
leased IP address from ciaddr if yiaddr was 0.0.0.0, but it never
actually did so because a) it used == instead of equals(), and b)
the parsing code never populated mClientIp for a DhcpOfferPacket
or DhcpAckPacket.

Fix this and add a test for it.. Technically DHCP does not use
ciaddr (only bootp uses it), but in 5.0 we would use ciaddr if
yiaddr was 0.0.0.0 and a bit more compatibility shouldn't hurt.

Bug: 19704592
Change-Id: I1f58555f0c10b9c576995a6edb759a83d8938ea0
2015-06-04 14:57:11 +09:00
Lorenzo Colitti
2b885195cd Merge "Make RenewingState time out as well." into mnc-dev 2015-06-04 05:42:24 +00:00
Justin Harrison
6715ef754a am 4f2927d2: am 0eeb3bb8: am 33aa55b1: am 127d0b80: Merge "Revert "Revert "During early boot, send LOCALE_CHANGED only to registered receivers""" into lmp-mr1-dev
* commit '4f2927d22415b9a38f34645ae7909592d574c170':
  Revert "Revert "During early boot, send LOCALE_CHANGED only to registered receivers""
2015-06-04 05:33:03 +00:00
Justin Harrison
95be178daf am c4d7c826: am f8c2ffef: am c8fd50b1: am 29b98884: Merge "Revert "During early boot, send LOCALE_CHANGED only to registered receivers"" into lmp-mr1-dev
* commit 'c4d7c826486868e31bacfe2265b96af1ff3115ea':
  Revert "During early boot, send LOCALE_CHANGED only to registered receivers"
2015-06-04 05:32:58 +00:00
Lorenzo Colitti
76f087502d Merge "Disable mDefaultDns to see if we can remove it." into mnc-dev 2015-06-04 05:31:59 +00:00
Svetoslav Ganov
b387647439 Merge "Make node retrieval methods in AccessibilityManagerService use separate Region instances to make them thread safe." into mnc-dev 2015-06-04 02:21:09 +00:00
Nirmal Patel
386a824384 Make node retrieval methods in AccessibilityManagerService use separate Region instances to make them thread safe.
b/21087793

Change-Id: Ice690e3d7494788fb9e1e234a54f14831bd4e0d3
(cherry picked from commit ebd8eb4610d6bb9322a374f8965a78ba1c39ee63)
2015-06-03 19:18:00 -07:00
Adrian Roos
02a28885bf Be more conservative about initial keyguard state
Prevents a race condition that could lead to leaking the home screen
if Keyguard is too slow at pushing its state to the window manager while
booting.

Bug: 21128921
Change-Id: I992066c2c4e1bc4f797776c7804408a53b658b03
2015-06-04 01:15:53 +00:00
Nick Vaccaro
d516915740 Merge "Wait for KEY_SLEEP UP event before calling goToSleep()" into mnc-dev 2015-06-04 00:49:25 +00:00
Amith Yamasani
fcf2b54ded Merge "Allow packagemanager checks for secondary user packages" into mnc-dev 2015-06-04 00:46:03 +00:00
Amith Yamasani
e736001af9 Allow packagemanager checks for secondary user packages
Clear calling identity when calling into package manager for
package info.

Bug: 21613139
Change-Id: I0655122f69cc886a395b7195d108222697769b06
2015-06-03 17:39:40 -07:00
Justin Harrison
4f2927d224 am 0eeb3bb8: am 33aa55b1: am 127d0b80: Merge "Revert "Revert "During early boot, send LOCALE_CHANGED only to registered receivers""" into lmp-mr1-dev
* commit '0eeb3bb8eb211af642b25bc494931bcc47786be7':
  Revert "Revert "During early boot, send LOCALE_CHANGED only to registered receivers""
2015-06-04 00:06:15 +00:00
Justin Harrison
c4d7c82648 am f8c2ffef: am c8fd50b1: am 29b98884: Merge "Revert "During early boot, send LOCALE_CHANGED only to registered receivers"" into lmp-mr1-dev
* commit 'f8c2ffef5caca1b07bcb6160f4baf9363c5bfe87':
  Revert "During early boot, send LOCALE_CHANGED only to registered receivers"
2015-06-04 00:06:11 +00:00
Wale Ogunwale
0113144f79 Merge "Fixed outOfBoundsException when logging discarded receiver." into mnc-dev 2015-06-04 00:01:53 +00:00
Justin Harrison
0eeb3bb8eb am 33aa55b1: am 127d0b80: Merge "Revert "Revert "During early boot, send LOCALE_CHANGED only to registered receivers""" into lmp-mr1-dev
* commit '33aa55b1cecea2dcecd5e72450dab8cff85c2943':
  Revert "Revert "During early boot, send LOCALE_CHANGED only to registered receivers""
2015-06-03 23:49:25 +00:00