136 Commits

Author SHA1 Message Date
Dianne Hackborn
ade3ecad94 Implement issue #1783881 (manifest option for adb-install-only apps)
You can now use android:testOnly="true" to not allow your .apk to be installed
as a normal app.  The only way to do so is with the pm command and giving the
-t option, which sets a new INSTALL_ALLOW_TEST flag when installing.

I also used this to clean up the install API...  actually, mostly to hide
it, since it is not accessible to apps so shouldn't be in the SDK.  We
will be doing some more work on it, so this will prevent adding yet
another backwards-compatibility-for-no-reason version.
2009-05-12 16:09:43 -07:00
Android (Google) Code Review
a2ea1d3765 Merge change 1371 into donut
* changes:
  Fixes #1596240. Optimize invalidate/draw passes by marking opaque views and avoiding drawing them. Whenever a View requests an invalidate its parent check whether the view is opaque or not. When the view is not opaque, the framework behaves as it used to. However, when a view is opaque, the parent marks itself as being dirty because of an opaque view. Its parent then does the same, and so on. When the framework then starts drawing the views, it does not draw views marked as dirty opaque. If a view is dirty opaque and receives an invalidate request from a non-opaque view, it then clears the dirty opaque flag and behaves as before.
2009-05-11 14:04:23 -07:00
Romain Guy
24443ea399 Fixes #1596240. Optimize invalidate/draw passes by marking opaque views and avoiding drawing them. Whenever a View requests an invalidate its parent check whether the view is opaque or not. When the view is not opaque, the framework behaves as it used to. However, when a view is opaque, the parent marks itself as being dirty because of an opaque view. Its parent then does the same, and so on. When the framework then starts drawing the views, it does not draw views marked as dirty opaque. If a view is dirty opaque and receives an invalidate request from a non-opaque view, it then clears the dirty opaque flag and behaves as before. 2009-05-11 14:03:52 -07:00
Android (Google) Code Review
82e61c947b Merge change 1316 into donut
* changes:
  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.
2009-05-11 09:35:34 -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
Dianne Hackborn
851a54143c Implement targetSdkVersion and maxSdkVersion, plus version code names.
This adds new attributes for specifying a targetSdkVersion and maxSdkVersion.
There is a new ApplicationInfo flag that is set if the application has set
its targetSdkVersion to the current platform or later.  Also you can now
use a string for minSdkVersion and targetSdkVerion, to indicate you are
building against a development tree instead of an official platform.
2009-05-08 15:15:36 -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
yes
697805d02a Add a contact placeholder picture.
Previously, there was no generic contact icon in the framework.
ContactsProvider needs to have a generic contact icon to use
for contacts that don't have photos. Since there are multiple
packages (MyFaves, GoogleSubscribedFeedsProvider) that use
ContactsProvider.java directly, adding the icon in the
ContactsProvider package is not an option.

The icon is a copy of
packages/apps/Contacts/res/drawable-finger/ic_contact_picture.png
2009-05-06 14:35:48 +01:00
Dianne Hackborn
231cc608d0 Rewrite SyncStorageEngine to use flat files and in-memory data structures.
The previous implementation used a database for storing all of its state, which could cause
a significant amount of IO activity as its tables were updated through the stages of a sync.
This new implementation replaces that in-memory data structures, with hand-written code
for writing them to persistent storage.

There are now 4 files associated with this class, holding various pieces of its state that
should be consistent.  These are everything from a main XML file of account information that
must always be retained, to a binary file of per-day statistics that can be thrown away at
any time.  Writes of these files as scheduled at various times based on their importance of
the frequency at which they change.

Because the database no longer exists, there needs to be a new explicit interface for
interacting with the sync manager database.  This is provided by new APIs on IContentService,
with a hidden method on ContentResolver to retrieve the IContentService so that various
system entities can use it.  Other changes in other projects are required to update to the
new API.

The goal here is to have as little an impact on the code and functionality outside of
SyncStorageEngine, though due to the necessary change in API it is still somewhat extensive.
2009-05-05 15:40:53 -07:00
Android (Google) Code Review
854c8c78c1 Merge change 896 into donut
* changes:
  make AutoCompleteTextView take the alternate anchor view into account when computing the max available space on screen.
2009-05-01 16:32:21 -07:00
Karl Rosaen
743ae65992 make AutoCompleteTextView take the alternate anchor view into account when computing the max available space on screen.
before, it always computed the height based on the text view itself being the anchor.  This fixes the clipping bug
in the search dialog.
2009-05-01 14:15:11 -07:00
Mike Lockwood
275555c8eb location: Add support for location providers outside of the system process.
Also added new permissions android.permission.INSTALL_LOCATION_PROVIDER
and android.permission.INSTALL_LOCATION_COLLECTOR to the public API.

Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-05-01 15:06:31 -04:00
Romain Guy
9a81736176 Add the ability to specify the onClick handler with XML. The new android:onClick attribute defines the name of the method in the Activity to invoke when the button is clicked. The method has to be public and get one View parameter. 2009-05-01 10:57:14 -07:00
Bjorn Bringert
a56b318cf2 NEW_API: Expose includeInGlobalSearch searchable attribute
If this attribute is provided and true, the searchable activity will be
included in any global lists of search targets.

