4601 Commits

Author SHA1 Message Date
Svetoslav Ganov
2e9e02fd33 Merge "Sync of the NumberPicker attributes with the public Java APIs" 2012-03-02 15:33:33 -08:00
Svetoslav Ganov
72d403ce35 Merge "Sync of the TimePicker attributes with the public Java APIs." 2012-03-02 15:33:20 -08:00
Svetoslav Ganov
e8331bd2e7 Sync of the NumberPicker attributes with the public Java APIs
1. Renamed some attributes to not overlap with already public
   ones since they are not dedicated for external use.

bug:6094713
bug:6104108

Change-Id: Iab8a906680ebcaa91f020ffbf55cf603a1071437
2012-03-02 15:15:38 -08:00
Svetoslav Ganov
53b948d3ae Sync of the TimePicker attributes with the public Java APIs.
1. Renamed an attribute which is not mean to be public so
   its name is not the same as that of an already public one.

bug:6094713

Change-Id: I3f8b3f3840b88265069d3474be7db04056d219c1
2012-03-02 14:58:12 -08:00
Svetoslav Ganov
3ee7ce2be3 Merge "Fixing the build for real." 2012-03-02 14:57:42 -08:00
Svetoslav Ganov
4b3cdbb2cf Fixing the build for real.
Change-Id: I6400e599cdf0d2e94d3ac024b9b32de55b1e3760
2012-03-02 14:56:27 -08:00
Svetoslav Ganov
cbed96ae47 Merge "Fixing the build" 2012-03-02 14:45:58 -08:00
Svetoslav Ganov
56232eb14a Fixing the build
Change-Id: Idfb7092dbc707d7626191294f10c9f4d382b2796
2012-03-02 14:43:19 -08:00
Svetoslav Ganov
d56ab1e3a1 Merge "Sync of the DatePicker attributes with the public Java APIs." 2012-03-02 14:03:16 -08:00
Svetoslav Ganov
c49a8be0d2 Sync of the DatePicker attributes with the public Java APIs.
1. Deprecated two old attributes.

2. Renamed an attribute which is not mean to be public so
   its name is not the same as that of an already public one.

bug:6094713

Change-Id: I577a9e191cbd05cd18cb34105dcdbe53c0a5dd1e
2012-03-02 13:39:29 -08:00
Svetoslav Ganov
45e96fd28a Merge "Adding getter/setter for all public attributes in CalendarView." 2012-03-02 13:12:22 -08:00
Jeff Brown
8dc3cc2e13 Allow the SQLite sync mode to be set independently for WAL.
This change leaves the sync mode at FULL for both WAL and non-WAL
but makes it easy to change it for one but not the other.

To reduce the number of synchronous writes, it might make sense to
change the sync mode for non-WAL to NORMAL instead of FULL which
should be just as safe.

On the other hand, the sync mode for WAL should probably remain FULL
because there may be an impact on transaction durability otherwise.

Initial experiments show that there might not be a significant
performance benefit to using NORMAL, but we may revisit this later.

Change-Id: Ifcd55bedcfefa6600974c2295ca5d4163b408cbf
2012-03-02 11:17:16 -08:00
Jeff Brown
24dc6aa03e Change default journal mode to PERSIST.
Change-Id: I5a72ede093be3ea0f7445df970051ae153f57fed
2012-03-02 11:17:16 -08:00
Jeff Brown
db3c6b8c0d Merge "Adjust WAL checkpoint interval." 2012-03-02 11:15:28 -08:00
Svetoslav Ganov
ff37505cb1 Adding getter/setter for all public attributes in CalendarView.
bug:6094713

Change-Id: Iff4a1d903d597ae8a3d74a4e4734376acca417f3
2012-03-01 21:31:34 -08:00
Jeff Brown
b7f2736e78 Adjust WAL checkpoint interval.
Currently the auto-checkpoint interval is 1 page, which makes poor
use of WAL and causes additional unnecessary synchronous writes to
the main database file.

Set the checkpoint interval to 100 pages to make better use of WAL
while still avoiding long checkpoint pauses.

Change-Id: Id54ac02406613bb9379d2116d51947de1d7a489c
2012-03-01 19:56:53 -08:00
Fabrice Di Meglio
98aec1c7ef Make layoutDirection API public
Change-Id: Ie125513e4ea72b33b42355dbc43f9b9b6d46d7eb
2012-03-01 16:21:55 -08:00
Jeff Brown
5936ff097e Externalize more SQLite configuration options.
Moved more configuration into config.xml so we can tweak settings
like the default journal mode, WAL auto-checkpoint interval and
so on.

This change itself should not introduce any functional differences.

