175142 Commits

Author SHA1 Message Date
Miao Wang
7787760961 Merge "[RenderScript] fix Allocation.copyToFieldPacker" 2015-05-19 16:45:13 +00:00
Yohann Roussel
7bcaf9a997 [DO NOT MERGE] Allow compilation with Jack.
Adapt to Jack compilation specifics.

Fix bad import in VideoDumpActivity.
The extra semicolumn is ignored by javac because of
https://bugs.openjdk.java.net/browse/JDK-8027682 but is not
permitted by ecj or Jack.

This includes cherry-picks of the following changes:
248ef6f9c414db26fd1bc7ec3d4ee4f3b87d54cf
705555dc468e46560d02db102dfcedc1e5c70d9e
f50a51fb4c8d5ca973ce910a21bddf9f8466cb51
bf5ad8d9943c0e1b0b3f1b4524c277f369065d08

Change-Id: Ifbe063e3822a7d63b1681921b9788cfca898ba64
2015-05-19 18:17:39 +02:00
Vladimir Marko
d9f4c95b7d Don't prevent notification updates in DOS protection.
The NotificationManagerService limits the number of
notifications per package+user to 50. Once that limit is
reached, it will refuse new notifications. However, it was
also erroneously refusing updates to existing notifications.

Bug: 5821364
Change-Id: I3aa4be9ad4b288e4a22bf7a64f67521695dfb579
2015-05-19 10:01:11 +01:00
Alex Klyubin
838a7e50eb Merge "Switch from getSpi to getCurrentSpi." 2015-05-18 19:08:33 +00:00
Nicolas Prevot
12678a99f1 Allow creating a managed profile if there is only one user.
BUG:21119929

Change-ID: Ice1cf25f8ae8199228f828d22118c94b9e11b567
2015-05-18 10:48:16 -07:00
Alex Klyubin
bdc1382ac5 Switch from getSpi to getCurrentSpi.
Crypto primitives' getSpi has a side-effect which modifies the state
of the primitive: it selects an SPI implementation if it hasn't been
selected yet (e.g., Cipher.getInstance("AES") doesn't select an SPI
implementation until Cipher.init). The new method getCurrentSpi has
no side-effects: it simply returns null if no SPI implementation is
selected. The switch to getCurrentSpi lets us avoid side-effects and
throw a more pertinent exception when no SPI is yet selected.

Bug: 18088752
Change-Id: I6d62eb67f904a15782673d16bcdae240cdc8f979
2015-05-18 09:54:54 -07:00
tingna_sung
38cd664c68 Should reset mDismissKeyguard on keyguard secure change
If user sets a non-secure lock screen, launch an activity which
appends window flag FLAG_DISMISS_KEYGUARD, then insert a PIN lock
SIM card, activity window will become black screen.

This is because mDismissKeyguard keeps on DISMISS_KEYGUARD_CONTINUE
when keyguard secure changes from non-secure to secure like in the
insert PIN lock SIM card case. If mDismissKeyguard is
DISMISS_KEYGUARD_CONTINUE and keyguard is secure, there is no chance
to launch keyguard unlock window anymore.

This patch handles the use case that to reset mDismissKeyguard to a
new cycle from DISMISS_KEYGUARD_START to DISMISS_KEYGUARD_CONTINUE
again once keyguard secure state change suddenly to let keyguard
window has chance to be launched.

https://code.google.com/p/android/issues/detail?id=78806

Change-Id: I0d4fd0b9bdf7d0a39f35427bfd4e1b928d9bca6b
Signed-off-by: tingna_sung <tingna_sung@htc.com>
2015-05-18 13:56:34 +08:00
Richard MacGregor
74d2afdf0b WindowManagerService not propagating X and Y steps
WindowManagerService received X and Y offset steps but failed to pass
them off to the relavent wallpaperservice.

Live wallpapers expect a valid value for xOffsetStep and yOffsetStep
when the WallpaperService.Engine::onOffsetsChanged function is called
As specified here:
https://developer.android.com/reference/android/service/wallpaper/WallpaperService.Engine.html
onOffsetsChanged(float,float, float, float, int, int)

See bug report:
https://code.google.com/p/android/issues/detail?id=173607

Change-Id: I532dedf2db055e27d6eca813e30346e37f52dc65
(cherry picked from commit e03ea68d0a7f7d7c60663feae587225cca3a3a5b)
2015-05-15 14:25:57 -07:00
Chad Brubaker
a194eb9b5d Merge "Cleanup Keystore API" 2015-05-15 19:54:34 +00:00
Olawale Ogunwale
354be7cd87 Merge "Use the correct parent size to initialize animations" 2015-05-15 17:23:07 +00:00
Olawale Ogunwale
4857c1d885 Merge "Fix lost singleton provider after force-stopping user or package." 2015-05-15 17:13:02 +00:00
Olawale Ogunwale
d80f23e5c3 Merge "Also restart provider if there is external handle." 2015-05-15 16:19:46 +00:00
riddle_hsu
daf23d9c77 Fix lost singleton provider after force-stopping user or package.
Case 1 (name == null):
Switch user from guest to owner. All processes of guest
will be killed, it will not include processes which singleton
components live in, but singleton provider records are still
collected and removed.

