Граф коммитов

23585 Коммитов

Автор SHA1 Сообщение Дата
Nick Alexander 2a5888f644 Bug 1371445 - Add |mach android {lint,findbugs,checkstyle,test}| commands for running Android-specific test suites. r=gps
It be ideal to have |mach test {findbugs,test}| and |mach lint
{lint,checkstyle}|, but the |mach test| command is very difficult to
extend in a direction orthogonal to the existing direction.  The
existing |mach test| is built around in-tree manifests, tagged and
divided into suites, intended to support |mach test
path/to/arbitrary/test|.  The Android findbugs task is a global static
analysis that doesn't fit into the path/manifest model.  The Android
test task is based on JUnit and not easy to build manifest support
for.  The |mach lint| command is intended to be extended, but the
effort to extend it is non-trivial and not worth the effort (at this
time).

Therefore, I've taken the existing, little used |mach android| command
and added subcommands for use by local developers and automation.  If
nothing else, this reduces the number of "special Gradle targets" --
the equivalent of "special Make targets" -- sprinkled throughout the
tree, which can only be a good thing!

MozReview-Commit-ID: 24b1vbgykpN

--HG--
extra : rebase_source : 8843a6e3840586fe05a1434484a848d48b2a6e8b
2017-06-12 08:55:54 -07:00
Nick Alexander 789d0037e5 Bug 1371445 - Pre: Fail unit tests if unlimited strength JCE is not installed. r=maliu
This has been a problem as far back as the android-sync repository --
https://github.com/mozilla-services/android-sync#download-prerequisites!

MozReview-Commit-ID: dIWI8WtHKu

--HG--
extra : rebase_source : 783c40122a0e50eb62d8b12ccbfc4f8457724e0f
2017-07-04 13:57:27 -07:00
Nick Alexander d115acda5f Bug 1371445 - Pre: Produce and upload XML and HTML findbugs reports. r=maliu
We want HTML reports for humans and XML reports for processing.  It's
unfortunate that we need to handle this manually, but here we are.

MozReview-Commit-ID: BKEhl7cInPP

--HG--
extra : rebase_source : 8d48b664903bce32def8f0762a86d31c250c3853
2017-07-04 13:05:20 -07:00
Grigory Kruglov 285d2e60bb Bug 1377286 - Allow pinning items to Activity Stream from other home panels r=sebastian
Menu item to pin/unpin items from Bookmarks and History panels is only displayed when
Activity Stream is enabled.

MozReview-Commit-ID: Ko3xmpF2R53

--HG--
extra : rebase_source : 4eefb81224c1cc00ba2eb6147e26119af647d317
2017-07-12 17:58:45 -04:00
Grigory Kruglov 8aeab5083f Bug 1377286 - Pre: firm up access levels in HomeContextMenuInfo r=sebastian
No functional change, simply tightening things up.

MozReview-Commit-ID: 43iHr29NyIx

--HG--
extra : rebase_source : 61b8b6c7cb908826835286fac061762d60d2198e
2017-07-12 17:49:43 -04:00
Nevin Chen 3582e51df5 Bug 1378617 - Fix ClassCastException if the icon is not a BitmapDrawable. r=sebastian
MozReview-Commit-ID: IU9hOPEA7eb

--HG--
extra : rebase_source : 349a91bb4803e0ec1085698eb16335aedc1d8b21
2017-07-11 14:08:33 +08:00
Kilik Kuo 2ea84ca3d4 Bug 1380201 - Make access to some members in GeckoHlsPlayer guarded. r=JamesCheng
MozReview-Commit-ID: 689pXP35NoS

--HG--
extra : rebase_source : 1ff97cb617ada8394b33af2a4edea7389aabb6ed
2017-07-13 00:39:27 +08:00
Kilik Kuo cd0796d840 Bug 1379856 - Provide a HandlerThread for GeckoHlsPlayer instead of using Gecko's MainThread. r=jolin
Gecko's mainthread message queue is getting more tasks along with each creation of GeckoHlsPlayer. We should avoid adding extra work load to gecko's main thread.

MozReview-Commit-ID: 2c5fnmG2hfS

--HG--
extra : rebase_source : 892290a6e4d2c9b120b6dec9d0aae51d0dc0c05d
2017-07-13 00:23:04 +08:00
Julian_Chu 41d31d90be Bug 1379066 - 10. Apply style change in xml r=jwu
This patch is pretty hard to read and review. It only changes styles in
Photon flavor to match designer's design. Includes layout, dimension,
colors....etc. Australis flavor should not aware of this patch.

