89332 Commits

Author SHA1 Message Date
Yusuke Ohmichi(maimuzo)
accbadeb52 fix issue #1587 2009-03-04 14:14:21 -08:00
Evan JIANG
bfcb2193b3 Fix a FileObserver jni bug.
The path string in FileObserver jni will not be automatically released
in the while loop. Then it will cause too many local refs in the ref
table. When received too many file changed notifications/events, the
process will be killed for "Failed adding to JNI local ref table".
Test code:
=============================================================
import android.app.Activity;
import android.os.Bundle;
import android.os.FileObserver;
import android.util.Log;

import java.io.File;
import java.io.IOException;

public class TestApp extends Activity {

    public static final String TAG="TestApp";
    FileObserver observer;

    @Override
    public void onCreate(Bundle icicle) {
        super.onCreate(icicle);
        setContentView(R.layout.main);

        observer=new FileObserver("/tmp"){
            @Override
            public void onEvent(int event, String path) {
                if(event == FileObserver.CREATE){
                    Log.e(TAG, "File created [" + path + "]");
                }else if(event == FileObserver.DELETE){
                    Log.e(TAG, "File deleted [" + path + "]");
                }
            }
        };
        observer.startWatching();

        File f=new File("/tmp/a.txt");
        for (int i=0;i<300;i++) {
            try {
                f.createNewFile();
            } catch (IOException e) {
            }
            f.delete();
        }
    }

}
================================================
The last 2 lines of the log:
E/dalvikvm(  705): Failed adding to JNI local ref table (has 512
entries)
E/dalvikvm(  705): VM aborting
2009-03-04 12:04:07 -08:00
The Android Open Source Project
c474dec3ff auto import from //depot/cupcake/@135863 2009-03-04 09:49:09 -08:00
The Android Open Source Project
41df385128 auto import from //depot/cupcake/@135859 2009-03-03 22:58:27 -08:00
The Android Open Source Project
bdbdc4f929 auto import from //depot/cupcake/@135856 2009-03-03 21:00:54 -08:00
The Android Open Source Project
1f838aaece auto import from //depot/cupcake/@135843 2009-03-03 19:32:13 -08:00
The Android Open Source Project
9066cfe988 auto import from //depot/cupcake/@135843 2009-03-03 19:31:44 -08:00
The Android Open Source Project
10bf778e49 auto import from //depot/cupcake/@135843 2009-03-03 18:28:48 -08:00
The Android Open Source Project
d83a98f4ce auto import from //depot/cupcake/@135843 2009-03-03 18:28:45 -08:00
James E. Blair
90329a69f8 Fix issue #1324: No audible call-waiting indication when in-call volume
is low

http://code.google.com/p/android/issues/detail?id=1324
Re-base the internally generated in-call audio volume so that it is
never muted, which is already the case for the hardware routed in-call
audio.
2009-03-03 16:24:40 -08:00
The Android Open Source Project
fee49fc0d2 auto import from //depot/cupcake/@132589 2009-03-03 14:04:28 -08:00
The Android Open Source Project
076357b856 auto import from //depot/cupcake/@132589 2009-03-03 14:04:24 -08:00
The Android Open Source Project
e10e0bc288 auto import from //depot/cupcake/@137055 2009-03-02 22:54:37 -08:00
The Android Open Source Project
3dec7d563a auto import from //depot/cupcake/@137055 2009-03-02 22:54:33 -08:00
Android Code Review
3c20152a5d Merge 2009-03-02 14:18:07 -08:00
Android Code Review
5157efa864 Merge 2009-03-02 13:20:13 -08:00
Adrian Taylor
efd826e911 Fixing LayerScreenshot bitmap config value. 2009-03-02 12:11:47 -08:00
root
9f25eadc48 Fixed typing mistake causing process crashes. 2009-03-02 20:48:27 +01:00
Android Code Review
c8e4d3f918 Merge 2009-03-02 10:44:11 -08:00
James Wylder
074da8f9aa Change scope on SettingsProvider.mDatabaseHelper and DatabaseHelper
This change will allow the DatabaseHelper to be inheritted and extended
without the need to make futher changes to the existing implementation.
2009-02-25 08:38:31 -06:00
The Android Open Source Project
e1e5e408a4 auto import from //branches/cupcake/...@132569 2009-02-20 07:38:32 -08:00
The Android Open Source Project
15ab3eae2e auto import from //branches/cupcake/...@132569 2009-02-20 07:38:31 -08:00
The Android Open Source Project
ffe2ab43f8 auto import from //branches/cupcake/...@132276 2009-02-19 10:57:35 -08:00
The Android Open Source Project
3001a03543 auto import from //branches/cupcake/...@132276 2009-02-19 10:57:31 -08:00
Rebecca Schultz Zavin
c35feb106e Add support for camera preview to be in overlay surfaces.
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
2009-02-13 17:28:15 -08:00
Rebecca Schultz Zavin
31d459d81a Add getBufferCount API to Overlay objects
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
2009-02-13 17:26:28 -08:00
Rebecca Schultz Zavin
bc4afde167 Need to dup file descriptor when reading from the binder for native handles
When reading a native handle that has passed through the binder,
the fds have to be duped to prevent them from getting closed when the binder
object is destructed.

Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
2009-02-13 16:34:38 -08:00
The Android Open Source Project
5a9453de15 auto import from //branches/cupcake/...@131421 2009-02-13 12:57:52 -08:00
The Android Open Source Project
da996f390e auto import from //branches/cupcake/...@131421 2009-02-13 12:57:50 -08:00
Adrian Taylor
754270601a Removing "import" statements from AIDL-generated .java files.
AIDL generates unnecessary "import" statements. These cause warnings
within Eclipse when the default Eclipse warnings settings are used.
This is inconvenient since the generated .java files are not
editable. Some pesky organisations have a zero-warnings policy
too, so there's no option but to fiddle with the Eclipse settings.