When the user switch is complete and the process of removed
singleton provider is still alive, there is someone access
the provider, it will create a new ContentProviderRecord and
wait but no one will notify it because the provider process
is alive with different ContentProviderRecord.

Then the access cannot get response unless the process of target
provider is died and restarted.

Case 2 (name != null):
Switch to another non-guest user, launch an application which
contains singleton provider. Go to Settings to force-stop the
package then switch back to owner user. Launch an application
which will access the singleton provider. It will also cannot
get response that similar as case 1.

Solution:
Only collect singleton provider if target user is all or owner.

Change-Id: Ic6828da66645172d1378cfb1f66d092df5966516
2015-05-15 11:33:03 +08:00
Chad Brubaker
d8aacca3a1 Cleanup Keystore API
Rename confusingly named methods, add userID arguments to all methods
that operate on user state and delete methods that have been replaced by
the onUser* methods.

Some of the old methods have been kept in KeyStore.java in order to ease
the transition of various system packages to the new methods.

Change-Id: Ic271689d62c36d255c5adee26c7abc2e7ed24df5
2015-05-14 13:49:25 -07:00
Stephen McGroarty
62cb9bdc9d Added in flag to ask context to wait for debugger attach.
Adds in flag CREATE_FLAG_WAIT_FOR_ATTACH with value 0x0008 to the RenderScript API
to be passed down to the C++ implementation to tell it to wait for a debugger to be
attached before executing the kernel.

Change-Id: Ibc4e903efbed1b1fb14cf378d1a8517d5c8d1f26
Signed-off-by: Stephen McGroarty <stephen@codeplay.com>
2015-05-14 18:01:01 +01:00
Chris Tate
7b566da55a Merge "AlarmClockInfo: fix redundant word in doc comment" 2015-05-14 01:20:53 +00:00
Shuhrat Dehkanov
66729ff685 AlarmClockInfo: fix redundant word in doc comment
Removed one of unintentional double "intent"s.

Change-Id: I0ce4224964afae0587ce55b6b4775370eff89d26
Signed-off-by: Shuhrat Dehkanov <k@efir.uz>
2015-05-14 10:07:25 +09:00
Jason Sams
b498b2d273 Merge "Fix issues found during CTS testing of FP16" 2015-05-14 00:53:17 +00:00
Jason Sams
54371b4b09 Fix issues found during CTS testing of FP16
bug 20822382

This corrects a copy&paste error placing F16 into F32.
Fixes an error disallowing vectors of fp16 types.

Change-Id: I34be1aa9a323d61a7121581ab9599d2c2d32dd42
2015-05-13 17:02:36 -07:00
Hiroshi Yamauchi
463a5db1d2 Merge "Replace JNI primitive array critical calls with non-critical ones." 2015-05-13 22:47:59 +00:00
Hiroshi Yamauchi
3b1d46e809 Replace JNI primitive array critical calls with non-critical ones.
The files generated by glgen + manually edited util.cpp.

(cherry pick commit 5b406cb7b548443b589f0acb235c8a7465ffb82b)

Bug: 19235243
Change-Id: I9ab79c36e4ac6e123296b06ee8e4c04c4f583104
2015-05-13 13:10:33 -07:00
riddle_hsu
691a1737a3 Also restart provider if there is external handle.
e.g. ContentResolver.getType will call
ActivityManagerService.getProviderMimeType
that will not have connection but increase
externalProcessNoHandleCount.

Change-Id: I649c0b2390a749c77c6be5e7dfadc1acb689ec4c
2015-05-13 18:59:03 +08:00
Chad Brubaker
875607d97f Merge "Add keystore onUserAdded/Removed methods" 2015-05-12 23:26:35 +00:00
Chad Brubaker
31c2897105 Add keystore onUserAdded/Removed methods
Change-Id: I73fe9344ec5660e58425d5c85d14381820533d57
2015-05-12 13:24:43 -07:00
Olawale Ogunwale
9c32e1022b Merge "Don't apply animation clip to dialog activities" 2015-05-12 16:50:35 +00:00
Miao Wang
bfa5e659e7 [RenderScript] fix Allocation.copyToFieldPacker
Change-Id: Iaba3333f9741238745fdb5c94f1b27b1015d50b2
2015-05-11 15:49:18 -07:00
Chad Brubaker
0ecc6c2799 Merge "Cleanup keystore password changing and unlocking" 2015-05-11 19:30:40 +00:00
Miao Wang
5f21193b39 Merge "[RenderScript] (minor) fix validation of L3 BLAS" 2015-05-11 19:20:47 +00:00
Miao Wang
cce01f480f [RenderScript] (minor) fix validation of L3 BLAS
bug: 21028875

