aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/android/androidavdmanager.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Android: rephrase few logsAssam Boudjelthia2020-07-011-2/+2
| | | | | Change-Id: If03a15c88caab210fd07c61312757317ea86af2f Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* Android: remove old android toolAssam Boudjelthia2020-07-011-3/+0
| | | | | | | | Follows af7c218d95d670080893356af7a42c672f1de1a9, the old android tool is not useful anymore. Change-Id: I126ecc24622f2e90465440c86b84cdfb30c103e1 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* Android: remove native sdk and avd manager buttonsAssam Boudjelthia2020-06-261-19/+0
| | | | | | | | | | | | | The native SDK and AVD manager buttons are no longer useful, since the original, visual Java-basd tool for managing SDK and AVDs were removed from Google's offering. The replacement is a set of command line tools and a visual tool within Android Studio, which can not directly be launched from Qt Creator. Qt Creator has it's UI on top of the command line tools. Change-Id: If660d7f566c173f46d9b2a97c9204746d33270e6 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* Android: Remove some unused variablesChristian Kandeler2020-04-231-1/+0
| | | | | Change-Id: Id6d8f0735c410a331c406a3f3a094aac5f03f5a9 Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
* Android: Fix UNINIT_CTOR and PASS_BY_VALUE issuesAssam Boudjelthia2020-02-111-2/+2
| | | | | Change-Id: Ie77e69226769d9ea0440611f2f5985c5ec08beaa Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* Make various Q_LOGGING_CATEGORY's staticAlessandro Portale2020-01-151-1/+1
| | | | | Change-Id: I43d3a198b0863d85a7fb305c7cb768f68acbd139 Reviewed-by: hjk <hjk@qt.io>
* Android: Fix AVD info parsing for renamed instancesAlessandro Portale2020-01-141-1/+1
| | | | | | | | | | Android Studio's AVD manager renames the AVD info file to match the instance ID. Task-number: QTCREATORBUG-23448 Change-Id: Id8ff0a53ae93b168c55442166072d14c5c84d2e0 Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io> Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* Android: Log various avdmanager invocationsAlessandro Portale2020-01-141-5/+13
| | | | | | | | ... in order to to understand what Qt Creator does when creating, deleting or launching AVDs. Change-Id: Iebcc9273746ad89069870ee09dab67c127b10be9 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Android: Remove unnecessary block of code from AndroidDeviceInfoListAssam Boudjelthia2020-01-141-3/+0
| | | | | | Task-number: QTCREATORBUG-23284 Change-Id: I006ed8b63e979b4e3b27035f3b6838870ea7a11b Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* Android: Improve "Add new AVD" dialogAssam Boudjelthia2020-01-131-21/+10
| | | | | | | | | | | | | | * Re-organize the implementation to create a new AVD * Use SystemImage instead of SdKPlatform because now an SdkPlatform can be installed partially with a SystemImage. The current implementation does not consider the this case, thus we end up with an uncomplete list of installed system images. * Add Device definitions with categories (phone, tablet, tv, etc.) to the creation process (check -d arg in avdmanager create avd). Task-number: QTCREATORBUG-23284 Change-Id: Id02a71ad452fb423fa2781d06ef3fcf2afa328a9 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* Android: fix avdmanager parsing error for some new device typesAssam Boudjelthia2020-01-131-11/+64
| | | | | | | | | | | | | Currently avdmanager tool can give an error "Error: Google <device> no longer exists as a device", due to missing definition for new devices in device.xml. This change temporarily removes the tag "hw.device.manufacturer" to parse successfully, then recover it back. Task-number: QTCREATORBUG-23284 Change-Id: I9c6f4b432d7c5d16944c9b620c4a4ecda473d45a Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* Android: Add more informative fields to AVD manager UIAssam Boudjelthia2020-01-081-0/+12
| | | | | | Task-number: QTCREATORBUG-23284 Change-Id: Ic93de1c05731360b85925acd23bdca12edc56069 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* Android: Log invocations of avdmanagerAlessandro Portale2020-01-081-0/+1
| | | | | Change-Id: I32e4fe3d837adcb6860247f45757187902566934 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Use Utils::FilePath in SynchronousProcesshjk2019-06-111-8/+8
| | | | | | | Adapt callers and surrounding code. Change-Id: Ie6c1883a44169cf9d790d06b660f46d24dc24c89 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Utils: Rename FileName to FilePathhjk2019-05-281-3/+3
| | | | | | | | More in line with QFileInfo terminonlogy which appears to be best-of-breed within Qt. Change-Id: I1d051ff1c8363ebd4ee56376451df45216c4c9ab Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Some more FileName::appendPath -> pathAppended() changeshjk2019-05-151-2/+2
| | | | | Change-Id: Ia05b54f157b08353d5a9efccee48dfc212d3a489 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Utils: Introduce a non-mutating FileName::pathAppendedhjk2019-05-151-2/+1
| | | | | | | ... and start using it. The plan is to replace all appendPath() uses. Change-Id: I555bcfa742b99b0951b98b0c0e707422c348fadb Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Merge remote-tracking branch 'origin/4.9'Eike Ziller2019-05-081-4/+0
|\ | | | | | | | | | | | | | | | | | | | | | | Conflicts: doc/src/howto/creator-sidebar-views.qdoc doc/src/howto/creator-ui.qdoc qbs/modules/qtc/qtc.qbs qtcreator.pri src/plugins/autotest/testresultmodel.cpp src/plugins/autotest/testresultmodel.h Change-Id: I24cc585ca7782cb1d9cb0b8b73b46892b41937fd
| * Android: fix avd creation for google play imagesBogDan Vatra2019-05-031-4/+0
| | | | | | | | | | | | | | | | Latest avdmanager doesn't support "--tag" argument anymore and it fails big time. Change-Id: I9b1296a1813623d44add3e9e783b8395e6865cf2 Reviewed-by: hjk <hjk@qt.io>
* | Replace static_casts by QOverload where possiblehjk2019-02-261-1/+1
| | | | | | | | | | | | | | | | | | Mainly to get rid of the QProcess::finished deprecation warning. Also adjust coding style in the surrounding connects when needed. Change-Id: I12f9b248c7974b892c4a069356e578e80f8c59e9 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* | setReadChannelMode -> setProcessChannelModeTim Jenssen2019-02-071-1/+1
|/ | | | | | | setReadChannelMode is obsolete since some time Change-Id: I91567d38d3509c7d1b174da4e6ca160c4b5d8452 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* ProjectExplorer: Rework the build step run interfaceChristian Kandeler2019-01-311-5/+7
| | | | | | | | | | | | | | | | | | | | | Originally, the build manager used to run all build steps in a dedicated thread. Communication between the step and the manager happened via a QFutureInterface that was passed into the step's run() function. Later, new steps were added that operated asynchronously, so the build manager had to differentiate between the different kinds of steps for starting and stopping. These days, almost all build and deploy steps work asynchronously, which made the QFuture-based interface look increasingly odd. With this patch, all build steps are expected to work asynchronously, so the build manager no longer needs to differentiate. Steps are started and requested to stop via the run() and cancel() functions, respectively, and emit the finished() signal when they are done. Build step implementors no longer have to deal with a QFutureInterface. For steps whose implementation is inherently synchronous, the BuildStep base class offers a runInThread() function. Change-Id: If905c68b234c5a669f6e19f43142eaa57d594803 Reviewed-by: hjk <hjk@qt.io>
* Canonicalize some includesChristian Kandeler2019-01-101-5/+5
| | | | | | | | | | | | Our canonical style is #include <utils/fileutils.h> rather than #include "utils/fileutils.h" Which makes sense, as such headers will never be found in the local directory. Change-Id: I4ca46e90d6c4d19d4b1f235f4c79caad864ef222 Reviewed-by: hjk <hjk@qt.io>
* Remove hard-coded disabling of debug logsOrgad Shaneh2018-10-131-1/+1
| | | | | | | | | | | Instead, set the default level of all logs to QtWarningMsg. The call to setFilterRules overrides the user preferences in qtlogging.ini. Change-Id: Id5f6cd550d14ff7f45ae04c5d3110e0bafb0f072 Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: Kai Koehne <kai.koehne@qt.io> Reviewed-by: hjk <hjk@qt.io>
* Android: ModernizeAlessandro Portale2018-07-261-5/+2
| | | | | | | | | | | | modernize-use-auto modernize-use-nullptr modernize-use-override modernize-use-using modernize-use-equals-default modernize-use-transparent-functors Change-Id: I6c9e567edf16cf436c0e0c1239b40f74574a1096 Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io>
* Android: Merge output channels of AVD processUlf Hermann2018-05-221-0/+1
| | | | | | | | Otherwise, if the process produces a non-0 exit code, we get an error message with only the stdout, which likely is empty. Change-Id: I3b84f928cf786015aab499cdc2277d530d243841 Reviewed-by: BogDan Vatra <bogdan@kdab.com>
* Merge remote-tracking branch 'origin/4.6'Eike Ziller2018-04-261-0/+2
|\ | | | | | | | | | | | | Conflicts: src/plugins/cmakeprojectmanager/cmakerunconfiguration.cpp Change-Id: Ia723411f4b5c9c90f9786223ac6a7346d7ab9b99
| * Android: Set proper environment for the avdmanager toolVikas Pachdha2018-04-201-0/+2
| | | | | | | | | | | | Task-number: QTCREATORBUG-19988 Change-Id: If34b4ff570ed6d6fdbb91435913d9130feceb499 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
* | Android: Check for AVD startup failureVikas Pachdha2018-04-201-2/+17
| | | | | | | | | | | | Task-number: QTCREATORBUG-20160 Change-Id: Ifbae6d10da6c782e701bc7840ce4324526d0dd82 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
* | Android: Check for missing emulator toolVikas Pachdha2018-04-191-0/+11
|/ | | | | | | Task-number: QTCREATORBUG-20160 Change-Id: I481adfe9a7a1b2c9c151d01d2fe1b010735c898b Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: hjk <hjk@qt.io>
* Android: Add explicit tag for google_apis system imagesVikas Pachdha2018-04-191-1/+6
| | | | | | Task-number: QTCREATORBUG-20298 Change-Id: I9bc4d9192584ffbc1180ae7b69f334c915ca16f4 Reviewed-by: BogDan Vatra <bogdan@kdab.com>
* Android: Add API to check whether to use native SDK UI toolsVikas Pachdha2017-10-111-11/+4
| | | | | | Task-number: QTCREATORBUG-18978 Change-Id: I1cf4749e81b3b49de14ff88a5876569886d2cdfe Reviewed-by: BogDan Vatra <bogdan@kdab.com>
* Android: Refactor Android SDK packagesVikas Pachdha2017-10-111-13/+12
| | | | | | | | | | Introduce a hierarchy for Android SDK packages and refactor the code accordingly. This is ground work for sdk management and automatic android setup Task-number: QTCREATORBUG-18978 Change-Id: Idef545e3b3a8e33e920be52b26094fb8046afcd3 Reviewed-by: BogDan Vatra <bogdan@kdab.com>
* Android: Use avdmanager toolVikas Pachdha2017-04-121-0/+441
android tool is deprecated since sdk tools version 25.3.0. Use the new avdmanager tool Task-number: QTCREATORBUG-17814 Change-Id: Id6f495f14e12d0069df08164cac1929b76d9e932 Reviewed-by: BogDan Vatra <bogdan@kdab.com>