153218 Commits

Author SHA1 Message Date
Deepanshu Gupta
17a6170c62 Fix AnalogClock rendering
1. Change calls to java.lang.System.log* since they don't exist on the
host.
2. Clean up method rewrite mechanism in ReplaceMethodCallsAdapter.
3. Stub out creation of uninitialized GregorianCalendar.
4. Memory map the time zone data base file and provide a custom
implementation of BufferIterator for use by ZoneInfoDB
5. Delete unused Time_Delegate

Also fixed a comment in BridgeAssetManager and an error message in
FontFamily_Delegate.

Bug: http://b.android.com/79160
Change-Id: Iae5ef65678f0e6c7c5af520c45bd15980ce3fa55
2014-11-26 12:03:39 +00:00
Scott Main
5a27b4b821 am fc793074: Merge "docs:advmgr-updates" into lmp-docs
* commit 'fc793074063ee40b0bc4b4cbf710802123f84251':
  docs:advmgr-updates
2014-11-26 03:19:30 +00:00
Scott Main
fc79307406 Merge "docs:advmgr-updates" into lmp-docs 2014-11-26 03:13:27 +00:00
smain@google.com
d3c172703d am 3a4b011c: define height for context images to avoid content jumps on load
* commit '3a4b011c9e4260ec34b490368ccf19edb3a0b5fe':
  define height for context images to avoid content jumps on load
2014-11-26 02:22:44 +00:00
smain@google.com
3a4b011c9e define height for context images to avoid content jumps on load
Change-Id: I95fb6d628f8be12c31c0b7fa2978dd266f72dbf6
2014-11-25 18:05:39 -08:00
Dianne Hackborn
a42f7c1d42 Merge "Be increasingly aggressive about fstrim if it isn't being run" into lmp-dev 2014-11-26 01:32:54 +00:00
Rich Slogar
0ed88b9a2e docs:advmgr-updates
Change-Id: I4895f8dc91d0397a615a358d97cbd229b171f507
2014-11-25 16:40:28 -08:00
Christopher Tate
7265abe77a Be increasingly aggressive about fstrim if it isn't being run
The current heuristics depend on devices being alive at midnight+ in
order to run periodic background fstrim operations.  This unfortunately
means that people who routinely turn their devices off overnight wind
up with their devices *never* running fstrim, and this causes major
performance and disk-life problems.

We now backstop this very-friendly schedule with an increasingly
aggressive one.  If the device goes a defined time without a background
fstrim, we then force the fstrim at the next reboot.  Once the
device hits the midnight+ idle fstrim request time, then we already
aggressively attempt to fstrim at the first available moment
thereafter, even if it's days/weeks later without a reboot.

'Available' here means charging + device idle.  If the device never
becomes idle then we can't do much without rendering an in-use device
inoperable for some number of minutes -- but we have no evidence of
devices ever failing to run fstrim due to this usage pattern.

A new Settings.Global element (type 'long', called
"fstrim_mandatory_interval") is the source of the backstop time.  If
this element is zero or negative, no mandatory boot-time fstrim will
ever be performed.  If the element is not supplied on a given device,
the default backstop is 3 days.

Adds a new string to display in the upgrading dialog when doing
the fstrim.  Note it is too late for this to be localized, but since
this operation can take a long time it is probably better to have
it show *something* even if not localized, rather than just sit there.

Bug 18486922

Change-Id: I5b265ca0a65570fb8931251aa1ac37b530635a2c
2014-11-25 16:35:06 -08:00
smain@google.com
59f4624a37 am be718f7c: Merge "add wear design guide for contextual apps" into lmp-docs
* commit 'be718f7cebd3e09eaa2a432d044a8305dc7b8428':
  add wear design guide for contextual apps