MozReview-Commit-ID: 9ROK1NcwJfC

--HG--
extra : rebase_source : e4dcd66c7d62c42996cf2f80353be0b0a9bd8cb7
2017-07-07 15:54:04 +08:00
Julian_Chu b247dd70ab Bug 1379066 - 9. Java implementation apply different style r=jwu
We draw curve for Toolbar only in Australis flavor.

Also change resource naming for highlight color to be consistent with
Phton flavor.

MozReview-Commit-ID: E7cFuJs3r6h

--HG--
extra : rebase_source : bbb7e980f93c135433e5941bac9d65e751feb5f1
2017-07-07 15:50:14 +08:00
Julian_Chu d233ed21dc Bug 1379066 - 8. BrowserToolbar notify mode changing r=jwu
Some views in BrowserToolbar is Themed-view, and should be notified by any
normal/private mode changing.

MozReview-Commit-ID: 8hkizdsf0AO

--HG--
extra : rebase_source : 8a2a62e13b1b48713ece3554c0b9423307e9e213
2017-07-07 15:42:06 +08:00
Julian_Chu 921b639b1b Bug 1379066 - 7. Stop button supports Private mode r=jwu
Stop button is in Awesome bar to stop page loading, to let it becomes
ThemedImageButton to support Private mode.

MozReview-Commit-ID: CzbCyx1Mxc4

--HG--
extra : rebase_source : e21de93ca83eb3ed470bc2ede5a090c9e77ff5f7
2017-07-06 16:28:11 +08:00
Julian_Chu de3e7cc58e Bug 1379066 - 6. PageAction supports Private Mode r=jwu
PageAction are views which be added to awesomebar dynamically, for
example "Reader mode icon".

Now let it becomes ThemedImageButton to support Private mode.

MozReview-Commit-ID: HQXgJWL19Oz

--HG--
extra : rebase_source : 7cfde97d4f1eba02497d0219e5b3b61273489625
2017-07-06 13:26:16 +08:00
Julian_Chu f468181c80 Bug 1379066 - 5. Site identity use new drawable r=jwu
The icon for site-identity of Photon is different from Australis. Even
in Photon there are still two version, one for normal mode, one for
private mode.

We cannot simply use tinting to change color of site-identity. Because
of the lock icon should keep green.

MozReview-Commit-ID: Je7wXrq1gEK

--HG--
extra : rebase_source : 7717b5f68b3b61826583cf400637e2a309c952ef
2017-06-23 19:45:58 +08:00
Julian_Chu c5e97aacc1 Bug 1379066 - 4. Readermode icon use new resource r=jwu
In Photon, the reader-mode icon should support private mode. Therefore
we rename resource in Australis to *ic_readermode* for consistent.

MozReview-Commit-ID: 1ejwk3OfUex

--HG--
rename : mobile/android/app/src/main/res/drawable-hdpi/reader.png => mobile/android/app/src/australis/res/drawable-hdpi/ic_readermode.png
rename : mobile/android/app/src/main/res/drawable-hdpi/reader_active.png => mobile/android/app/src/australis/res/drawable-hdpi/ic_readermode_on.png
rename : mobile/android/app/src/main/res/drawable-xhdpi/reader.png => mobile/android/app/src/australis/res/drawable-xhdpi/ic_readermode.png
rename : mobile/android/app/src/main/res/drawable-xhdpi/reader_active.png => mobile/android/app/src/australis/res/drawable-xhdpi/ic_readermode_on.png
extra : rebase_source : 15e62aafe7e895805db10b3d7d7bfb4a641be123
2017-07-06 12:26:05 +08:00
Julian_Chu e967497843 Bug 1379066 - 3. Simplify Toolbar menu in Photon flavor r=jwu
In Photon flavor, only one view for menu button is enough. This patch is to
merge menu and menu-icon into one ThemedImageButton.

MozReview-Commit-ID: KyjsriirmbA

--HG--
extra : rebase_source : 33a7c083f0b8896fdbf95e1ff891ac4ed3bf76fd
2017-06-22 17:33:01 +08:00
Julian_Chu 6025ad2831 Bug 1379066 - 2. duplicate resource action_bar_button.xml r=jwu
We are going to change action_bar_button but we won't effect Australia
flavor.

