Commit Graph

121 Commits

Author SHA1 Message Date
Android (Google) Code Review
cad616ff92 am 97dd7ac8: Merge change 1860 into donut
Merge commit '97dd7ac8ede4eec057977dd579f236519782be7c'

* commit '97dd7ac8ede4eec057977dd579f236519782be7c':
  ActivityManagerService sends bug reports on crashes and ANRs
2009-05-20 08:54:40 -07:00
Dianne Hackborn
0bcad89a58 am 95fc68f2: Fix issue where apps could prevent the user from going home.
Merge commit '95fc68f24a2a93e5664e2234abcfe479d385cc05'

* commit '95fc68f24a2a93e5664e2234abcfe479d385cc05':
  Fix issue where apps could prevent the user from going home.
2009-05-20 08:54:33 -07:00
Jacek Surazski
f5b9c72022 ActivityManagerService sends bug reports on crashes and ANRs
If an installerPackageName was specified when the app was installed,
looks for a receiver of ACTION_APP_ERROR in that package. If found,
this is the bug report receiver and the crash/ANR dialog will get a
"Report" button. If pressed, a bug report will be delivered.
2009-05-20 10:52:04 +02:00
Dianne Hackborn
95fc68f24a Fix issue where apps could prevent the user from going home.
Now we have a 5-second time after home is pressed, during which
only the home app (and the status bar) can switch to another app.
After that time, any start activity requests that occurred will
be executed, to allow things like alarms to be displayed.  Also
if during that time the user launches another app, the pending
starts will be executed without resuming their activities and
the one they started placed at the top and executed.
2009-05-19 18:46:53 -07:00
Eric Fischer
d2146d4a7c resolved conflicts w/ 5bd644caf7 merge.... 2009-05-15 11:38:38 -07:00
Eric Fischer
5bd644caf7 Start using CLDR for some date-and-time strings and formats.
Use java.text.DateFormat where possible, since that is already using
the CLDR data for the things it supports.  Remove an unused date format
object from DatePickerDialog.

Add a new method for getting the standalone month names from applications,
although @hidden for now because it is an API change.

Pass the standalone month names down to native code in Time so that
tztime's strftime() can use them.

And then the bulk of the change: replace all the names for the months
and the days of the week, and AM and PM, and yesterday, today, and tomorrow,
with strings from CLDR.  And replace several of the date format strings
with ones derived from CLDR, but reformatted to use strftime() style
instead of SimpleDateFormat style.

All these resource changes go into new donottranslate-cldr.xml files
and are removed from strings.xml so that they aren't part of the
normal translation process and the translators don't have to bother
with them (and risk messing them up).
2009-05-15 10:15:50 -07:00
Mihai Preda
dd6face5a6 am eae850ce: Allow intent resolution to be constrained by package name.
Merge commit 'eae850cefe7e149f396c9e8ca1f34ec02b20a3f0'

* commit 'eae850cefe7e149f396c9e8ca1f34ec02b20a3f0':
  Allow intent resolution to be constrained by package name.
2009-05-15 07:06:46 -07:00
Mihai Preda
eae850cefe Allow intent resolution to be constrained by package name. 2009-05-15 12:32:07 +02:00
svetoslavganov
76879bc234 resolved conflicts w/ 75986cf9bc merge.... 2009-05-15 00:44:45 -07:00
svetoslavganov
75986cf9bc Accessibility feature - framework changes (replacing 698, 699, 700, 701 and merging with the latest Donut) 2009-05-14 23:47:05 -07:00
Marco Nelissen
679bfc1773 am 1746d6fe: Fix a bug that findbugs found
Merge commit '1746d6fefcb1b4869f475a81f5aec35db4695603'

* commit '1746d6fefcb1b4869f475a81f5aec35db4695603':
  Fix a bug that findbugs found
2009-05-14 14:53:36 -07:00
Marco Nelissen
1746d6fefc Fix a bug that findbugs found 2009-05-14 13:31:26 -07:00
Android (Google) Code Review
d032b40292 am 6063a9c: Merge change 1491 into donut
Merge commit '6063a9c9ee91a647680653a4520dfcad83985592'

* commit '6063a9c9ee91a647680653a4520dfcad83985592':
  Make pressing the search button within an app that does not support