This is needed to support third-party suggestion providers in
global search. See http://b/issue?id=1819651
2009-05-01 09:43:49 +01:00
Bjorn Bringert
232cd50f15 NEW_API: Expose searchSuggestThreshold searchable attribute
This lets the searchable activity specify the number of
characters needed to trigger suggestions. Before, this was
hard-coded at 0. This caused unnecessary querying of the
suggestion provider in cases where the provider does not
return suggestions for empty or short queries.
2009-05-01 09:43:48 +01:00
Eric Fischer
222f079a6e am b78c31d: AI 148147: Import lots of zh_TW translation changes.
Merge commit 'b78c31d0644a9d91fdf705db4b39865f495287be' into donut

* commit 'b78c31d0644a9d91fdf705db4b39865f495287be':
  AI 148147: Import lots of zh_TW translation changes.
2009-04-30 17:37:21 -07:00
Eric Fischer
b78c31d064 AI 148147: Import lots of zh_TW translation changes.
Automated import of CL 148147
2009-04-30 17:32:14 -07:00
Eric Fischer
a4d8e5ce72 am f8a33c3: AI 148026: Update zh_TW translations.
Merge commit 'f8a33c313f93896115d81b4f14adbb7628aa5d93' into donut

* commit 'f8a33c313f93896115d81b4f14adbb7628aa5d93':
  AI 148026: Update zh_TW translations.
2009-04-30 17:10:27 -07:00
Eric Fischer
c27eaa45fd am 0ca686b: AI 148020: Restore accidentally-deleted zh_CN and zh_TW map
Merge commit '0ca686b57ea11fa701be8ccaff22cb4b75c9d695' into donut

* commit '0ca686b57ea11fa701be8ccaff22cb4b75c9d695':
  AI 148020: Restore accidentally-deleted zh_CN and zh_TW map centers.
2009-04-30 17:10:27 -07:00
Eric Fischer
f8a33c313f AI 148026: Update zh_TW translations.
Automated import of CL 148026
2009-04-30 16:48:33 -07:00
Eric Fischer
0ca686b57e AI 148020: Restore accidentally-deleted zh_CN and zh_TW map centers.
BUG=1794855

Automated import of CL 148020
2009-04-30 16:45:37 -07:00
Bjorn Bringert
044d202c3d Fix typo in searchSuggestThreshold attr doc. 2009-04-29 21:04:30 +01:00
Bjorn Bringert
6d72e029cb Add 'includeInGlobalSearch' attribute to searchable meta-data.
The attribute is not yet public.
Also adds a SearchManager method for listing all
searchables that can be included in global search.
This is the framework part of http://b/issue?id=1819651
2009-04-29 20:23:04 +01:00
Bjorn Bringert
203464af96 Add searchSuggestThreshold to searchable meta-data.
This lets the searchable activity specify the number of
characters needed to trigger suggestions. Before, this was
hard-coded at 0. This caused unnecessary querying of the
suggestion provider in cases where the provider does not
return suggestions for empty or short queries.

The attribute is not yet public, pending API council approval.
2009-04-29 13:02:54 +01:00
Eric Fischer
7ffeac8db9 am a21e376: AI 147962: Import updated zh_TW translations.
Merge commit 'a21e376bf0108469d90b1f107e50233e64a5e21f' into donut

* commit 'a21e376bf0108469d90b1f107e50233e64a5e21f':
  AI 147962: Import updated zh_TW translations.
2009-04-28 21:54:19 -07:00
Scott Main
563dc08ec0 am 2222c9e: AI 147812: close <em> tag
Merge commit '2222c9e4ad7242acb1f12bdcd77ac670f802a43f' into donut

* commit '2222c9e4ad7242acb1f12bdcd77ac670f802a43f':
  AI 147812: close <em> tag
2009-04-28 21:54:17 -07:00
Karl Rosaen
98e333f551 Fix back key and ime behavior for search dialog.
The back key now dismisses the soft keyboard, and then the dialog.

The soft keyboard behavior is improved by having ACTV do the following when 'mDropdownAlwaysShowing' is true:
- touching outside of the drop down doesn't dismiss it
- touching the text field ensures the imei is brought in front of the drop down
2009-04-28 15:52:30 -07:00
Eric Fischer
a21e376bf0 AI 147962: Import updated zh_TW translations.
Automated import of CL 147962
2009-04-28 15:48:38 -07:00
Mike LeBeau
1fd73239dc Display the app icon to the left of the search field for search within apps. 2009-04-27 19:12:05 -07:00
Android (Google) Code Review
04ab1c7671 Merge change 573 into donut
* changes:
  Add a grey line to the top of the search plate image so it doesn't bleed into the white of the status bar.
