255 Commits

Author SHA1 Message Date
Android Code Review
c6f4e0d25b Merge change 10317
* changes:
  Clarify rules for package name in documentation
2009-06-12 09:43:29 -07:00
Android Code Review
75c567a8dc Merge change 10327
* changes:
  Logical error. If multiple receivers are dead, only the first one will be added. found in http://code.google.com/p/android/issues/detail?id=2651
2009-06-10 17:03:05 -07:00
Android Code Review
e79c007e9b Merge change 10329
* changes:
  Removed usage of tabs for indention
2009-06-10 13:29:09 -07:00
Android Code Review
3da0876ee7 Merge change 10328
* changes:
  Prevent IndexOutOfBoundsException on toString() if vibrate array is empty (non null) example: notification.vibrate = new long[0];
2009-06-10 13:28:56 -07:00
Simon Schoar
a4a309027c Removed usage of tabs for indention 2009-06-10 22:08:37 +02:00
Simon Schoar
bdf78247d6 Prevent IndexOutOfBoundsException on toString() if vibrate array is empty (non null)
example: notification.vibrate = new long[0];
2009-06-10 21:53:53 +02:00
Simon Schoar
8c0ff13f86 Logical error. If multiple receivers are dead, only the first one will be added.
found in http://code.google.com/p/android/issues/detail?id=2651
2009-06-10 21:12:10 +02:00
Simon Schoar
4ea496ddca Example for displaying alerts was missing an "@" for theme attribute 2009-06-10 01:29:38 +02:00
Android Code Review
734bc9bacb Merge change 10313
* changes:
  Fix Configuration documentation for new constants
2009-06-09 12:44:39 -07:00
Kenny Root
158c19020b Fix logic inversion in ListView Javadoc
The Javadoc for isItemChecked, getCheckedItemPosition, and
getCheckedItemPositions stated the return was valid if conditions
were the inverse of what the method checked for.

This was pointed out in Android issue 2366
2009-06-09 13:47:00 -05:00
Kenny Root
2a7a773480 Clarify rules for package name in documentation
Nowhere in the documentation does it say that the only valid package names
are ones that match (excuse my abuse of regex to explain this):

^[A-Za-z][A-Za-z0-9_]

This change makes clear the rules followed by the PackageParser
2009-06-09 13:42:54 -05:00
Kenny Root
acc44cce8f Fix Configuration documentation for new constants
* Added KEYBOARD_NOKEYS link to Javadoc for keyboard.
* Added NAVIGATION_NONAV link to Javadoc for navigation.
2009-06-09 11:21:11 -05:00
Patrick Scott
9b90fd4fa1 Fix the boot. The signature needed a V at the end. 2009-05-29 16:36:32 -07:00
Nick Pelly
c790096ad3 New BluetoothSocket API.
Modeled on blocking java.net.Socket and java.net.ServerSocket library.

Public interface is:

public final class BluetoothSocket implements Closeable {
   public static BluetoothSocket createRfcommSocket(String address, int port) throws IOException;
   public static BluetoothSocket createInsecureRfcommSocket(String address, int port) throws IOException;

   public void connect() throws IOException;
   public void close() throws IOException;

   public String getAddress();
   public InputStream getInputStream() throws IOException;
   public OutputStream getOutputStream() throws IOException;
}

public final class BluetoothServerSocket implements Closeable {
   public static BluetoothServerSocket listenUsingRfcommOn(int port) throws IOException;
   public static BluetoothServerSocket listenUsingUnsecureRfcommOn(int port) throws IOException;

   public BluetoothSocket accept() throws IOException;
   public BluetoothSocket accept(int timeout) throws IOException;
   public void close() throws IOException;

}
2009-05-29 16:16:05 -07:00
Nick Pelly
9b50ade5b7 Remove Database.java API.
This provided SDP functionality to Java, but is not currently used by any Apps.

I will shortly be providing SDP functionality in a new API, but it will be
quite different to this one, and in the mean-time keeping this stale code
updated with other API changes is a pain.
2009-05-29 16:16:04 -07:00
Dianne Hackborn
f5b70ef0f2 AI 148824: Fix issue #1851541 (sharedUserId requests not being checked for matching signatures on .apk).
To address issues where we could leave half-installed applications around if there was a failure during the install, we split getPackageLP() into two phases: the first would create the record, and only after doing all verification checks would we call insertPackageSettingLP() to do the remaining part of the original implementation and actually insert the record into the data structures.
  Unfortunately it was only in insertPackageSettingLP() that we would set the sharedUser field of the PackageSetting structure, so when before that we went to verify certificates, we didn't think it had requested a shared user ID, and let it through without checking.
  This fix simply sets the sharedUser field when the PackageSetting structure is first created, so we will actually check against its certs.  We still also set this again in insertPackageSettingLP(), but there is no harm in this because the only time we call this function is in that big install func, which just passes in the same shared user that it had when first getting the package.
  BUG=1851541

Automated import of CL 148824
2009-05-22 14:42:48 -07:00
Android Code Review
21cef43d17 Merge change 10027
* changes:
  Fixed Issue 2682: ContentProvider query() SDK docs deprecated
