Commit Graph

461 Commits

Author SHA1 Message Date
Raman Tenneti
271e79a7cb Revert "AOSP/Messaging - Added LOCAL_COMPATIBILITY_SUITE := device-tests to fix "Missing test_suite setting for test"." am: 7d08344e9b am: 4909a68c63
am: a75208c630

Change-Id: I4ffb150a38350e47c687771518477df2b2403526
2019-03-22 13:42:42 -07:00
Raman Tenneti
a75208c630 Revert "AOSP/Messaging - Added LOCAL_COMPATIBILITY_SUITE := device-tests to fix "Missing test_suite setting for test"." am: 7d08344e9b
am: 4909a68c63

Change-Id: Idf4bf179cb51decc6d319252c23236b3be5a0776
2019-03-22 13:38:42 -07:00
Raman Tenneti
4909a68c63 Revert "AOSP/Messaging - Added LOCAL_COMPATIBILITY_SUITE := device-tests to fix "Missing test_suite setting for test"."
am: 7d08344e9b

Change-Id: I718abce9535d773fb02bf23e63b555e47a31c410
2019-03-22 13:35:40 -07:00
Raman Tenneti
7d08344e9b Revert "AOSP/Messaging - Added LOCAL_COMPATIBILITY_SUITE := device-tests to fix "Missing test_suite setting for test"."
This reverts commit bada9f9b46.

Reason for revert: <INSERT REASONING HERE>

Change-Id: I17281de5c14e7c285d263729167f208cbea4f7d5
2019-03-22 18:08:22 +00:00
Raman Tenneti
7900c4cb02 AOSP/Messaging - Added LOCAL_COMPATIBILITY_SUITE := device-tests to fix "Missing test_suite setting for test". am: bada9f9b46 am: 62f573f1ef
am: 10d7e7db2a

Change-Id: I62cb167f0cf28d2c9327b646eb24a6e7b88e72be
2019-02-27 15:01:36 -08:00
Raman Tenneti
10d7e7db2a AOSP/Messaging - Added LOCAL_COMPATIBILITY_SUITE := device-tests to fix "Missing test_suite setting for test". am: bada9f9b46
am: 62f573f1ef

Change-Id: I1dcf047ed00cdfeb778714322d2339312b41a134
2019-02-27 14:57:32 -08:00
Raman Tenneti
62f573f1ef AOSP/Messaging - Added LOCAL_COMPATIBILITY_SUITE := device-tests to fix "Missing test_suite setting for test".
am: bada9f9b46

Change-Id: I9e4443ddc278dd1f5bb3cd42dac451578538e2f8
2019-02-27 14:52:28 -08:00
Raman Tenneti
bada9f9b46 AOSP/Messaging - Added LOCAL_COMPATIBILITY_SUITE := device-tests to fix "Missing test_suite setting for test".
+ Added keepclass ContactPickerFragment to fix the following exception.
  Caused by: java.lang.ClassNotFoundException: Didn't find class "com.android.messaging.ui.contact.ContactPickerFragment"

Bug: 126516784

Test: make messagingtests and tested the messaging UI manually. Ran the following CTS tests on Pixel phone.

$ make -j 40
  -rw-r--r-- 1 rtenneti primarygroup 8624061 Feb 27 10:55 out/target/product/marlin/system/app/messaging/messaging.apk

$ make messagingtests -j
  -rw-r--r-- 1 rtenneti primarygroup 729713 Feb 27 10:33 out/target/product/marlin/testcases/messagingtests/messagingtests.apk

$ adb install -r -d out/target/product/marlin/system/app/messaging/messaging.apk

$ adb install -r -d out/target/product/marlin/testcases/messagingtests/messagingtests.apk

$ adb shell am instrument -w com.android.messaging.test
  Time: 13.18
  OK (113 tests)

CTS tests for Mesaging app
---------------------------
$ ./development/testrunner/runtest.py --path cts/tests/app/src/android/app/cts/NotificationTest.java
  android.app.cts.NotificationTest:...........................
  Time: 0.263
  OK (27 tests)

atest
-----
$ cd .../packages/apps/Messaging
$ atest
  messagingtests: Passed: 113, Failed: 0, Ignored: 0
  All tests passed!

Change-Id: I559b25aeb536489478fb3511b611e76da1891874
2019-02-27 11:08:03 -08:00
Xin Li
ed868b5ad0 Merge stage-aosp-master into pi-dev-plus-aosp
am: aed6ac8955