This patch ensures that all usages of class names within the
generated code are fully-qualified. In practice, they were nearly
all fully-qualified already. And this patch also removes the
generation of the import statements, since they are redundant
if we're using fully-qualified names everywhere.

This should fix issue 43 in the Google Code Android issues tracker.
http://code.google.com/p/android/issues/detail?id=43

I would appreciate if somebody who knows exactly how 'aidl'
works could confirm that there's no reason 'import' statements
would have been necessary except for the bits I've fixed. (I think
unqualified names were used much more frequently in early versions
of aidl, which might explain why import statements are generated
so eagerly).
2009-02-13 09:53:11 +00:00
Adrian Taylor
625648e059 Fixing verb in permdesc_readFrameBuffer English.
There were too many verbs in this sentence. Ideally this patch should
also be applied to some of the other languages. German seems OK but
French not - and that's as far as my linguistic abilities go. I
haven't fixed the French since I'm only 99% sure I wouldn't mess it up!

I chose "read" not "use" because this permission does not allow
writing to the frame buffer; it currently only controls the
screenshotting functionality inside SurfaceFlinger.
2009-02-12 10:04:44 +00:00
The Android Open Source Project
6782641672 auto import from //branches/cupcake/...@130745 2009-02-10 15:44:04 -08:00
The Android Open Source Project
d24b8183b9 auto import from //branches/cupcake/...@130745 2009-02-10 15:44:00 -08:00
Jean-Baptiste Queru
eef3c54deb Fix 1855: Restore constants to pre-cupcake values.
Since some of those constants are used in the persistent database,
modifying them for cupcake meant that the new code was getting
confused by the old persistified data after an upgrade to cupcake,
teh most visible symptom being that downloads that had been initiated
from the browser would re-appear in the notifications.
2009-02-06 13:05:07 -08:00
ralf
914a32b834 AAPT needs a buffer larger than 1 MB on the host to decode resources.arsc from SDK/android.jar.
This leaves the asset unzip buffer to 1 MB on the device and 2 MB on the host.
2009-02-05 11:58:27 -08:00
Jean-Baptiste Queru
d816d082e1 Remove old (unused) download manager APIs 2009-02-02 15:59:47 -08:00
Mike Hearn
adcd2ed8d2 Add some documentation to WebView, WebSettings and CookieSyncManager.
Double-tree rendering is deprecated.
2009-01-29 08:40:33 -08:00
Android Code Review
55f6b8e910 Merge 2009-01-26 16:19:55 -08:00
Jean-Baptiste Queru
2076373275 Add missing <limits.h> include
This should fix the build for gcc 4.3.2
2009-01-26 12:11:20 -08:00
The Android Open Source Project
7ac5a08548 Merge branch 'cupcake' 2009-01-22 00:16:10 -08:00
The Android Open Source Project
94cbba0933 Merge branch 'cupcake' 2009-01-22 00:16:08 -08:00
The Android Open Source Project
f7bff51294 auto import from //branches/cupcake/...@127436 2009-01-22 00:13:43 -08:00
The Android Open Source Project
f1e484acb5 auto import from //branches/cupcake/...@127436 2009-01-22 00:13:42 -08:00
Brock Atchison
ea780b689f Changes required to accommodate OpenCORE 2.0 2009-01-21 19:00:25 -06:00
Jean-Baptiste Queru
572612e1c0 Revert "Optional provisioning"
This reverts commit a9f4ccea6d0463345206a4306fdae9376932eb79.
2009-01-21 14:53:23 -08:00
Jean-Baptiste Queru
06323a692e Introduce new names for the download manager API fields.
The new names will allow for better consistency and better API
documentation if/when they're made public in the SDK.

This will be followed by a later change that removes the old names
2009-01-21 08:02:32 -08:00
The Android Open Source Project
7547115694 Merge branch 'cupcake' 2009-01-20 14:05:35 -08:00
The Android Open Source Project
22f7dfd234 auto import from //branches/cupcake/...@127101 2009-01-20 14:03:58 -08:00
The Android Open Source Project
f95e069508 Merge branch 'master' of git://android.git.kernel.org/platform/frameworks/policies/base 2009-01-16 14:41:08 -08:00
android-build SharedAccount
b96766569c Merge branch 'cupcake' 2009-01-15 16:16:04 -08:00