Commit Graph

395 Commits

Author SHA1 Message Date
yevgen abramov
3e21fa785c [ASIS] Global engine. java class refactoring.
- remove pending surfcae functionality
  - remove uniused code
  - apply coding style format
  - add unit test


#jira UE-217675
#rb ahmed.siddique, Chris.Babcock
#rnx

[CL 35941520 by yevgen abramov in ue5-main branch]
2024-08-30 19:03:13 -04:00
dmytro ivanov
6dbca26029 Implement FPlatformMisc::SetStoredValue, GetStoredValue and others on Android
#jira UE-222628
#rb denys.mentiei

[CL 35822749 by dmytro ivanov in ue5-main branch]
2024-08-27 08:38:49 -04:00
anderson ramos
05c7b1ad2e [Engine] Add PSO compilation metric
#rb Peter.Sauerbrei, Wes.Hunt
#rnx

[CL 35802749 by anderson ramos in ue5-main branch]
2024-08-26 12:59:15 -04:00
bruno ferreira1
422f43c614 Fixed updating device orientation in Android's onConfigurationChanged callback
It was using the value in the Configuration object which is not directly convertible to EDeviceScreenOrientation (which is what is expected for deviceScreenOrientation)


#rb Chris.Babcock

[CL 35566429 by bruno ferreira1 in ue5-main branch]
2024-08-15 12:13:38 -04:00
chris babcock
b52ba7d6d1 Updates for Android 14 compatibility with TargetSDK 34
- RegisterReceiver changes
- Receiver exports in manifest
- Update GooglePAD to latest PlayCore (note: this requires changes to logic for ShowConfirmationDialog!)
- Update billing library to 6.0.1

#jira UE-219577
#android
[REVIEW] [at]Ben.Temple
#rb Ben.Temple

[CL 35450822 by chris babcock in ue5-main branch]
2024-08-12 09:32:12 -04:00
pierre ung
d01d068c16 GameActivity.java.template: Update deviceScreenOrientation onConfigurationChanged to make sure we can detect the real/allowed device orientation.
AndroidApplication.cpp: Update widgets safezone when the window size changes (i.e the device orientation changed)


[REVIEW] [at]Maxime.Vaillancourt, [at]Maxime.Zobenbueler, [at]Guillaume.Danel, [at]Francis.Langlais

#review-doc https://docs.google.com/document/d/1TncNAWdBNpJvK9M7qk9jkqDTItiogtJhGrJoP_7jn2U/edit

#rnx

#rb daren.cheng, francis.langlais, guillaume.danel, velin.tchalakov, Wei.Liu

[CL 34706098 by pierre ung in ue5-main branch]
2024-06-27 09:18:45 -04:00
allan bentham
900435d843 Add precache priority to RHI gfx PSO creation info.
Pass through PSO compile priorities to Android external compilers.
Add parameter to optionally control Android external PSO compiler affinity and cpu scheduling settings.
Add ability to re-compile a vulkan PSO in the engine's process if the external compiler fails.
Add option to entirely disable all external PSO compiles if the count of failures exceeds a certain threshold.

#rb Chris.Babcock, denys.mentiei

[CL 34120165 by allan bentham in ue5-main branch]
2024-06-05 07:04:43 -04:00
chris babcock
144684a829 Fix missing symbol issue with GetSharedPreference functions
#android
[REVIEW] [at]Peter.Sauerbrei
#rb Allan.Bentham, Peter.Sauerbrei

[CL 33867446 by chris babcock in ue5-main branch]
2024-05-23 13:34:17 -04:00
chris babcock
ec9726b651 Add SharedPreferences accessors for Android
#jira UE-215618
#android
[REVIEW] [at]Josh.Adams
#rb Josh.Adams, Peter.Sauerbrei

[CL 33850205 by chris babcock in ue5-main branch]
2024-05-22 19:31:39 -04:00
chris babcock
32c5da020c Android background downloading service
#android
[REVIEW] [at]peter.sauerbrei
#rb Peter.Sauerbrei

[CL 33785862 by chris babcock in ue5-main branch]
2024-05-20 21:25:44 -04:00
johan berg
0e7e066e2c Preset for "light" memory tracing
In some cases it could be useful to trace detailed allocations without callstack, and solely rely on tags for analysis. Enable by starting the process with `-trace=memory_light`.

#rb ionut.matasaru, dmytro.ivanov

[CL 33652379 by johan berg in ue5-main branch]
2024-05-15 03:43:13 -04:00
allan bentham
3646149749 Do not wait for android PSO compiler services to bind.
- Fixes potential ANR by not requiring response (and blocking android event thread)
 - PSO service usage should check AndroidThunkJava_AreProgramServicesReady first.
 - AndroidThunkJava_HaveServicesFailed indicates binding has failed.
#rb chris.babcock

[CL 33380495 by allan bentham in ue5-main branch]
2024-05-01 15:36:21 -04:00
rafa lecina
4a6e516ebd Set user agent on mobile WebView browsers
[REVIEW] [at]chris.babcock, [at]josh.adams, [at]michael.kirzinger, [at]allan.zhang, [at]dashan.yue, [at]erida.dule
#rb Chris.Babcock, dashan.yue
#tests Checked user agent behaviour on Win64, Android and iOS