2014-11-26 00:26:15 +00:00
smain@google.com
be718f7ceb Merge "add wear design guide for contextual apps" into lmp-docs 2014-11-26 00:18:59 +00:00
smain@google.com
98ee16c52a add wear design guide for contextual apps
Change-Id: I2c5709f02352def34c5c6a0c7dcf7193ebd58e4f
2014-11-25 16:12:48 -08:00
padarshr
1586b9c33e Start MountService before performBootDexOpt
This change is to start Mountservice before starting
performBootDexOpt, as in one case, in performBootDexOpt
when system upgrade happens, StorageManager will be started to
get the low threshold of DataDir. But, at this point, as
Mountservice is still not up, StorageManager will end up
having a null object of Mountservice.

Change-Id: If2b5e1b58e7d2a72c6313f196e98a68738295ec6
2014-11-25 15:30:02 -08:00
Natalie Masse
d7c7d275e7 am 77283ec9: Merge "Fixed NullPointerException due to null Bundle, changed time interval from ms to seconds as per method documentation" into lmp-docs
* commit '77283ec981fc022cd26ced1e44ad21cdc0b2e4ae':
  Fixed NullPointerException due to null Bundle, changed time interval from ms to seconds as per method documentation
2014-11-25 11:10:09 +00:00
Natalie Masse
77283ec981 Merge "Fixed NullPointerException due to null Bundle, changed time interval from ms to seconds as per method documentation" into lmp-docs 2014-11-25 11:05:52 +00:00
Dirk Dougherty
14e40f042f am fd117ff2: Doc change: zh-cn translation of Android L overviews. cherrypick from I56d1ce58e10b83d10d0077cc9dfbeb04f090b861
* commit 'fd117ff2a4a8edd570ccaedd0cd769613ad4ef74':
  Doc change: zh-cn translation of Android L overviews. cherrypick from  I56d1ce58e10b83d10d0077cc9dfbeb04f090b861
2014-11-25 02:20:36 +00:00
Dirk Dougherty
fd117ff2a4 Doc change: zh-cn translation of Android L overviews.
cherrypick from  I56d1ce58e10b83d10d0077cc9dfbeb04f090b861

Change-Id: Ic02b747917b11a88c2adf38a73c046dc32af6ce9
2014-11-24 17:39:14 -08:00
David Friedman
6c4c8c57fe Updates GMSCore docs to reflect ability to selectively include APIs
Bug 16679117

Change-Id: Idb5df2869129972a8834118047dfcd23e5140847
2014-11-24 14:11:50 -08:00
smain@google.com
5f3ba99376 am 1b23ee96: Merge "add intro videos (w/ shadowbox) to Auto and Wear landing pages." into lmp-docs
* commit '1b23ee962a1ce0963537810724b2be61c0ab8c57':
  add intro videos (w/ shadowbox) to Auto and Wear landing pages.
2014-11-24 18:55:57 +00:00
smain@google.com
1b23ee962a Merge "add intro videos (w/ shadowbox) to Auto and Wear landing pages." into lmp-docs 2014-11-24 18:51:03 +00:00
Natalie Masse
e24908e342 Fixed NullPointerException due to null Bundle, changed time interval from ms to seconds as per method documentation
Change-Id: Ie433d4bfd7ac7fd2e524a201497c250a7aede47d
2014-11-24 18:38:00 +00:00
smain@google.com
43eabc8f13 add intro videos (w/ shadowbox) to Auto and Wear landing pages.
Change-Id: Ieb730416b7a469c7cbd0e80d1e9f74f14a7adb70
2014-11-24 09:25:00 -08:00
Joe Fernandez
9034ead0ba am 5b94d00b: docs: URGENT Removing Chinese Lollipop translations, fixing zh-cn resources
* commit '5b94d00b896b2bbc71a0c925e92e8c7e08978975':
  docs: URGENT Removing Chinese Lollipop translations, fixing zh-cn resources
2014-11-21 20:32:03 +00:00
Joe Fernandez
5b94d00b89 docs: URGENT Removing Chinese Lollipop translations, fixing zh-cn resources
- Chinese pages are showing Japanese (not good)
- Chinese resource page is not rendering because of bad video links