Change-Id: Ibbbe228273b79a7bdef6f998bda20f19a948ac86
2019-02-25 01:30:16 -08:00
Xin Li
aed6ac8955 Merge stage-aosp-master into pi-dev-plus-aosp
Bug: 126125118
Change-Id: I431c3fa628a21e2a3ea8fa4e071fe543e7c33f5b
2019-02-25 00:31:02 -08:00
Xin Li
bb9b93a2a6 DO NOT MERGE - Merge pi-dev@5234907 into stage-aosp-master
Bug: 120848293
Change-Id: I1fbc854ec297abc3f113f2650567f27de8623d73
2019-02-20 16:19:39 -08:00
Raman Tenneti
b29b72ea05 AOSP/Messaging - update the Messaging version to target P (28) or higher. Use JobIntentService to start the Backgroundworkerservice and ActionServiceImpl services. am: cdf40bb061 am: b966c435c6
am: 1d423c5fe5

Change-Id: Ibc75e9508f7c82368e282624ba8a06f41a6ce5f8
2019-02-20 03:16:31 -08:00
Raman Tenneti
1d423c5fe5 AOSP/Messaging - update the Messaging version to target P (28) or higher. Use JobIntentService to start the Backgroundworkerservice and ActionServiceImpl services. am: cdf40bb061
am: b966c435c6

Change-Id: I68054092f46072fe520797eabe292b4a969670a7
2019-02-20 03:12:29 -08:00
Raman Tenneti
b966c435c6 AOSP/Messaging - update the Messaging version to target P (28) or higher. Use JobIntentService to start the Backgroundworkerservice and ActionServiceImpl services.
am: cdf40bb061

Change-Id: Id2cc2258a1cf787dad7238496d54cd6a2419b951
2019-02-20 03:08:29 -08:00
Raman Tenneti
cdf40bb061 AOSP/Messaging - update the Messaging version to target P (28) or higher.
Use JobIntentService to start the Backgroundworkerservice and
ActionServiceImpl services.

+ Deleted WakeLock code.
+ Made changes to com.android.messaging.test tests so that all tests
  pass with the new JobService. I am not sure if these tests passed
  before these changes.
+ CTS tests passed without any changes.
+ Added TEST_MAPPING file for presubmit tests.

Bug: 115499280
Bug: 119503204

Test: manual - Tested the messaging UI. Ran the following CTS tests on Pixel phone.

$ make -j 40
  rw-r--r-- 1 rtenneti primarygroup 8624061 Feb 19 12:37 out/target/product/marlin/system/app/messaging/messaging.apk

$ make messagingtests -j
  -rw-r--r-- 1 rtenneti primarygroup 729713 Feb 19 12:52 out/target/product/marlin/testcases/messagingtests/messagingtests.apk

$ adb install -r -d out/target/product/marlin/system/app/messaging/messaging.apk

$ adb install -r -d out/target/product/marlin/testcases/messagingtests/messagingtests.apk

$ adb shell am instrument -w com.android.messaging.test
  Test results for InstrumentationTestRunner=...........
  Time: 13.353
  OK (113 tests)

CTS tests for Mesaging app
---------------------------
$ ./development/testrunner/runtest.py --path cts/tests/app/src/android/app/cts/NotificationTest.java
  android.app.cts.NotificationTest:...........................
  Time: 0.299
  OK (27 tests)

atest
-----
$ cd .../packages/apps/Messaging
$ atest
  Running Tests...
  messagingtests (113 Tests)
  -------------------------
  ...
  [113/113] com.android.messaging.util.YouTubeUtilTest#testGetYoutubePreviewImageLink: PASSED (2ms)

  Results from tests that require device:

  Summary
  -------
  messagingtests: Passed: 113, Failed: 0, Ignored: 0

  All tests passed!

Change-Id: I9494f0750954e6364abb695aa867494669ae54c4
2019-02-19 14:52:18 -08:00
Aurimas Liutikas
8d12ad9be3 [automerger skipped] Migrate Messaging to androidx. am: 1b693ea7df am: 2310d69876
am: a1413d3c85 -s ours
am skip reason: change_id I9103450622f129311545648ac75f5b2f9fc2d04a with SHA1 f38a1bdc3c is in history