Change-Id: Id6c95fa25b116ce47e8ae49cd8a80d52b1c0dd80
2012-02-29 21:03:20 -08:00
Adam Powell
b5d3dd2cd5 Merge "Fix simple_list_item_multiple_choice to use correct size and spacing." 2012-02-29 14:26:24 -08:00
Adam Powell
f7dbb510e6 Fix simple_list_item_multiple_choice to use correct size and spacing.
Change-Id: Ie9e3dd7ec10980a4411e60b93f778bb4863cbd3c
2012-02-29 14:21:19 -08:00
Christopher Tate
8662cab5c6 Merge: Introduce UpdateLocks
An "UpdateLock" works similarly to a wake lock in API: the caller is
providing a hint to the OS that now is not a good time to interrupt
the user/device in order to do intrusive work like applying OTAs.
This is particularly important for headless or kiosk-like products
where ordinarily the update process will be automatically scheduled
and proceed without user or administrator intervention.

UpdateLocks require that the caller hold the new signatureOrSystem
permission android.permission.UPDATE_LOCK.  acquire() and release()
will throw security exceptions if this is not the case.

The "is now convenient?" state is expressed to interested parties
by way of a sticky broadcast sent only to registered listeners.  The
broadcast is protected; only the system can send it, so listeners
can trust it to be accurate.  The broadcast intent also includes a
timestamp (System.currentTimeMillis()) to help inform listeners that
wish to implement scheduling policies based on when the device became
idle.

The API change here is a tiny one: a dump(PrintWriter) method has been
added to the TokenWatcher class to facilitate getting information out
of it for dumpsys purposes.  UpdateLock itself is still @hide.

Bug 5543442

Change-Id: I3709c831fc1883d7cb753cd2d3ee8e10a61e7e48
2012-02-29 14:05:24 -08:00
Eric Fischer
4cfa5ec14c Import translations. DO NOT MERGE
Change-Id: Ia71bba63b3c0789908cd7f33cbbacd71aeab3f30
2012-02-29 13:15:31 -08:00
Michael Jurka
a267f0a707 Merge "Add shortcut for voice search" 2012-02-28 14:40:33 -08:00
Michael Jurka
7a3489552c Add shortcut for voice search
On phones with soft nav bar, make long press on
home launch a voice search intent

Change-Id: I69840a96a08524a76e33a306b799222c879db095
2012-02-28 14:37:35 -08:00
Eric Fischer
cb4c17d27a Merge "Import translations. DO NOT MERGE" 2012-02-28 13:55:24 -08:00
Eric Fischer
604a7d4e26 Import translations. DO NOT MERGE
Change-Id: If4aaaf59012a1e6b799e3020a98f6f71117d5895
2012-02-28 12:13:13 -08:00
Svetoslav Ganov
69db4df487 am 0c96daa5: am 0c7ffac4: am a2b41b43: NumberPicker showing IME when its input field gains focus.
* commit '0c96daa5d5a1ef778ad1ef4619ef1fa4c30519c6':
  NumberPicker showing IME when its input field  gains focus.
2012-02-28 10:41:42 -08:00
Svetoslav Ganov
a2b41b438d NumberPicker showing IME when its input field gains focus.
1. The NumberPicker was showing the IME if the input field
   gets focus and hiding it when the the arrows are pressed.
   The leads to a nasty behavior when the input is the first
   focusable and the uses presser an arrow button. In such
   a case the IME shows and hides on every arrow press pushing
   the window content up and down - this looks pretty ugly.
   Now the IME is show on double tap of the input field.

2. The NumberPicker input now by default has an IME action
   done, hence after editing it the IME goes away.

3. The NumberPicker input now clears focus when it gets
   IME action done, so the last picker in a sequence
   does not show selection which is focus driven.

4. NumberPicker was incorrectly detecting double tap to
   begin edit and it was possble to start edit on singe tap
   if the user has double tapped before to start an edit.
   Now double tap detection is using the double tap timeout
   correctly.

bug:6071977

Change-Id: I0ff5a491064e51663b3abec675d839d0a65b986a
2012-02-27 17:32:54 -08:00
Eric Fischer
6c3a226f33 Import translations. DO NOT MERGE
Change-Id: I947afb66b1299b0b69a3602f55f0da746f7658e1
2012-02-27 14:43:17 -08:00
Eric Fischer
7fbedadb62 Merge "Import translations. DO NOT MERGE" 2012-02-25 19:34:19 -08:00
Dianne Hackborn
5265466e8a Merge "New development permissions." 2012-02-24 18:40:37 -08:00
Eric Fischer
2db8d82ebf Import translations. DO NOT MERGE
Change-Id: I2c3594ab6bee0ee334f98c0c403a3de295b8fa05
2012-02-24 12:42:07 -08:00
Dianne Hackborn
e639da7baa New development permissions.
These are permissions that an application can request, but won't
normally be granted.  To have the permission granted, the user
must explicitly do so through a new "adb shell pm grant" command.