Change-Id: Ia4508c2db85b9cbd5bdad34ae8bedc411df98360
2014-11-21 20:27:13 +00:00
Scott Rowe
02cb1fe6c4 am 14f78ed7: Merge "docs: b/17996176 [DAC-review-bug] Update Hardware Accelerated Table to API 21 Change-Id: I3bb972cc1defd3e6fa6295664e41311b85698f31" into lmp-docs
* commit '14f78ed7b8c374017fa37f29cfed2208a072ea28':
  docs: b/17996176 [DAC-review-bug] Update Hardware Accelerated Table to API 21 Change-Id: I3bb972cc1defd3e6fa6295664e41311b85698f31
2014-11-21 17:41:06 +00:00
Scott Rowe
14f78ed7b8 Merge "docs: b/17996176 [DAC-review-bug] Update Hardware Accelerated Table to API 21 Change-Id: I3bb972cc1defd3e6fa6295664e41311b85698f31" into lmp-docs 2014-11-21 17:34:29 +00:00
Geoffrey Borggaard
c3f5d7183a Merge "Fix null handling in proxies." into lmp-dev 2014-11-20 20:55:26 +00:00
Ricardo Cervera
e9b5dfc058 am 25bf00bc: docs: Fixes to the Data Layer Wear class.
* commit '25bf00bceed5b22f8750e68a45beb944a80773a8':
  docs: Fixes to the Data Layer Wear class.
2014-11-20 19:56:11 +00:00
Ricardo Cervera
25bf00bcee docs: Fixes to the Data Layer Wear class.
Bug: 17917638
Bug: 17917145
Bug: 17931937
Bug: 17933032
Bug: 16899307

Change-Id: Iee9fd0a44cd40b9860cf242cbdaabac409882a15
(cherry picked from commit eff209d2c40221d2f9be2fd6b0c9cde51dd5362b)
2014-11-20 19:51:25 +00:00
Ricardo Cervera
c8543b4f46 Merge "docs: Fixes to the Data Layer Wear class." into lmp-dev 2014-11-20 19:49:53 +00:00
Geoffrey Borggaard
79adc958e5 Fix null handling in proxies.
ProxyInfo.getPacFileUrl() can not be null.  It will be equal to
Uri.EMPTY.  Checking for null was causing global proxies to never be
disabled.  Or more accurately, global proxies would be disabled, but
would reappear after a reboot.

ProxyInfo.getExclusionListByString() can be null.  If no
exclusion list was specified, the proxy settings would not be
successfully saved, they would disappear after reboot.

Bug: 18453223
Change-Id: I1c27e5dca5b9664bb7468ea909bff489fa110a07
2014-11-20 19:48:20 +00:00
Deepanshu Gupta
cb09bc45c5 Fix typos in previous bugfixes.
The commits 2c9fbdd and 12b6d29 introduced minor bugs. This change fixes
them.
2014-11-20 13:35:47 +00:00
Andrew Solovay
c79173c7da am 05282133: Merge "docs: Bugfix & minor cleanup for "Providing Messaging for Auto"" into lmp-docs
* commit '05282133c7491fd2b5e8f3da05408ff0165df526':
  docs: Bugfix & minor cleanup for "Providing Messaging for Auto"
2014-11-20 01:32:30 +00:00
Andrew Solovay
05282133c7 Merge "docs: Bugfix & minor cleanup for "Providing Messaging for Auto"" into lmp-docs 2014-11-20 01:27:51 +00:00
Elliott Hughes
03c80408d2 am 6c43e6b5: Fix and be more explicit about plurals best practices.
* commit '6c43e6b54d7d540e579d2dff8c9cff981cb5ca4a':
  Fix and be more explicit about plurals best practices.
2014-11-20 01:21:40 +00:00
Elliott Hughes
6c43e6b54d Fix and be more explicit about plurals best practices.
The "one" case should always include %d. Say so, and fix our examples.
Also make it clear that developers should always provide exactly "one"
and "other".

Bug: 18429565

(cherry picked from commit 1fe7d496db1ddc73289e6aae11f4dd4a970141d5)