2009-04-27 12:58:27 -07:00
Mitsuru Oshima
257eef353d Merge branch 'readonly-p4-donut' into donut 2009-04-27 12:02:51 -07:00
Mitsuru Oshima
8d11267587 AI 147845: Compatibility mode support. Part 1
Adding supports-density tag to manifest file/ApplicationInfo.
  BUG=1752478

Automated import of CL 147845
2009-04-27 12:01:23 -07:00
Scott Main
2222c9e4ad AI 147812: close <em> tag
BUG=1668453

Automated import of CL 147812
2009-04-26 23:21:55 -07:00
Mike LeBeau
8afc1303c0 Add a grey line to the top of the search plate image so it doesn't
bleed into the white of the status bar.
2009-04-24 18:28:29 -07:00
Karl Rosaen
f3ccf8a5a5 Merge branch 'readonly-p4-donut' into donut 2009-04-23 19:01:36 -07:00
Karl Rosaen
875d50a4b9 AI 147564: Merge back from search branch to donut. Notes:
- all public apis and framework changes have been reviewed by relevant folks in our branch (e.g romainguy)
  - all new public apis are @hidden; they will still get reviewed by api council once we're in git
  - other than that, it's mostly GlobalSearch and search dialog stuff, a new apps provider, and some tweaks
  to the contacts provider that was reviewed by jham

Automated import of CL 147564
2009-04-23 19:00:21 -07:00
San Mehat
29b57e63e5 API_CHANGE: external_storage: Add SDCARD_WRITE permission with associated strings
Signed-off-by: San Mehat <san@google.com>
2009-04-23 11:40:17 -07:00
Eric Fischer
a4f01520b9 AI 147406: Import revised translations.
Automated import of CL 147406
2009-04-22 12:33:55 -07:00
Andy Stadler
4c156ec6ec AI 147168: am: CL 147163 Copy documentation for the various search-by-voice flags that
were already listed in attrs.xml into SearchManager.java.  Add
  a (brief - no time for more) description about how to add search
  by voice to apps.
  JAVADOC ONLY - should be safe change for cupcake sdk.
  Original author: stadler
  Merged from: //branches/cupcake/...

Automated import of CL 147168
2009-04-21 11:54:45 -07:00
Andy Stadler
a1cde99f32 AI 147163: Copy documentation for the various search-by-voice flags that
were already listed in attrs.xml into SearchManager.java.  Add
  a (brief - no time for more) description about how to add search
  by voice to apps.
  JAVADOC ONLY - should be safe change for cupcake sdk.
  BUG=1554704

Automated import of CL 147163
2009-04-21 11:50:39 -07:00
Eric Fischer
afa2add8ba AI 146517: Import translation changes.
DO NOT MERGE

Automated import of CL 146517
2009-04-16 11:01:05 -07:00
Eric Fischer
c56eed910a AI 146365: Import revised translations.
DO NOT MERGE

Automated import of CL 146365
2009-04-15 13:30:18 -07:00
Eric Fischer
574d89fa04 AI 146175: Import updated translations.
Automated import of CL 146175
2009-04-14 12:10:43 -07:00
Ramanan Rajeswaran
c14b0f8295 AI 146145: am: CL 146144 Set default map location for Ireland and South Africa
Original author: ramanan
  Merged from: //branches/cupcake/...

Automated import of CL 146145
2009-04-14 10:41:57 -07:00
Ramanan Rajeswaran
77cfbeb51d AI 146144: Set default map location for Ireland and South Africa
Automated import of CL 146144
2009-04-14 10:41:03 -07:00
Ramanan Rajeswaran
9909798b8e AI 146129: am: CL 146127 Increase zoom level for NZ default maps location
Original author: ramanan
  Merged from: //branches/cupcake/...

Automated import of CL 146129
2009-04-14 09:47:42 -07:00
Ramanan Rajeswaran
67d2f8d777 AI 146127: Increase zoom level for NZ default maps location
Automated import of CL 146127
2009-04-14 09:44:55 -07:00
Eric Fischer
15b7e5479d AI 146037: Import updated translations.
Automated import of CL 146037
2009-04-13 17:16:19 -07:00
Dianne Hackborn
06f36b401d AI 145859: am: CL 145561 Fix issue #1710534 (documentation doesn't mention that activity resolver (and others) handle MIME types as case-sensitive).
Original author: hackbod
  Merged from: //branches/cupcake/...

Automated import of CL 145859
2009-04-13 08:52:45 -07:00
Eric Fischer
68dbdd4d47 AI 145782: Import updated translations.
DO NOT MERGE

Automated import of CL 145782
2009-04-10 16:38:00 -07:00