MozReview-Commit-ID: A1bR7Dyg0xj

--HG--
rename : mobile/android/app/src/main/res/drawable/action_bar_button.xml => mobile/android/app/src/australis/res/drawable/action_bar_button.xml
extra : rebase_source : 768368e4d1e7f7def0822f1af0ebdde5f8df1ae1
2017-07-05 19:07:01 +08:00
Julian_Chu 5fa943c360 Bug 1379066 - 1. add resource files for Photon awesomebar r=jwu
These resource files are for photon only, and might be updated in near
future. Now we add them into repository for basic implementation.

For toolbar action button, to add these files

* ic_mic
* ic_qrcode
* ic_cancel
* ic_overflow
* ic_redermode / on

For site-identity, to add these files

* ic_globe /nm
* ic_lock
* ic_lock_disabled
* ic_warning_minor

--HG--
extra : rebase_source : 56050d212e53481ed0ddaa867ffc6f3da0f86ded
2017-06-23 16:58:57 +08:00
Nevin Chen 92adb3bde0 Bug 1377742 - about:rights shows XML parsing error. r=dao
MozReview-Commit-ID: 6H1pnswjliU

--HG--
extra : rebase_source : 7e946f678e16019bcb30acb231a2c429ed4b9421
2017-07-11 13:38:02 +08:00
Nevin Chen 9849094a87 Bug 1374889 - Gather user attributes before MMA inits. r=maliu
MozReview-Commit-ID: 5v28pWzYYWj

--HG--
extra : rebase_source : a36744f125a54e05a29702d75c9449ce4afcaae9
2017-07-10 10:16:19 +08:00
Nevin Chen 57864641f5 Bug 1374889 - Update Leanplum document for Focus/Klar installation, Sync,Default Browser user attribute. r=liuche,maliu
MozReview-Commit-ID: GF9fXkps60D

--HG--
extra : rebase_source : 91e647124737b4cc93fafd4e3c8ed62dd87c0104
2017-06-28 14:05:40 -07:00
Nevin Chen 2c7b2b1a4c Bug 1374889 - Update Leanplum user attribute for Focus/Klar installation, Sync, and Default Browser. r=maliu
MozReview-Commit-ID: Fl3Q6S0cDLg

--HG--
extra : rebase_source : 4c88e960336d8a13461fecc39da4672c0a1bcf92
2017-06-21 17:39:14 +08:00
Jan Henning 3c712524f9 Bug 1366098 - Part 1 - Remove Fennec tab type infrastructure. r=walkingice
The new, preferred solution for displaying additional web content outside of our normal tab infrastructure and UI is to use a separate GeckoView instance. Therefore, the support for different having additional "tab" types that aren't displayed in the normal UI, as well as for multiple GeckoApp instances displaying different tabs is no longer needed and can be removed.

MozReview-Commit-ID: FNx0gJIKybr

--HG--
extra : rebase_source : 4059e03db9586317c9c2928cef1d6dc98406319b
2017-06-27 14:13:40 -07:00
Jan Henning c4457d0462 Bug 1366098 - Part 0 - Clean up imports. r=walkingice
MozReview-Commit-ID: Ig89BxFoINR

--HG--
extra : rebase_source : 14b38acd42199a5d6a8540a5465f71f304ab73de
2017-07-08 11:25:58 -07:00
Sebastian Hengst 4d25a69ca6 Backed out changeset c5aca770cd88 (bug 1374889) for build bustage on Android 4.0 API15+ opt: "package org.mozilla.gecko.fxa does not exist" at mobile/android/base/java/org/mozilla/gecko/mma/MmaLeanplumImp.java:18. r=backout 2017-07-11 14:11:28 +02:00
Sebastian Hengst 1020b81ed3 Backed out changeset a373612896f5 (bug 1374889) 2017-07-11 14:09:30 +02:00
Sebastian Hengst fe494201dc Backed out changeset 14e9170ccad7 (bug 1374889) 2017-07-11 14:09:26 +02:00
Nevin Chen 42563916de Bug 1374889 - Gather user attributes before MMA inits. r=maliu
MozReview-Commit-ID: 5v28pWzYYWj

--HG--
extra : rebase_source : 121c89ec6a3b226de9a40f8c454742c5407b7c48
2017-07-10 10:16:19 +08:00
Nevin Chen 08024cbc91 Bug 1374889 - Update Leanplum document for Focus/Klar installation, Sync,Default Browser user attribute. r=liuche,maliu
MozReview-Commit-ID: GF9fXkps60D

