summaryrefslogtreecommitdiffstats
path: root/base/android
Commit message (Collapse)AuthorAgeFilesLines
* Fix crash on Android when the Main activity is resumed after it was destroyed.pliard@chromium.org2013-02-191-1/+7
| | | | | | | | | | | | | | NetworkChangeNotifierAutoDetect was storing and using a pointer to the main activity's Context that can be stale in certain circumstances. This is problematic in case the Main activity is destroyed and then recreated which happens for example when the user changes the system language in the Android settings. BUG=176292 Review URL: https://codereview.chromium.org/12294021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@183217 0039d316-1c4b-4281-b951-d872f2087c98
* This patch adds some Android-support code to allow the networkdigit@chromium.org2013-02-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | stack to use platform-specific private key objects to perform signing in the context of SSL handshakes which require a client certificate. More specifically: - Add net/android/keystore.h, which provides native functions to operate on JNI references pointing to java.security.PrivateKey objects provided by the platform. I.e.: net::android::GetPrivateKeyType() net::android::SignWithPrivateKey() Also provide a function that can get the system's own EVP_PKEY* handle corresponding to a given PrivateKey object. This uses reflection and should *only* be used for RSA private keys when running on Android 4.0 and 4.1, in order to route around a platform bug that was only fixed in 4.2. net::android::GetOpenSSLSytstemHandleForPrivateKey() See the comments in this source file for mode details: net/android/java/org/chromium/net/AndroidKeyStore.java - Add net/android/keystore_openssl.h, which provides a function that can wrap an existing PrivateKey JNI reference around an OpenSSL EVP_PKEY object which uses custom DSA/RSA/ECDSA methods to perform signing as expected to handle client certificates. net::android::GetOpenSSLPrivateKeyWrapper() - Add relevant unit tests for the new functions. Note that the unit test comes with its own Java helper function, which is used to create a platform PrivateKey object from encoded PKCS#8 private key data. This is called from the native unit test, but does not constitute a new Java test (AndroidKeyStoreTestUtil.java). - Add corresponding new test key files under net/data/ssl/certificates/, and their generation script in net/data/ssl/scripts/. - Add net/android/private_key_type_list.h which is used both from C++ and Java to define the list of supported private key types used by this code. - Minor improvements: Add a "release()" method to crypto::ScopedOpenSSL, add missing BASE_EXPORT to one base/android/jni_array.h function declaration. BUG=166642 Review URL: https://chromiumcodereview.appspot.com/11571059 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@181741 0039d316-1c4b-4281-b951-d872f2087c98
* Bugfix: to add missing prefix for return type from javap.dwkang@chromium.org2013-02-062-2/+8
| | | | | | | | | | BUG=170345 TEST=passes jni_generator_tests and works well with android/media/MediaCodec::getInputBuffers(). Review URL: https://chromiumcodereview.appspot.com/12094008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@180965 0039d316-1c4b-4281-b951-d872f2087c98
* Add FilePath to base namespace.brettw@chromium.org2013-02-021-1/+2
| | | | | | | This updates headers that forward-declare it and a few random places to use the namespace explicitly. There us a using declaration in file_path.h that makes the rest compile, which we can do in future passes. Review URL: https://codereview.chromium.org/12163003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@180245 0039d316-1c4b-4281-b951-d872f2087c98
* Set Realtime Audio Thread priority on Androidjames.wei@intel.com2013-01-303-0/+27
| | | | | | | | | BUG= Review URL: https://chromiumcodereview.appspot.com/11729002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@179545 0039d316-1c4b-4281-b951-d872f2087c98
* Nuke jrg from android OWNERS files.yfriedman@chromium.org2013-01-161-1/+0
| | | | | | | | | | It's the only way to be sure... ... he doesn't get android code reviews. Review URL: https://codereview.chromium.org/11968018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@177174 0039d316-1c4b-4281-b951-d872f2087c98
* Fix JavaObjectWeakGlobalRef::operator= leaking jweaksjoth@chromium.org2013-01-141-2/+9
| | | | | | | | | | | Previously the existing obj_ value was ignored in Assign() BUG= Review URL: https://chromiumcodereview.appspot.com/11874013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@176749 0039d316-1c4b-4281-b951-d872f2087c98
* Use CopyOnWriteArrayList to safely maintain a list of observers.nileshagrawal@chromium.org2013-01-122-4/+8
| | | | | | | | | BUG= Review URL: https://chromiumcodereview.appspot.com/11827041 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@176553 0039d316-1c4b-4281-b951-d872f2087c98
* Fix retention policy on jni annotationsdtrainor@chromium.org2013-01-123-3/+3
| | | | | | | | | | | | | | Some JNI annotations were set to RUNTIME retention policy. When I turned on the proguard property to retain runtime annotations these ended up being included in our release builds. Making these SOURCE retention policy reduced the binary size by 575 bytes. Yay. BUG=166737 Review URL: https://chromiumcodereview.appspot.com/11783050 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@176535 0039d316-1c4b-4281-b951-d872f2087c98
* Fix Android RegisterNativeMethods failure logicboliu@chromium.org2013-01-111-1/+1
| | | | | | | | | | | | Function returns bool, so !func(env) should be enough. The < 0 check is probably leftover crud when upstreamed. BUG= Review URL: https://chromiumcodereview.appspot.com/11833047 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@176266 0039d316-1c4b-4281-b951-d872f2087c98
* android: Pass CPU properties from browser to renderer process.digit@chromium.org2013-01-094-0/+86
| | | | | | | | | | | | | | | | | | | | | | | | | | This is necessary to allow the renderer processes to use NEON instructions on ARM devices that support them in libraries like Skia. The main issue is that on JellyBean and higher, the renderer process runs in a sandbox that prevents it from accessing the filesystem, including /proc/ which is the only way to query the kernel for the features detected by the CPU. To overcome this, send the result of the probe to each renderer process, which will use the new android_setCpu() function introduced in https://gerrit.chromium.org/gerrit/#/c/39370/ Note that this requires that third-party libraries use the android_getCpuCount() and android_getCpuFeatures() function to get this data at runtime. BUG=164154 NOTRY=true Review URL: https://chromiumcodereview.appspot.com/11503013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@175820 0039d316-1c4b-4281-b951-d872f2087c98
* Android: fixes missing semi-colon in inner classes for jni_generator.bulach@chromium.org2013-01-092-2/+2
| | | | | | | | | | | | Qualified classes require a semi-colon in the end. BUG= TEST=jni_generator_tests.py Review URL: https://chromiumcodereview.appspot.com/11819002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@175795 0039d316-1c4b-4281-b951-d872f2087c98
* Roll ICU and convert include style to standard Chromium style,phajdan.jr@chromium.org2013-01-071-1/+1
| | | | | | | | | | i.e. third_party/... BUG=165264 Review URL: https://codereview.chromium.org/11734021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@175399 0039d316-1c4b-4281-b951-d872f2087c98
* [Android WebView] Fix some locale related TODOs.benm@chromium.org2012-12-211-2/+14
| | | | | | | | | | | | | | | | | | | | Implement AwContentBrowserClient::GetAcceptLangs as the classic WebView did - use the current local for the primary accept language and append en-US as an alternative if the primary language was something else. Use UTF-8 as the default accept charset. As far as I can tell AwContentBrowserClient::GetCanonicalEncodingNameByAliasName should simply echo the passed in string - we shouldn't get passed anything other than a canonical encoding name in android_webview/. Move the mapping of Android deprecated language codes from l10n_util.cc into base/android/java/.../LocaleUtils.java to make that logic easier to reuse by android_webview. Review URL: https://chromiumcodereview.appspot.com/11614002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@174385 0039d316-1c4b-4281-b951-d872f2087c98
* jni_generator.py: Handle more Java types.digit@chromium.org2012-12-202-8/+353
| | | | | | | | | | | | | | | | | | | | This fixes several things in the jni_generator.py script: - Properly recognize array return types. Previously, a return type like byte[][] would make the generator crash. - Add missing handling of 'char' and 'short' types. - Add missing handling of JNI array types like jintArray, jdoubleArray, etc... R=bulach@chromium.org,joth@chromium.org,pliard@chromium.org,beverloo@chromium.org,jknotten@chromium.org BUG=None Review URL: https://chromiumcodereview.appspot.com/11571080 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@174225 0039d316-1c4b-4281-b951-d872f2087c98
* Adding java implementation for Geolocationkristianm@chromium.org2012-12-151-0/+10
| | | | | | Review URL: https://chromiumcodereview.appspot.com/11416347 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@173328 0039d316-1c4b-4281-b951-d872f2087c98
* Remove extra string copies when iterating listsjoth@chromium.org2012-12-144-11/+75
| | | | | | | | | | | Micro-opimization: remove additional string deep copies in inner loops. BUG= Review URL: https://chromiumcodereview.appspot.com/11416360 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@173035 0039d316-1c4b-4281-b951-d872f2087c98
* Fire SystemMonitor::{RESUME,SUSPEND}_EVENT on Android.pliard@chromium.org2012-12-133-113/+58
| | | | | | | | | | | | | | | | | | | | | | | | This improves SystemMonitor on Android by firing RESUME/SUSPEND events when the Android main activity goes to foreground/background. This lets the Android port use the same code path as other platforms to support the close idle network connections functionnality. SUSPEND events are now fired 1 minute after the main activity goes to background. Additionnally this CL cleans up ActivityStatus used by the Java side SystemMonitor class. ActivityStatus was suffering from various refactorings and was providing a counter intuitive interface with the Listener/StateListener duality. In particular it was possible to call SystemMonitor.onPause/Resume() as opposed to onStateChange(). This could lead to SystemMonitor.getActivity() returning null. The issue was raised while this CL was prepared. BUG=164495 Review URL: https://codereview.chromium.org/11538008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@172864 0039d316-1c4b-4281-b951-d872f2087c98
* android: Improve ActivityStatus and add ChromiumActivity.digit@chromium.org2012-12-072-20/+166
| | | | | | | | | | | | | | | | | | | | | | | | | | | The ActivityStatus class used to track activity state changes is too basic for some usage scenarios. This patch does the following: - Augment ActivityStatus with a new StateListener type that can be registered to listen to all activity state changes. Also add getActivity(), getState(), registerStateListener() and unregisterStateListener() as static method. - Add a new ChromiumActivity class that all Chromium main activities should sub-class, to ensure that the ActivityStatus state is updated appropriately. - Modify all main activities in the Chromium code base to extend from ChromiumActivity instead of Activity. BUG=none Review URL: https://chromiumcodereview.appspot.com/11419287 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@171789 0039d316-1c4b-4281-b951-d872f2087c98
* Implement annotation support for JS<->Java interfacedtrainor@chromium.org2012-12-051-0/+4
| | | | | | | | | | | | | Instead of relying on a boolean to determine whether or not to rely on the @JavascriptInterface annotation for injected APIs, allow the caller to pass in an annotation that will be placed on the methods they want injected. BUG= Review URL: https://chromiumcodereview.appspot.com/11308356 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@171352 0039d316-1c4b-4281-b951-d872f2087c98
* base/android/jni_array.h: Add JavaArrayOfByteArraysToStringVector()digit@chromium.org2012-12-053-0/+62
| | | | | | | | | | | | | This will be used by the SSL client certificate support code to return the certificate chain as a vector of DER-encoded X.509 certificates. BUG=none Review URL: https://chromiumcodereview.appspot.com/11418287 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@171224 0039d316-1c4b-4281-b951-d872f2087c98
* Let base_unittests build with the components build on androidthakis@chromium.org2012-11-301-1/+1
| | | | | | | | BUG=158821 Review URL: https://codereview.chromium.org/11416289 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@170527 0039d316-1c4b-4281-b951-d872f2087c98
* Android: Fix PathUtilsTest.TestGetNativeLibraryDirectoryjknotten@chromium.org2012-11-211-4/+4
| | | | | | | | | | | | | | | Instead of checking for a specific directory, check that the returned directory contains a the base unit tests .so file. This should allow the test to work on recent Jelly Bean build and make it less fragile in general. TEST=base_unittest:PathUtilsTest.TestGetNativeLibraryDirectory BUG= Review URL: https://chromiumcodereview.appspot.com/11412128 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@169037 0039d316-1c4b-4281-b951-d872f2087c98
* AwContents Compositor bring upjoth@chromium.org2012-11-203-0/+11
| | | | | | | | | | | | | | | | | | Enables DrawGL rendering (when used in downstream integration environment) Still loose ends for: - hiding the view and resource release paths - correctly using the AwDrawGLInfo parameters, esp clip. - and its a bit crashy Depends on http://codereview.chromium.org/11293264/ and http://codereview.chromium.org/11343058/ BUG=161409 NOTRY=true Review URL: https://chromiumcodereview.appspot.com/11418025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@168712 0039d316-1c4b-4281-b951-d872f2087c98
* Android: correctly generates inner class from import clause.bulach@chromium.org2012-11-132-1/+32
| | | | | | | | | | | | | | After r166482, it started deriving the JNI parameters from the "import" clause. However, for "import foo.Outer.Inner", it'd generate "Lfoo/Outer/Inner" rather than "Lfoo/Outer$Inner". BUG= TEST=build/android/jni_generator/jni_generator_tests.py Review URL: https://chromiumcodereview.appspot.com/11293206 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@167384 0039d316-1c4b-4281-b951-d872f2087c98
* On Android, the app package name defines a distribution channelaruslan@chromium.org2012-11-093-0/+13
| | | | | | | | | BUG=159476 Review URL: https://chromiumcodereview.appspot.com/11368146 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166844 0039d316-1c4b-4281-b951-d872f2087c98
* Android: uses "import" section and inner classes for obtaining qualified JNI ↵bulach@chromium.org2012-11-074-152/+106
| | | | | | | | | | | | | | | | parameters. Rather than explicitly listing all the parameters (see crbug.com/158722), infer almost all of them from the import section and inner classes. Assumes other classes are in the same package as a fallback. BUG=159397 TEST=base/android/jni_generator/jni_generator_tests.py Review URL: https://chromiumcodereview.appspot.com/11363079 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166482 0039d316-1c4b-4281-b951-d872f2087c98
* Refactoring Geolocation Infobar part4cramya@chromium.org2012-11-071-4/+1
| | | | | | | | | | | | | | | | Changes in this CL. One google_location_settings_helper.h can be implemented separately for chrome and unit_tests. Removed google_location_settings_helper_factory.* Removed the java GoogleLocationSettingsHelper files Added 3 new unittests to test the new android infobar functionailty. BUG=152236 Review URL: https://chromiumcodereview.appspot.com/11369065 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166343 0039d316-1c4b-4281-b951-d872f2087c98
* First step towards component build for Android.yfriedman@chromium.org2012-11-019-65/+82
| | | | | | | | | | Add symbol exports needed to build content shell. BUG=158821 Review URL: https://codereview.chromium.org/11368031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@165420 0039d316-1c4b-4281-b951-d872f2087c98
* Android: passes a list of qualified JNI parameters as a param to the generator.bulach@chromium.org2012-10-313-220/+244
| | | | | | | | | | | | | | | Instead of hardcoding the list of qualified JNI parameters, pass it as a parameter so that different modules can inject their classes. This is the first step in such decoupling; follow up will start splitting the class_list.jni list closer to their modules. BUG=158722 TEST=jni_generator_tests Review URL: https://chromiumcodereview.appspot.com/11339013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@165250 0039d316-1c4b-4281-b951-d872f2087c98
* Removing myself from OWNERs and WATCHLISTsatish@chromium.org2012-10-291-1/+0
| | | | | | | | | BUG=none Review URL: https://chromiumcodereview.appspot.com/11345006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@164693 0039d316-1c4b-4281-b951-d872f2087c98
* Add Google Location Settings geolocation permission flowcramya@chromium.org2012-10-271-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Pre MR0 version in Android, we had an explicit "Enable Location" setting in Chrome that will show the infobar based on the settings. Post MR0, we use the combination of system master location setting and system google apps location setting to decide between 1. Showing the infobar with Allow button (if both master and google apps are turned on) 2. Showing the infobar with Settings button that will take user to Google Apps Location Setting activity (if master is on but google apps location setting is turned off) 3. Do not show infobar (if master is off) Above functionality has been added in this CL for both pre and post MR0 cases. This CL also removes the android unit_test for GeolocationEnabledDisabled. Since the android specific geolocation code is going to be refactored, this test along with few more android specific unit_tests will be added in an upcoming CL. CQ-DEPEND=0f28fce084f6010242360fb7b6633b8fd7296be4 Review URL: https://chromiumcodereview.appspot.com/11186010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@164466 0039d316-1c4b-4281-b951-d872f2087c98
* Update jni_generator to match change downstreammiguelg@chromium.org2012-10-261-0/+1
| | | | | | | | | BUG=149349 Review URL: https://chromiumcodereview.appspot.com/11275040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@164335 0039d316-1c4b-4281-b951-d872f2087c98
* Upstream Autofill functionality for Android.aurimas@chromium.org2012-10-231-1/+3
| | | | | | | | | | | Upstream Autofill functionality for Android. BUG=138235 Review URL: https://chromiumcodereview.appspot.com/11187054 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@163480 0039d316-1c4b-4281-b951-d872f2087c98
* Android: lazy initialization for method id.bulach@chromium.org2012-10-167-519/+493
| | | | | | | | | | | | | | | | | | Rather than requiring early registration for all method id, we can initialize them lazily as required. This solves the problem of building against SDK X but running against X - 1. Also adds a microbenchmark to ensure there are no considerable regressions. Results are a bit variable, but it hovers over: [ERROR:jni_android_unittest.cc(125)] JNI LazyMethodIDCall (us) 1983 [ERROR:jni_android_unittest.cc(127)] JNI MethodIDCall (us) 1862 BUG=152987 TEST=JNIAndroidMicrobenchmark.MethodId TBR=akalin Review URL: https://chromiumcodereview.appspot.com/11038015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162186 0039d316-1c4b-4281-b951-d872f2087c98
* Android: Integrates native and java SystemMonitor.bulach@chromium.org2012-10-163-1/+90
| | | | | | | | BUG=154293 Review URL: https://chromiumcodereview.appspot.com/11027024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162124 0039d316-1c4b-4281-b951-d872f2087c98
* Componentize IgnoreNavigationResourceThrottle and add chrome and webview ↵mkosiba@chromium.org2012-10-091-1/+4
| | | | | | | | | | | | | | | | | specific implementations. This change moves the IgnoreNavigationResourceThrottle to a separate component as it will be shared between chrome/android and android_webview. This change also adds the chrome/ and android_webview/ specializations of the throttle (or more precisely the callback that is used to find the right method on the right delegate). BUG=130006 TBR=ben@chromium.org Review URL: https://chromiumcodereview.appspot.com/10946008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@160945 0039d316-1c4b-4281-b951-d872f2087c98
* Upstream base/android/jni_android.ccavayvod@chromium.org2012-10-091-5/+4
| | | | | | | | | | | | | | | Original change descriptions: - make JNIAndroidTest work with --gtest_repeat - add java exception info to breakpad - add JniArray test BUG=136707 TEST=Built and run jni_android_unittests.cc Review URL: https://chromiumcodereview.appspot.com/11090022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@160895 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "Revert 160537 - Update jni generator for Android."nileshagrawal@chromium.org2012-10-082-5/+4
| | | | | | | | | | | | | | This reverts commit 64bfe38c416b0024c63cfeb932e8d3eac9f026b6. The original CL was reverted due to build failure: https://chromiumcodereview.appspot.com/11026080 BUG= Review URL: https://chromiumcodereview.appspot.com/11096002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@160746 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 160537 - Update jni generator for Android.nduca@chromium.org2012-10-061-3/+4
| | | | | | | | | | | | | | | | Breakages: http://build.chromium.org/p/chromium/buildstatus?builder=Android%20%28dbg%29&number=673 Accounting for moved files and some cleanup. BUG=137571 Review URL: https://chromiumcodereview.appspot.com/11026080 TBR=nileshagrawal@chromium.org Review URL: https://codereview.chromium.org/11072009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@160543 0039d316-1c4b-4281-b951-d872f2087c98
* Update jni generator for Android.nileshagrawal@chromium.org2012-10-061-4/+3
| | | | | | | | | | Accounting for moved files and some cleanup. BUG=137571 Review URL: https://chromiumcodereview.appspot.com/11026080 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@160537 0039d316-1c4b-4281-b951-d872f2087c98
* Upstreaming chrome/common/chrome_* diff.aurimas@chromium.org2012-10-023-25/+49
| | | | | | | | | | | Upstreaming chrome/common/chrome_* diff for Android. BUG=152827 Review URL: https://chromiumcodereview.appspot.com/11031008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@159777 0039d316-1c4b-4281-b951-d872f2087c98
* Android: adds Get(Static)MethodIDOrNULL.bulach@chromium.org2012-10-024-29/+79
| | | | | | | | | | | | | | | | When generating JNI bindings for system classes, we try to get the ids for methods based in the .class file in the SDK. However, this may trigger run-time errors when trying to run on an older SDK. For these system classes, the JNI generator will bind using the "OrNULL" variation. BUG=152987 TEST= Review URL: https://chromiumcodereview.appspot.com/10996063 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@159769 0039d316-1c4b-4281-b951-d872f2087c98
* Improves jni_generator name mangling.bulach@chromium.org2012-09-282-37/+65
| | | | | | | | | | | | | Uses a more compact format to avoid generating uber-long names. Changes media_player_bridge to use such format. BUG= TEST= Review URL: https://chromiumcodereview.appspot.com/10957037 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@159240 0039d316-1c4b-4281-b951-d872f2087c98
* Reduce number of temporory objects created posting tasksjoth@chromium.org2012-09-261-2/+10
| | | | | | | | | Gives the GC a little less work todo, especially during repeatedly called async callpaths. Review URL: https://chromiumcodereview.appspot.com/10913284 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@158713 0039d316-1c4b-4281-b951-d872f2087c98
* Move base Java utils to base/test/android/javatests.nyquist@chromium.org2012-09-246-210/+0
| | | | | | | | | | | | | | | | | | | gyp targets should not depend on tests from other packages, but instead be able to depend on their test utils. The target including the base utilities is called base_java_test_support and contains files from base/test/android/javatests. base_java_test_support was also the name of the wrongly named target for building base/android/javatests, but since only contained util-classes, no new target has been created for tests of base/android/java. BUG=151561,150773 Review URL: https://chromiumcodereview.appspot.com/10974012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@158422 0039d316-1c4b-4281-b951-d872f2087c98
* Android: MediaPlayerBridge JNI cleanup.bulach@chromium.org2012-09-241-0/+1
| | | | | | | | | | | | | | | | | | | This file contains some hand-written JNI, and a few hops native<->java. This clarifies things a bit by: - adding a MediaPlayerBridge.java to avoid some hops. - moving code to MediaPlayerListener.java. Further clean up will be done by auto-generating bindings for android.media.MediaPlayer directly. BUG= TEST= Review URL: https://chromiumcodereview.appspot.com/10961015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@158275 0039d316-1c4b-4281-b951-d872f2087c98
* Android: generates JNI bindings for constructors in system classes.bulach@chromium.org2012-09-242-35/+91
| | | | | | | | | | | | This allows to simplify some places such as surface_texture_bridge. BUG= TEST= Review URL: https://chromiumcodereview.appspot.com/10968009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@158249 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "Revert 158067 - Remove native side of content_view_client"yusufo@chromium.org2012-09-221-1/+0
| | | | | | | | | | | | | | The previous CL broke the build, because the changes in net_errors_java.template didn't get the net_error_java target to be rebuilt. We needed a net.gyp change that makes sure NetError.java gets recreated after the changes. BUG=137967 TBR=jam@chromium.org, mkosiba@chromium.org, willchan@chromium.org Review URL: https://chromiumcodereview.appspot.com/10963041 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@158146 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 158067 - Remove native side of content_view_clientavi@chromium.org2012-09-211-0/+1
| | | | | | | | | | | | | | | | | | | | | This moves related callabcks from content_view_client to web_contents_observer_android and makes the client a Java only API. This broke the compile: http://build.chromium.org/p/chromium.linux/buildstatus?builder=Android%20Builder%20%28dbg%29&number=16035 ErrorCodeConversionHelper, new in this change, failed to build. BUG=137967 Review URL: https://chromiumcodereview.appspot.com/10952029 TBR=yusufo@chromium.org Review URL: https://codereview.chromium.org/10969045 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@158072 0039d316-1c4b-4281-b951-d872f2087c98