1. 17 Oct, 2012 1 commit
  2. 14 Sep, 2012 1 commit
  3. 11 Sep, 2012 2 commits
  4. 03 Sep, 2012 1 commit
    • Yameng Huang's avatar
      Make default value of auto-sync in SyncStorageEngine configurable · 2b5d0ea5
      Yameng Huang authored
      This will make the default value of the automatic synchronization
      in the SyncStorageEngine configurable with overlays for use by
      vendors who want or have legal requirements to have the synchronization
      off by default.
      
      Change-Id: Iabdb355c4a1169fe8e254e91c43e162c5913d5e0
      2b5d0ea5
  5. 02 Sep, 2012 1 commit
    • Jorge Ruesga's avatar
      SearchWidget: passing APP_DATA to voice intent · 1bcfe841
      Jorge Ruesga authored
      SearchView uses SearchManager.APP_DATA to pass data between the origin activity
      and the search activity. This works for text searches (keyboard), but it's not
      implemented by voice recognition searches. The method createVoiceAppSearchIntent
      initializes a empty bundle that is filled with the QUERY parameter.
      This patch adds the SearchManager.APP_DATA parameter if is present, let the
      search activity access to the data passed by the origin activity
      
      Patch 2: Fix code style
      
      Change-Id: I52dce34e1efd07a30ad74d52bfc60fbae1c4310b
      1bcfe841
  6. 31 Aug, 2012 1 commit
  7. 30 Aug, 2012 1 commit
  8. 29 Aug, 2012 2 commits
    • Michal Stawinski's avatar
      Fix SkBitmap::fPixels not being locked correctly · 35ef5671
      Michal Stawinski authored
      In some cases bitmap's pixels where freed during encoding, which
      caused a null pointer dereference.
      This fix makes sure that underlaying buffer is locked for the whole
      process of compression.
      
      Change-Id: I0ac56821f5d333072271dc2670fa30f1562adfa3
      35ef5671
    • Johan Redestig's avatar
      Make addAddress locale safe · 3cd42dfd
      Johan Redestig authored
      Using regular string concatenation to avoid unexpected
      results in some locales.
      
      Change-Id: I47dd5e174c4a2e88dc18e014002820cdbf63fcad
      3cd42dfd
  9. 27 Aug, 2012 1 commit
    • Steve Pomeroy's avatar
      Fixes relative time formatting issue for dates in future · ca336377
      Steve Pomeroy authored
      
      All variations of getRelativeTimeSpanString() now properly handle dates
      that are in the future. Prior, the version used by
      getRelativeDateTimeString() would occasionally show the time instead of
      a date when the future date was the same weekday as the current weekday.
      This resulted in the time output being duplicated, eg.: "11:23, 11:23"
      
      Change-Id: If20972a6942cce792fa233437f94dedfb71379f3
      Signed-off-by: default avatarSteve Pomeroy <steve@staticfree.info>
      ca336377
  10. 23 Aug, 2012 2 commits
    • Johan Rosengren's avatar
      Protecting more views from (bad) MotionEvents · 0dc291ee
      Johan Rosengren authored
      When handling MotionEvents, the method findPointerIndex can return -1
      if the current pointer id can't be translated to a pointer index.
      Some views are not handling this, which will lead to an out-of-
      index crash. In 2585e9bd there were checks added, this change adds
      some more.
      
      Change-Id: I93ce2420afd83a06b689a1ed35ead7d170cd68f1
      0dc291ee
    • Masanori Ogino's avatar
      fix wrong substring · 08bab56f
      Masanori Ogino authored
      The tokenOffsets is the offset from trimed contentLine.
      But it is used in substring as the offset from un-trimed contentLine.
      
      How to reproduce bug (ICS and before):
      1. Add a contact record with name and a phone number (ex. 090-1111-2222)
      2. Search by "0" in Contacts app
      3. Contacts shows a wrong number something like "0900111102222"
      
      Change-Id: I1e1cb2f3bd135d98e1573a50aa6ddc021af35b9f
      08bab56f
  11. 22 Aug, 2012 1 commit
    • Chih-Wei Huang's avatar
      Avoid system_server crashing due to mac address is null · 21326d8b
      Chih-Wei Huang authored
      It's possible that the mac address is null (getMacAddress() of WifiNative.java).
      In this case system_server will crash like:
      
      E AndroidRuntime: *** FATAL EXCEPTION IN SYSTEM PROCESS: WifiWatchdogStateMachine
      E AndroidRuntime: java.lang.NullPointerException
      E AndroidRuntime:        at android.net.arp.ArpPeer.<init>(ArpPeer.java:57)
      E AndroidRuntime:        at android.net.wifi.WifiWatchdogStateMachine.doArpTest(WifiWatchdogStateMachine.java:866)
      
      Check the mac address before parsing to avoid crashing.
      
      Change-Id: I5d4205c04d479a3a2837172c6382816ea4bf74d6
      21326d8b
  12. 20 Aug, 2012 1 commit
  13. 19 Aug, 2012 1 commit
    • Vairavan Srinivasan's avatar
      ActivityThread: Avoid creating duplicate handlers and reuse mH · 7335cfd9
      Vairavan Srinivasan authored
      sMainThreadHandler is used for notification of changes in
      SharedPreferences and refers to a new instance of Handler instead
      of the existing instance, mH, of the ActivityThread. Fix to reuse
      existing handlers associated with main looper.
      
      Change-Id: I794a5802a9eacdb188bd0619db5e70e3ae89a07d
      7335cfd9
  14. 17 Aug, 2012 2 commits
  15. 16 Aug, 2012 4 commits
    • Kenny Root's avatar
      Use Libcore's stat instead of FileUtils#getFileStatus · 98e15e78
      Kenny Root authored
      Remove the last user of FileUtils#getFileStatus and move it to
      Libcore.os.stat instead. Then we can remove the JNI code that does the
      equivalent of a stat.
      
      Change-Id: Ieb566a2a8a17c2dd0150724b4eb3ac1cc41c823d
      98e15e78
    • Kenny Root's avatar
      Use Libcore.os.stat instead of FileUtils · 786cbcac
      Kenny Root authored
      PackageManagerService just needed to know the owner for this file, so
      just use stat instead so we can remove the old JNI code.
      
      This is the last user of FileUtils#getPermissions so just remove the
      FileUtils method as well.
      
      Change-Id: I953057cd6b9de4410f33b6f22e4bddff02fe2988
      786cbcac
    • Kenny Root's avatar
      Remove StatFs from AndroidRuntime JNI · 89db6a40
      Kenny Root authored
      Change-Id: I88039794cf3e4a959b37c29c67f16f2dc0751a5c
      89db6a40
    • Kenny Root's avatar
      Use libcore Posix class for StatFs implementation · bdd23ae9
      Kenny Root authored
      Remove some JNI and duplicated functionality and use libcore's Posix
      class for the statfs function instead.
      
      Change-Id: Ic1e161dc10c18c2c6ee81d895a0efd8910086dbf
      bdd23ae9
  16. 14 Aug, 2012 1 commit
  17. 10 Aug, 2012 1 commit
    • Ali Utku Selen's avatar
      Change StringTokenizer to TextUtils.StringSplitter · 0a12018e
      Ali Utku Selen authored
      Replacing StringTokenizer to TextUtils.StringSplitter,
      since TextUtils.StringSplitter is more suitable for basic splitting tasks.
      Also increased initial values for HashMap and StringBuilders to avoid
      unnecessary buffer enlargement operations. This improves the performance
      of these operations.
      
      Change-Id: If9a5b68e6596ba9a6d29597876b6164ef34b57ac
      0a12018e
  18. 09 Aug, 2012 1 commit
  19. 07 Aug, 2012 1 commit
    • Scott Main's avatar
      docs: fix broken links · 40eee61e
      Scott Main authored
      and update sitemap text file
      
      Change-Id: I6982c3f029c46135ae856b8484d906c2882bad3a
      40eee61e
  20. 06 Aug, 2012 2 commits
    • Scott Main's avatar
      misc doc bugs. · 53b0fda5
      Scott Main authored
      Fix sdk samples path
      Fix method signature in fragment doc code snippet
      Fix typo in a11y javadoc  code snippet
      Fix markup error in brands page
      Fix markup error on content providers doc
      Fix typo on about>start page
      
      Change-Id: Ie2a528dd4fbd19e5cb1c0844f6fc6272669c8ab9
      53b0fda5
    • Chuanxia Dong's avatar
      StorageManager: fix issue that GREF has increased to 2011 in system server with intel stress test. · 6614bb65
      Chuanxia Dong authored
      
      Issue description:
      When run ICS stress test, always meet GREF issue. one of contributor is MountService$MountServiceBinderListener.
      log info
      19:21:11.609   222 24316 W dalvikvm:        24 of com.android.server.am.ActivityManagerService$AppDeathRecipient (24 unique instances)
      19:21:11.609   222 24316 W dalvikvm:       479 of com.android.server.MountService$MountServiceBinderListener (479 unique instances)
      19:21:11.619   222 24316 W dalvikvm:         7 of com.android.server.accessibility.AccessibilityManagerService$6 (7 unique instances)
      Note: PID 222 is system server.
      
      Issue alaysis:
      Everyone can call getSystemService(Context.STORAGE_SERVICE) to get service.
      When other service get StorageManager, StorageManager will new MountServiceBinderLister and
      register a listener in MountService, which won't be unregistered. It's easy to generate a lot of
      instance of unused MountService$MountServiceBinderListener in system server.
      
      Issue fix:
      So change the policy to be:
      1. Doesn't new MountServiceBinderLister in construction.
      2. when other service needs to register listener in StorageManager,
      StorageManager will register listener with MountService.
      3. When other service needs to unregister listener in StorageManager,
      if there is no more other listeners in StorageManager, StorageManager
      will unregister listener in MountService.
      
      Change-Id: Iaaf889f44a1a5f62b9f65b3ab1b486c9b7dcaf7f
      Author: Chuanxiao Dong <chuanxiao.dong@intel.com>
      Signed-off-by: default avatarBo Huang <bo.b.huang@intel.com>
      Signed-off-by: default avatarJack Ren <jack.ren@intel.com>
      Signed-off-by: default avatarBruce Beare  <bruce.j.beare@intel.com>
      6614bb65
  21. 01 Aug, 2012 1 commit
  22. 31 Jul, 2012 1 commit
    • Kenny Root's avatar
      Fix AccountManagerServiceTest · ae652cc9
      Kenny Root authored
      The MockAccountAuthenticatorCache needs to implement the new method.
      
      Bug: 6820670
      Change-Id: I5d1cb3aecec63602ae4541cd01ae8e28c8328e5a
      ae652cc9
  23. 30 Jul, 2012 3 commits
    • Kenny Root's avatar
      Delay AccountManagerService initialization · 26ff6626
      Kenny Root authored
      Since applications can have Account providers, they need to be delayed
      until after PackageManagerService says everything is mounted.
      Otherwise the accounts associated with that provider will be removed
      immediately when startup happens.
      
      Bug: 6820670
      Change-Id: Iba81765260421649f706624d0605a40ebc1347b1
      26ff6626
    • Nick Pelly's avatar
      DO NOT MERGE. Add package-name-prefix blacklist for location updates. · 48c5eb01
      Nick Pelly authored
      The Settings.Secure value locationPackagePrefixBlacklist and
      locationPackagePrefixWhitelist contains comma seperated package-name
      prefixes.
      
      Location & geo-fence updates are silently dropped if the receiving
      package name has a prefix on the blacklist. Status updates are
      not affected. All other API's work as before.
      
      A content observer is used so run-time updates to the blacklist
      apply immediately. There is both a blacklist and a whitelist.
      The blacklist applies first, and then exemptions are allowed
      from the whitelist. In other words, if your package name prefix
      matches both the black AND white list, then it is allowed.
      
      Change-Id: I4ea2ad56fa6bd75d32151bc250ac25c26a5777c4
      48c5eb01
    • Andreas Röhl's avatar
      Fix SurfaceView notifies on invalid surfaces. · f750b8ce
      Andreas Röhl authored
      SurfaceView notifies registered callbacks on invalid
      Surfaces.
      
      Change-Id: Iddc9a5cd073fb73a0e7e9b9ca64ff4fac0777ca7
      f750b8ce
  24. 29 Jul, 2012 1 commit
    • Jake Wharton's avatar
      Return early when checking divider before child zero. · 825992f5
      Jake Wharton authored
      Previously the `getChildAt` method would be called with an index of -1 which
      would lead to an exception being thrown and caught. This is unnecessary since
      we know there will never be a divider before the first child. It also avoids
      additional object creation since this method can be invoked quite frequently.
      
      Change-Id: Iab44520d5d52f96a829a009cdd1201696edbf9a4
      825992f5
  25. 27 Jul, 2012 3 commits
  26. 26 Jul, 2012 2 commits
  27. 25 Jul, 2012 1 commit