Change-Id: I9fd48c57b6518e06ee1d9d7d4ca44faa96d887b0
2015-05-11 12:19:33 -07:00
Chad Brubaker
d88fffa58d Cleanup keystore password changing and unlocking
Add KeyStore.onUserPasswordChanged for the lockscreen to call when
the user changes their password. Keystore will then handle the logic of
deleting keys. Instead of calling Keystore.password_uid for both
unlocking and password changes the behavior has been split into
Keystore.unlock and onUserPasswordChanged.

(cherry-picked from commit a91a8504191d91d288c55821caa5bf00c9be26a2)

Change-Id: I324914c00195d762cbaa8c63084e41fa796b7df8
2015-05-11 11:20:59 -07:00
Alex Klyubin
6a317432de Merge "Fix KeyStoreTest now that begin requires parameters." 2015-05-11 17:37:24 +00:00
Alex Klyubin
c5e4d7af22 Fix KeyStoreTest now that begin requires parameters.
Keystore's begin operation now requires parameters which describe the
operation (e.g., algorithm, block mode, padding). This adjusts
KeyStoreTest to provide the necessary parameters.

Bug: 19509156
Change-Id: I8205288d8cbdd37196acde32548a0994763be38c
2015-05-11 10:33:09 -07:00
Mark Salyzyn
0720a542dd Merge "BootReceiver: scrub APANIC" 2015-05-08 22:47:05 +00:00
Chih-Hung Hsieh
af622b1a98 Merge "Fix print format error." 2015-05-08 22:22:23 +00:00
Dmitriy Ivanov
fcdc032fe5 Merge "Switch libjnigraphics.so to hash-style=both" 2015-05-08 21:17:09 +00:00
Dmitriy Ivanov
2e84bc6948 Switch libjnigraphics.so to hash-style=both
Bug: http://b/19059885
Change-Id: I15f70b434b1d450e5b62ca7c204c628e2dc9edcc
2015-05-08 21:07:29 +00:00
Chih-Hung Hsieh
bce4220c36 Fix print format error.
Change-Id: I284c5e9c44f6dd56a7bb6ff93a1a86cc8f2deefa
2015-05-08 11:05:12 -07:00
Yang Ni
496c07d754 Merge "Moved limit constants for kernel and script group" 2015-05-08 17:41:27 +00:00
tiger_huang
5b36c49aea Use the correct parent size to initialize animations
The original logic would use out-of-date parent sizes to initialize
animations. If the screen size is changed after assigning mAnimDw and
mAnimDh in the constructor of WindowStateAnimator, the fromDeltaY
(in the most cases) of TranslateAnimation would be initialized
incorrectly.

In this change, we always use up-to-date parent sizes to initialize
animations to prevent the issue.

https://code.google.com/p/android/issues/detail?id=170348

Change-Id: Ib9c609121228934bdb463263feb1924eb389c1d2
2015-05-08 13:08:47 +00:00
Miao Wang
809a7645e3 Merge "[RenderScript] Make L2 BLAS methods pulic field." 2015-05-08 00:58:03 +00:00
Miao Wang
6517eb635a [RenderScript] Make L2 BLAS methods pulic field.
Change-Id: Ia5f6a747c4998203f8155c67111aea70301af24a
2015-05-07 17:56:05 -07:00
Miao Wang
9a0d47d942 Merge "[RenderScript] typo fix in BLAS, TRMM & TSMM" 2015-05-07 23:29:46 +00:00
Miao Wang
ec155e5091 Merge "[RenderScript] typo fix in rs BLAS jni, to correctly handle complex params." 2015-05-07 23:29:18 +00:00
Miao Wang
b517a327ec Merge "[RenderScript] fix edges cases about Transpose for SYMM & SYR2K" 2015-05-07 23:28:37 +00:00
Miao Wang
ae546f9448 Merge "[RenderScript] L2 BLAS, fix element type in ZHER" 2015-05-07 23:28:13 +00:00
Miao Wang
2478bd52ac Merge "[RenderScript] fixes for L3 BLAS APIs" 2015-05-07 23:27:49 +00:00
Miao Wang
5380bd4c02 Merge "[RenderScript] improve & minor fixes of L2 BLAS validation." 2015-05-07 23:27:26 +00:00
Miao Wang
328919aeb5 [RenderScript] typo fix in BLAS, TRMM & TSMM
Change-Id: I78f014a864700369c7ccdfb46a257851a45abd7c
2015-05-07 15:53:30 -07:00
Miao Wang
e8cb7b32ac [RenderScript] typo fix in rs BLAS jni, to correctly handle complex
params.

Change-Id: Ie44f430dc7ed4155f40aa9f9c2864fb0429c97fe
2015-05-07 15:50:07 -07:00
Miao Wang
e1cf095071 [RenderScript] fix edges cases about Transpose for SYMM & SYR2K
Change-Id: Id86d5fe8475060a22f49b06b6e1f8f3eae7c7e9f
2015-05-07 15:48:04 -07:00