Commit Graph

30 Commits

Author SHA1 Message Date
lumark
b7b7b5d8ab Add target_sdk_version for SoftKeyboard
CL [1] instroduced min_sdk_version due to createDisplayContext
needed sdk version 19+.

If we are using pre-release SDK version but the device didn't match
this platform and won't set target_sdk_version, it will result in
INSTALL_FAILED_OLDER_SDK error during install apk.

To make apk installable in older sdk devices & without hitting
pre-release SDK version case, specify target_sdk_version value to keep
its comparability.

[1]: Ic592a1d2fb2da149220c8b503b522b3e864bcc77

Fix: 137200759
Bug: 126930163
Test: manual as below test steps:
     1. Check out the latest master.
     2. source build/envsetup.sh
     3. lunch aosp_walleye-userdebug
     4. make -j SoftKeyboard (or tapas SoftKeyboard)
     5. Using "adb install -r $OUT/system/app/SoftKeyboard/SoftKeyboard.apk"
        to install app in older platform rom build (i.e. android P or N)
     6. Make sure .apk file can installed without INSTALL_FAILED_OLDER_SDK error.

Change-Id: I5da196b5a1b257ec6d5b9e6f447a4734928f4580
2019-07-16 18:00:54 +08:00
lumark
d5ca5a1f8d Create display context when switching IME to new display
To address IME service context's Resources / DisplayMetrics update
when switching IME window to another display after onConfigurationChange.

We use Context#createDisplayContext to create display specific context when
display changed, to ensure soft keyboard can re-layout with correct resources.

Bug: 126930163
Test: manual with SoftKeyboard as below steps:
     1) Settings > Developer options > enable "Simulated Display" & "Force desktop mode".
     2) Reboot device
     3) Launch app (i.e. Contacts) with bluetooth or usb mouse in Simulated display.
     4) Tap EditText on app to see see if IME window layout correctly on simulated display.
     5) Launch app (i.e Files) on primary display.
     6) Tap EditText on app to see if IME window layout correctly on primary display.

Change-Id: Ic592a1d2fb2da149220c8b503b522b3e864bcc77
2019-07-09 22:33:58 +08:00
Sasha Smundak
bef01b9173 Convert Android.mk files to Android.bp
See build/soong/README.md for more information.

Bug: 122332515
Test: treehugger
Change-Id: I0f6ae8d880114d1bc83f7aac2b96eafef76dc046
2019-06-25 14:18:16 -07:00
Bo Hu
44de50be48 Merge "Revert "Emulator: enable predexopt for some sample apps"" into nyc-dev am: 4b0fd87660
am: 861f784752

* commit '861f784752c631e123b7dc6c0ec18bf1f8dab003':
  Revert "Emulator: enable predexopt for some sample apps"

Change-Id: I6fb0ba84480c19d0b982649829aa478c7fad3217
2016-05-02 17:39:35 +00:00
Bo Hu
14e8cd50f2 Revert "Emulator: enable predexopt for some sample apps"
because it breaks jank tests.
revert first


This reverts commit 59581fb6d4.

Change-Id: Ic4b07b28edd387826fc58df86b02bbab460c9074
2016-05-02 17:16:53 +00:00
Bo Hu
b33917dc92 Merge "Emulator: enable predexopt for some sample apps" into nyc-dev am: 4840343
am: 01297a1

* commit '01297a10f4b715230f02fc4a362bb4b741a1bdd4':
  Emulator: enable predexopt for some sample apps

Change-Id: I4d4cdab552915a232fd637db81340289ff2875d1
2016-04-28 00:33:44 +00:00
bohu
59581fb6d4 Emulator: enable predexopt for some sample apps
Some sample apps on emulator are placed on /data
partition and are not pre-dexopted.
Enable them to make the emulator system image a
little faster, especially for arm.
bug: 28312444

This should only impact SDK system images, not
real devices.

Change-Id: Icdb34512a3a6d95b4d6ffd2415835c6ba8c77fcc
2016-04-26 12:46:13 -07:00
Christopher Ferris
0e2da18081 Fix up the makefiles and some samples.
Add LOCAL_DEX_PREOPT := false to force the samples to build actual apks.