I put these permissions in the "development tools" permission
group.  Looking at the stuff there, I think all of the permissions
we already had in that group should be turned to development
permissions; I don't think any of them are protecting public APIs,
and they are really not things normal applications should use.

The support this, the protectionLevel of a permission has been
modified to consist of a base protection type with additional
flags.  The signatureOrSystem permission has thus been converted
to a signature base type with a new "system" flag; you can use
"system" and/or "dangerous" flags with signature permissions as
desired.

The permissions UI has been updated to understand these new types
of permissions and know when to display them.  Along with doing
that, it also now shows you which permissions are new when updating
an existing application.

This also starts laying the ground-work for "optional" permissions
(which development permissions are a certain specialized form of).
Completing that work requires some more features in the package
manager to understand generic optional permissions (having a
facility to not apply them when installing), along with the
appropriate UI for the app and user to manage those permissions.

Change-Id: I6571785c6bb5f6b291862b7a9be584885f88f3a5
2012-02-23 16:39:15 -08:00
Eric Fischer
b442eca2b1 Merge "Import translations. DO NOT MERGE" 2012-02-23 13:17:10 -08:00
Eric Fischer
6c89da2963 Import translations. DO NOT MERGE
Change-Id: I49ba9b62c775d42d0f785a54d7c575bd93380a85
2012-02-23 13:14:21 -08:00
Dianne Hackborn
c42067d7d7 Merge "Fix issue #6049410: 3rd party app crashing in JB: Uber" 2012-02-23 10:45:11 -08:00
Dianne Hackborn
81873e95de Fix issue #6049410: 3rd party app crashing in JB: Uber
Change-Id: Ie3f8c91a2c0fdd5a80824fe2fa7da2afd2913174
2012-02-23 10:25:35 -08:00
Gilles Debunne
a172b6e969 Merge "Updated min/maxLines and singleLine documentation" 2012-02-23 09:26:25 -08:00
Gilles Debunne
0b5a6b2e8a Merge "Fixed comment for selectAllOnFocus" 2012-02-22 18:27:27 -08:00
Gilles Debunne
e58b7f45ec Fixed comment for selectAllOnFocus
Pre-focusable in touch mode ? cursor moves to tapped position.
or previous position when using d-pad/keyboard.

Change-Id: Iac725ff233bfeac2dc14e870118047a9a8418ff9
2012-02-22 18:26:04 -08:00
Gilles Debunne
e35a07050d Updated min/maxLines and singleLine documentation
Bug http://code.google.com/p/android/issues/detail?id=24891

Change-Id: I0b35d2e0583f285f38e14e43563433433a8984d1
2012-02-22 18:24:17 -08:00
George Mount
7bc111cc9d Add caret thumb following selection handle logic.
Webkit Change: I3cb0499c5fa3a7de241025d9be04ff44f54f2a74

Change-Id: I669653ca6890fe1136fdd42e24f4c3a34c00d1e4
2012-02-22 15:13:19 -08:00
Eric Fischer
8f8bcc26c7 Import translations. DO NOT MERGE
Change-Id: I5f20bf25b80b45f83abf272590b6557d6d858001
2012-02-22 13:09:01 -08:00
Eric Fischer
8b265be10e Merge "Import translations. DO NOT MERGE" 2012-02-22 09:34:09 -08:00
Nicolas Roard
7852022bf2 Merge "Simplify Youtube <embed> management" 2012-02-21 16:06:36 -08:00
Nicolas Roard
4d49c7f04a Simplify Youtube <embed> management
When we encounter youtube <embed> objects, we replace them on the fly
with an element that will redirect to the youtube application.
Currently, this element is a canvas, that we add to the document wrapped
into a Frame. This cause some problems when we switch to have canvas
elements on their own individual layer (which drastically improves
performances). Note that we do support correctly composited layers
into frameset/iframes on normal websites, the problems we see here
are due to us creating the frame on the fly, messing with webkit's
compositing logic.
This CL rewrite the HTML code we insert to not use canvas and instead
use normal html elements positioned via CSS. This work around the
composited canvas issue as well as simplifying the code.

Change-Id: Ie6043f9445e8bc191b229db9f9ff5de192d8b5db
2012-02-21 16:00:42 -08:00
Adam Powell
40eec4c0f1 Fix the size of DialogWhenLarge windows
Change-Id: I8c9588e958d8fb9c45b1cdb235cced48ba508dd3
2012-02-21 15:32:26 -08:00
Eric Fischer
2b63030618 Import translations. DO NOT MERGE
Change-Id: Ie1adb396f430b35e41976d4b7196d54d32500411
2012-02-21 13:14:06 -08:00
Eric Fischer
bd9c5f7687 Import translations.
Change-Id: Ibe6f792ad6e88dfbfd6d523dfe4f24e8e93f4066
2012-02-17 12:15:19 -08:00
Eric Fischer
bfa6291dc4 Merge "Import translations." 2012-02-16 21:10:27 -08:00