Change-Id: I89656c74b7dfd91584e1bb6d0a3f2da1dda81079
2014-11-19 16:38:39 -08:00
Dirk Dougherty
ef629f1f9f am a79acc03: Doc change: localized content.
* commit 'a79acc0315d33080527b9fb48ba063fb4104de37':
  Doc change: localized content.
2014-11-20 00:02:06 +00:00
Dirk Dougherty
a79acc0315 Doc change: localized content.
Change-Id: I5440fe8d6003bdd8e3cb4c44bacea422f322c33b
2014-11-19 23:44:05 +00:00
smain@google.com
555d6e700a am 2411fe88: Merge "add the helpouts widget and necessary tags to "wave 2" of the Getting Started classes" into lmp-docs
* commit '2411fe88d7b11f628e5338bd8f314c98a9d45bb4':
  add the helpouts widget and necessary tags to "wave 2" of the Getting Started classes
2014-11-19 23:10:06 +00:00
smain@google.com
2411fe88d7 Merge "add the helpouts widget and necessary tags to "wave 2" of the Getting Started classes" into lmp-docs 2014-11-19 23:06:27 +00:00
Quddus Chong
8428c114ab am 9b822b96: docs: Added link to CarExtender class from Auto Getting Started doc.
* commit '9b822b96aaf16ac4ad8e5a1c8da998fba2f3f404':
  docs: Added link to CarExtender class from Auto Getting Started doc.
2014-11-19 22:58:30 +00:00
Andrew Solovay
9ab79ccd34 docs: Bugfix & minor cleanup for "Providing Messaging for Auto"
Fixeds the gradle dependency line. Also added in Javadoc links for the
various support classes and methods, and other minor cleanup. See
first comment for doc stage location.

bug: 18439090

Change-Id: I7ccc892f38a644d68abc6d56d8d4377df5f864b0
2014-11-19 14:48:52 -08:00
Deepanshu Gupta
4104abf875 Merge "Fix setTextAppearance for styles with dots." into lmp-dev 2014-11-19 22:30:20 +00:00
Deepanshu Gupta
455654cffd Merge "LayoutLib: Stub AM/PM keycodes in Time Picker." into lmp-dev 2014-11-19 22:29:54 +00:00
Geoffrey Borggaard
e4590cff5b Merge "Setting ADB_ENABLED may result in a SecurityException." into lmp-dev 2014-11-19 19:56:48 +00:00
Quddus Chong
9b822b96aa docs: Added link to CarExtender class from Auto Getting Started doc.
Change-Id: Ia446c969a7108d8964c22958cd501b083a84b9d3
2014-11-19 11:37:18 -08:00
Geoffrey Borggaard
ba45b96a37 Setting ADB_ENABLED may result in a SecurityException.
If the restriction UserManager.DISALLOW_DEBUGGING_FEATURES is enforced,
then any attempt to set ADB_ENABLED will result in a SecurityException.
This can result in the device not being able to boot.
Bug: 18433477

Change-Id: I21e4b406ad0fa89b7d4b678eac1baf212a3c7acd
2014-11-19 14:26:08 -05:00
xinhe
046f3843f1 Merge "Add configuration to control converting sms destination number" into lmp-dev 2014-11-19 17:47:25 +00:00
xinhe
67def72d05 Add configuration to control converting sms destination number
Romove hard codes about the SimcardOperatorList and NetworkOperatorList.

Bug: 18081228
Change-Id: I0d96972c6097325634413137bfbdb5a246885276
2014-11-18 17:09:54 -08:00
Ricardo Cervera
e9fddfd802 am 0d18b091: Merge "docs: Add link to "Voice search in your app" video." into lmp-docs
* commit '0d18b091eb5bb5be6f7142821b674e1648158a11':
  docs: Add link to "Voice search in your app" video.
2014-11-18 23:21:29 +00:00
Ricardo Cervera
0d18b091eb Merge "docs: Add link to "Voice search in your app" video." into lmp-docs 2014-11-18 23:16:22 +00:00