Change-Id: Icd24f40abc4827f92f64e98e032eb954a3dcd8a2
2019-02-19 12:28:44 -08:00
Aurimas Liutikas
a1413d3c85 Migrate Messaging to androidx. am: 1b693ea7df
am: 2310d69876

Change-Id: I0188a4341f01c8810806836861f642a1c6293649
2019-02-19 12:17:45 -08:00
Aurimas Liutikas
2310d69876 Migrate Messaging to androidx.
am: 1b693ea7df

Change-Id: Ib82fc411e687738b85c96259765ec170c245b4bd
2019-02-19 11:33:00 -08:00
Aurimas Liutikas
1b693ea7df Migrate Messaging to androidx.
Test: make messaging
Bug: 76692459
Change-Id: I9103450622f129311545648ac75f5b2f9fc2d04a
Merged-In: I9103450622f129311545648ac75f5b2f9fc2d04a
2019-02-14 22:59:57 +00:00
calvinpan
4ca51c79c2 [automerger skipped] Migrate to TelephonyProvider new URI when query the current sim APN am: 7ea2a930be am: f465b8039c
am: 4f20d0b9ae -s ours
am skip reason: change_id I260f2da2677564f37ef6a7711d45040a61215ddc with SHA1 7d0e40963a is in history

Change-Id: I09f51cf216b1192c215a394fdbb9f5e727d686c2
2019-01-18 17:44:02 -08:00
calvinpan
4f20d0b9ae Migrate to TelephonyProvider new URI when query the current sim APN am: 7ea2a930be
am: f465b8039c

Change-Id: Ie5dca9884a51b12989505a4f60e9ae60c9fe4786
2019-01-18 17:15:13 -08:00
calvinpan
f465b8039c Migrate to TelephonyProvider new URI when query the current sim APN
am: 7ea2a930be

Change-Id: If086c0216d9e5b38aceff01277b103b8d6a10ced
2019-01-18 17:05:19 -08:00
calvinpan
7ea2a930be Migrate to TelephonyProvider new URI when query the current sim APN
Since MCC, MNC and MVNO is deprecated in the TelephonyProvider and
query based on SIM_APN_URI will return all matching APNs from current
subscription carrier, so migrate to the new URI.

Bug: 115709816
Test: Build pass.
Change-Id: I260f2da2677564f37ef6a7711d45040a61215ddc
Merged-In: I260f2da2677564f37ef6a7711d45040a61215ddc
2019-01-18 03:25:55 +00:00
Calvin Pan
ebb3c6d156 Merge "Migrate to TelephonyProvider new URI when query the current sim APN" 2019-01-12 11:34:15 +00:00
Dan Willemsen
baa38c6a23 Replace USER with BUILD_USERNAME am: 88c7bd15a8 am: e0f4749cb7
am: 8c1ff04763

Change-Id: I240e695faeac98eff011057cfb9369b743bdf44d
2019-01-11 11:53:53 -08:00
Zach Riggle
f4a51c8ebb [automerger skipped] Fix 'date' so that it does not cause regeneration for unbundled builds am: a48eac716c am: 7154309624
am: 7cca9ba4fd -s ours
am skip reason: change_id I2eeda1e9dd51a56bf0783f427b4fcf5a1f489254 with SHA1 058a0cb454 is in history

Change-Id: Ibcbcd6687aa709140239ccd7e486ad9eb1606f9f
2019-01-11 11:53:45 -08:00
Dan Willemsen
8c1ff04763 Replace USER with BUILD_USERNAME am: 88c7bd15a8
am: e0f4749cb7

Change-Id: I485aa7366ebf2443152a28c957dc377f57b642e8
2019-01-11 11:13:42 -08:00
Zach Riggle
7cca9ba4fd Fix 'date' so that it does not cause regeneration for unbundled builds am: a48eac716c
am: 7154309624

Change-Id: I9a177486d2feaa409656244e7e856396227581ef
2019-01-11 11:13:34 -08:00
Dan Willemsen
e0f4749cb7 Replace USER with BUILD_USERNAME
am: 88c7bd15a8

Change-Id: Ia06610aac9728d4aedbb570f47e505e363a37e45
2019-01-11 10:54:05 -08:00
Zach Riggle
7154309624 Fix 'date' so that it does not cause regeneration for unbundled builds
am: a48eac716c