In addition, fix a couple of other small issues:

- TtsEngine didn't have the api level set properly.
- SimpleJNI used a non-ndk library and was using libc++.

Change-Id: I1fd7c187956eed4620049bb746f4d62babcd648a
2016-04-19 14:32:13 -07:00
Tadashi G. Takaoka
8359ac20a5 Fix sample SoftKeyboard preference activity
Bug: 17887760
Change-Id: Ibe7d1f2b9189ecee7867a2448790eddb151bd61a
2014-10-07 09:52:18 +09:00
Yohei Yukawa
88838a30af Make sample IME aware of language switching
This CL demonstrates how the new language switching functionality
should work by using the SoftKeyboard sample.

BUG: 15267645
Change-Id: I18ab25a0784979fe6028b97a22ff02bfd502d506
2014-06-02 13:00:33 +09:00
Tadashi G. Takaoka
ec1f72d17d Update SoftKeyboard sample to use InputMethodSubtype
Bug: 5475117
Change-Id: I94c70800e272e28c080edd5102adceabf06d7aff
2011-10-19 19:25:50 +09:00
Romain Guy
74192eafec Deprecate fill_parent and introduce match_parent.
Bug: #2361749.
2010-01-08 15:11:18 -08:00
Daniel Sandler
75ab82e25f hdpi artwork for development/{apps,samples}.
(drop dated 29-Sep-2009)

Change-Id: Ie022d478ed4eafc641e475dad94f507a6c358595
2009-09-29 20:41:24 -04:00
Scott Main
50992e805e docs only.
add a homepage for the searchable dictionary sample app.
and make all urls relative
2009-08-31 15:22:28 -07:00
Scott Main
04680858a0 docs only.
Add new web pages for sample apps included in the SDK.
Revise the existing sample app web pages.
Delete screenshots for notepad and lunar lander (these have
moved into frameworks/base/docs/html/guide/samples/image/.
2009-08-24 15:27:00 -07:00
The Android Open Source Project
6ffae015b4 auto import from //branches/cupcake_rel/...@140373 2009-03-18 17:39:43 -07:00
The Android Open Source Project
692ab02175 auto import from //branches/cupcake/...@137197 2009-03-09 11:52:11 -07:00
The Android Open Source Project
edd86fdaa9 auto import from //depot/cupcake/@136594 2009-03-05 14:34:30 -08:00
The Android Open Source Project
52d4c30ca5 auto import from //depot/cupcake/@135843 2009-03-03 19:29:09 -08:00
The Android Open Source Project
d4aee0c0ca auto import from //depot/cupcake/@135843 2009-03-03 18:28:16 -08:00
The Android Open Source Project
d2f2b1d7b7 auto import from //depot/cupcake/@132589 2009-03-03 14:03:58 -08:00
The Android Open Source Project
b8747bc7b1 auto import from //depot/cupcake/@137055 2009-03-02 22:54:20 -08:00
The Android Open Source Project
ff4b5f241f auto import from //branches/cupcake/...@132276 2009-02-19 10:57:29 -08:00
The Android Open Source Project
87a88c4f03 auto import from //branches/cupcake/...@131421 2009-02-13 12:57:48 -08:00
The Android Open Source Project
e3c5766074 auto import from //branches/cupcake/...@130745 2009-02-10 15:43:58 -08:00
The Android Open Source Project
5a4d0fa291 auto import from //branches/cupcake/...@127436 2009-01-22 00:13:40 -08:00
The Android Open Source Project
7b53e39377 auto import from //branches/cupcake/...@127101 2009-01-20 14:03:55 -08:00
The Android Open Source Project
b8d704a517 auto import from //branches/cupcake/...@126645 2009-01-15 16:12:07 -08:00
The Android Open Source Project
95cf464c5a auto import from //branches/cupcake/...@125939 2009-01-09 17:51:19 -08:00
The Android Open Source Project
e943f2fd8e Code drop from //branches/cupcake/...@124589 2008-12-17 18:04:04 -08:00