Snap for 5879506 from eac42583a1
to qt-qpr1-release
Change-Id: Iddf8a125f731bb3e14240efa3f294034738e8d2a
This commit is contained in:
@@ -362,9 +362,9 @@
|
|||||||
<item msgid="1319652728542138112">"Zadano"</item>
|
<item msgid="1319652728542138112">"Zadano"</item>
|
||||||
<item msgid="1016452621833735880">"Sans-serif"</item>
|
<item msgid="1016452621833735880">"Sans-serif"</item>
|
||||||
<item msgid="2496277987934654454">"Sans-serif kondenzovani"</item>
|
<item msgid="2496277987934654454">"Sans-serif kondenzovani"</item>
|
||||||
<item msgid="7247838127505318669">"Sans-serif fiksnog razmaka"</item>
|
<item msgid="7247838127505318669">"Sans-serif monospace"</item>
|
||||||
<item msgid="4478414822462359763">"Serif"</item>
|
<item msgid="4478414822462359763">"Serif"</item>
|
||||||
<item msgid="7502451783483660829">"Serif fiksnog razmaka"</item>
|
<item msgid="7502451783483660829">"Serif monospace"</item>
|
||||||
<item msgid="639503332147461010">"Casual"</item>
|
<item msgid="639503332147461010">"Casual"</item>
|
||||||
<item msgid="7967169925231332424">"Kurziv"</item>
|
<item msgid="7967169925231332424">"Kurziv"</item>
|
||||||
<item msgid="561832997193039673">"Mala početna slova"</item>
|
<item msgid="561832997193039673">"Mala početna slova"</item>
|
||||||
|
@@ -380,7 +380,7 @@
|
|||||||
<item msgid="4733815704128258753">"Predeterminat"</item>
|
<item msgid="4733815704128258753">"Predeterminat"</item>
|
||||||
<item msgid="3217099060748617005">"Cap"</item>
|
<item msgid="3217099060748617005">"Cap"</item>
|
||||||
<item msgid="7467615139904599420">"Contorn"</item>
|
<item msgid="7467615139904599420">"Contorn"</item>
|
||||||
<item msgid="5623165557468608975">"Ombra paral·lela"</item>
|
<item msgid="5623165557468608975">"Ombra"</item>
|
||||||
<item msgid="8088451174058214588">"Elevat"</item>
|
<item msgid="8088451174058214588">"Elevat"</item>
|
||||||
<item msgid="3821418743395480313">"Enfonsat"</item>
|
<item msgid="3821418743395480313">"Enfonsat"</item>
|
||||||
</string-array>
|
</string-array>
|
||||||
|
@@ -350,7 +350,7 @@
|
|||||||
<item msgid="2404067308793740341">"Idatzi memorian"</item>
|
<item msgid="2404067308793740341">"Idatzi memorian"</item>
|
||||||
<item msgid="5832543806893763620">"Aktibatu pantaila"</item>
|
<item msgid="5832543806893763620">"Aktibatu pantaila"</item>
|
||||||
<item msgid="5258373962467495905">"Lortu kontuak"</item>
|
<item msgid="5258373962467495905">"Lortu kontuak"</item>
|
||||||
<item msgid="334625385979270703">"Abiarazi atzeko planoan"</item>
|
<item msgid="334625385979270703">"Exekutatu atzeko planoan"</item>
|
||||||
<item msgid="9039213578110332702">"Erabilerraztasun-eginbideen bolumena"</item>
|
<item msgid="9039213578110332702">"Erabilerraztasun-eginbideen bolumena"</item>
|
||||||
</string-array>
|
</string-array>
|
||||||
<string-array name="long_press_timeout_selector_titles">
|
<string-array name="long_press_timeout_selector_titles">
|
||||||
@@ -443,7 +443,7 @@
|
|||||||
<item msgid="3396458970745718652">"Garrantzitsua (atzeko planokoa)"</item>
|
<item msgid="3396458970745718652">"Garrantzitsua (atzeko planokoa)"</item>
|
||||||
<item msgid="5214825238247511992">"Babeskopiak"</item>
|
<item msgid="5214825238247511992">"Babeskopiak"</item>
|
||||||
<item msgid="311372689168254967">"Handia"</item>
|
<item msgid="311372689168254967">"Handia"</item>
|
||||||
<item msgid="7438189122367820362">"Zerbitzua (abian)"</item>
|
<item msgid="7438189122367820362">"Zerbitzua (exekutatzen)"</item>
|
||||||
<item msgid="918687422516982498">"Zerbitzua (berrabiarazten)"</item>
|
<item msgid="918687422516982498">"Zerbitzua (berrabiarazten)"</item>
|
||||||
<item msgid="6807727069641853029">"Hargailua"</item>
|
<item msgid="6807727069641853029">"Hargailua"</item>
|
||||||
<item msgid="6782857406100845127">"Hasiera"</item>
|
<item msgid="6782857406100845127">"Hasiera"</item>
|
||||||
|
@@ -485,7 +485,7 @@
|
|||||||
<item msgid="3863157480502955888">"Oui"</item>
|
<item msgid="3863157480502955888">"Oui"</item>
|
||||||
</string-array>
|
</string-array>
|
||||||
<string-array name="dark_ui_mode_entries">
|
<string-array name="dark_ui_mode_entries">
|
||||||
<item msgid="4047603501491142527">"Foncé"</item>
|
<item msgid="4047603501491142527">"Sombre"</item>
|
||||||
<item msgid="2291969684082074001">"Clair"</item>
|
<item msgid="2291969684082074001">"Clair"</item>
|
||||||
</string-array>
|
</string-array>
|
||||||
<string-array name="autofill_logging_level_entries">
|
<string-array name="autofill_logging_level_entries">
|
||||||
|
@@ -239,7 +239,7 @@
|
|||||||
<item msgid="4600463921908905030">"मैसेज (एसएमएस) पाएं"</item>
|
<item msgid="4600463921908905030">"मैसेज (एसएमएस) पाएं"</item>
|
||||||
<item msgid="5958926493289432745">"आपातकालीन मैसेज (एसएमएस) पाएं"</item>
|
<item msgid="5958926493289432745">"आपातकालीन मैसेज (एसएमएस) पाएं"</item>
|
||||||
<item msgid="4945269495221089540">"मल्टीमीडिया मैसेज (एमएमएस) पाएं"</item>
|
<item msgid="4945269495221089540">"मल्टीमीडिया मैसेज (एमएमएस) पाएं"</item>
|
||||||
<item msgid="5570472453573929087">"WAP पुश प्राप्त करें"</item>
|
<item msgid="5570472453573929087">"WAP पुश पाएं"</item>
|
||||||
<item msgid="7125408150230860501">"मैसेज (एसएमएस) भेजें"</item>
|
<item msgid="7125408150230860501">"मैसेज (एसएमएस) भेजें"</item>
|
||||||
<item msgid="7080337936612188061">"ICC मैसेज (एसएमएस) पढ़ें"</item>
|
<item msgid="7080337936612188061">"ICC मैसेज (एसएमएस) पढ़ें"</item>
|
||||||
<item msgid="587124103118495063">"ICC मैसेज (एसएमएस) लिखें"</item>
|
<item msgid="587124103118495063">"ICC मैसेज (एसएमएस) लिखें"</item>
|
||||||
@@ -263,7 +263,7 @@
|
|||||||
<item msgid="2029227495214047094">"सचेत रखें"</item>
|
<item msgid="2029227495214047094">"सचेत रखें"</item>
|
||||||
<item msgid="26109888160231211">"जगह की निगरानी करें"</item>
|
<item msgid="26109888160231211">"जगह की निगरानी करें"</item>
|
||||||
<item msgid="5753382310468855812">"उच्च पावर वाली जगह की निगरानी करें"</item>
|
<item msgid="5753382310468855812">"उच्च पावर वाली जगह की निगरानी करें"</item>
|
||||||
<item msgid="3356591542543137332">"उपयोग के आंकड़े प्राप्त करें"</item>
|
<item msgid="3356591542543137332">"उपयोग के आंकड़े पाएं"</item>
|
||||||
<item msgid="3073734345226842233">"माइक्रोफ़ोन म्यूट/अनम्यूट करें"</item>
|
<item msgid="3073734345226842233">"माइक्रोफ़ोन म्यूट/अनम्यूट करें"</item>
|
||||||
<item msgid="2111767435887685265">"टोस्ट दिखाएं"</item>
|
<item msgid="2111767435887685265">"टोस्ट दिखाएं"</item>
|
||||||
<item msgid="1091168669714823370">"प्रोजेक्ट मीडिया"</item>
|
<item msgid="1091168669714823370">"प्रोजेक्ट मीडिया"</item>
|
||||||
@@ -282,7 +282,7 @@
|
|||||||
<item msgid="3591971310048485247">"मेमोरी पढ़ें"</item>
|
<item msgid="3591971310048485247">"मेमोरी पढ़ें"</item>
|
||||||
<item msgid="4041187808621866119">"मेमोरी लिखें"</item>
|
<item msgid="4041187808621866119">"मेमोरी लिखें"</item>
|
||||||
<item msgid="6628873315024166197">"स्क्रीन चालू करें"</item>
|
<item msgid="6628873315024166197">"स्क्रीन चालू करें"</item>
|
||||||
<item msgid="3253368931113490863">"खाते प्राप्त करें"</item>
|
<item msgid="3253368931113490863">"खाते पाएं"</item>
|
||||||
<item msgid="780392378084812901">"पृष्ठभूमि में चलाएं"</item>
|
<item msgid="780392378084812901">"पृष्ठभूमि में चलाएं"</item>
|
||||||
<item msgid="2629748510881309577">"सुलभता सुविधाओं के लिए आवाज़"</item>
|
<item msgid="2629748510881309577">"सुलभता सुविधाओं के लिए आवाज़"</item>
|
||||||
</string-array>
|
</string-array>
|
||||||
@@ -330,7 +330,7 @@
|
|||||||
<item msgid="4665183401128289653">"सचेत रखें"</item>
|
<item msgid="4665183401128289653">"सचेत रखें"</item>
|
||||||
<item msgid="8584357129746649222">"जगह"</item>
|
<item msgid="8584357129746649222">"जगह"</item>
|
||||||
<item msgid="7669257279311110599">"जगह"</item>
|
<item msgid="7669257279311110599">"जगह"</item>
|
||||||
<item msgid="3459320345690097795">"उपयोग के आंकड़े प्राप्त करें"</item>
|
<item msgid="3459320345690097795">"उपयोग के आंकड़े पाएं"</item>
|
||||||
<item msgid="1312534577834048535">"माइक्रोफ़ोन म्यूट/अनम्यूट करें"</item>
|
<item msgid="1312534577834048535">"माइक्रोफ़ोन म्यूट/अनम्यूट करें"</item>
|
||||||
<item msgid="427580389823724225">"टोस्ट दिखाएं"</item>
|
<item msgid="427580389823724225">"टोस्ट दिखाएं"</item>
|
||||||
<item msgid="4992007785575926253">"प्रोजेक्ट मीडिया"</item>
|
<item msgid="4992007785575926253">"प्रोजेक्ट मीडिया"</item>
|
||||||
@@ -349,7 +349,7 @@
|
|||||||
<item msgid="1246296877820358565">"मेमोरी पढ़ें"</item>
|
<item msgid="1246296877820358565">"मेमोरी पढ़ें"</item>
|
||||||
<item msgid="2404067308793740341">"मेमोरी लिखें"</item>
|
<item msgid="2404067308793740341">"मेमोरी लिखें"</item>
|
||||||
<item msgid="5832543806893763620">"स्क्रीन चालू करें"</item>
|
<item msgid="5832543806893763620">"स्क्रीन चालू करें"</item>
|
||||||
<item msgid="5258373962467495905">"खाते प्राप्त करें"</item>
|
<item msgid="5258373962467495905">"खाते पाएं"</item>
|
||||||
<item msgid="334625385979270703">"पृष्ठभूमि में चलाएं"</item>
|
<item msgid="334625385979270703">"पृष्ठभूमि में चलाएं"</item>
|
||||||
<item msgid="9039213578110332702">"सुलभता सुविधाओं के लिए आवाज़"</item>
|
<item msgid="9039213578110332702">"सुलभता सुविधाओं के लिए आवाज़"</item>
|
||||||
</string-array>
|
</string-array>
|
||||||
@@ -359,7 +359,7 @@
|
|||||||
<item msgid="2372711992605524591">"ज़्यादा"</item>
|
<item msgid="2372711992605524591">"ज़्यादा"</item>
|
||||||
</string-array>
|
</string-array>
|
||||||
<string-array name="captioning_typeface_selector_titles">
|
<string-array name="captioning_typeface_selector_titles">
|
||||||
<item msgid="1319652728542138112">"सामान्य"</item>
|
<item msgid="1319652728542138112">"डिफ़ॉल्ट"</item>
|
||||||
<item msgid="1016452621833735880">"Sans-serif"</item>
|
<item msgid="1016452621833735880">"Sans-serif"</item>
|
||||||
<item msgid="2496277987934654454">"Sans-serif condensed"</item>
|
<item msgid="2496277987934654454">"Sans-serif condensed"</item>
|
||||||
<item msgid="7247838127505318669">"Sans-serif monospace"</item>
|
<item msgid="7247838127505318669">"Sans-serif monospace"</item>
|
||||||
|
@@ -88,7 +88,7 @@
|
|||||||
<item msgid="8937994881315223448">"Միացված է <xliff:g id="NETWORK_NAME">%1$s</xliff:g>-ին"</item>
|
<item msgid="8937994881315223448">"Միացված է <xliff:g id="NETWORK_NAME">%1$s</xliff:g>-ին"</item>
|
||||||
<item msgid="1330262655415760617">"Անջատված"</item>
|
<item msgid="1330262655415760617">"Անջատված"</item>
|
||||||
<item msgid="7698638434317271902">"Անջատվում է <xliff:g id="NETWORK_NAME">%1$s</xliff:g>-ից…"</item>
|
<item msgid="7698638434317271902">"Անջատվում է <xliff:g id="NETWORK_NAME">%1$s</xliff:g>-ից…"</item>
|
||||||
<item msgid="197508606402264311">"Անջատած է"</item>
|
<item msgid="197508606402264311">"Անջատված է"</item>
|
||||||
<item msgid="8578370891960825148">"Անհաջող"</item>
|
<item msgid="8578370891960825148">"Անհաջող"</item>
|
||||||
<item msgid="5660739516542454527">"Արգելափակված"</item>
|
<item msgid="5660739516542454527">"Արգելափակված"</item>
|
||||||
<item msgid="1805837518286731242">"Վատ ցանցից ժամանակավոր խուսափում"</item>
|
<item msgid="1805837518286731242">"Վատ ցանցից ժամանակավոր խուսափում"</item>
|
||||||
|
@@ -441,7 +441,7 @@
|
|||||||
<item msgid="5779398140277006695">"Aktivitas teratas"</item>
|
<item msgid="5779398140277006695">"Aktivitas teratas"</item>
|
||||||
<item msgid="1439598363694578255">"Penting (latar depan)"</item>
|
<item msgid="1439598363694578255">"Penting (latar depan)"</item>
|
||||||
<item msgid="3396458970745718652">"Penting (latar belakang)"</item>
|
<item msgid="3396458970745718652">"Penting (latar belakang)"</item>
|
||||||
<item msgid="5214825238247511992">"Backup"</item>
|
<item msgid="5214825238247511992">"Cadangan"</item>
|
||||||
<item msgid="311372689168254967">"Beban berat"</item>
|
<item msgid="311372689168254967">"Beban berat"</item>
|
||||||
<item msgid="7438189122367820362">"Layanan (berjalan)"</item>
|
<item msgid="7438189122367820362">"Layanan (berjalan)"</item>
|
||||||
<item msgid="918687422516982498">"Layanan (memulai ulang)"</item>
|
<item msgid="918687422516982498">"Layanan (memulai ulang)"</item>
|
||||||
|
@@ -473,7 +473,7 @@
|
|||||||
</string-array>
|
</string-array>
|
||||||
<string-array name="wifi_metered_entries">
|
<string-array name="wifi_metered_entries">
|
||||||
<item msgid="5200910605264415911">"स्वतः पत्ता लगाउनुहोस्"</item>
|
<item msgid="5200910605264415911">"स्वतः पत्ता लगाउनुहोस्"</item>
|
||||||
<item msgid="8745603368609022803">"सशुल्क वाइफाइका रूपमा लिनुहोस्"</item>
|
<item msgid="8745603368609022803">"मिटर गरिएको रूपमा व्यवहार गर्नुहोस्"</item>
|
||||||
<item msgid="2266114985518865625">"मिटर नगरिएको रूपमा व्यवहार गर्नुहोस्"</item>
|
<item msgid="2266114985518865625">"मिटर नगरिएको रूपमा व्यवहार गर्नुहोस्"</item>
|
||||||
</string-array>
|
</string-array>
|
||||||
<string-array name="wifi_privacy_entries">
|
<string-array name="wifi_privacy_entries">
|
||||||
|
@@ -16,5 +16,5 @@
|
|||||||
|
|
||||||
<resources xmlns:android="http://schemas.android.com/apk/res/android"
|
<resources xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
|
xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
|
||||||
<string name="applications_settings_summary" msgid="6616938758022986257">"பயன்பாடுகளை நிர்வகித்தல்"</string>
|
<string name="applications_settings_summary" msgid="6616938758022986257">"ஆப்ஸை நிர்வகித்தல்"</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
@@ -372,7 +372,7 @@
|
|||||||
<string-array name="captioning_font_size_selector_titles">
|
<string-array name="captioning_font_size_selector_titles">
|
||||||
<item msgid="4800919809575254054">"மிகச் சிறியது"</item>
|
<item msgid="4800919809575254054">"மிகச் சிறியது"</item>
|
||||||
<item msgid="6781094565687692782">"சிறியது"</item>
|
<item msgid="6781094565687692782">"சிறியது"</item>
|
||||||
<item msgid="8222123259497646551">"இயல்பானது"</item>
|
<item msgid="8222123259497646551">"சராசரி"</item>
|
||||||
<item msgid="5813217276778560466">"பெரியது"</item>
|
<item msgid="5813217276778560466">"பெரியது"</item>
|
||||||
<item msgid="9044232017390975191">"மிகப் பெரியது"</item>
|
<item msgid="9044232017390975191">"மிகப் பெரியது"</item>
|
||||||
</string-array>
|
</string-array>
|
||||||
|
@@ -270,7 +270,7 @@
|
|||||||
<item msgid="485564189219029300">"啟用 VPN"</item>
|
<item msgid="485564189219029300">"啟用 VPN"</item>
|
||||||
<item msgid="7155384795265164395">"寫入桌布"</item>
|
<item msgid="7155384795265164395">"寫入桌布"</item>
|
||||||
<item msgid="1835836196806147034">"輔助結構"</item>
|
<item msgid="1835836196806147034">"輔助結構"</item>
|
||||||
<item msgid="5989890403088155055">"輔助螢幕擷取畫面"</item>
|
<item msgid="5989890403088155055">"輔助螢幕截圖"</item>
|
||||||
<item msgid="8582699692765917557">"讀取手機狀態"</item>
|
<item msgid="8582699692765917557">"讀取手機狀態"</item>
|
||||||
<item msgid="1474039653814954902">"新增語音留言"</item>
|
<item msgid="1474039653814954902">"新增語音留言"</item>
|
||||||
<item msgid="7222837656938871633">"使用 SIP"</item>
|
<item msgid="7222837656938871633">"使用 SIP"</item>
|
||||||
@@ -298,7 +298,7 @@
|
|||||||
<item msgid="6093344633066170692">"讀取日曆"</item>
|
<item msgid="6093344633066170692">"讀取日曆"</item>
|
||||||
<item msgid="1334886368750347692">"修改日曆"</item>
|
<item msgid="1334886368750347692">"修改日曆"</item>
|
||||||
<item msgid="1638204101698708656">"位置"</item>
|
<item msgid="1638204101698708656">"位置"</item>
|
||||||
<item msgid="2154671955760380322">"發佈通知"</item>
|
<item msgid="2154671955760380322">"發布通知"</item>
|
||||||
<item msgid="4282477730595931828">"位置"</item>
|
<item msgid="4282477730595931828">"位置"</item>
|
||||||
<item msgid="4891423912898525905">"撥打電話"</item>
|
<item msgid="4891423912898525905">"撥打電話"</item>
|
||||||
<item msgid="2623604824935968113">"讀取簡訊/MMS"</item>
|
<item msgid="2623604824935968113">"讀取簡訊/MMS"</item>
|
||||||
@@ -337,7 +337,7 @@
|
|||||||
<item msgid="2482631530338029480">"啟用 VPN"</item>
|
<item msgid="2482631530338029480">"啟用 VPN"</item>
|
||||||
<item msgid="1662979573471871926">"寫入桌布"</item>
|
<item msgid="1662979573471871926">"寫入桌布"</item>
|
||||||
<item msgid="5964768335278263478">"輔助結構"</item>
|
<item msgid="5964768335278263478">"輔助結構"</item>
|
||||||
<item msgid="2657138701132782702">"輔助螢幕擷取畫面"</item>
|
<item msgid="2657138701132782702">"輔助螢幕截圖"</item>
|
||||||
<item msgid="8571369610363539266">"讀取手機狀態"</item>
|
<item msgid="8571369610363539266">"讀取手機狀態"</item>
|
||||||
<item msgid="4542463358215230845">"新增語音留言"</item>
|
<item msgid="4542463358215230845">"新增語音留言"</item>
|
||||||
<item msgid="864565065016166003">"使用 SIP"</item>
|
<item msgid="864565065016166003">"使用 SIP"</item>
|
||||||
|
@@ -16,8 +16,6 @@
|
|||||||
|
|
||||||
package com.android.settings.development;
|
package com.android.settings.development;
|
||||||
|
|
||||||
import static android.provider.Settings.Secure.NOTIFICATION_BUBBLES;
|
|
||||||
|
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.provider.Settings;
|
import android.provider.Settings;
|
||||||
|
|
||||||
@@ -42,7 +40,7 @@ public class BubbleGlobalPreferenceController extends DeveloperOptionsPreference
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getPreferenceKey() {
|
public String getPreferenceKey() {
|
||||||
return NOTIFICATION_BUBBLES;
|
return Settings.Global.NOTIFICATION_BUBBLES;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -64,12 +62,12 @@ public class BubbleGlobalPreferenceController extends DeveloperOptionsPreference
|
|||||||
}
|
}
|
||||||
|
|
||||||
private boolean isEnabled() {
|
private boolean isEnabled() {
|
||||||
return Settings.Secure.getInt(mContext.getContentResolver(),
|
return Settings.Global.getInt(mContext.getContentResolver(),
|
||||||
NOTIFICATION_BUBBLES, OFF) == ON;
|
Settings.Global.NOTIFICATION_BUBBLES, OFF) == ON;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void writeSetting(boolean isEnabled) {
|
private void writeSetting(boolean isEnabled) {
|
||||||
Settings.Secure.putInt(mContext.getContentResolver(),
|
Settings.Global.putInt(mContext.getContentResolver(),
|
||||||
NOTIFICATION_BUBBLES, isEnabled ? ON : OFF);
|
Settings.Global.NOTIFICATION_BUBBLES, isEnabled ? ON : OFF);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
package com.android.settings.notification;
|
package com.android.settings.notification;
|
||||||
|
|
||||||
import static android.provider.Settings.Secure.NOTIFICATION_BUBBLES;
|
import static android.provider.Settings.Global.NOTIFICATION_BUBBLES;
|
||||||
|
|
||||||
import android.annotation.Nullable;
|
import android.annotation.Nullable;
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
@@ -113,7 +113,7 @@ public class BubblePreferenceController extends NotificationPreferenceController
|
|||||||
}
|
}
|
||||||
|
|
||||||
private boolean isGloballyEnabled() {
|
private boolean isGloballyEnabled() {
|
||||||
return Settings.Secure.getInt(mContext.getContentResolver(),
|
return Settings.Global.getInt(mContext.getContentResolver(),
|
||||||
NOTIFICATION_BUBBLES, SYSTEM_WIDE_OFF) == SYSTEM_WIDE_ON;
|
NOTIFICATION_BUBBLES, SYSTEM_WIDE_OFF) == SYSTEM_WIDE_ON;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -124,7 +124,7 @@ public class BubblePreferenceController extends NotificationPreferenceController
|
|||||||
backend.setAllowBubbles(pkg, uid, false);
|
backend.setAllowBubbles(pkg, uid, false);
|
||||||
// changing the global settings will cause the observer on the host page to reload
|
// changing the global settings will cause the observer on the host page to reload
|
||||||
// correct preference state
|
// correct preference state
|
||||||
Settings.Secure.putInt(mContext.getContentResolver(),
|
Settings.Global.putInt(mContext.getContentResolver(),
|
||||||
NOTIFICATION_BUBBLES, SYSTEM_WIDE_OFF);
|
NOTIFICATION_BUBBLES, SYSTEM_WIDE_OFF);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -134,7 +134,7 @@ public class BubblePreferenceController extends NotificationPreferenceController
|
|||||||
backend.setAllowBubbles(pkg, uid, true);
|
backend.setAllowBubbles(pkg, uid, true);
|
||||||
// changing the global settings will cause the observer on the host page to reload
|
// changing the global settings will cause the observer on the host page to reload
|
||||||
// correct preference state
|
// correct preference state
|
||||||
Settings.Secure.putInt(mContext.getContentResolver(),
|
Settings.Global.putInt(mContext.getContentResolver(),
|
||||||
NOTIFICATION_BUBBLES, SYSTEM_WIDE_ON);
|
NOTIFICATION_BUBBLES, SYSTEM_WIDE_ON);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
package com.android.settings.notification;
|
package com.android.settings.notification;
|
||||||
|
|
||||||
import static android.provider.Settings.Secure.NOTIFICATION_BUBBLES;
|
import static android.provider.Settings.Global.NOTIFICATION_BUBBLES;
|
||||||
|
|
||||||
import android.app.settings.SettingsEnums;
|
import android.app.settings.SettingsEnums;
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
@@ -100,7 +100,7 @@ public class BubbleSummaryPreferenceController extends NotificationPreferenceCon
|
|||||||
}
|
}
|
||||||
|
|
||||||
private boolean isGloballyEnabled() {
|
private boolean isGloballyEnabled() {
|
||||||
return Settings.Secure.getInt(mContext.getContentResolver(),
|
return Settings.Global.getInt(mContext.getContentResolver(),
|
||||||
NOTIFICATION_BUBBLES, SYSTEM_WIDE_OFF) == SYSTEM_WIDE_ON;
|
NOTIFICATION_BUBBLES, SYSTEM_WIDE_OFF) == SYSTEM_WIDE_ON;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -16,8 +16,6 @@
|
|||||||
|
|
||||||
package com.android.settings.notification;
|
package com.android.settings.notification;
|
||||||
|
|
||||||
import static android.provider.Settings.Secure.NOTIFICATION_BUBBLES;
|
|
||||||
|
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.provider.Settings;
|
import android.provider.Settings;
|
||||||
|
|
||||||
|
@@ -47,8 +47,8 @@ public class GlobalBubblePermissionObserverMixin extends ContentObserver {
|
|||||||
|
|
||||||
public void onStart() {
|
public void onStart() {
|
||||||
mContext.getContentResolver().registerContentObserver(
|
mContext.getContentResolver().registerContentObserver(
|
||||||
Settings.Secure.getUriFor(
|
Settings.Global.getUriFor(
|
||||||
Settings.Secure.NOTIFICATION_BUBBLES),
|
Settings.Global.NOTIFICATION_BUBBLES),
|
||||||
false /* notifyForDescendants */,
|
false /* notifyForDescendants */,
|
||||||
this /* observer */);
|
this /* observer */);
|
||||||
}
|
}
|
||||||
|
@@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
package com.android.settings.development;
|
package com.android.settings.development;
|
||||||
|
|
||||||
import static android.provider.Settings.Secure.NOTIFICATION_BUBBLES;
|
import static android.provider.Settings.Global.NOTIFICATION_BUBBLES;
|
||||||
|
|
||||||
import static com.android.settings.development.BubbleGlobalPreferenceController.OFF;
|
import static com.android.settings.development.BubbleGlobalPreferenceController.OFF;
|
||||||
import static com.android.settings.development.BubbleGlobalPreferenceController.ON;
|
import static com.android.settings.development.BubbleGlobalPreferenceController.ON;
|
||||||
@@ -77,7 +77,7 @@ public class BubbleGlobalPreferenceControllerTest {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void updateState_settingEnabled_preferenceShouldBeChecked() {
|
public void updateState_settingEnabled_preferenceShouldBeChecked() {
|
||||||
Settings.Secure.putInt(mContext.getContentResolver(),
|
Settings.Global.putInt(mContext.getContentResolver(),
|
||||||
NOTIFICATION_BUBBLES, 1 /* enabled */);
|
NOTIFICATION_BUBBLES, 1 /* enabled */);
|
||||||
mController.updateState(mPreference);
|
mController.updateState(mPreference);
|
||||||
|
|
||||||
@@ -86,7 +86,7 @@ public class BubbleGlobalPreferenceControllerTest {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void updateState_settingReset_defaultDisabled_preferenceShouldNotBeChecked() {
|
public void updateState_settingReset_defaultDisabled_preferenceShouldNotBeChecked() {
|
||||||
Settings.Secure.putInt(mContext.getContentResolver(),
|
Settings.Global.putInt(mContext.getContentResolver(),
|
||||||
NOTIFICATION_BUBBLES, 0 /* enabled */);
|
NOTIFICATION_BUBBLES, 0 /* enabled */);
|
||||||
mController.updateState(mPreference);
|
mController.updateState(mPreference);
|
||||||
|
|
||||||
@@ -104,7 +104,7 @@ public class BubbleGlobalPreferenceControllerTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private boolean isSettingEnabled() {
|
private boolean isSettingEnabled() {
|
||||||
return Settings.Secure.getInt(mContext.getContentResolver(), NOTIFICATION_BUBBLES,
|
return Settings.Global.getInt(mContext.getContentResolver(), NOTIFICATION_BUBBLES,
|
||||||
OFF /* default off */) == ON;
|
OFF /* default off */) == ON;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -20,7 +20,7 @@ import static android.app.NotificationChannel.DEFAULT_CHANNEL_ID;
|
|||||||
import static android.app.NotificationManager.IMPORTANCE_HIGH;
|
import static android.app.NotificationManager.IMPORTANCE_HIGH;
|
||||||
import static android.app.NotificationManager.IMPORTANCE_LOW;
|
import static android.app.NotificationManager.IMPORTANCE_LOW;
|
||||||
import static android.app.NotificationManager.IMPORTANCE_NONE;
|
import static android.app.NotificationManager.IMPORTANCE_NONE;
|
||||||
import static android.provider.Settings.Secure.NOTIFICATION_BUBBLES;
|
import static android.provider.Settings.Global.NOTIFICATION_BUBBLES;
|
||||||
|
|
||||||
import static com.android.settings.notification.BubblePreferenceController.SYSTEM_WIDE_OFF;
|
import static com.android.settings.notification.BubblePreferenceController.SYSTEM_WIDE_OFF;
|
||||||
import static com.android.settings.notification.BubblePreferenceController.SYSTEM_WIDE_ON;
|
import static com.android.settings.notification.BubblePreferenceController.SYSTEM_WIDE_ON;
|
||||||
@@ -103,7 +103,7 @@ public class BubblePreferenceControllerTest {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testIsAvailable_notIfAppBlocked() {
|
public void testIsAvailable_notIfAppBlocked() {
|
||||||
Settings.Secure.putInt(mContext.getContentResolver(), NOTIFICATION_BUBBLES, SYSTEM_WIDE_ON);
|
Settings.Global.putInt(mContext.getContentResolver(), NOTIFICATION_BUBBLES, SYSTEM_WIDE_ON);
|
||||||
NotificationBackend.AppRow appRow = new NotificationBackend.AppRow();
|
NotificationBackend.AppRow appRow = new NotificationBackend.AppRow();
|
||||||
appRow.banned = true;
|
appRow.banned = true;
|
||||||
mController.onResume(appRow, mock(NotificationChannel.class), null, null);
|
mController.onResume(appRow, mock(NotificationChannel.class), null, null);
|
||||||
@@ -112,7 +112,7 @@ public class BubblePreferenceControllerTest {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testIsAvailable_notIfChannelBlocked() {
|
public void testIsAvailable_notIfChannelBlocked() {
|
||||||
Settings.Secure.putInt(mContext.getContentResolver(), NOTIFICATION_BUBBLES, SYSTEM_WIDE_ON);
|
Settings.Global.putInt(mContext.getContentResolver(), NOTIFICATION_BUBBLES, SYSTEM_WIDE_ON);
|
||||||
NotificationBackend.AppRow appRow = new NotificationBackend.AppRow();
|
NotificationBackend.AppRow appRow = new NotificationBackend.AppRow();
|
||||||
NotificationChannel channel = mock(NotificationChannel.class);
|
NotificationChannel channel = mock(NotificationChannel.class);
|
||||||
when(channel.getImportance()).thenReturn(IMPORTANCE_NONE);
|
when(channel.getImportance()).thenReturn(IMPORTANCE_NONE);
|
||||||
@@ -122,7 +122,7 @@ public class BubblePreferenceControllerTest {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testIsAvailable_channel_notIfAppOff() {
|
public void testIsAvailable_channel_notIfAppOff() {
|
||||||
Settings.Secure.putInt(mContext.getContentResolver(), NOTIFICATION_BUBBLES, SYSTEM_WIDE_ON);
|
Settings.Global.putInt(mContext.getContentResolver(), NOTIFICATION_BUBBLES, SYSTEM_WIDE_ON);
|
||||||
NotificationBackend.AppRow appRow = new NotificationBackend.AppRow();
|
NotificationBackend.AppRow appRow = new NotificationBackend.AppRow();
|
||||||
appRow.allowBubbles = false;
|
appRow.allowBubbles = false;
|
||||||
NotificationChannel channel = mock(NotificationChannel.class);
|
NotificationChannel channel = mock(NotificationChannel.class);
|
||||||
@@ -136,7 +136,7 @@ public class BubblePreferenceControllerTest {
|
|||||||
public void testIsNotAvailable_ifOffGlobally_app() {
|
public void testIsNotAvailable_ifOffGlobally_app() {
|
||||||
NotificationBackend.AppRow appRow = new NotificationBackend.AppRow();
|
NotificationBackend.AppRow appRow = new NotificationBackend.AppRow();
|
||||||
mController.onResume(appRow, null, null, null);
|
mController.onResume(appRow, null, null, null);
|
||||||
Settings.Secure.putInt(mContext.getContentResolver(),
|
Settings.Global.putInt(mContext.getContentResolver(),
|
||||||
NOTIFICATION_BUBBLES, SYSTEM_WIDE_OFF);
|
NOTIFICATION_BUBBLES, SYSTEM_WIDE_OFF);
|
||||||
|
|
||||||
assertFalse(mController.isAvailable());
|
assertFalse(mController.isAvailable());
|
||||||
@@ -148,7 +148,7 @@ public class BubblePreferenceControllerTest {
|
|||||||
NotificationChannel channel = mock(NotificationChannel.class);
|
NotificationChannel channel = mock(NotificationChannel.class);
|
||||||
when(channel.getImportance()).thenReturn(IMPORTANCE_HIGH);
|
when(channel.getImportance()).thenReturn(IMPORTANCE_HIGH);
|
||||||
mController.onResume(appRow, channel, null, null);
|
mController.onResume(appRow, channel, null, null);
|
||||||
Settings.Secure.putInt(mContext.getContentResolver(),
|
Settings.Global.putInt(mContext.getContentResolver(),
|
||||||
NOTIFICATION_BUBBLES, SYSTEM_WIDE_OFF);
|
NOTIFICATION_BUBBLES, SYSTEM_WIDE_OFF);
|
||||||
|
|
||||||
assertFalse(mController.isAvailable());
|
assertFalse(mController.isAvailable());
|
||||||
@@ -158,7 +158,7 @@ public class BubblePreferenceControllerTest {
|
|||||||
public void testIsAvailable_app_evenIfOffGlobally() {
|
public void testIsAvailable_app_evenIfOffGlobally() {
|
||||||
NotificationBackend.AppRow appRow = new NotificationBackend.AppRow();
|
NotificationBackend.AppRow appRow = new NotificationBackend.AppRow();
|
||||||
mAppPageController.onResume(appRow, null, null, null);
|
mAppPageController.onResume(appRow, null, null, null);
|
||||||
Settings.Secure.putInt(mContext.getContentResolver(),
|
Settings.Global.putInt(mContext.getContentResolver(),
|
||||||
NOTIFICATION_BUBBLES, SYSTEM_WIDE_OFF);
|
NOTIFICATION_BUBBLES, SYSTEM_WIDE_OFF);
|
||||||
|
|
||||||
assertTrue(mAppPageController.isAvailable());
|
assertTrue(mAppPageController.isAvailable());
|
||||||
@@ -168,7 +168,7 @@ public class BubblePreferenceControllerTest {
|
|||||||
public void testIsAvailable_app() {
|
public void testIsAvailable_app() {
|
||||||
NotificationBackend.AppRow appRow = new NotificationBackend.AppRow();
|
NotificationBackend.AppRow appRow = new NotificationBackend.AppRow();
|
||||||
mController.onResume(appRow, null, null, null);
|
mController.onResume(appRow, null, null, null);
|
||||||
Settings.Secure.putInt(mContext.getContentResolver(), NOTIFICATION_BUBBLES, SYSTEM_WIDE_ON);
|
Settings.Global.putInt(mContext.getContentResolver(), NOTIFICATION_BUBBLES, SYSTEM_WIDE_ON);
|
||||||
|
|
||||||
assertTrue(mController.isAvailable());
|
assertTrue(mController.isAvailable());
|
||||||
}
|
}
|
||||||
@@ -181,7 +181,7 @@ public class BubblePreferenceControllerTest {
|
|||||||
when(channel.getImportance()).thenReturn(IMPORTANCE_HIGH);
|
when(channel.getImportance()).thenReturn(IMPORTANCE_HIGH);
|
||||||
when(channel.getId()).thenReturn(DEFAULT_CHANNEL_ID);
|
when(channel.getId()).thenReturn(DEFAULT_CHANNEL_ID);
|
||||||
mController.onResume(appRow, channel, null, null);
|
mController.onResume(appRow, channel, null, null);
|
||||||
Settings.Secure.putInt(mContext.getContentResolver(), NOTIFICATION_BUBBLES, SYSTEM_WIDE_ON);
|
Settings.Global.putInt(mContext.getContentResolver(), NOTIFICATION_BUBBLES, SYSTEM_WIDE_ON);
|
||||||
|
|
||||||
assertTrue(mController.isAvailable());
|
assertTrue(mController.isAvailable());
|
||||||
}
|
}
|
||||||
@@ -193,7 +193,7 @@ public class BubblePreferenceControllerTest {
|
|||||||
NotificationChannel channel = mock(NotificationChannel.class);
|
NotificationChannel channel = mock(NotificationChannel.class);
|
||||||
when(channel.getImportance()).thenReturn(IMPORTANCE_HIGH);
|
when(channel.getImportance()).thenReturn(IMPORTANCE_HIGH);
|
||||||
mController.onResume(appRow, channel, null, null);
|
mController.onResume(appRow, channel, null, null);
|
||||||
Settings.Secure.putInt(mContext.getContentResolver(), NOTIFICATION_BUBBLES, SYSTEM_WIDE_ON);
|
Settings.Global.putInt(mContext.getContentResolver(), NOTIFICATION_BUBBLES, SYSTEM_WIDE_ON);
|
||||||
|
|
||||||
assertTrue(mController.isAvailable());
|
assertTrue(mController.isAvailable());
|
||||||
}
|
}
|
||||||
@@ -205,7 +205,7 @@ public class BubblePreferenceControllerTest {
|
|||||||
NotificationChannel channel = mock(NotificationChannel.class);
|
NotificationChannel channel = mock(NotificationChannel.class);
|
||||||
when(channel.getImportance()).thenReturn(IMPORTANCE_HIGH);
|
when(channel.getImportance()).thenReturn(IMPORTANCE_HIGH);
|
||||||
mController.onResume(appRow, channel, null, null);
|
mController.onResume(appRow, channel, null, null);
|
||||||
Settings.Secure.putInt(mContext.getContentResolver(), NOTIFICATION_BUBBLES, SYSTEM_WIDE_ON);
|
Settings.Global.putInt(mContext.getContentResolver(), NOTIFICATION_BUBBLES, SYSTEM_WIDE_ON);
|
||||||
|
|
||||||
assertFalse(mController.isAvailable());
|
assertFalse(mController.isAvailable());
|
||||||
}
|
}
|
||||||
@@ -225,7 +225,7 @@ public class BubblePreferenceControllerTest {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testUpdateState_channelNotBlockable() {
|
public void testUpdateState_channelNotBlockable() {
|
||||||
Settings.Secure.putInt(mContext.getContentResolver(), NOTIFICATION_BUBBLES, SYSTEM_WIDE_ON);
|
Settings.Global.putInt(mContext.getContentResolver(), NOTIFICATION_BUBBLES, SYSTEM_WIDE_ON);
|
||||||
NotificationBackend.AppRow appRow = new NotificationBackend.AppRow();
|
NotificationBackend.AppRow appRow = new NotificationBackend.AppRow();
|
||||||
NotificationChannel channel = mock(NotificationChannel.class);
|
NotificationChannel channel = mock(NotificationChannel.class);
|
||||||
when(channel.isImportanceLockedByCriticalDeviceFunction()).thenReturn(true);
|
when(channel.isImportanceLockedByCriticalDeviceFunction()).thenReturn(true);
|
||||||
@@ -239,7 +239,7 @@ public class BubblePreferenceControllerTest {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testUpdateState_channel() {
|
public void testUpdateState_channel() {
|
||||||
Settings.Secure.putInt(mContext.getContentResolver(), NOTIFICATION_BUBBLES, SYSTEM_WIDE_ON);
|
Settings.Global.putInt(mContext.getContentResolver(), NOTIFICATION_BUBBLES, SYSTEM_WIDE_ON);
|
||||||
NotificationBackend.AppRow appRow = new NotificationBackend.AppRow();
|
NotificationBackend.AppRow appRow = new NotificationBackend.AppRow();
|
||||||
NotificationChannel channel = mock(NotificationChannel.class);
|
NotificationChannel channel = mock(NotificationChannel.class);
|
||||||
when(channel.canBubble()).thenReturn(true);
|
when(channel.canBubble()).thenReturn(true);
|
||||||
@@ -259,7 +259,7 @@ public class BubblePreferenceControllerTest {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testUpdateState_app() {
|
public void testUpdateState_app() {
|
||||||
Settings.Secure.putInt(mContext.getContentResolver(), NOTIFICATION_BUBBLES, SYSTEM_WIDE_ON);
|
Settings.Global.putInt(mContext.getContentResolver(), NOTIFICATION_BUBBLES, SYSTEM_WIDE_ON);
|
||||||
NotificationBackend.AppRow appRow = new NotificationBackend.AppRow();
|
NotificationBackend.AppRow appRow = new NotificationBackend.AppRow();
|
||||||
appRow.label = "App!";
|
appRow.label = "App!";
|
||||||
appRow.allowBubbles = true;
|
appRow.allowBubbles = true;
|
||||||
@@ -281,7 +281,7 @@ public class BubblePreferenceControllerTest {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testUpdateState_app_offGlobally() {
|
public void testUpdateState_app_offGlobally() {
|
||||||
Settings.Secure.putInt(mContext.getContentResolver(),
|
Settings.Global.putInt(mContext.getContentResolver(),
|
||||||
NOTIFICATION_BUBBLES, SYSTEM_WIDE_OFF);
|
NOTIFICATION_BUBBLES, SYSTEM_WIDE_OFF);
|
||||||
NotificationBackend.AppRow appRow = new NotificationBackend.AppRow();
|
NotificationBackend.AppRow appRow = new NotificationBackend.AppRow();
|
||||||
appRow.label = "App!";
|
appRow.label = "App!";
|
||||||
@@ -295,7 +295,7 @@ public class BubblePreferenceControllerTest {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testOnPreferenceChange_on_channel() {
|
public void testOnPreferenceChange_on_channel() {
|
||||||
Settings.Secure.putInt(mContext.getContentResolver(), NOTIFICATION_BUBBLES, SYSTEM_WIDE_ON);
|
Settings.Global.putInt(mContext.getContentResolver(), NOTIFICATION_BUBBLES, SYSTEM_WIDE_ON);
|
||||||
NotificationBackend.AppRow appRow = new NotificationBackend.AppRow();
|
NotificationBackend.AppRow appRow = new NotificationBackend.AppRow();
|
||||||
appRow.allowBubbles = true;
|
appRow.allowBubbles = true;
|
||||||
NotificationChannel channel =
|
NotificationChannel channel =
|
||||||
@@ -315,7 +315,7 @@ public class BubblePreferenceControllerTest {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testOnPreferenceChange_off_channel() {
|
public void testOnPreferenceChange_off_channel() {
|
||||||
Settings.Secure.putInt(mContext.getContentResolver(), NOTIFICATION_BUBBLES, SYSTEM_WIDE_ON);
|
Settings.Global.putInt(mContext.getContentResolver(), NOTIFICATION_BUBBLES, SYSTEM_WIDE_ON);
|
||||||
NotificationBackend.AppRow appRow = new NotificationBackend.AppRow();
|
NotificationBackend.AppRow appRow = new NotificationBackend.AppRow();
|
||||||
appRow.allowBubbles = true;
|
appRow.allowBubbles = true;
|
||||||
NotificationChannel channel =
|
NotificationChannel channel =
|
||||||
@@ -335,7 +335,7 @@ public class BubblePreferenceControllerTest {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testOnPreferenceChange_on_app() {
|
public void testOnPreferenceChange_on_app() {
|
||||||
Settings.Secure.putInt(mContext.getContentResolver(), NOTIFICATION_BUBBLES, SYSTEM_WIDE_ON);
|
Settings.Global.putInt(mContext.getContentResolver(), NOTIFICATION_BUBBLES, SYSTEM_WIDE_ON);
|
||||||
NotificationBackend.AppRow appRow = new NotificationBackend.AppRow();
|
NotificationBackend.AppRow appRow = new NotificationBackend.AppRow();
|
||||||
appRow.allowBubbles = false;
|
appRow.allowBubbles = false;
|
||||||
mController.onResume(appRow, null, null, null);
|
mController.onResume(appRow, null, null, null);
|
||||||
@@ -353,7 +353,7 @@ public class BubblePreferenceControllerTest {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testOnPreferenceChange_off_app() {
|
public void testOnPreferenceChange_off_app() {
|
||||||
Settings.Secure.putInt(mContext.getContentResolver(), NOTIFICATION_BUBBLES, SYSTEM_WIDE_ON);
|
Settings.Global.putInt(mContext.getContentResolver(), NOTIFICATION_BUBBLES, SYSTEM_WIDE_ON);
|
||||||
NotificationBackend.AppRow appRow = new NotificationBackend.AppRow();
|
NotificationBackend.AppRow appRow = new NotificationBackend.AppRow();
|
||||||
appRow.allowBubbles = true;
|
appRow.allowBubbles = true;
|
||||||
mController.onResume(appRow, null, null, null);
|
mController.onResume(appRow, null, null, null);
|
||||||
@@ -371,7 +371,7 @@ public class BubblePreferenceControllerTest {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testOnPreferenceChange_on_app_offGlobally() {
|
public void testOnPreferenceChange_on_app_offGlobally() {
|
||||||
Settings.Secure.putInt(mContext.getContentResolver(), NOTIFICATION_BUBBLES,
|
Settings.Global.putInt(mContext.getContentResolver(), NOTIFICATION_BUBBLES,
|
||||||
SYSTEM_WIDE_OFF);
|
SYSTEM_WIDE_OFF);
|
||||||
NotificationBackend.AppRow appRow = new NotificationBackend.AppRow();
|
NotificationBackend.AppRow appRow = new NotificationBackend.AppRow();
|
||||||
appRow.allowBubbles = false;
|
appRow.allowBubbles = false;
|
||||||
|
@@ -20,7 +20,7 @@ import static android.app.NotificationChannel.DEFAULT_CHANNEL_ID;
|
|||||||
import static android.app.NotificationManager.IMPORTANCE_HIGH;
|
import static android.app.NotificationManager.IMPORTANCE_HIGH;
|
||||||
import static android.app.NotificationManager.IMPORTANCE_LOW;
|
import static android.app.NotificationManager.IMPORTANCE_LOW;
|
||||||
import static android.app.NotificationManager.IMPORTANCE_NONE;
|
import static android.app.NotificationManager.IMPORTANCE_NONE;
|
||||||
import static android.provider.Settings.Secure.NOTIFICATION_BUBBLES;
|
import static android.provider.Settings.Global.NOTIFICATION_BUBBLES;
|
||||||
|
|
||||||
import static com.android.settings.notification.BubbleSummaryPreferenceController.SYSTEM_WIDE_OFF;
|
import static com.android.settings.notification.BubbleSummaryPreferenceController.SYSTEM_WIDE_OFF;
|
||||||
import static com.android.settings.notification.BubbleSummaryPreferenceController.SYSTEM_WIDE_ON;
|
import static com.android.settings.notification.BubbleSummaryPreferenceController.SYSTEM_WIDE_ON;
|
||||||
@@ -98,7 +98,7 @@ public class BubbleSummaryPreferenceControllerTest {
|
|||||||
NotificationChannel channel = mock(NotificationChannel.class);
|
NotificationChannel channel = mock(NotificationChannel.class);
|
||||||
when(channel.getImportance()).thenReturn(IMPORTANCE_HIGH);
|
when(channel.getImportance()).thenReturn(IMPORTANCE_HIGH);
|
||||||
mController.onResume(appRow, channel, null, null);
|
mController.onResume(appRow, channel, null, null);
|
||||||
Settings.Secure.putInt(mContext.getContentResolver(), NOTIFICATION_BUBBLES,
|
Settings.Global.putInt(mContext.getContentResolver(), NOTIFICATION_BUBBLES,
|
||||||
SYSTEM_WIDE_OFF);
|
SYSTEM_WIDE_OFF);
|
||||||
|
|
||||||
assertFalse(mController.isAvailable());
|
assertFalse(mController.isAvailable());
|
||||||
@@ -108,7 +108,7 @@ public class BubbleSummaryPreferenceControllerTest {
|
|||||||
public void testIsAvailable_app() {
|
public void testIsAvailable_app() {
|
||||||
NotificationBackend.AppRow appRow = new NotificationBackend.AppRow();
|
NotificationBackend.AppRow appRow = new NotificationBackend.AppRow();
|
||||||
mController.onResume(appRow, null, null, null);
|
mController.onResume(appRow, null, null, null);
|
||||||
Settings.Secure.putInt(mContext.getContentResolver(), NOTIFICATION_BUBBLES, SYSTEM_WIDE_ON);
|
Settings.Global.putInt(mContext.getContentResolver(), NOTIFICATION_BUBBLES, SYSTEM_WIDE_ON);
|
||||||
|
|
||||||
assertTrue(mController.isAvailable());
|
assertTrue(mController.isAvailable());
|
||||||
}
|
}
|
||||||
@@ -117,7 +117,7 @@ public class BubbleSummaryPreferenceControllerTest {
|
|||||||
public void testIsNotAvailable_app_globalOff() {
|
public void testIsNotAvailable_app_globalOff() {
|
||||||
NotificationBackend.AppRow appRow = new NotificationBackend.AppRow();
|
NotificationBackend.AppRow appRow = new NotificationBackend.AppRow();
|
||||||
mController.onResume(appRow, null, null, null);
|
mController.onResume(appRow, null, null, null);
|
||||||
Settings.Secure.putInt(mContext.getContentResolver(), NOTIFICATION_BUBBLES,
|
Settings.Global.putInt(mContext.getContentResolver(), NOTIFICATION_BUBBLES,
|
||||||
SYSTEM_WIDE_OFF);
|
SYSTEM_WIDE_OFF);
|
||||||
|
|
||||||
assertFalse(mController.isAvailable());
|
assertFalse(mController.isAvailable());
|
||||||
@@ -131,7 +131,7 @@ public class BubbleSummaryPreferenceControllerTest {
|
|||||||
when(channel.getImportance()).thenReturn(IMPORTANCE_HIGH);
|
when(channel.getImportance()).thenReturn(IMPORTANCE_HIGH);
|
||||||
when(channel.getId()).thenReturn(DEFAULT_CHANNEL_ID);
|
when(channel.getId()).thenReturn(DEFAULT_CHANNEL_ID);
|
||||||
mController.onResume(appRow, channel, null, null);
|
mController.onResume(appRow, channel, null, null);
|
||||||
Settings.Secure.putInt(mContext.getContentResolver(), NOTIFICATION_BUBBLES, SYSTEM_WIDE_ON);
|
Settings.Global.putInt(mContext.getContentResolver(), NOTIFICATION_BUBBLES, SYSTEM_WIDE_ON);
|
||||||
|
|
||||||
assertTrue(mController.isAvailable());
|
assertTrue(mController.isAvailable());
|
||||||
}
|
}
|
||||||
@@ -149,18 +149,18 @@ public class BubbleSummaryPreferenceControllerTest {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testGetSummary() {
|
public void testGetSummary() {
|
||||||
Settings.Secure.putInt(mContext.getContentResolver(), NOTIFICATION_BUBBLES, SYSTEM_WIDE_ON);
|
Settings.Global.putInt(mContext.getContentResolver(), NOTIFICATION_BUBBLES, SYSTEM_WIDE_ON);
|
||||||
NotificationBackend.AppRow appRow = new NotificationBackend.AppRow();
|
NotificationBackend.AppRow appRow = new NotificationBackend.AppRow();
|
||||||
appRow.allowBubbles = true;
|
appRow.allowBubbles = true;
|
||||||
mController.onResume(appRow, null, null, null);
|
mController.onResume(appRow, null, null, null);
|
||||||
|
|
||||||
assertEquals("On", mController.getSummary());
|
assertEquals("On", mController.getSummary());
|
||||||
|
|
||||||
Settings.Secure.putInt(mContext.getContentResolver(), NOTIFICATION_BUBBLES,
|
Settings.Global.putInt(mContext.getContentResolver(), NOTIFICATION_BUBBLES,
|
||||||
SYSTEM_WIDE_OFF);
|
SYSTEM_WIDE_OFF);
|
||||||
assertEquals("Off", mController.getSummary());
|
assertEquals("Off", mController.getSummary());
|
||||||
|
|
||||||
Settings.Secure.putInt(mContext.getContentResolver(), NOTIFICATION_BUBBLES, SYSTEM_WIDE_ON);
|
Settings.Global.putInt(mContext.getContentResolver(), NOTIFICATION_BUBBLES, SYSTEM_WIDE_ON);
|
||||||
appRow.allowBubbles = false;
|
appRow.allowBubbles = false;
|
||||||
mController.onResume(appRow, null, null, null);
|
mController.onResume(appRow, null, null, null);
|
||||||
|
|
||||||
|
@@ -16,8 +16,6 @@
|
|||||||
|
|
||||||
package com.android.settings.notification;
|
package com.android.settings.notification;
|
||||||
|
|
||||||
import static android.provider.Settings.Secure.NOTIFICATION_BUBBLES;
|
|
||||||
|
|
||||||
import static com.android.settings.notification.BadgingNotificationPreferenceController.OFF;
|
import static com.android.settings.notification.BadgingNotificationPreferenceController.OFF;
|
||||||
import static com.android.settings.notification.BadgingNotificationPreferenceController.ON;
|
import static com.android.settings.notification.BadgingNotificationPreferenceController.ON;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user