--HG--
extra : rebase_source : 91e647124737b4cc93fafd4e3c8ed62dd87c0104
2017-06-28 14:05:40 -07:00
Nevin Chen 78b2d1adee Bug 1374889 - Update Leanplum user attribute for Focus/Klar installation, Sync, and Default Browser. r=maliu
MozReview-Commit-ID: Fl3Q6S0cDLg

--HG--
extra : rebase_source : 4c88e960336d8a13461fecc39da4672c0a1bcf92
2017-06-21 17:39:14 +08:00
Alastor Wu 9c8f5983ac Bug 1373887 - catch exception to handle creating media session fail. r=sebastian
The crash reason is that our package name [1] is not the same as the name from
packageManager's getPackagesForUid(uid) [2].

Not sure what causes it and how it happen, but we can catch this exception first
to avoid the crash.

[1] https://goo.gl/ezJvWB
[2] https://goo.gl/6Q8b6M

MozReview-Commit-ID: HrTfubxHNSk

--HG--
extra : rebase_source : e1f4bcbbaaf0168550e7ddc3d739de790ad61d1d
2017-07-11 14:01:53 +08:00
Grigory Kruglov d4d7e1babe Bug 1378246 - Ensure that we correctly fire 'notifyChanged' during bookmark deletions r=jwu
This patch introduces a notion of "changed" count during bookmark deletions, and firms up
our deletion logic to ensure we're counting affected records correctly.

Changes are mostly clearer comments describing what's going on, as well tests to ensure
we're doing the right thing.

One logical change is that this patch drops an additional call to updateBookmarks. AFAIK,
that call is unnecessary. It doesn't achieve its stated goal of writing first (it performs
a select first), and since we're doing a deletion, the "bump timestamps of an old parent
in case parent changed" logic is unused).

MozReview-Commit-ID: 9B1FW9pgsf1

--HG--
extra : rebase_source : dd8f10c58fd0042f94072bb99c28dc4545165dd5
2017-07-05 18:13:28 -04:00
friedger f4ea8f6927 Bug 1242629 - Use our color palette for top sites "add a site" tiles r=sebastian
add flag for default border

MozReview-Commit-ID: 3Fc2dS6bphH

--HG--
extra : rebase_source : 887d2e139f03cfe02248fad10e2493037c8b2e51
2017-06-14 16:07:17 +02:00
Sebastian Hengst 95251ef8fc Backed out changeset f5d55b64361d (bug 1379066) for timing out remoteautomation.py on Android x86 opt. r=backout 2017-07-10 15:53:52 +02:00
Sebastian Hengst 5f9fc4e91f Backed out changeset d60ed8c526fd (bug 1379066)
--HG--
rename : mobile/android/app/src/australis/res/drawable/action_bar_button.xml => mobile/android/app/src/main/res/drawable/action_bar_button.xml
2017-07-10 15:52:58 +02:00
Sebastian Hengst 3bb8198504 Backed out changeset c51ebdf28ee1 (bug 1379066) 2017-07-10 15:52:53 +02:00
Sebastian Hengst 92d29aa7d4 Backed out changeset b0ba143fba67 (bug 1379066)
--HG--
rename : mobile/android/app/src/australis/res/drawable-hdpi/ic_readermode.png => mobile/android/app/src/main/res/drawable-hdpi/reader.png
rename : mobile/android/app/src/australis/res/drawable-hdpi/ic_readermode_on.png => mobile/android/app/src/main/res/drawable-hdpi/reader_active.png
rename : mobile/android/app/src/australis/res/drawable-xhdpi/ic_readermode.png => mobile/android/app/src/main/res/drawable-xhdpi/reader.png
rename : mobile/android/app/src/australis/res/drawable-xhdpi/ic_readermode_on.png => mobile/android/app/src/main/res/drawable-xhdpi/reader_active.png
2017-07-10 15:52:48 +02:00
Sebastian Hengst dfaca784f7 Backed out changeset 1c2970988841 (bug 1379066) 2017-07-10 15:52:44 +02:00
Sebastian Hengst 4d14b07bf5 Backed out changeset 449c0a4b0259 (bug 1379066) 2017-07-10 15:52:39 +02:00
Sebastian Hengst ace27e896f Backed out changeset dac98c423104 (bug 1379066) 2017-07-10 15:52:34 +02:00
Sebastian Hengst b139b741cf Backed out changeset 4d823e834fca (bug 1379066) 2017-07-10 15:52:30 +02:00
Sebastian Hengst 788ccd30b0 Backed out changeset 8078abd65d92 (bug 1379066) 2017-07-10 15:52:25 +02:00
Sebastian Hengst 0c747c1ea1 Backed out changeset d9d4bdc0a2b9 (bug 1379066) 2017-07-10 15:52:21 +02:00
Julian_Chu 02dc430ea2 Bug 1379066 - 10. Apply style change in xml r=jwu
This patch is pretty hard to read and review. It only changes styles in
Photon flavor to match designer's design. Includes layout, dimension,
colors....etc. Australis flavor should not aware of this patch.