[CL 33327862 by rafa lecina in ue5-main branch]
2024-04-30 05:53:42 -04:00
ahmed siddique
187fb013b4 New: cleanup ASIS impact on GameActivity
QA: should check this change to ensure the 4 finger touch and other crashes are addressed.
#android
#rb ahmed.siddique

[CL 32458987 by ahmed siddique in ue5-main branch]
2024-03-22 22:50:47 -04:00
ahmed siddique
3c41fc2ddc [Backout] - CL32410244
[FYI] ahmed.siddique
Original CL Desc
-----------------------------------------------------------------
New: Cleanup and simplify GameActivity.java.template changes to be less intrusive and support ASIS.
BugFix: Cleanup Android engine source logic to have minimal impact when not using ASIS.

#ushell-cherrypick of 32146848 by ahmed.siddique
#rb Chris.Babcock
#jira UE-210348, FORT-720545

[CL 32441502 by ahmed siddique in ue5-main branch]
2024-03-22 14:02:54 -04:00
ahmed siddique
b443cdcd68 New: Cleanup and simplify GameActivity.java.template changes to be less intrusive and support ASIS.
BugFix: Cleanup Android engine source logic to have minimal impact when not using ASIS.

#ushell-cherrypick of 32146848 by ahmed.siddique
#rb Chris.Babcock
#jira UE-210348, FORT-720545

[CL 32413941 by ahmed siddique in ue5-main branch]
2024-03-21 16:29:33 -04:00
chris babcock
e17b91a1ee Set input text to black on Android with new theme
#android
[REVIEW] [at]Peter.Sauerbrei
#rb Peter.Sauerbrei

[CL 31670774 by chris babcock in ue5-main branch]
2024-02-20 21:10:57 -05:00
chris babcock
698c518891 Update Android styles to more modern base theme
#jira UE-205231
#android
[REVIEW] [at]Ben.Temple
#rb Ben.Temple

[CL 31536872 by chris babcock in ue5-main branch]
2024-02-15 16:46:17 -05:00
ahmed siddique
3222d8487d Do cleanup in LaunchAndroid.cpp and remove any logic that was experimental
Cleanup runOnUiThread in SimpleContextWrapper.java
fixes bug for

#android
#rb chris.babcock

#changelist validated
#virtualized

[CL 31233409 by ahmed siddique in ue5-main branch]
2024-02-06 17:23:15 -05:00
allan bentham
7212e96ae9 EGL's Robust context can change the result of GL's shader compiler/linker.
Make sure the robust context setting is replicated on the external compilers services and also changes OGL shader cache hash when enabled.
#rb Chris.Babcock, Peter.Sauerbrei
[REVIEW] [at]chris.babcock, [at]peter.sauerbrei

[CL 31165214 by allan bentham in ue5-main branch]
2024-02-04 20:10:20 -05:00
ahmed siddique
79fccbac98 Refactoring onCreate for GameActivity and switching nativemain to use AndroidMain, also updating ASISStub to properly handle activity change and theme change.
Also added gradle build files for ASISStub to make it easier to use the sample android app to test Android Single Instance
Also fixes for Jira: UE-205628
Jira UEHMI-316
#android
#rb Chris.Babcock, matthew.sorrels
#jira UE-205628

[CL 31101181 by ahmed siddique in ue5-main branch]
2024-02-01 16:04:43 -05:00
ahmed siddique
2af857e2c1 Android SingleInstanceService fixes for crash and activity switching.Also updated ASISStub and output ASISProject
#rb Chris.Babcock, matthew.sorrels
#android

[CL 31009144 by ahmed siddique in ue5-main branch]
2024-01-30 11:45:19 -05:00
rafa lecina
6a39de8a9f Update GooglePlay games dependencies. This includes
- Create our own JNI wrapper on top of latest play-services-games-v2 classes
 - Adapt OSSGooglePlay to use this wrapper
 - Remove deprecated/unsupported functionality
 - Fix some issues with JNI support

#jira UE-201481
[REVIEW] [at]Michael.Kirzinger, [at]Chris.Babcock, [at]Bertrand.Carre
#rb Chris.Babcock, Michael.Kirzinger, Sam.Zamani

[CL 30963393 by rafa lecina in ue5-main branch]
2024-01-29 03:39:53 -05:00
ahmed siddique
81e2dbfee7 Android SingleInstance Services fixes to address crash and activity/surface binding issues.
known issues remaining: have to pause before switching surface binding (should be handled internally eventually)
need to finish up the changes for compiling reference ASIS android studio project samlple. This will be in another submit.
#rb chris.babcock
#android

[CL 30685682 by ahmed siddique in ue5-main branch]
2024-01-18 11:23:13 -05:00
chris babcock
3dcdaa237d Fix usage of _activity errors
#android
[REVIEW] [at]Ben.Temple
#rb Ben.Temple

[CL 30342745 by chris babcock in ue5-main branch]
2023-12-14 22:26:25 -05:00