Change-Id: I8486eeafeb6e3c6de1e6a83a50bb159ea5a03ff8
2019-01-11 10:54:00 -08:00
Dan Willemsen
88c7bd15a8 Replace USER with BUILD_USERNAME
USER may be "nobody" if the build is sandboxed. BUILD_USERNAME will have
the original value in all cases.

Bug: 122270019
Test: none
Change-Id: Id7122113f1764cb2e676e96e255f47675f831f83
2019-01-10 17:16:24 -08:00
Zach Riggle
a48eac716c Fix 'date' so that it does not cause regeneration for unbundled builds
Currently a 'tapas' build will regenerate each time with:

    $(shell date +%m%d%y_%H%M%S) was changed, regenerating...

Change-Id: I2eeda1e9dd51a56bf0783f427b4fcf5a1f489254
Merged-In: I2eeda1e9dd51a56bf0783f427b4fcf5a1f489254
2019-01-10 17:16:18 -08:00
calvinpan
7d0e40963a Migrate to TelephonyProvider new URI when query the current sim APN
Since MCC, MNC and MVNO is deprecated in the TelephonyProvider and
query based on SIM_APN_URI will return all matching APNs from current
subscription carrier, so migrate to the new URI.

Bug: 115709816
Test: Build pass.
Change-Id: I260f2da2677564f37ef6a7711d45040a61215ddc
2019-01-10 20:25:47 +08:00
Chih-Hung Hsieh
b67a4468d6 Correct some errors in owners list. am: ebf6b1c285 am: b24a7af8e2
am: f1ee096503

Change-Id: Id9a7d0a143ecfbe71f35bb1a7cfaeaa72c5ceab1
2019-01-09 12:20:08 -08:00
Chih-Hung Hsieh
f1ee096503 Correct some errors in owners list. am: ebf6b1c285
am: b24a7af8e2

Change-Id: Ib37f9932464718b0cacaf01dec06a3eda494637f
2019-01-09 12:14:30 -08:00
Chih-Hung Hsieh
b24a7af8e2 Correct some errors in owners list.
am: ebf6b1c285

Change-Id: I92e0e55b96258bbdea5efb370bd55a1f8a126f48
2019-01-09 12:10:33 -08:00
Chih-Hung Hsieh
ebf6b1c285 Correct some errors in owners list.
Bug: 33166666
Test: gerrit uploader
Change-Id: I2483e2afc4f6c89e7b59095b950160ffa4c7c874
2019-01-09 09:43:14 -08:00
Chih-Hung Hsieh
fe28b9d4f8 Add default code reviewers into OWNERS am: 40ad6823a7 am: 55327087cd
am: 79a7e2dc9a

Change-Id: I2449778523c55cdcc95151f198cca900b4545e1b
2019-01-08 14:23:57 -08:00
Chih-Hung Hsieh
79a7e2dc9a Add default code reviewers into OWNERS am: 40ad6823a7
am: 55327087cd

Change-Id: I9eb950d88b720fb85a52647a532843dd40d2e5d7
2019-01-08 14:14:47 -08:00
Chih-Hung Hsieh
55327087cd Add default code reviewers into OWNERS
am: 40ad6823a7

Change-Id: I0c95cc57941669765d49010475631acc8825426e
2019-01-08 14:11:41 -08:00
Chih-Hung Hsieh
40ad6823a7 Add default code reviewers into OWNERS
Bug: 33166666
Test: gerrit uploader
Change-Id: I6f35e1234694c4ac91b77bbbb9acd0da7ea80cba
2019-01-08 11:36:29 -08:00
Xin Li
a02c895f25 [automerger skipped] DO NOT MERGE am: c020ac4b78 -s ours am: ae78a1a65e -s ours
am: f531c6dc79  -s ours

Change-Id: I4d229684c5124f2ec6fda10e983b5580ea2dad56
2018-12-10 12:57:03 -08:00
Xin Li
f531c6dc79 [automerger skipped] DO NOT MERGE am: c020ac4b78 -s ours
am: ae78a1a65e  -s ours

Change-Id: I89fb7af89188f9d046e082a998f0c69875de283a
2018-12-10 11:13:17 -08:00
Xin Li
ae78a1a65e [automerger skipped] DO NOT MERGE
am: c020ac4b78  -s ours