MozReview-Commit-ID: 9ROK1NcwJfC

--HG--
extra : rebase_source : d280919e2ef43d072b4762e84e80f7bc3002bfdd
2017-07-07 15:54:04 +08:00
Julian_Chu bd3c701aaa Bug 1379066 - 9. Java implementation apply different style r=jwu
We draw curve for Toolbar only in Australis flavor.

Also change resource naming for highlight color to be consistent with
Phton flavor.

MozReview-Commit-ID: E7cFuJs3r6h

--HG--
extra : rebase_source : 1bf7d1557a3b614d7c2b8c3f743d4247353e45c8
2017-07-07 15:50:14 +08:00
Julian_Chu 5d479e78da Bug 1379066 - 8. BrowserToolbar notify mode changing r=jwu
Some views in BrowserToolbar is Themed-view, and should be notified by any
normal/private mode changing.

MozReview-Commit-ID: 8hkizdsf0AO

--HG--
extra : rebase_source : 24e5e3a281af23d40dcff766b91d5692633b4ff1
2017-07-07 15:42:06 +08:00
Julian_Chu f97271629a Bug 1379066 - 7. Stop button supports Private mode r=jwu
Stop button is in Awesome bar to stop page loading, to let it becomes
ThemedImageButton to support Private mode.

MozReview-Commit-ID: CzbCyx1Mxc4

--HG--
extra : rebase_source : edc17213daae80112602cd8b2d28e546f6a391ab
2017-07-06 16:28:11 +08:00
Julian_Chu 192615787d Bug 1379066 - 6. PageAction supports Private Mode r=jwu
PageAction are views which be added to awesomebar dynamically, for
example "Reader mode icon".

Now let it becomes ThemedImageButton to support Private mode.

MozReview-Commit-ID: HQXgJWL19Oz

--HG--
extra : rebase_source : 8428d005875c1c1b24e72fb9ef431060b8b02b5a
2017-07-06 13:26:16 +08:00
Julian_Chu 3dd2a66301 Bug 1379066 - 5. Site identity use new drawable r=jwu
The icon for site-identity of Photon is different from Australis. Even
in Photon there are still two version, one for normal mode, one for
private mode.

We cannot simply use tinting to change color of site-identity. Because
of the lock icon should keep green.

MozReview-Commit-ID: Je7wXrq1gEK

--HG--
extra : rebase_source : 1d4cfb1b364f3c00818a57febb81f061aebb7250
2017-06-23 19:45:58 +08:00
Julian_Chu b489114eb9 Bug 1379066 - 4. Readermode icon use new resource r=jwu
In Photon, the reader-mode icon should support private mode. Therefore
we rename resource in Australis to *ic_readermode* for consistent.

MozReview-Commit-ID: 1ejwk3OfUex

--HG--
rename : mobile/android/app/src/main/res/drawable-hdpi/reader.png => mobile/android/app/src/australis/res/drawable-hdpi/ic_readermode.png
rename : mobile/android/app/src/main/res/drawable-hdpi/reader_active.png => mobile/android/app/src/australis/res/drawable-hdpi/ic_readermode_on.png
rename : mobile/android/app/src/main/res/drawable-xhdpi/reader.png => mobile/android/app/src/australis/res/drawable-xhdpi/ic_readermode.png
rename : mobile/android/app/src/main/res/drawable-xhdpi/reader_active.png => mobile/android/app/src/australis/res/drawable-xhdpi/ic_readermode_on.png
extra : rebase_source : da0ba6cebb9bfa57591fad42154322e0109e1520
2017-07-06 12:26:05 +08:00