2009-05-13 14:29:12 -07:00
Android (Google) Code Review
6063a9c9ee Merge change 1491 into donut
* changes:
  Make pressing the search button within an app that does not support search bring up global search. This still respects the case where an app has chosen to disable search entirely by overriding onSearchRequested() to return false.
2009-05-13 14:26:45 -07:00
Mike LeBeau
a59d7b0f2f Make pressing the search button within an app that does not support
search bring up global search. This still respects the case where an
app has chosen to disable search entirely by overriding
onSearchRequested() to return false.

I do not believe any changes to the SearchManager documentation
(http://developer.android.com/reference/android/app/SearchManager.html#HowSearchIsInvoked)
are necessary, because this documentation already indicates that
pressing the search button within an app that does nothing special with
regard to search can bring up global search.
2009-05-12 15:30:37 -07:00
Jacek Surazski
c64322c352 PackageManager keeps track of who installed what.
Stores the package name of the installer app in packages.xml
2009-05-12 23:16:20 +02:00
Android (Google) Code Review
7378637dd3 am 7813767: Merge change 1441 into donut
Merge commit '7813767b3ab2a0db3847ef62274b51a3d394a5e8'

* commit '7813767b3ab2a0db3847ef62274b51a3d394a5e8':
  removing log message checked in by acccident.
2009-05-12 10:10:01 -07:00
Jacek Surazski
65e13171e1 PackageManager keeps track of who installed what.
Stores the package name of the installer app in packages.xml
2009-05-12 10:48:27 +02:00
Mitsuru Oshima
a1565b9340 removing log message checked in by acccident. 2009-05-12 00:19:40 -07:00
Android (Google) Code Review
21fa8d31f4 am 7e3e04c: Merge change 1408 into donut
Merge commit '7e3e04c144182c6807c66646b3f988beaba1720e'

* commit '7e3e04c144182c6807c66646b3f988beaba1720e':
  * update all metrics data when updating density.
2009-05-11 21:22:01 -07:00
Mitsuru Oshima
58feea74b4 * update all metrics data when updating density.
* Keyboard should use DisplayMetrics from Resource rather than getting it from WindowManager as
  the display metrics can differ under compatibility mode.
2009-05-11 15:58:32 -07:00
Android (Google) Code Review
2f8782ddfc am 82e61c9: Merge change 1316 into donut
Merge commit '82e61c947b909bcb373aca491fe1248f23764eaf'

* commit '82e61c947b909bcb373aca491fe1248f23764eaf':
  Make in-app search have a different background resource which looks
2009-05-11 09:38:00 -07:00
Android (Google) Code Review
837bcca25a am ed3b804: Merge change 1276 into donut
Merge commit 'ed3b804f2cc61029cf2969cbfa499ea230c22bb0'

* commit 'ed3b804f2cc61029cf2969cbfa499ea230c22bb0':
  Define mime type for shortcut validation path.
2009-05-08 22:51:09 -07:00
Mike LeBeau
b059d90691 Make in-app search have a different background resource which looks
like a slide-out drawer, to provide app context and because it is not
full-screen.

Also fix a problem where bringing up global search sometimes still did
not size the dropdown correctly, because the keyboard was not yet showing.
2009-05-08 18:38:45 -07:00
Mike LeBeau
ddf9856c7d merged 98acd54, resolved conflicts 2009-05-08 17:59:05 -07:00
Android (Google) Code Review
ed3b804f2c Merge change 1276 into donut
* changes:
  Define mime type for shortcut validation path.
2009-05-08 14:55:39 -07:00
Karl Rosaen
b619c9198e Define mime type for shortcut validation path. 2009-05-08 14:54:08 -07:00
Mike LeBeau
98acd54fa6 Make the search dialog's autocomplete dropdown behave correctly
with respect to the soft keyboard. getMaxAvailableHeight in
PopupWindow relies on View's getWindowVisibleDisplayFrame, which
always takes into account the IME, whereas in this case, because
we want the window to extend down to the bottom of the display
when it is being interacted with by the user, I added a new
boolean option 'ignoreBottomDecorations' to getMaxAvailableHeight.
If true, the method returns the height which will extend the
PopupWindow down to the bottom of the screen, rather than just
down to the IME.

Then in AutoCompleteTextView, I set this to true when the
dropDownAlwaysVisible attribute is true and the PopupWindow's
input method mode is INPUT_METHOD_NOT_NEEDED (which happens when
the list is dragged or otherwise interacted with).

Then, because the dropdown height is only calculated when we call
showDropDown(), I had to replace a couple calls to mPopup.update().

There are still a few remaining bugs here I'm tracking Still to do:
  * Fix a strange re-placement of the window which happens
    intermittently.
  * Strange behavior when using the directional pad.
  * In a few cases, the list does not correctly size itself to the IME.
    This seems to be because the available height is calculated before
    the IME is yet on screen, and thus is calculated as the entire screen.
2009-05-08 14:42:54 -07:00
The Android Open Source Project
3531fdb1d9 merge 55280a9
Merge commit '55280a9'
2009-05-08 13:33:21 -07:00
Dianne Hackborn
55280a9188 Improve shutdown process to send broadcast for applications.
This introduces a new class in the base platform for performing a clean
shutdown (which was copied from the classes in the policies).  It
includes new features to send a shutdown broadcast for applications
to do cleanup, and ot have the activity manager pause the current
activity before proceeding with the shutdown.  These facilities are
also use to write at the most recent stat files for sync, battery
and user activity.
2009-05-08 12:59:21 -07:00
The Android Open Source Project
cb4a3f36df am 60f3eb5: Merge branch \'donut\' of ssh://android-git.corp.google.com:29
Merge commit '60f3eb54a01d30882dfab5e66318d8fdd9aab1dd'

* commit '60f3eb54a01d30882dfab5e66318d8fdd9aab1dd':
  Define the URI path, columns and constants for shortcut validation.
2009-05-08 07:22:45 -07:00
The Android Open Source Project
3d73eeb7b3 am 8705a41: Merge branch \'donut\' of ssh://android-git.corp.google.com:29
Merge commit '8705a41a778bd0561737fd9b6fb2e1cdca0532b5'

* commit '8705a41a778bd0561737fd9b6fb2e1cdca0532b5':
  * update density correctly when the configuration is changed.
2009-05-08 07:22:44 -07:00
Karl Rosaen
b2a5011578 Define the URI path, columns and constants for shortcut validation. 2009-05-07 18:37:11 -07:00
Mitsuru Oshima
2e3d3b9ce7 * update density correctly when the configuration is changed.
* Turns private sLcdDensity to public DEVICE_DENSITY to use it in ActivityThread
2009-05-06 16:42:11 -07:00
Android (Google) Code Review
34f97460bd am f2331a6: Merge change 1063 into donut
Merge commit 'f2331a63c0e7f6ffeedf16185c92a0aeffa5512c'

* commit 'f2331a63c0e7f6ffeedf16185c92a0aeffa5512c':
  Refactor SearchableInfo.
2009-05-06 15:49:01 -07:00
Bjorn Bringert
a92041306e Refactor SearchableInfo.
- Removes the mSearchable field which was only
  for communication between the constructor and
  getActivityMetaData().
- Removes the badge and query rewriting fields,
  since their values can be efficiently computed
  on the fly.
- Makes all the other public fields private and adds getters
  for them.
- Makes all fields final, except mActionKeys.
- Removes the DBG_INHIBIT_SUGGESTIONS_CONSTANT.
  I don't see why we would every want that, and it
  complicated making the fields final.
- Makes all fields in ActionKeyInfo final.
- Makes all fields in ActionKeyInfo private and adds getters.
- Removes the use of ActioKeyInfo.mKeyCode for failure
  signalling. Uses IllegalArgumentException instead.
- Replaces the ad hoc linked list for looking up
  action keys by a HashMap. This is needed to
  make the fields in ActionkeyInfo final, and also avoids O(N)
  lookup in the (unlikely) case that an activity
  has lots of action keys.
- Don't throw exceptions when reading searchable
  meta-data, since that could crash SearchManagerService.
- Adds debug logging.
2009-05-06 13:54:42 +01:00
Android (Google) Code Review
60c8b8e48b am a039d46: Merge change 792 into donut
Merge commit 'a039d465a85e8a7dea1ec4b5814e1a6e84e676f8'

* commit 'a039d465a85e8a7dea1ec4b5814e1a6e84e676f8':
  Allow access to global search by pressing the hard search button again
2009-04-30 11:00:07 -07:00
Mike LeBeau
b3aab69581 Allow access to global search by pressing the hard search button again
within in-app search. If within in-app search and toggled out to global
search, pressing the hard search button will take the user *back* into
in-app search too.
2009-04-30 09:45:53 -07:00
Android (Google) Code Review
e4ddb19acb am efae672: Merge change 725 into donut
Merge commit 'efae672d7303fb6682b2ae8704a62146297a0a5a'

* commit 'efae672d7303fb6682b2ae8704a62146297a0a5a':
  Add 'includeInGlobalSearch' attribute to searchable meta-data.
2009-04-29 13:41:22 -07:00
Bjorn Bringert
6b8da4e1aa am c1f4096: Remove menu from SearchDialog.
Merge commit 'c1f40960644b461b108480b6446c89963441492d'

* commit 'c1f40960644b461b108480b6446c89963441492d':
  Remove menu from SearchDialog.
2009-04-29 13:41:21 -07:00
The Android Open Source Project
c6e3de9e09 am 203464a: Add searchSuggestThreshold to searchable meta-data. 2009-04-29 13:40:03 -07:00
Android (Google) Code Review
adf431b54a am 493b00a: Merge change 640 into donut
Merge commit '493b00afbfd4f603939ee98540a4d8df084107fd'

* commit '493b00afbfd4f603939ee98540a4d8df084107fd':
  Add GLOBAL_SEARCH intent for finding global search provider.
2009-04-29 13:35:48 -07:00
Scott Main
3813fdaa8f am 8419fcd: am b8b3645: AI 147803: add docs and images for docs on Toast
Merge commit '8419fcdfaf908aec4f8fa093ef1850616c7704b4'

* commit '8419fcdfaf908aec4f8fa093ef1850616c7704b4':
  AI 147803: add docs and images for docs on Toast and  Notification docs
2009-04-29 13:35:44 -07:00
Mitsuru Oshima
c2839e0870 am 13735a2: Merge branch \'readonly-p4-donut\' into donut
Merge commit '13735a255dedd2c2e3b0cff66f0be2e17671f553'

* commit '13735a255dedd2c2e3b0cff66f0be2e17671f553':
  AI 147976: Compatibility mode support. Part 2.
2009-04-29 13:35:38 -07:00
Karl Rosaen
2f7e0447ac am 98e333f: Fix back key and ime behavior for search dialog.
Merge commit '98e333f551a4bf2ebb50bb97a2a56b14bfdcd74b'

* commit '98e333f551a4bf2ebb50bb97a2a56b14bfdcd74b':
  Fix back key and ime behavior for search dialog.
2009-04-29 13:35:36 -07:00
Android (Google) Code Review
d3f78458dd am 6fcddb0: Merge change 629 into donut
Merge commit '6fcddb05eee19edfd3063b9eefbdb0de0dbd4f4f'

* commit '6fcddb05eee19edfd3063b9eefbdb0de0dbd4f4f':
  Display the app icon to the left of the search field for search within apps.
2009-04-29 13:35:35 -07:00
Android (Google) Code Review
a5a51e1724 am 77c9990: Merge change 599 into donut
Merge commit '77c9990ae0806575ae7a2750459f3e74f0bec092'

* commit '77c9990ae0806575ae7a2750459f3e74f0bec092':
  Add call to (new) Canvas.freeCaches() in response to low-memory
2009-04-29 13:35:35 -07:00
Bjorn Bringert
8b65d2c358 am 7fc4b28: Merge branch \'readonly-p4-donut\' into donut
Merge commit '7fc4b281750be2442a327e7aa9fb03c44096caf3'

* commit '7fc4b281750be2442a327e7aa9fb03c44096caf3':
  AI 147681: Fix SearchDialog crash on missing FORMAT suggestion column.
2009-04-29 13:35:23 -07:00
The Android Open Source Project
8f080ec429 am f3ccf8a: Merge branch \'readonly-p4-donut\' into donut 2009-04-29 13:34:51 -07:00
Android (Google) Code Review
137b0c9d64 am 0b8ffd1: Merge change 460 into donut
Merge commit '0b8ffd17bc6641fc522db3e842a868b6cdbf6d82'

* commit '0b8ffd17bc6641fc522db3e842a868b6cdbf6d82':
  More optimization of dumpsys output.
2009-04-29 13:11:27 -07:00