Change-Id: I0e13b090f2aa21482afcf798333e20441fae0873
2018-12-10 10:10:14 -08:00
Xin Li
c020ac4b78 DO NOT MERGE
Merge pie-platform-release (PPRL.181205.001, history only) into master

Bug: 120502534
Change-Id: Id931c19bd78c83aa24c821f12691f92925fdafbe
2018-12-07 16:14:49 -08:00
Raman Tenneti
cc8502ad57 AOSP/Messaging - updated tests target version to 24 to match the Messaing app's targetSdkVersion. All messagingtests tests pass/work. + ParticipantRefreshTest - Added UIIntents and FakeDataModel. Fixed the errors in the data verification. + GetOrCreateConversationActionTest - changed the blankId assert to assertEquals because 10 conversations were inserted when database was created. + ConversationFragmentTest - Return mockDraftMessageData even if createDraftMessageData is called with null argument. am: c188adbeaa am: a7f76f672a
am: c284495bbd

Change-Id: I0185a03ae7f2e78b04f1e5e10ba7dbf4f2a2d896
2018-12-04 00:09:28 -08:00
Raman Tenneti
c284495bbd AOSP/Messaging - updated tests target version to 24 to match the Messaing app's targetSdkVersion. All messagingtests tests pass/work. + ParticipantRefreshTest - Added UIIntents and FakeDataModel. Fixed the errors in the data verification. + GetOrCreateConversationActionTest - changed the blankId assert to assertEquals because 10 conversations were inserted when database was created. + ConversationFragmentTest - Return mockDraftMessageData even if createDraftMessageData is called with null argument. am: c188adbeaa
am: a7f76f672a

Change-Id: Ic8af9d69b14a370036c0e4be910a586ec2c63bd9
2018-12-04 00:05:29 -08:00
Raman Tenneti
a7f76f672a AOSP/Messaging - updated tests target version to 24 to match the Messaing app's targetSdkVersion. All messagingtests tests pass/work. + ParticipantRefreshTest - Added UIIntents and FakeDataModel. Fixed the errors in the data verification. + GetOrCreateConversationActionTest - changed the blankId assert to assertEquals because 10 conversations were inserted when database was created. + ConversationFragmentTest - Return mockDraftMessageData even if createDraftMessageData is called with null argument.
am: c188adbeaa

Change-Id: I652736cfaf848775fbbf09b8f393a5b381b5b78b
2018-12-03 23:58:01 -08:00
Raman Tenneti
c188adbeaa AOSP/Messaging - updated tests target version to 24 to match the Messaing app's targetSdkVersion. All messagingtests tests pass/work.
+ ParticipantRefreshTest - Added UIIntents and FakeDataModel. Fixed the errors in the data verification.
+ GetOrCreateConversationActionTest - changed the blankId assert to assertEquals because 10 conversations were inserted when database was created.
+ ConversationFragmentTest - Return mockDraftMessageData even if createDraftMessageData is called with null argument.

Bug: 119503204

Test: manual - Ran the following CTS tests on Pixel phone. Tested the messaging UI.

$ make -j 40

$ make messagingtests -j

$ ls -l out/target/product/marlin/system/app/messaging/messaging.apk
  -rw-r--r-- 1 rtenneti primarygroup 8974412 Dec  3 17:21 out/target/product/marlin/system/app/messaging/messaging.apk

$ ls -l  out/target/product/marlin/testcases/messagingtests/messagingtests.apk
  -rw-r--r-- 1 rtenneti primarygroup 709233 Dec  3 17:25 out/target/product/marlin/testcases/messagingtests/messagingtests.apk

$ adb install -r -d out/target/product/marlin/system/app/messaging/messaging.apk

$ adb install -r -d out/target/product/marlin/testcases/messagingtests/messagingtests.apk

$ adb shell am instrument -w com.android.messaging.test
  Test results for InstrumentationTestRunner=.........................................
  Time: 13.376
  OK (113 tests)

Change-Id: Ib5784b9ed0b9086f153dd438b2b791ae0bca2621
2018-12-03 17:34:14 -08:00
Raman Tenneti
0ccffe7520 Revert "AOSP/Messaging - update the Messaging version to target P (28) or higher. Fixed tests in messagingtests. All tests pass/work." am: a302369720 am: c7f3a297a3
am: be218f9e9c

Change-Id: I2c75b2e64683cf07046911c08bb9fded1be692d1
2018-12-03 16:21:20 -08:00