2009-05-21 12:02:05 -07:00
Alan Jones
9f9cdcfa82 Fixed Issue 2682: ContentProvider query() SDK docs deprecated 2009-05-21 12:59:43 +10:00
Garret Pick
723c9a4d27 Change required for OpenCORE 2.04 Update 2009-05-20 10:00:00 -07:00
Yusuf T. Mobile
2c7ed53172 Fix to Android issue 453 2009-05-15 10:56:36 -07:00
djken
b80676747d The comment lack of symbol # and parameter data type. This will cause compilation failed. 2009-05-08 07:07:55 -04:00
Cyril Mottier
238ebb6594 Add of Javadoc comments on undocumented methods.
Use of a constant defined in SensorManager for computing deceleration.
2009-05-05 18:13:48 +02:00
Brad Fitzpatrick
7bc2202d9a Lazily allocate the mBounds Rect in Drawable.
For background, see:
http://kohlerm.blogspot.com/2009/04/analyzing-memory-usage-off-your-android.html

Thanks, Markus!
2009-04-27 11:05:45 -07:00
The Android Open Source Project
284e9b2753 Merge commit 'korg/donut' 2009-04-24 13:54:57 -07:00
Urs Grob
358d23017d AI 146711: Enhancing the test runner. Now it filters BrokenTests and only executes tests
annotated with SideEffect if the host is running in single test mode.
  Also adding some cleanup mechanism and some logcat logging about memory consumption
  BUG=1789657

Automated import of CL 146711
2009-04-17 02:09:00 -07:00
Dave Sparks
6cb76f6c23 AI 146667: Add advice in MediaRecorder Java docs about using MPEG-4 container format
BUG=1753020

Automated import of CL 146667
2009-04-16 18:35:51 -07:00
Dave Sparks
b1520e9333 AI 146654: Add java docs for SoundPool
BUG=1795461

Automated import of CL 146654
2009-04-16 17:49:25 -07:00
Dirk Dougherty
d33ab2b8ad AI 146609: updates to the manifest docs for cupcake: Add "since" notations for elements and some attributes.
BUG=1790234

Automated import of CL 146609
2009-04-16 14:27:42 -07:00
Dirk Dougherty
610cb2df9d AI 146601: Update media formats appendix for cupcake
BUG=1792195

Automated import of CL 146601
2009-04-16 13:33:16 -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
Xavier Ducrohet
9d1eced4a8 AI 146411: Fix BridgeCanvas#drawRoundRect
BUG=1792311

Automated import of CL 146411
2009-04-15 22:30:00 -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
Dirk Dougherty
d9671b8e05 AI 146341: g4 integrate -t -i -b platform-1_0-to-cupcake @146018,146018 (doc change)
BUG=1675368

Automated import of CL 146341
2009-04-15 11:29:53 -07:00
Dirk Dougherty
b01b0cb4b6 AI 146340: Integrate updated SDK Terms and Conditions document
Automated import of CL 146340
2009-04-15 11:28:57 -07:00
The Android Open Source Project
5e8c31ac31 Merge commit 'korg/cupcake' 2009-04-14 18:18:03 -07:00
Scott Main
0ebf34a27a AI 146254: clarification for the minSdkVersion attribute;
added more information to the <uses-sdk> reference,
  added a link to it from the <manifes> reference, and
  revised some misleading information in the android 1.1 version notes
  BUG=1788684

Automated import of CL 146254
2009-04-14 17:19:13 -07:00
Scott Main
a9fe9e21d3 AI 146242: fix the package namespace in the examples;
delete the old hello-android file
  BUG=1750212

Automated import of CL 146242
2009-04-14 16:29:14 -07:00
Guang Zhu
7fc3cd6aeb AI 146225: Work around initialization issue with InstrumentationTest Runner. super.onCreate needs to be called as last statement in subclass' onCreate to avoid starting test case too early.
Automated import of CL 146225
2009-04-14 15:49:35 -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
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
67d2f8d777 AI 146127: Increase zoom level for NZ default maps location
Automated import of CL 146127
2009-04-14 09:44:55 -07:00
Ramanan Rajeswaran
a69ab9493c AI 146123: Change Belfast to Dublin
BUG=1788466

Automated import of CL 146123
2009-04-14 09:30:00 -07:00
Eric Fischer
15b7e5479d AI 146037: Import updated translations.
Automated import of CL 146037
2009-04-13 17:16:19 -07:00
Scott Main
a8c28c4e4a AI 146028: update hello world tutorial for cupcake, including various other edits.
BUG=1750212

Automated import of CL 146028
2009-04-13 17:01:30 -07:00
Robert Greenwalt
836054473c AI 145993: Fix Phone-oriented default-locale selection.
When several locales for a given language are available we were always
  selecting the first.
  BUG=1785986

Automated import of CL 145993
2009-04-13 16:11:29 -07:00
Ramanan Rajeswaran
5320e896e2 AI 145892: Add Ireland, Switzerland, New Zealand, South Africa to MccTable
BUG=1786030

Automated import of CL 145892
2009-04-13 11:19:51 -07:00
Eric Shienbrood
18b4d49065 AI 145881: Adding on to CL 145383, unhiding some additional methods and constants
that ought to be exposed. Hid and deprecated the single-arg public
  constructor for NetworkInfo, and modified a CTS test that was testing it.
  Ran the android.net test package to make sure it still works.
  BUG=1779439

Automated import of CL 145881
2009-04-13 10:41:56 -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
Yu Shan Emily Lau
0b57d6cdb5 AI 145757: Suppress the flaky tests
BUG=174601,1569749

Automated import of CL 145757
2009-04-10 15:28:26 -07:00
Dan Bornstein
960fe37a6a AI 145743: Excise the "de" locale out of testResourceBundles(), leaving a
TODO and long comment about the situation.
  BUG=1746810

Automated import of CL 145743
2009-04-10 14:55:08 -07:00