system-current.txt 663 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931
  1. // Signature format: 2.0
  2. package android {
  3. public static final class Manifest.permission {
  4. field public static final String ACCESS_AMBIENT_LIGHT_STATS = "android.permission.ACCESS_AMBIENT_LIGHT_STATS";
  5. field public static final String ACCESS_BROADCAST_RADIO = "android.permission.ACCESS_BROADCAST_RADIO";
  6. field public static final String ACCESS_CACHE_FILESYSTEM = "android.permission.ACCESS_CACHE_FILESYSTEM";
  7. field public static final String ACCESS_DRM_CERTIFICATES = "android.permission.ACCESS_DRM_CERTIFICATES";
  8. field @Deprecated public static final String ACCESS_FM_RADIO = "android.permission.ACCESS_FM_RADIO";
  9. field public static final String ACCESS_INSTANT_APPS = "android.permission.ACCESS_INSTANT_APPS";
  10. field public static final String ACCESS_MOCK_LOCATION = "android.permission.ACCESS_MOCK_LOCATION";
  11. field public static final String ACCESS_MTP = "android.permission.ACCESS_MTP";
  12. field public static final String ACCESS_NETWORK_CONDITIONS = "android.permission.ACCESS_NETWORK_CONDITIONS";
  13. field public static final String ACCESS_NOTIFICATIONS = "android.permission.ACCESS_NOTIFICATIONS";
  14. field public static final String ACCESS_SHARED_LIBRARIES = "android.permission.ACCESS_SHARED_LIBRARIES";
  15. field public static final String ACCESS_SHORTCUTS = "android.permission.ACCESS_SHORTCUTS";
  16. field public static final String ACCESS_SURFACE_FLINGER = "android.permission.ACCESS_SURFACE_FLINGER";
  17. field public static final String ACTIVITY_EMBEDDING = "android.permission.ACTIVITY_EMBEDDING";
  18. field public static final String ADJUST_RUNTIME_PERMISSIONS_POLICY = "android.permission.ADJUST_RUNTIME_PERMISSIONS_POLICY";
  19. field public static final String ALLOCATE_AGGRESSIVE = "android.permission.ALLOCATE_AGGRESSIVE";
  20. field public static final String ALLOW_ANY_CODEC_FOR_PLAYBACK = "android.permission.ALLOW_ANY_CODEC_FOR_PLAYBACK";
  21. field public static final String AMBIENT_WALLPAPER = "android.permission.AMBIENT_WALLPAPER";
  22. field public static final String APPROVE_INCIDENT_REPORTS = "android.permission.APPROVE_INCIDENT_REPORTS";
  23. field public static final String BACKUP = "android.permission.BACKUP";
  24. field public static final String BIND_ATTENTION_SERVICE = "android.permission.BIND_ATTENTION_SERVICE";
  25. field public static final String BIND_AUGMENTED_AUTOFILL_SERVICE = "android.permission.BIND_AUGMENTED_AUTOFILL_SERVICE";
  26. field @Deprecated public static final String BIND_CONNECTION_SERVICE = "android.permission.BIND_CONNECTION_SERVICE";
  27. field public static final String BIND_CONTENT_CAPTURE_SERVICE = "android.permission.BIND_CONTENT_CAPTURE_SERVICE";
  28. field public static final String BIND_CONTENT_SUGGESTIONS_SERVICE = "android.permission.BIND_CONTENT_SUGGESTIONS_SERVICE";
  29. field public static final String BIND_DIRECTORY_SEARCH = "android.permission.BIND_DIRECTORY_SEARCH";
  30. field public static final String BIND_EUICC_SERVICE = "android.permission.BIND_EUICC_SERVICE";
  31. field public static final String BIND_IMS_SERVICE = "android.permission.BIND_IMS_SERVICE";
  32. field public static final String BIND_KEYGUARD_APPWIDGET = "android.permission.BIND_KEYGUARD_APPWIDGET";
  33. field public static final String BIND_NETWORK_RECOMMENDATION_SERVICE = "android.permission.BIND_NETWORK_RECOMMENDATION_SERVICE";
  34. field public static final String BIND_NOTIFICATION_ASSISTANT_SERVICE = "android.permission.BIND_NOTIFICATION_ASSISTANT_SERVICE";
  35. field public static final String BIND_PHONE_ACCOUNT_SUGGESTION_SERVICE = "android.permission.BIND_PHONE_ACCOUNT_SUGGESTION_SERVICE";
  36. field public static final String BIND_PRINT_RECOMMENDATION_SERVICE = "android.permission.BIND_PRINT_RECOMMENDATION_SERVICE";
  37. field public static final String BIND_RESOLVER_RANKER_SERVICE = "android.permission.BIND_RESOLVER_RANKER_SERVICE";
  38. field public static final String BIND_RUNTIME_PERMISSION_PRESENTER_SERVICE = "android.permission.BIND_RUNTIME_PERMISSION_PRESENTER_SERVICE";
  39. field public static final String BIND_SETTINGS_SUGGESTIONS_SERVICE = "android.permission.BIND_SETTINGS_SUGGESTIONS_SERVICE";
  40. field public static final String BIND_SOUND_TRIGGER_DETECTION_SERVICE = "android.permission.BIND_SOUND_TRIGGER_DETECTION_SERVICE";
  41. field public static final String BIND_TELEPHONY_DATA_SERVICE = "android.permission.BIND_TELEPHONY_DATA_SERVICE";
  42. field public static final String BIND_TELEPHONY_NETWORK_SERVICE = "android.permission.BIND_TELEPHONY_NETWORK_SERVICE";
  43. field public static final String BIND_TEXTCLASSIFIER_SERVICE = "android.permission.BIND_TEXTCLASSIFIER_SERVICE";
  44. field public static final String BIND_TRUST_AGENT = "android.permission.BIND_TRUST_AGENT";
  45. field public static final String BIND_TV_REMOTE_SERVICE = "android.permission.BIND_TV_REMOTE_SERVICE";
  46. field public static final String BRICK = "android.permission.BRICK";
  47. field public static final String BRIGHTNESS_SLIDER_USAGE = "android.permission.BRIGHTNESS_SLIDER_USAGE";
  48. field @Deprecated public static final String BROADCAST_NETWORK_PRIVILEGED = "android.permission.BROADCAST_NETWORK_PRIVILEGED";
  49. field public static final String CAMERA_DISABLE_TRANSMIT_LED = "android.permission.CAMERA_DISABLE_TRANSMIT_LED";
  50. field public static final String CAPTURE_AUDIO_HOTWORD = "android.permission.CAPTURE_AUDIO_HOTWORD";
  51. field public static final String CAPTURE_MEDIA_OUTPUT = "android.permission.CAPTURE_MEDIA_OUTPUT";
  52. field public static final String CAPTURE_TV_INPUT = "android.permission.CAPTURE_TV_INPUT";
  53. field public static final String CHANGE_APP_IDLE_STATE = "android.permission.CHANGE_APP_IDLE_STATE";
  54. field public static final String CHANGE_DEVICE_IDLE_TEMP_WHITELIST = "android.permission.CHANGE_DEVICE_IDLE_TEMP_WHITELIST";
  55. field public static final String CLEAR_APP_USER_DATA = "android.permission.CLEAR_APP_USER_DATA";
  56. field public static final String CONFIGURE_DISPLAY_BRIGHTNESS = "android.permission.CONFIGURE_DISPLAY_BRIGHTNESS";
  57. field public static final String CONNECTIVITY_INTERNAL = "android.permission.CONNECTIVITY_INTERNAL";
  58. field public static final String CONNECTIVITY_USE_RESTRICTED_NETWORKS = "android.permission.CONNECTIVITY_USE_RESTRICTED_NETWORKS";
  59. field public static final String CONTROL_DISPLAY_COLOR_TRANSFORMS = "android.permission.CONTROL_DISPLAY_COLOR_TRANSFORMS";
  60. field public static final String CONTROL_DISPLAY_SATURATION = "android.permission.CONTROL_DISPLAY_SATURATION";
  61. field public static final String CONTROL_INCALL_EXPERIENCE = "android.permission.CONTROL_INCALL_EXPERIENCE";
  62. field public static final String CONTROL_KEYGUARD_SECURE_NOTIFICATIONS = "android.permission.CONTROL_KEYGUARD_SECURE_NOTIFICATIONS";
  63. field public static final String CONTROL_VPN = "android.permission.CONTROL_VPN";
  64. field public static final String CRYPT_KEEPER = "android.permission.CRYPT_KEEPER";
  65. field public static final String DEVICE_POWER = "android.permission.DEVICE_POWER";
  66. field public static final String DISPATCH_PROVISIONING_MESSAGE = "android.permission.DISPATCH_PROVISIONING_MESSAGE";
  67. field public static final String FORCE_BACK = "android.permission.FORCE_BACK";
  68. field public static final String FORCE_STOP_PACKAGES = "android.permission.FORCE_STOP_PACKAGES";
  69. field public static final String GET_APP_OPS_STATS = "android.permission.GET_APP_OPS_STATS";
  70. field public static final String GET_PROCESS_STATE_AND_OOM_SCORE = "android.permission.GET_PROCESS_STATE_AND_OOM_SCORE";
  71. field public static final String GET_RUNTIME_PERMISSIONS = "android.permission.GET_RUNTIME_PERMISSIONS";
  72. field public static final String GET_TOP_ACTIVITY_INFO = "android.permission.GET_TOP_ACTIVITY_INFO";
  73. field public static final String GRANT_PROFILE_OWNER_DEVICE_IDS_ACCESS = "android.permission.GRANT_PROFILE_OWNER_DEVICE_IDS_ACCESS";
  74. field public static final String GRANT_RUNTIME_PERMISSIONS = "android.permission.GRANT_RUNTIME_PERMISSIONS";
  75. field public static final String HARDWARE_TEST = "android.permission.HARDWARE_TEST";
  76. field public static final String HDMI_CEC = "android.permission.HDMI_CEC";
  77. field public static final String HIDE_NON_SYSTEM_OVERLAY_WINDOWS = "android.permission.HIDE_NON_SYSTEM_OVERLAY_WINDOWS";
  78. field public static final String INJECT_EVENTS = "android.permission.INJECT_EVENTS";
  79. field public static final String INSTALL_DYNAMIC_SYSTEM = "android.permission.INSTALL_DYNAMIC_SYSTEM";
  80. field public static final String INSTALL_GRANT_RUNTIME_PERMISSIONS = "android.permission.INSTALL_GRANT_RUNTIME_PERMISSIONS";
  81. field public static final String INSTALL_PACKAGE_UPDATES = "android.permission.INSTALL_PACKAGE_UPDATES";
  82. field public static final String INSTALL_SELF_UPDATES = "android.permission.INSTALL_SELF_UPDATES";
  83. field public static final String INTENT_FILTER_VERIFICATION_AGENT = "android.permission.INTENT_FILTER_VERIFICATION_AGENT";
  84. field public static final String INTERACT_ACROSS_PROFILES = "android.permission.INTERACT_ACROSS_PROFILES";
  85. field public static final String INTERACT_ACROSS_USERS = "android.permission.INTERACT_ACROSS_USERS";
  86. field public static final String INTERACT_ACROSS_USERS_FULL = "android.permission.INTERACT_ACROSS_USERS_FULL";
  87. field public static final String INTERNAL_SYSTEM_WINDOW = "android.permission.INTERNAL_SYSTEM_WINDOW";
  88. field public static final String INVOKE_CARRIER_SETUP = "android.permission.INVOKE_CARRIER_SETUP";
  89. field public static final String KILL_UID = "android.permission.KILL_UID";
  90. field public static final String LOCAL_MAC_ADDRESS = "android.permission.LOCAL_MAC_ADDRESS";
  91. field public static final String LOCK_DEVICE = "android.permission.LOCK_DEVICE";
  92. field public static final String LOOP_RADIO = "android.permission.LOOP_RADIO";
  93. field public static final String MANAGE_ACCESSIBILITY = "android.permission.MANAGE_ACCESSIBILITY";
  94. field public static final String MANAGE_ACTIVITY_STACKS = "android.permission.MANAGE_ACTIVITY_STACKS";
  95. field public static final String MANAGE_APP_OPS_RESTRICTIONS = "android.permission.MANAGE_APP_OPS_RESTRICTIONS";
  96. field public static final String MANAGE_APP_PREDICTIONS = "android.permission.MANAGE_APP_PREDICTIONS";
  97. field public static final String MANAGE_APP_TOKENS = "android.permission.MANAGE_APP_TOKENS";
  98. field public static final String MANAGE_AUTO_FILL = "android.permission.MANAGE_AUTO_FILL";
  99. field public static final String MANAGE_CARRIER_OEM_UNLOCK_STATE = "android.permission.MANAGE_CARRIER_OEM_UNLOCK_STATE";
  100. field public static final String MANAGE_CA_CERTIFICATES = "android.permission.MANAGE_CA_CERTIFICATES";
  101. field public static final String MANAGE_CONTENT_CAPTURE = "android.permission.MANAGE_CONTENT_CAPTURE";
  102. field public static final String MANAGE_CONTENT_SUGGESTIONS = "android.permission.MANAGE_CONTENT_SUGGESTIONS";
  103. field public static final String MANAGE_DEBUGGING = "android.permission.MANAGE_DEBUGGING";
  104. field public static final String MANAGE_IPSEC_TUNNELS = "android.permission.MANAGE_IPSEC_TUNNELS";
  105. field public static final String MANAGE_ROLE_HOLDERS = "android.permission.MANAGE_ROLE_HOLDERS";
  106. field public static final String MANAGE_ROLLBACKS = "android.permission.MANAGE_ROLLBACKS";
  107. field public static final String MANAGE_SENSOR_PRIVACY = "android.permission.MANAGE_SENSOR_PRIVACY";
  108. field public static final String MANAGE_SOUND_TRIGGER = "android.permission.MANAGE_SOUND_TRIGGER";
  109. field public static final String MANAGE_SUBSCRIPTION_PLANS = "android.permission.MANAGE_SUBSCRIPTION_PLANS";
  110. field public static final String MANAGE_USB = "android.permission.MANAGE_USB";
  111. field public static final String MANAGE_USERS = "android.permission.MANAGE_USERS";
  112. field public static final String MANAGE_USER_OEM_UNLOCK_STATE = "android.permission.MANAGE_USER_OEM_UNLOCK_STATE";
  113. field public static final String MODIFY_APPWIDGET_BIND_PERMISSIONS = "android.permission.MODIFY_APPWIDGET_BIND_PERMISSIONS";
  114. field public static final String MODIFY_AUDIO_ROUTING = "android.permission.MODIFY_AUDIO_ROUTING";
  115. field public static final String MODIFY_CELL_BROADCASTS = "android.permission.MODIFY_CELL_BROADCASTS";
  116. field public static final String MODIFY_DAY_NIGHT_MODE = "android.permission.MODIFY_DAY_NIGHT_MODE";
  117. field @Deprecated public static final String MODIFY_NETWORK_ACCOUNTING = "android.permission.MODIFY_NETWORK_ACCOUNTING";
  118. field public static final String MODIFY_PARENTAL_CONTROLS = "android.permission.MODIFY_PARENTAL_CONTROLS";
  119. field public static final String MODIFY_QUIET_MODE = "android.permission.MODIFY_QUIET_MODE";
  120. field public static final String MOVE_PACKAGE = "android.permission.MOVE_PACKAGE";
  121. field public static final String NETWORK_CARRIER_PROVISIONING = "android.permission.NETWORK_CARRIER_PROVISIONING";
  122. field public static final String NETWORK_MANAGED_PROVISIONING = "android.permission.NETWORK_MANAGED_PROVISIONING";
  123. field public static final String NETWORK_SCAN = "android.permission.NETWORK_SCAN";
  124. field public static final String NETWORK_SETUP_WIZARD = "android.permission.NETWORK_SETUP_WIZARD";
  125. field public static final String NETWORK_SIGNAL_STRENGTH_WAKEUP = "android.permission.NETWORK_SIGNAL_STRENGTH_WAKEUP";
  126. field public static final String NOTIFICATION_DURING_SETUP = "android.permission.NOTIFICATION_DURING_SETUP";
  127. field public static final String NOTIFY_TV_INPUTS = "android.permission.NOTIFY_TV_INPUTS";
  128. field public static final String OBSERVE_APP_USAGE = "android.permission.OBSERVE_APP_USAGE";
  129. field public static final String OBSERVE_ROLE_HOLDERS = "android.permission.OBSERVE_ROLE_HOLDERS";
  130. field public static final String OPEN_ACCESSIBILITY_DETAILS_SETTINGS = "android.permission.OPEN_ACCESSIBILITY_DETAILS_SETTINGS";
  131. field public static final String OVERRIDE_WIFI_CONFIG = "android.permission.OVERRIDE_WIFI_CONFIG";
  132. field public static final String PACKAGE_VERIFICATION_AGENT = "android.permission.PACKAGE_VERIFICATION_AGENT";
  133. field public static final String PACKET_KEEPALIVE_OFFLOAD = "android.permission.PACKET_KEEPALIVE_OFFLOAD";
  134. field public static final String PEERS_MAC_ADDRESS = "android.permission.PEERS_MAC_ADDRESS";
  135. field public static final String PERFORM_CDMA_PROVISIONING = "android.permission.PERFORM_CDMA_PROVISIONING";
  136. field public static final String PERFORM_SIM_ACTIVATION = "android.permission.PERFORM_SIM_ACTIVATION";
  137. field public static final String POWER_SAVER = "android.permission.POWER_SAVER";
  138. field public static final String PROVIDE_RESOLVER_RANKER_SERVICE = "android.permission.PROVIDE_RESOLVER_RANKER_SERVICE";
  139. field public static final String PROVIDE_TRUST_AGENT = "android.permission.PROVIDE_TRUST_AGENT";
  140. field public static final String QUERY_TIME_ZONE_RULES = "android.permission.QUERY_TIME_ZONE_RULES";
  141. field public static final String READ_CELL_BROADCASTS = "android.permission.READ_CELL_BROADCASTS";
  142. field public static final String READ_CONTENT_RATING_SYSTEMS = "android.permission.READ_CONTENT_RATING_SYSTEMS";
  143. field public static final String READ_DEVICE_CONFIG = "android.permission.READ_DEVICE_CONFIG";
  144. field public static final String READ_DREAM_STATE = "android.permission.READ_DREAM_STATE";
  145. field public static final String READ_INSTALL_SESSIONS = "android.permission.READ_INSTALL_SESSIONS";
  146. field public static final String READ_NETWORK_USAGE_HISTORY = "android.permission.READ_NETWORK_USAGE_HISTORY";
  147. field public static final String READ_OEM_UNLOCK_STATE = "android.permission.READ_OEM_UNLOCK_STATE";
  148. field public static final String READ_PRINT_SERVICES = "android.permission.READ_PRINT_SERVICES";
  149. field public static final String READ_PRINT_SERVICE_RECOMMENDATIONS = "android.permission.READ_PRINT_SERVICE_RECOMMENDATIONS";
  150. field public static final String READ_PRIVILEGED_PHONE_STATE = "android.permission.READ_PRIVILEGED_PHONE_STATE";
  151. field public static final String READ_RUNTIME_PROFILES = "android.permission.READ_RUNTIME_PROFILES";
  152. field public static final String READ_SEARCH_INDEXABLES = "android.permission.READ_SEARCH_INDEXABLES";
  153. field public static final String READ_SYSTEM_UPDATE_INFO = "android.permission.READ_SYSTEM_UPDATE_INFO";
  154. field public static final String READ_WALLPAPER_INTERNAL = "android.permission.READ_WALLPAPER_INTERNAL";
  155. field public static final String READ_WIFI_CREDENTIAL = "android.permission.READ_WIFI_CREDENTIAL";
  156. field public static final String REAL_GET_TASKS = "android.permission.REAL_GET_TASKS";
  157. field public static final String RECEIVE_DATA_ACTIVITY_CHANGE = "android.permission.RECEIVE_DATA_ACTIVITY_CHANGE";
  158. field public static final String RECEIVE_DEVICE_CUSTOMIZATION_READY = "android.permission.RECEIVE_DEVICE_CUSTOMIZATION_READY";
  159. field public static final String RECEIVE_EMERGENCY_BROADCAST = "android.permission.RECEIVE_EMERGENCY_BROADCAST";
  160. field public static final String RECEIVE_WIFI_CREDENTIAL_CHANGE = "android.permission.RECEIVE_WIFI_CREDENTIAL_CHANGE";
  161. field public static final String RECOVERY = "android.permission.RECOVERY";
  162. field public static final String RECOVER_KEYSTORE = "android.permission.RECOVER_KEYSTORE";
  163. field public static final String REGISTER_CALL_PROVIDER = "android.permission.REGISTER_CALL_PROVIDER";
  164. field public static final String REGISTER_CONNECTION_MANAGER = "android.permission.REGISTER_CONNECTION_MANAGER";
  165. field public static final String REGISTER_SIM_SUBSCRIPTION = "android.permission.REGISTER_SIM_SUBSCRIPTION";
  166. field public static final String REMOTE_DISPLAY_PROVIDER = "android.permission.REMOTE_DISPLAY_PROVIDER";
  167. field public static final String REMOVE_DRM_CERTIFICATES = "android.permission.REMOVE_DRM_CERTIFICATES";
  168. field public static final String REMOVE_TASKS = "android.permission.REMOVE_TASKS";
  169. field public static final String REQUEST_NOTIFICATION_ASSISTANT_SERVICE = "android.permission.REQUEST_NOTIFICATION_ASSISTANT_SERVICE";
  170. field public static final String RESET_PASSWORD = "android.permission.RESET_PASSWORD";
  171. field public static final String RESTRICTED_VR_ACCESS = "android.permission.RESTRICTED_VR_ACCESS";
  172. field public static final String RETRIEVE_WINDOW_CONTENT = "android.permission.RETRIEVE_WINDOW_CONTENT";
  173. field public static final String REVIEW_ACCESSIBILITY_SERVICES = "android.permission.REVIEW_ACCESSIBILITY_SERVICES";
  174. field public static final String REVOKE_RUNTIME_PERMISSIONS = "android.permission.REVOKE_RUNTIME_PERMISSIONS";
  175. field public static final String SCORE_NETWORKS = "android.permission.SCORE_NETWORKS";
  176. field public static final String SEND_DEVICE_CUSTOMIZATION_READY = "android.permission.SEND_DEVICE_CUSTOMIZATION_READY";
  177. field public static final String SEND_SHOW_SUSPENDED_APP_DETAILS = "android.permission.SEND_SHOW_SUSPENDED_APP_DETAILS";
  178. field public static final String SEND_SMS_NO_CONFIRMATION = "android.permission.SEND_SMS_NO_CONFIRMATION";
  179. field public static final String SERIAL_PORT = "android.permission.SERIAL_PORT";
  180. field public static final String SET_ACTIVITY_WATCHER = "android.permission.SET_ACTIVITY_WATCHER";
  181. field public static final String SET_HARMFUL_APP_WARNINGS = "android.permission.SET_HARMFUL_APP_WARNINGS";
  182. field public static final String SET_MEDIA_KEY_LISTENER = "android.permission.SET_MEDIA_KEY_LISTENER";
  183. field public static final String SET_ORIENTATION = "android.permission.SET_ORIENTATION";
  184. field public static final String SET_POINTER_SPEED = "android.permission.SET_POINTER_SPEED";
  185. field public static final String SET_SCREEN_COMPATIBILITY = "android.permission.SET_SCREEN_COMPATIBILITY";
  186. field public static final String SET_VOLUME_KEY_LONG_PRESS_LISTENER = "android.permission.SET_VOLUME_KEY_LONG_PRESS_LISTENER";
  187. field public static final String SET_WALLPAPER_COMPONENT = "android.permission.SET_WALLPAPER_COMPONENT";
  188. field public static final String SHOW_KEYGUARD_MESSAGE = "android.permission.SHOW_KEYGUARD_MESSAGE";
  189. field public static final String SHUTDOWN = "android.permission.SHUTDOWN";
  190. field public static final String STOP_APP_SWITCHES = "android.permission.STOP_APP_SWITCHES";
  191. field public static final String SUBSTITUTE_NOTIFICATION_APP_NAME = "android.permission.SUBSTITUTE_NOTIFICATION_APP_NAME";
  192. field public static final String SUBSTITUTE_SHARE_TARGET_APP_NAME_AND_ICON = "android.permission.SUBSTITUTE_SHARE_TARGET_APP_NAME_AND_ICON";
  193. field public static final String SUSPEND_APPS = "android.permission.SUSPEND_APPS";
  194. field public static final String TETHER_PRIVILEGED = "android.permission.TETHER_PRIVILEGED";
  195. field public static final String TV_INPUT_HARDWARE = "android.permission.TV_INPUT_HARDWARE";
  196. field public static final String TV_VIRTUAL_REMOTE_CONTROLLER = "android.permission.TV_VIRTUAL_REMOTE_CONTROLLER";
  197. field public static final String UNLIMITED_SHORTCUTS_API_CALLS = "android.permission.UNLIMITED_SHORTCUTS_API_CALLS";
  198. field public static final String UPDATE_APP_OPS_STATS = "android.permission.UPDATE_APP_OPS_STATS";
  199. field public static final String UPDATE_LOCK = "android.permission.UPDATE_LOCK";
  200. field public static final String UPDATE_TIME_ZONE_RULES = "android.permission.UPDATE_TIME_ZONE_RULES";
  201. field public static final String USER_ACTIVITY = "android.permission.USER_ACTIVITY";
  202. field public static final String USE_RESERVED_DISK = "android.permission.USE_RESERVED_DISK";
  203. field public static final String WHITELIST_RESTRICTED_PERMISSIONS = "android.permission.WHITELIST_RESTRICTED_PERMISSIONS";
  204. field public static final String WRITE_DEVICE_CONFIG = "android.permission.WRITE_DEVICE_CONFIG";
  205. field public static final String WRITE_DREAM_STATE = "android.permission.WRITE_DREAM_STATE";
  206. field public static final String WRITE_EMBEDDED_SUBSCRIPTIONS = "android.permission.WRITE_EMBEDDED_SUBSCRIPTIONS";
  207. field public static final String WRITE_MEDIA_STORAGE = "android.permission.WRITE_MEDIA_STORAGE";
  208. field public static final String WRITE_OBB = "android.permission.WRITE_OBB";
  209. }
  210. public static final class Manifest.permission_group {
  211. field public static final String UNDEFINED = "android.permission-group.UNDEFINED";
  212. }
  213. public static final class R.array {
  214. field public static final int config_keySystemUuidMapping = 17235973; // 0x1070005
  215. }
  216. public static final class R.attr {
  217. field public static final int allowClearUserDataOnFailedRestore = 16844288; // 0x1010600
  218. field public static final int isVrOnly = 16844152; // 0x1010578
  219. field public static final int requiredSystemPropertyName = 16844133; // 0x1010565
  220. field public static final int requiredSystemPropertyValue = 16844134; // 0x1010566
  221. field public static final int supportsAmbientMode = 16844173; // 0x101058d
  222. field public static final int userRestriction = 16844164; // 0x1010584
  223. }
  224. public static final class R.bool {
  225. field public static final int config_sendPackageName = 17891328; // 0x1110000
  226. field public static final int config_showDefaultAssistant = 17891329; // 0x1110001
  227. field public static final int config_showDefaultEmergency = 17891330; // 0x1110002
  228. field public static final int config_showDefaultHome = 17891331; // 0x1110003
  229. }
  230. public static final class R.color {
  231. field public static final int system_notification_accent_color = 17170460; // 0x106001c
  232. }
  233. public static final class R.dimen {
  234. field public static final int config_restrictedIconSize = 17104903; // 0x1050007
  235. }
  236. public static final class R.drawable {
  237. field public static final int ic_info = 17301684; // 0x10800b4
  238. }
  239. public static final class R.raw {
  240. field public static final int loaderror = 17825792; // 0x1100000
  241. field public static final int nodomain = 17825793; // 0x1100001
  242. }
  243. public static final class R.string {
  244. field public static final int config_defaultAssistant = 17039393; // 0x1040021
  245. field public static final int config_defaultBrowser = 17039394; // 0x1040022
  246. field public static final int config_defaultDialer = 17039395; // 0x1040023
  247. field public static final int config_defaultSms = 17039396; // 0x1040024
  248. field public static final int config_feedbackIntentExtraKey = 17039391; // 0x104001f
  249. field public static final int config_feedbackIntentNameKey = 17039392; // 0x1040020
  250. field public static final int config_helpIntentExtraKey = 17039389; // 0x104001d
  251. field public static final int config_helpIntentNameKey = 17039390; // 0x104001e
  252. field public static final int config_helpPackageNameKey = 17039387; // 0x104001b
  253. field public static final int config_helpPackageNameValue = 17039388; // 0x104001c
  254. }
  255. public static final class R.style {
  256. field public static final int Theme_DeviceDefault_DocumentsUI = 16974562; // 0x10302e2
  257. field public static final int Theme_Leanback_FormWizard = 16974544; // 0x10302d0
  258. }
  259. }
  260. package android.accounts {
  261. public class AccountManager {
  262. method @RequiresPermission(android.Manifest.permission.INTERACT_ACROSS_USERS_FULL) public android.accounts.AccountManagerFuture<android.os.Bundle> finishSessionAsUser(android.os.Bundle, android.app.Activity, android.os.UserHandle, android.accounts.AccountManagerCallback<android.os.Bundle>, android.os.Handler);
  263. }
  264. }
  265. package android.app {
  266. public class Activity extends android.view.ContextThemeWrapper implements android.content.ComponentCallbacks2 android.view.KeyEvent.Callback android.view.LayoutInflater.Factory2 android.view.View.OnCreateContextMenuListener android.view.Window.Callback {
  267. method public void convertFromTranslucent();
  268. method public boolean convertToTranslucent(android.app.Activity.TranslucentConversionListener, android.app.ActivityOptions);
  269. method @Deprecated public boolean isBackgroundVisibleBehind();
  270. method @Deprecated public void onBackgroundVisibleBehindChanged(boolean);
  271. }
  272. public static interface Activity.TranslucentConversionListener {
  273. method public void onTranslucentConversionComplete(boolean);
  274. }
  275. public class ActivityManager {
  276. method @RequiresPermission(android.Manifest.permission.PACKAGE_USAGE_STATS) public void addOnUidImportanceListener(android.app.ActivityManager.OnUidImportanceListener, int);
  277. method @RequiresPermission(android.Manifest.permission.FORCE_STOP_PACKAGES) public void forceStopPackage(String);
  278. method @RequiresPermission(anyOf={"android.permission.INTERACT_ACROSS_USERS", "android.permission.INTERACT_ACROSS_USERS_FULL"}) public static int getCurrentUser();
  279. method @RequiresPermission(android.Manifest.permission.PACKAGE_USAGE_STATS) public int getPackageImportance(String);
  280. method @NonNull public java.util.Collection<java.util.Locale> getSupportedLocales();
  281. method @RequiresPermission(android.Manifest.permission.PACKAGE_USAGE_STATS) public int getUidImportance(int);
  282. method @RequiresPermission(android.Manifest.permission.KILL_UID) public void killUid(int, String);
  283. method @RequiresPermission(android.Manifest.permission.PACKAGE_USAGE_STATS) public void removeOnUidImportanceListener(android.app.ActivityManager.OnUidImportanceListener);
  284. method public void setDeviceLocales(@NonNull android.os.LocaleList);
  285. method @RequiresPermission(android.Manifest.permission.RESTRICTED_VR_ACCESS) public static void setPersistentVrThread(int);
  286. method @RequiresPermission(android.Manifest.permission.MANAGE_USERS) public boolean switchUser(@NonNull android.os.UserHandle);
  287. }
  288. public static interface ActivityManager.OnUidImportanceListener {
  289. method public void onUidImportance(int, int);
  290. }
  291. public class AlarmManager {
  292. method @RequiresPermission(android.Manifest.permission.UPDATE_DEVICE_STATS) public void set(int, long, long, long, android.app.PendingIntent, android.os.WorkSource);
  293. method @RequiresPermission(android.Manifest.permission.UPDATE_DEVICE_STATS) public void set(int, long, long, long, android.app.AlarmManager.OnAlarmListener, android.os.Handler, android.os.WorkSource);
  294. }
  295. public class AppOpsManager {
  296. method @RequiresPermission(android.Manifest.permission.GET_APP_OPS_STATS) public void getHistoricalOps(@NonNull android.app.AppOpsManager.HistoricalOpsRequest, @NonNull java.util.concurrent.Executor, @NonNull java.util.function.Consumer<android.app.AppOpsManager.HistoricalOps>);
  297. method public static String[] getOpStrs();
  298. method @NonNull @RequiresPermission(android.Manifest.permission.GET_APP_OPS_STATS) public java.util.List<android.app.AppOpsManager.PackageOps> getOpsForPackage(int, @NonNull String, @Nullable java.lang.String...);
  299. method @NonNull @RequiresPermission(android.Manifest.permission.GET_APP_OPS_STATS) public java.util.List<android.app.AppOpsManager.PackageOps> getPackagesForOps(@Nullable String[]);
  300. method public static int opToDefaultMode(@NonNull String);
  301. method @Nullable public static String opToPermission(@NonNull String);
  302. method @RequiresPermission("android.permission.MANAGE_APP_OPS_MODES") public void setMode(String, int, String, int);
  303. method @RequiresPermission("android.permission.MANAGE_APP_OPS_MODES") public void setUidMode(String, int, int);
  304. field public static final String OPSTR_ACCEPT_HANDOVER = "android:accept_handover";
  305. field public static final String OPSTR_ACCESS_ACCESSIBILITY = "android:access_accessibility";
  306. field public static final String OPSTR_ACCESS_NOTIFICATIONS = "android:access_notifications";
  307. field public static final String OPSTR_ACTIVATE_VPN = "android:activate_vpn";
  308. field public static final String OPSTR_ASSIST_SCREENSHOT = "android:assist_screenshot";
  309. field public static final String OPSTR_ASSIST_STRUCTURE = "android:assist_structure";
  310. field public static final String OPSTR_AUDIO_ACCESSIBILITY_VOLUME = "android:audio_accessibility_volume";
  311. field public static final String OPSTR_AUDIO_ALARM_VOLUME = "android:audio_alarm_volume";
  312. field public static final String OPSTR_AUDIO_BLUETOOTH_VOLUME = "android:audio_bluetooth_volume";
  313. field public static final String OPSTR_AUDIO_MASTER_VOLUME = "android:audio_master_volume";
  314. field public static final String OPSTR_AUDIO_MEDIA_VOLUME = "android:audio_media_volume";
  315. field public static final String OPSTR_AUDIO_NOTIFICATION_VOLUME = "android:audio_notification_volume";
  316. field public static final String OPSTR_AUDIO_RING_VOLUME = "android:audio_ring_volume";
  317. field public static final String OPSTR_AUDIO_VOICE_VOLUME = "android:audio_voice_volume";
  318. field public static final String OPSTR_BIND_ACCESSIBILITY_SERVICE = "android:bind_accessibility_service";
  319. field public static final String OPSTR_CHANGE_WIFI_STATE = "android:change_wifi_state";
  320. field public static final String OPSTR_GET_ACCOUNTS = "android:get_accounts";
  321. field public static final String OPSTR_GPS = "android:gps";
  322. field public static final String OPSTR_INSTANT_APP_START_FOREGROUND = "android:instant_app_start_foreground";
  323. field public static final String OPSTR_LEGACY_STORAGE = "android:legacy_storage";
  324. field public static final String OPSTR_MANAGE_IPSEC_TUNNELS = "android:manage_ipsec_tunnels";
  325. field public static final String OPSTR_MUTE_MICROPHONE = "android:mute_microphone";
  326. field public static final String OPSTR_NEIGHBORING_CELLS = "android:neighboring_cells";
  327. field public static final String OPSTR_PLAY_AUDIO = "android:play_audio";
  328. field public static final String OPSTR_POST_NOTIFICATION = "android:post_notification";
  329. field public static final String OPSTR_PROJECT_MEDIA = "android:project_media";
  330. field public static final String OPSTR_READ_CLIPBOARD = "android:read_clipboard";
  331. field public static final String OPSTR_READ_ICC_SMS = "android:read_icc_sms";
  332. field public static final String OPSTR_RECEIVE_EMERGENCY_BROADCAST = "android:receive_emergency_broadcast";
  333. field public static final String OPSTR_REQUEST_DELETE_PACKAGES = "android:request_delete_packages";
  334. field public static final String OPSTR_REQUEST_INSTALL_PACKAGES = "android:request_install_packages";
  335. field public static final String OPSTR_RUN_ANY_IN_BACKGROUND = "android:run_any_in_background";
  336. field public static final String OPSTR_RUN_IN_BACKGROUND = "android:run_in_background";
  337. field public static final String OPSTR_START_FOREGROUND = "android:start_foreground";
  338. field public static final String OPSTR_TAKE_AUDIO_FOCUS = "android:take_audio_focus";
  339. field public static final String OPSTR_TAKE_MEDIA_BUTTONS = "android:take_media_buttons";
  340. field public static final String OPSTR_TOAST_WINDOW = "android:toast_window";
  341. field public static final String OPSTR_TURN_SCREEN_ON = "android:turn_screen_on";
  342. field public static final String OPSTR_VIBRATE = "android:vibrate";
  343. field public static final String OPSTR_WAKE_LOCK = "android:wake_lock";
  344. field public static final String OPSTR_WIFI_SCAN = "android:wifi_scan";
  345. field public static final String OPSTR_WRITE_CLIPBOARD = "android:write_clipboard";
  346. field public static final String OPSTR_WRITE_ICC_SMS = "android:write_icc_sms";
  347. field public static final String OPSTR_WRITE_SMS = "android:write_sms";
  348. field public static final String OPSTR_WRITE_WALLPAPER = "android:write_wallpaper";
  349. field public static final int OP_FLAGS_ALL = 31; // 0x1f
  350. field public static final int OP_FLAGS_ALL_TRUSTED = 13; // 0xd
  351. field public static final int OP_FLAG_SELF = 1; // 0x1
  352. field public static final int OP_FLAG_TRUSTED_PROXIED = 8; // 0x8
  353. field public static final int OP_FLAG_TRUSTED_PROXY = 2; // 0x2
  354. field public static final int OP_FLAG_UNTRUSTED_PROXIED = 16; // 0x10
  355. field public static final int OP_FLAG_UNTRUSTED_PROXY = 4; // 0x4
  356. field public static final int UID_STATE_BACKGROUND = 600; // 0x258
  357. field public static final int UID_STATE_CACHED = 700; // 0x2bc
  358. field public static final int UID_STATE_FOREGROUND = 500; // 0x1f4
  359. field public static final int UID_STATE_FOREGROUND_SERVICE = 400; // 0x190
  360. field public static final int UID_STATE_FOREGROUND_SERVICE_LOCATION = 300; // 0x12c
  361. field public static final int UID_STATE_PERSISTENT = 100; // 0x64
  362. field public static final int UID_STATE_TOP = 200; // 0xc8
  363. }
  364. public static final class AppOpsManager.HistoricalOp implements android.os.Parcelable {
  365. method public int describeContents();
  366. method public long getAccessCount(int, int, int);
  367. method public long getAccessDuration(int, int, int);
  368. method public long getBackgroundAccessCount(int);
  369. method public long getBackgroundAccessDuration(int);
  370. method public long getBackgroundRejectCount(int);
  371. method public long getForegroundAccessCount(int);
  372. method public long getForegroundAccessDuration(int);
  373. method public long getForegroundRejectCount(int);
  374. method @NonNull public String getOpName();
  375. method public long getRejectCount(int, int, int);
  376. method public void writeToParcel(android.os.Parcel, int);
  377. field @NonNull public static final android.os.Parcelable.Creator<android.app.AppOpsManager.HistoricalOp> CREATOR;
  378. }
  379. public static final class AppOpsManager.HistoricalOps implements android.os.Parcelable {
  380. method public int describeContents();
  381. method public long getBeginTimeMillis();
  382. method public long getEndTimeMillis();
  383. method @IntRange(from=0) public int getUidCount();
  384. method @Nullable public android.app.AppOpsManager.HistoricalUidOps getUidOps(int);
  385. method @NonNull public android.app.AppOpsManager.HistoricalUidOps getUidOpsAt(@IntRange(from=0) int);
  386. method public void writeToParcel(android.os.Parcel, int);
  387. field @NonNull public static final android.os.Parcelable.Creator<android.app.AppOpsManager.HistoricalOps> CREATOR;
  388. }
  389. public static final class AppOpsManager.HistoricalOpsRequest {
  390. }
  391. public static final class AppOpsManager.HistoricalOpsRequest.Builder {
  392. ctor public AppOpsManager.HistoricalOpsRequest.Builder(long, long);
  393. method @NonNull public android.app.AppOpsManager.HistoricalOpsRequest build();
  394. method @NonNull public android.app.AppOpsManager.HistoricalOpsRequest.Builder setFlags(int);
  395. method @NonNull public android.app.AppOpsManager.HistoricalOpsRequest.Builder setOpNames(@Nullable java.util.List<java.lang.String>);
  396. method @NonNull public android.app.AppOpsManager.HistoricalOpsRequest.Builder setPackageName(@Nullable String);
  397. method @NonNull public android.app.AppOpsManager.HistoricalOpsRequest.Builder setUid(int);
  398. }
  399. public static final class AppOpsManager.HistoricalPackageOps implements android.os.Parcelable {
  400. method public int describeContents();
  401. method @Nullable public android.app.AppOpsManager.HistoricalOp getOp(@NonNull String);
  402. method @NonNull public android.app.AppOpsManager.HistoricalOp getOpAt(@IntRange(from=0) int);
  403. method @IntRange(from=0) public int getOpCount();
  404. method @NonNull public String getPackageName();
  405. method public void writeToParcel(@NonNull android.os.Parcel, int);
  406. field @NonNull public static final android.os.Parcelable.Creator<android.app.AppOpsManager.HistoricalPackageOps> CREATOR;
  407. }
  408. public static final class AppOpsManager.HistoricalUidOps implements android.os.Parcelable {
  409. method public int describeContents();
  410. method @IntRange(from=0) public int getPackageCount();
  411. method @Nullable public android.app.AppOpsManager.HistoricalPackageOps getPackageOps(@NonNull String);
  412. method @NonNull public android.app.AppOpsManager.HistoricalPackageOps getPackageOpsAt(@IntRange(from=0) int);
  413. method public int getUid();
  414. method public void writeToParcel(android.os.Parcel, int);
  415. field @NonNull public static final android.os.Parcelable.Creator<android.app.AppOpsManager.HistoricalUidOps> CREATOR;
  416. }
  417. public static final class AppOpsManager.OpEntry implements android.os.Parcelable {
  418. method public int describeContents();
  419. method public long getDuration();
  420. method public long getLastAccessBackgroundTime(int);
  421. method public long getLastAccessForegroundTime(int);
  422. method public long getLastAccessTime(int);
  423. method public long getLastAccessTime(int, int, int);
  424. method public long getLastBackgroundDuration(int);
  425. method public long getLastDuration(int, int, int);
  426. method public long getLastForegroundDuration(int);
  427. method public long getLastRejectBackgroundTime(int);
  428. method public long getLastRejectForegroundTime(int);
  429. method public long getLastRejectTime(int);
  430. method public long getLastRejectTime(int, int, int);
  431. method public int getMode();
  432. method @NonNull public String getOpStr();
  433. method @Nullable public String getProxyPackageName();
  434. method @Nullable public String getProxyPackageName(int, int);
  435. method public int getProxyUid();
  436. method public int getProxyUid(int, int);
  437. method public boolean isRunning();
  438. method public void writeToParcel(android.os.Parcel, int);
  439. field @NonNull public static final android.os.Parcelable.Creator<android.app.AppOpsManager.OpEntry> CREATOR;
  440. }
  441. public static final class AppOpsManager.PackageOps implements android.os.Parcelable {
  442. method public int describeContents();
  443. method @NonNull public java.util.List<android.app.AppOpsManager.OpEntry> getOps();
  444. method @NonNull public String getPackageName();
  445. method public int getUid();
  446. method public void writeToParcel(android.os.Parcel, int);
  447. field @NonNull public static final android.os.Parcelable.Creator<android.app.AppOpsManager.PackageOps> CREATOR;
  448. }
  449. public class BroadcastOptions {
  450. method public static android.app.BroadcastOptions makeBasic();
  451. method @RequiresPermission("android.permission.START_ACTIVITIES_FROM_BACKGROUND") public void setBackgroundActivityStartsAllowed(boolean);
  452. method public void setDontSendToRestrictedApps(boolean);
  453. method @RequiresPermission(android.Manifest.permission.CHANGE_DEVICE_IDLE_TEMP_WHITELIST) public void setTemporaryAppWhitelistDuration(long);
  454. method public android.os.Bundle toBundle();
  455. }
  456. public class DownloadManager {
  457. field public static final String ACTION_DOWNLOAD_COMPLETED = "android.intent.action.DOWNLOAD_COMPLETED";
  458. }
  459. public abstract class InstantAppResolverService extends android.app.Service {
  460. ctor public InstantAppResolverService();
  461. method public final void attachBaseContext(android.content.Context);
  462. method public final android.os.IBinder onBind(android.content.Intent);
  463. method @Deprecated public void onGetInstantAppIntentFilter(@Nullable int[], @NonNull String, @NonNull android.app.InstantAppResolverService.InstantAppResolutionCallback);
  464. method @Deprecated public void onGetInstantAppIntentFilter(@NonNull android.content.Intent, @Nullable int[], @NonNull String, @NonNull android.app.InstantAppResolverService.InstantAppResolutionCallback);
  465. method public void onGetInstantAppIntentFilter(@NonNull android.content.Intent, @Nullable int[], @NonNull android.os.UserHandle, @NonNull String, @NonNull android.app.InstantAppResolverService.InstantAppResolutionCallback);
  466. method @Deprecated public void onGetInstantAppResolveInfo(@Nullable int[], @NonNull String, @NonNull android.app.InstantAppResolverService.InstantAppResolutionCallback);
  467. method @Deprecated public void onGetInstantAppResolveInfo(@NonNull android.content.Intent, @Nullable int[], @NonNull String, @NonNull android.app.InstantAppResolverService.InstantAppResolutionCallback);
  468. method public void onGetInstantAppResolveInfo(@NonNull android.content.Intent, @Nullable int[], @NonNull android.os.UserHandle, @NonNull String, @NonNull android.app.InstantAppResolverService.InstantAppResolutionCallback);
  469. }
  470. public static final class InstantAppResolverService.InstantAppResolutionCallback {
  471. method public void onInstantAppResolveInfo(java.util.List<android.content.pm.InstantAppResolveInfo>);
  472. }
  473. public class KeyguardManager {
  474. method public android.content.Intent createConfirmFactoryResetCredentialIntent(CharSequence, CharSequence, CharSequence);
  475. method @RequiresPermission(android.Manifest.permission.CONTROL_KEYGUARD_SECURE_NOTIFICATIONS) public boolean getPrivateNotificationsAllowed();
  476. method @RequiresPermission(android.Manifest.permission.SHOW_KEYGUARD_MESSAGE) public void requestDismissKeyguard(@NonNull android.app.Activity, @Nullable CharSequence, @Nullable android.app.KeyguardManager.KeyguardDismissCallback);
  477. method @RequiresPermission(android.Manifest.permission.CONTROL_KEYGUARD_SECURE_NOTIFICATIONS) public void setPrivateNotificationsAllowed(boolean);
  478. }
  479. public class Notification implements android.os.Parcelable {
  480. field public static final String CATEGORY_CAR_EMERGENCY = "car_emergency";
  481. field public static final String CATEGORY_CAR_INFORMATION = "car_information";
  482. field public static final String CATEGORY_CAR_WARNING = "car_warning";
  483. field @RequiresPermission(android.Manifest.permission.NOTIFICATION_DURING_SETUP) public static final String EXTRA_ALLOW_DURING_SETUP = "android.allowDuringSetup";
  484. field @RequiresPermission(android.Manifest.permission.SUBSTITUTE_NOTIFICATION_APP_NAME) public static final String EXTRA_SUBSTITUTE_APP_NAME = "android.substName";
  485. field public static final int FLAG_AUTOGROUP_SUMMARY = 1024; // 0x400
  486. }
  487. public static final class Notification.TvExtender implements android.app.Notification.Extender {
  488. ctor public Notification.TvExtender();
  489. ctor public Notification.TvExtender(android.app.Notification);
  490. method public android.app.Notification.Builder extend(android.app.Notification.Builder);
  491. method public String getChannelId();
  492. method public android.app.PendingIntent getContentIntent();
  493. method public android.app.PendingIntent getDeleteIntent();
  494. method public boolean getSuppressShowOverApps();
  495. method public boolean isAvailableOnTv();
  496. method public android.app.Notification.TvExtender setChannel(String);
  497. method public android.app.Notification.TvExtender setChannelId(String);
  498. method public android.app.Notification.TvExtender setContentIntent(android.app.PendingIntent);
  499. method public android.app.Notification.TvExtender setDeleteIntent(android.app.PendingIntent);
  500. method public android.app.Notification.TvExtender setSuppressShowOverApps(boolean);
  501. }
  502. public final class NotificationChannel implements android.os.Parcelable {
  503. method public int getUserLockedFields();
  504. method public boolean isDeleted();
  505. method public void populateFromXml(org.xmlpull.v1.XmlPullParser);
  506. method public org.json.JSONObject toJson() throws org.json.JSONException;
  507. method public void writeXml(org.xmlpull.v1.XmlSerializer) throws java.io.IOException;
  508. }
  509. public final class NotificationChannelGroup implements android.os.Parcelable {
  510. method public org.json.JSONObject toJson() throws org.json.JSONException;
  511. }
  512. public class NotificationManager {
  513. method @NonNull public java.util.List<java.lang.String> getAllowedAssistantAdjustments();
  514. method @Nullable public android.content.ComponentName getAllowedNotificationAssistant();
  515. method public boolean isNotificationAssistantAccessGranted(@NonNull android.content.ComponentName);
  516. method public void setNotificationAssistantAccessGranted(@Nullable android.content.ComponentName, boolean);
  517. }
  518. public final class StatsManager {
  519. method @RequiresPermission(allOf={android.Manifest.permission.DUMP, android.Manifest.permission.PACKAGE_USAGE_STATS}) public void addConfig(long, byte[]) throws android.app.StatsManager.StatsUnavailableException;
  520. method @Deprecated @RequiresPermission(allOf={android.Manifest.permission.DUMP, android.Manifest.permission.PACKAGE_USAGE_STATS}) public boolean addConfiguration(long, byte[]);
  521. method @Deprecated @Nullable @RequiresPermission(allOf={android.Manifest.permission.DUMP, android.Manifest.permission.PACKAGE_USAGE_STATS}) public byte[] getData(long);
  522. method @Deprecated @Nullable @RequiresPermission(allOf={android.Manifest.permission.DUMP, android.Manifest.permission.PACKAGE_USAGE_STATS}) public byte[] getMetadata();
  523. method @RequiresPermission(allOf={android.Manifest.permission.DUMP, android.Manifest.permission.PACKAGE_USAGE_STATS}) public long[] getRegisteredExperimentIds() throws android.app.StatsManager.StatsUnavailableException;
  524. method @RequiresPermission(allOf={android.Manifest.permission.DUMP, android.Manifest.permission.PACKAGE_USAGE_STATS}) public byte[] getReports(long) throws android.app.StatsManager.StatsUnavailableException;
  525. method @RequiresPermission(allOf={android.Manifest.permission.DUMP, android.Manifest.permission.PACKAGE_USAGE_STATS}) public byte[] getStatsMetadata() throws android.app.StatsManager.StatsUnavailableException;
  526. method @RequiresPermission(allOf={android.Manifest.permission.DUMP, android.Manifest.permission.PACKAGE_USAGE_STATS}) public void removeConfig(long) throws android.app.StatsManager.StatsUnavailableException;
  527. method @Deprecated @RequiresPermission(allOf={android.Manifest.permission.DUMP, android.Manifest.permission.PACKAGE_USAGE_STATS}) public boolean removeConfiguration(long);
  528. method @RequiresPermission(allOf={android.Manifest.permission.DUMP, android.Manifest.permission.PACKAGE_USAGE_STATS}) @NonNull public long[] setActiveConfigsChangedOperation(@Nullable android.app.PendingIntent) throws android.app.StatsManager.StatsUnavailableException;
  529. method @RequiresPermission(allOf={android.Manifest.permission.DUMP, android.Manifest.permission.PACKAGE_USAGE_STATS}) public void setBroadcastSubscriber(android.app.PendingIntent, long, long) throws android.app.StatsManager.StatsUnavailableException;
  530. method @Deprecated @RequiresPermission(allOf={android.Manifest.permission.DUMP, android.Manifest.permission.PACKAGE_USAGE_STATS}) public boolean setBroadcastSubscriber(long, long, android.app.PendingIntent);
  531. method @Deprecated @RequiresPermission(allOf={android.Manifest.permission.DUMP, android.Manifest.permission.PACKAGE_USAGE_STATS}) public boolean setDataFetchOperation(long, android.app.PendingIntent);
  532. method @RequiresPermission(allOf={android.Manifest.permission.DUMP, android.Manifest.permission.PACKAGE_USAGE_STATS}) public void setFetchReportsOperation(android.app.PendingIntent, long) throws android.app.StatsManager.StatsUnavailableException;
  533. field public static final String ACTION_STATSD_STARTED = "android.app.action.STATSD_STARTED";
  534. field public static final String EXTRA_STATS_ACTIVE_CONFIG_KEYS = "android.app.extra.STATS_ACTIVE_CONFIG_KEYS";
  535. field public static final String EXTRA_STATS_BROADCAST_SUBSCRIBER_COOKIES = "android.app.extra.STATS_BROADCAST_SUBSCRIBER_COOKIES";
  536. field public static final String EXTRA_STATS_CONFIG_KEY = "android.app.extra.STATS_CONFIG_KEY";
  537. field public static final String EXTRA_STATS_CONFIG_UID = "android.app.extra.STATS_CONFIG_UID";
  538. field public static final String EXTRA_STATS_DIMENSIONS_VALUE = "android.app.extra.STATS_DIMENSIONS_VALUE";
  539. field public static final String EXTRA_STATS_SUBSCRIPTION_ID = "android.app.extra.STATS_SUBSCRIPTION_ID";
  540. field public static final String EXTRA_STATS_SUBSCRIPTION_RULE_ID = "android.app.extra.STATS_SUBSCRIPTION_RULE_ID";
  541. }
  542. public static class StatsManager.StatsUnavailableException extends android.util.AndroidException {
  543. ctor public StatsManager.StatsUnavailableException(String);
  544. ctor public StatsManager.StatsUnavailableException(String, Throwable);
  545. }
  546. public class StatusBarManager {
  547. method @NonNull @RequiresPermission(android.Manifest.permission.STATUS_BAR) public android.app.StatusBarManager.DisableInfo getDisableInfo();
  548. method @RequiresPermission(android.Manifest.permission.STATUS_BAR) public void setDisabledForSetup(boolean);
  549. }
  550. public static final class StatusBarManager.DisableInfo {
  551. method public boolean areAllComponentsEnabled();
  552. method public boolean isNavigateToHomeDisabled();
  553. method public boolean isNotificationPeekingDisabled();
  554. method public boolean isRecentsDisabled();
  555. method public boolean isSearchDisabled();
  556. method public boolean isStatusBarExpansionDisabled();
  557. }
  558. public final class Vr2dDisplayProperties implements android.os.Parcelable {
  559. ctor public Vr2dDisplayProperties(int, int, int);
  560. method public int describeContents();
  561. method public void dump(@NonNull java.io.PrintWriter, @NonNull String);
  562. method public int getAddedFlags();
  563. method public int getDpi();
  564. method public int getHeight();
  565. method public int getRemovedFlags();
  566. method public int getWidth();
  567. method public void writeToParcel(android.os.Parcel, int);
  568. field @NonNull public static final android.os.Parcelable.Creator<android.app.Vr2dDisplayProperties> CREATOR;
  569. field public static final int FLAG_VIRTUAL_DISPLAY_ENABLED = 1; // 0x1
  570. }
  571. public static final class Vr2dDisplayProperties.Builder {
  572. ctor public Vr2dDisplayProperties.Builder();
  573. method @NonNull public android.app.Vr2dDisplayProperties.Builder addFlags(int);
  574. method @NonNull public android.app.Vr2dDisplayProperties build();
  575. method @NonNull public android.app.Vr2dDisplayProperties.Builder removeFlags(int);
  576. method @NonNull public android.app.Vr2dDisplayProperties.Builder setDimensions(int, int, int);
  577. method @NonNull public android.app.Vr2dDisplayProperties.Builder setEnabled(boolean);
  578. }
  579. public class VrManager {
  580. method @RequiresPermission(android.Manifest.permission.RESTRICTED_VR_ACCESS) public int getVr2dDisplayId();
  581. method @RequiresPermission(anyOf={android.Manifest.permission.RESTRICTED_VR_ACCESS, "android.permission.ACCESS_VR_STATE"}) public boolean isPersistentVrModeEnabled();
  582. method @RequiresPermission(anyOf={android.Manifest.permission.RESTRICTED_VR_ACCESS, "android.permission.ACCESS_VR_STATE"}) public boolean isVrModeEnabled();
  583. method @RequiresPermission(anyOf={android.Manifest.permission.RESTRICTED_VR_ACCESS, "android.permission.ACCESS_VR_STATE"}) public void registerVrStateCallback(@NonNull java.util.concurrent.Executor, @NonNull android.app.VrStateCallback);
  584. method @RequiresPermission(android.Manifest.permission.RESTRICTED_VR_ACCESS) public void setAndBindVrCompositor(android.content.ComponentName);
  585. method @RequiresPermission(android.Manifest.permission.RESTRICTED_VR_ACCESS) public void setPersistentVrModeEnabled(boolean);
  586. method @RequiresPermission("android.permission.ACCESS_VR_MANAGER") public void setStandbyEnabled(boolean);
  587. method @RequiresPermission(android.Manifest.permission.RESTRICTED_VR_ACCESS) public void setVr2dDisplayProperties(@NonNull android.app.Vr2dDisplayProperties);
  588. method @RequiresPermission(android.Manifest.permission.RESTRICTED_VR_ACCESS) public void setVrInputMethod(@Nullable android.content.ComponentName);
  589. method @RequiresPermission(anyOf={android.Manifest.permission.RESTRICTED_VR_ACCESS, "android.permission.ACCESS_VR_STATE"}) public void unregisterVrStateCallback(@NonNull android.app.VrStateCallback);
  590. }
  591. public abstract class VrStateCallback {
  592. ctor public VrStateCallback();
  593. method public void onPersistentVrStateChanged(boolean);
  594. method public void onVrStateChanged(boolean);
  595. }
  596. public final class WallpaperColors implements android.os.Parcelable {
  597. ctor public WallpaperColors(@NonNull android.graphics.Color, @Nullable android.graphics.Color, @Nullable android.graphics.Color, int);
  598. method public int getColorHints();
  599. field public static final int HINT_SUPPORTS_DARK_TEXT = 1; // 0x1
  600. field public static final int HINT_SUPPORTS_DARK_THEME = 2; // 0x2
  601. }
  602. public final class WallpaperInfo implements android.os.Parcelable {
  603. method public boolean supportsAmbientMode();
  604. }
  605. public class WallpaperManager {
  606. method @RequiresPermission(android.Manifest.permission.INTERACT_ACROSS_USERS_FULL) public void clearWallpaper(int, int);
  607. method public void setDisplayOffset(android.os.IBinder, int, int);
  608. method @RequiresPermission(android.Manifest.permission.SET_WALLPAPER_COMPONENT) public boolean setWallpaperComponent(android.content.ComponentName);
  609. }
  610. }
  611. package android.app.admin {
  612. public class DevicePolicyManager {
  613. method @Nullable @RequiresPermission(android.Manifest.permission.MANAGE_USERS) public String getDeviceOwner();
  614. method @RequiresPermission(android.Manifest.permission.MANAGE_USERS) public android.content.ComponentName getDeviceOwnerComponentOnAnyUser();
  615. method @RequiresPermission(android.Manifest.permission.MANAGE_USERS) public String getDeviceOwnerNameOnAnyUser();
  616. method @Nullable public CharSequence getDeviceOwnerOrganizationName();
  617. method @Nullable @RequiresPermission(android.Manifest.permission.MANAGE_USERS) public android.os.UserHandle getDeviceOwnerUser();
  618. method @Nullable @RequiresPermission(android.Manifest.permission.MANAGE_USERS) public java.util.List<java.lang.String> getPermittedAccessibilityServices(int);
  619. method @Nullable @RequiresPermission(android.Manifest.permission.MANAGE_USERS) public java.util.List<java.lang.String> getPermittedInputMethodsForCurrentUser();
  620. method @Nullable public android.content.ComponentName getProfileOwner() throws java.lang.IllegalArgumentException;
  621. method @Nullable @RequiresPermission(android.Manifest.permission.MANAGE_USERS) public String getProfileOwnerNameAsUser(int) throws java.lang.IllegalArgumentException;
  622. method @RequiresPermission(android.Manifest.permission.MANAGE_USERS) public int getUserProvisioningState();
  623. method public boolean isDeviceManaged();
  624. method @RequiresPermission(android.Manifest.permission.MANAGE_USERS) public boolean isDeviceProvisioned();
  625. method @RequiresPermission(android.Manifest.permission.MANAGE_USERS) public boolean isDeviceProvisioningConfigApplied();
  626. method @RequiresPermission(android.Manifest.permission.MANAGE_USERS) public boolean isManagedKiosk();
  627. method @RequiresPermission(android.Manifest.permission.MANAGE_USERS) public boolean isUnattendedManagedKiosk();
  628. method @RequiresPermission("android.permission.NOTIFY_PENDING_SYSTEM_UPDATE") public void notifyPendingSystemUpdate(long);
  629. method @RequiresPermission("android.permission.NOTIFY_PENDING_SYSTEM_UPDATE") public void notifyPendingSystemUpdate(long, boolean);
  630. method @RequiresPermission(android.Manifest.permission.INTERACT_ACROSS_USERS_FULL) public boolean packageHasActiveAdmins(String);
  631. method @Deprecated @RequiresPermission("android.permission.MANAGE_DEVICE_ADMINS") public boolean setActiveProfileOwner(@NonNull android.content.ComponentName, String) throws java.lang.IllegalArgumentException;
  632. method @RequiresPermission(android.Manifest.permission.MANAGE_USERS) public void setDeviceProvisioningConfigApplied();
  633. method @RequiresPermission(value=android.Manifest.permission.GRANT_PROFILE_OWNER_DEVICE_IDS_ACCESS, conditional=true) public void setProfileOwnerCanAccessDeviceIds(@NonNull android.content.ComponentName);
  634. field public static final String ACCOUNT_FEATURE_DEVICE_OR_PROFILE_OWNER_ALLOWED = "android.account.DEVICE_OR_PROFILE_OWNER_ALLOWED";
  635. field public static final String ACCOUNT_FEATURE_DEVICE_OR_PROFILE_OWNER_DISALLOWED = "android.account.DEVICE_OR_PROFILE_OWNER_DISALLOWED";
  636. field public static final String ACTION_PROVISION_FINALIZATION = "android.app.action.PROVISION_FINALIZATION";
  637. field public static final String ACTION_PROVISION_MANAGED_DEVICE_FROM_TRUSTED_SOURCE = "android.app.action.PROVISION_MANAGED_DEVICE_FROM_TRUSTED_SOURCE";
  638. field public static final String ACTION_SET_PROFILE_OWNER = "android.app.action.SET_PROFILE_OWNER";
  639. field public static final String ACTION_STATE_USER_SETUP_COMPLETE = "android.app.action.STATE_USER_SETUP_COMPLETE";
  640. field public static final String EXTRA_PROFILE_OWNER_NAME = "android.app.extra.PROFILE_OWNER_NAME";
  641. field public static final String EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_ICON_URI = "android.app.extra.PROVISIONING_DEVICE_ADMIN_PACKAGE_ICON_URI";
  642. field public static final String EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_LABEL = "android.app.extra.PROVISIONING_DEVICE_ADMIN_PACKAGE_LABEL";
  643. field public static final String EXTRA_PROVISIONING_ORGANIZATION_NAME = "android.app.extra.PROVISIONING_ORGANIZATION_NAME";
  644. field public static final String EXTRA_PROVISIONING_SUPPORT_URL = "android.app.extra.PROVISIONING_SUPPORT_URL";
  645. field public static final String EXTRA_PROVISIONING_TRIGGER = "android.app.extra.PROVISIONING_TRIGGER";
  646. field public static final String EXTRA_RESTRICTION = "android.app.extra.RESTRICTION";
  647. field public static final int PROVISIONING_TRIGGER_CLOUD_ENROLLMENT = 1; // 0x1
  648. field public static final int PROVISIONING_TRIGGER_PERSISTENT_DEVICE_OWNER = 3; // 0x3
  649. field public static final int PROVISIONING_TRIGGER_QR_CODE = 2; // 0x2
  650. field public static final int PROVISIONING_TRIGGER_UNSPECIFIED = 0; // 0x0
  651. field public static final int STATE_USER_PROFILE_COMPLETE = 4; // 0x4
  652. field public static final int STATE_USER_SETUP_COMPLETE = 2; // 0x2
  653. field public static final int STATE_USER_SETUP_FINALIZED = 3; // 0x3
  654. field public static final int STATE_USER_SETUP_INCOMPLETE = 1; // 0x1
  655. field public static final int STATE_USER_UNMANAGED = 0; // 0x0
  656. }
  657. public final class SystemUpdatePolicy implements android.os.Parcelable {
  658. method public android.app.admin.SystemUpdatePolicy.InstallationOption getInstallationOptionAt(long);
  659. field public static final int TYPE_PAUSE = 4; // 0x4
  660. }
  661. public static class SystemUpdatePolicy.InstallationOption {
  662. method public long getEffectiveTime();
  663. method public int getType();
  664. }
  665. }
  666. package android.app.assist {
  667. public static class AssistStructure.ViewNode {
  668. ctor public AssistStructure.ViewNode();
  669. }
  670. }
  671. package android.app.backup {
  672. public class BackupDataInput {
  673. ctor public BackupDataInput(java.io.FileDescriptor);
  674. }
  675. public class BackupDataOutput {
  676. ctor public BackupDataOutput(java.io.FileDescriptor);
  677. ctor public BackupDataOutput(java.io.FileDescriptor, long);
  678. }
  679. public class BackupManager {
  680. method @RequiresPermission(android.Manifest.permission.BACKUP) public void backupNow();
  681. method @RequiresPermission(android.Manifest.permission.BACKUP) public android.app.backup.RestoreSession beginRestoreSession();
  682. method @RequiresPermission(android.Manifest.permission.BACKUP) public void cancelBackups();
  683. method @RequiresPermission(android.Manifest.permission.BACKUP) public long getAvailableRestoreToken(String);
  684. method @RequiresPermission(android.Manifest.permission.BACKUP) public android.content.Intent getConfigurationIntent(String);
  685. method @RequiresPermission(android.Manifest.permission.BACKUP) public String getCurrentTransport();
  686. method @Nullable @RequiresPermission(android.Manifest.permission.BACKUP) public android.content.ComponentName getCurrentTransportComponent();
  687. method @RequiresPermission(android.Manifest.permission.BACKUP) public android.content.Intent getDataManagementIntent(String);
  688. method @Nullable @RequiresPermission(android.Manifest.permission.BACKUP) public CharSequence getDataManagementIntentLabel(@NonNull String);
  689. method @Deprecated @Nullable @RequiresPermission(android.Manifest.permission.BACKUP) public String getDataManagementLabel(@NonNull String);
  690. method @RequiresPermission(android.Manifest.permission.BACKUP) public String getDestinationString(String);
  691. method @RequiresPermission(android.Manifest.permission.BACKUP) public boolean isAppEligibleForBackup(String);
  692. method @RequiresPermission(android.Manifest.permission.BACKUP) public boolean isBackupEnabled();
  693. method @RequiresPermission(android.Manifest.permission.BACKUP) public boolean isBackupServiceActive(android.os.UserHandle);
  694. method @RequiresPermission(android.Manifest.permission.BACKUP) public String[] listAllTransports();
  695. method @RequiresPermission(android.Manifest.permission.BACKUP) public int requestBackup(String[], android.app.backup.BackupObserver);
  696. method @RequiresPermission(android.Manifest.permission.BACKUP) public int requestBackup(String[], android.app.backup.BackupObserver, android.app.backup.BackupManagerMonitor, int);
  697. method @Deprecated public int requestRestore(android.app.backup.RestoreObserver, android.app.backup.BackupManagerMonitor);
  698. method @Deprecated @RequiresPermission(android.Manifest.permission.BACKUP) public String selectBackupTransport(String);
  699. method @RequiresPermission(android.Manifest.permission.BACKUP) public void selectBackupTransport(android.content.ComponentName, android.app.backup.SelectBackupTransportCallback);
  700. method @RequiresPermission(android.Manifest.permission.BACKUP) public void setAncestralSerialNumber(long);
  701. method @RequiresPermission(android.Manifest.permission.BACKUP) public void setAutoRestore(boolean);
  702. method @RequiresPermission(android.Manifest.permission.BACKUP) public void setBackupEnabled(boolean);
  703. method @Deprecated @RequiresPermission(android.Manifest.permission.BACKUP) public void updateTransportAttributes(@NonNull android.content.ComponentName, @NonNull String, @Nullable android.content.Intent, @NonNull String, @Nullable android.content.Intent, @Nullable String);
  704. method @RequiresPermission(android.Manifest.permission.BACKUP) public void updateTransportAttributes(@NonNull android.content.ComponentName, @NonNull String, @Nullable android.content.Intent, @NonNull String, @Nullable android.content.Intent, @Nullable CharSequence);
  705. field public static final int ERROR_AGENT_FAILURE = -1003; // 0xfffffc15
  706. field public static final int ERROR_BACKUP_CANCELLED = -2003; // 0xfffff82d
  707. field public static final int ERROR_BACKUP_NOT_ALLOWED = -2001; // 0xfffff82f
  708. field public static final int ERROR_PACKAGE_NOT_FOUND = -2002; // 0xfffff82e
  709. field public static final int ERROR_TRANSPORT_ABORTED = -1000; // 0xfffffc18
  710. field public static final int ERROR_TRANSPORT_INVALID = -2; // 0xfffffffe
  711. field public static final int ERROR_TRANSPORT_PACKAGE_REJECTED = -1002; // 0xfffffc16
  712. field public static final int ERROR_TRANSPORT_QUOTA_EXCEEDED = -1005; // 0xfffffc13
  713. field public static final int ERROR_TRANSPORT_UNAVAILABLE = -1; // 0xffffffff
  714. field public static final int FLAG_NON_INCREMENTAL_BACKUP = 1; // 0x1
  715. field public static final String PACKAGE_MANAGER_SENTINEL = "@pm@";
  716. field public static final int SUCCESS = 0; // 0x0
  717. }
  718. public class BackupManagerMonitor {
  719. ctor public BackupManagerMonitor();
  720. method public void onEvent(android.os.Bundle);
  721. field public static final String EXTRA_LOG_CANCEL_ALL = "android.app.backup.extra.LOG_CANCEL_ALL";
  722. field public static final String EXTRA_LOG_EVENT_CATEGORY = "android.app.backup.extra.LOG_EVENT_CATEGORY";
  723. field public static final String EXTRA_LOG_EVENT_ID = "android.app.backup.extra.LOG_EVENT_ID";
  724. field public static final String EXTRA_LOG_EVENT_PACKAGE_LONG_VERSION = "android.app.backup.extra.LOG_EVENT_PACKAGE_FULL_VERSION";
  725. field public static final String EXTRA_LOG_EVENT_PACKAGE_NAME = "android.app.backup.extra.LOG_EVENT_PACKAGE_NAME";
  726. field @Deprecated public static final String EXTRA_LOG_EVENT_PACKAGE_VERSION = "android.app.backup.extra.LOG_EVENT_PACKAGE_VERSION";
  727. field public static final String EXTRA_LOG_EXCEPTION_FULL_BACKUP = "android.app.backup.extra.LOG_EXCEPTION_FULL_BACKUP";
  728. field public static final String EXTRA_LOG_ILLEGAL_KEY = "android.app.backup.extra.LOG_ILLEGAL_KEY";
  729. field public static final String EXTRA_LOG_MANIFEST_PACKAGE_NAME = "android.app.backup.extra.LOG_MANIFEST_PACKAGE_NAME";
  730. field public static final String EXTRA_LOG_OLD_VERSION = "android.app.backup.extra.LOG_OLD_VERSION";
  731. field public static final String EXTRA_LOG_POLICY_ALLOW_APKS = "android.app.backup.extra.LOG_POLICY_ALLOW_APKS";
  732. field public static final String EXTRA_LOG_PREFLIGHT_ERROR = "android.app.backup.extra.LOG_PREFLIGHT_ERROR";
  733. field public static final String EXTRA_LOG_RESTORE_ANYWAY = "android.app.backup.extra.LOG_RESTORE_ANYWAY";
  734. field public static final String EXTRA_LOG_RESTORE_VERSION = "android.app.backup.extra.LOG_RESTORE_VERSION";
  735. field public static final String EXTRA_LOG_WIDGET_PACKAGE_NAME = "android.app.backup.extra.LOG_WIDGET_PACKAGE_NAME";
  736. field public static final int LOG_EVENT_CATEGORY_AGENT = 2; // 0x2
  737. field public static final int LOG_EVENT_CATEGORY_BACKUP_MANAGER_POLICY = 3; // 0x3
  738. field public static final int LOG_EVENT_CATEGORY_TRANSPORT = 1; // 0x1
  739. field public static final int LOG_EVENT_ID_APK_NOT_INSTALLED = 40; // 0x28
  740. field public static final int LOG_EVENT_ID_APP_HAS_NO_AGENT = 28; // 0x1c
  741. field public static final int LOG_EVENT_ID_BACKUP_DISABLED = 13; // 0xd
  742. field public static final int LOG_EVENT_ID_CANNOT_RESTORE_WITHOUT_APK = 41; // 0x29
  743. field public static final int LOG_EVENT_ID_CANT_FIND_AGENT = 30; // 0x1e
  744. field public static final int LOG_EVENT_ID_CORRUPT_MANIFEST = 46; // 0x2e
  745. field public static final int LOG_EVENT_ID_DEVICE_NOT_PROVISIONED = 14; // 0xe
  746. field public static final int LOG_EVENT_ID_ERROR_PREFLIGHT = 16; // 0x10
  747. field public static final int LOG_EVENT_ID_EXCEPTION_FULL_BACKUP = 19; // 0x13
  748. field public static final int LOG_EVENT_ID_EXPECTED_DIFFERENT_PACKAGE = 43; // 0x2b
  749. field public static final int LOG_EVENT_ID_FULL_BACKUP_CANCEL = 4; // 0x4
  750. field public static final int LOG_EVENT_ID_FULL_RESTORE_ALLOW_BACKUP_FALSE = 39; // 0x27
  751. field public static final int LOG_EVENT_ID_FULL_RESTORE_SIGNATURE_MISMATCH = 37; // 0x25
  752. field public static final int LOG_EVENT_ID_FULL_RESTORE_TIMEOUT = 45; // 0x2d
  753. field public static final int LOG_EVENT_ID_ILLEGAL_KEY = 5; // 0x5
  754. field public static final int LOG_EVENT_ID_KEY_VALUE_BACKUP_CANCEL = 21; // 0x15
  755. field public static final int LOG_EVENT_ID_KEY_VALUE_RESTORE_TIMEOUT = 31; // 0x1f
  756. field public static final int LOG_EVENT_ID_LOST_TRANSPORT = 25; // 0x19
  757. field public static final int LOG_EVENT_ID_MISSING_SIGNATURE = 42; // 0x2a
  758. field public static final int LOG_EVENT_ID_NO_DATA_TO_SEND = 7; // 0x7
  759. field public static final int LOG_EVENT_ID_NO_PACKAGES = 49; // 0x31
  760. field public static final int LOG_EVENT_ID_NO_PM_METADATA_RECEIVED = 23; // 0x17
  761. field public static final int LOG_EVENT_ID_NO_RESTORE_METADATA_AVAILABLE = 22; // 0x16
  762. field public static final int LOG_EVENT_ID_PACKAGE_INELIGIBLE = 9; // 0x9
  763. field public static final int LOG_EVENT_ID_PACKAGE_KEY_VALUE_PARTICIPANT = 10; // 0xa
  764. field public static final int LOG_EVENT_ID_PACKAGE_NOT_FOUND = 12; // 0xc
  765. field public static final int LOG_EVENT_ID_PACKAGE_NOT_PRESENT = 26; // 0x1a
  766. field public static final int LOG_EVENT_ID_PACKAGE_STOPPED = 11; // 0xb
  767. field public static final int LOG_EVENT_ID_PACKAGE_TRANSPORT_NOT_PRESENT = 15; // 0xf
  768. field public static final int LOG_EVENT_ID_PM_AGENT_HAS_NO_METADATA = 24; // 0x18
  769. field public static final int LOG_EVENT_ID_QUOTA_HIT_PREFLIGHT = 18; // 0x12
  770. field public static final int LOG_EVENT_ID_RESTORE_ANY_VERSION = 34; // 0x22
  771. field public static final int LOG_EVENT_ID_RESTORE_VERSION_HIGHER = 27; // 0x1b
  772. field public static final int LOG_EVENT_ID_SIGNATURE_MISMATCH = 29; // 0x1d
  773. field public static final int LOG_EVENT_ID_SYSTEM_APP_NO_AGENT = 38; // 0x26
  774. field public static final int LOG_EVENT_ID_TRANSPORT_IS_NULL = 50; // 0x32
  775. field public static final int LOG_EVENT_ID_TRANSPORT_NON_INCREMENTAL_BACKUP_REQUIRED = 51; // 0x33
  776. field public static final int LOG_EVENT_ID_UNKNOWN_VERSION = 44; // 0x2c
  777. field public static final int LOG_EVENT_ID_VERSIONS_MATCH = 35; // 0x23
  778. field public static final int LOG_EVENT_ID_VERSION_OF_BACKUP_OLDER = 36; // 0x24
  779. field public static final int LOG_EVENT_ID_WIDGET_METADATA_MISMATCH = 47; // 0x2f
  780. field public static final int LOG_EVENT_ID_WIDGET_UNKNOWN_VERSION = 48; // 0x30
  781. }
  782. public abstract class BackupObserver {
  783. ctor public BackupObserver();
  784. method public void backupFinished(int);
  785. method public void onResult(String, int);
  786. method public void onUpdate(String, android.app.backup.BackupProgress);
  787. }
  788. public class BackupProgress implements android.os.Parcelable {
  789. ctor public BackupProgress(long, long);
  790. method public int describeContents();
  791. method public void writeToParcel(android.os.Parcel, int);
  792. field @NonNull public static final android.os.Parcelable.Creator<android.app.backup.BackupProgress> CREATOR;
  793. field public final long bytesExpected;
  794. field public final long bytesTransferred;
  795. }
  796. public class BackupTransport {
  797. ctor public BackupTransport();
  798. method public int abortFullRestore();
  799. method public void cancelFullBackup();
  800. method public int checkFullBackupSize(long);
  801. method public int clearBackupData(android.content.pm.PackageInfo);
  802. method public android.content.Intent configurationIntent();
  803. method public String currentDestinationString();
  804. method public android.content.Intent dataManagementIntent();
  805. method @Nullable public CharSequence dataManagementIntentLabel();
  806. method @Deprecated @Nullable public String dataManagementLabel();
  807. method public int finishBackup();
  808. method public void finishRestore();
  809. method public android.app.backup.RestoreSet[] getAvailableRestoreSets();
  810. method public long getBackupQuota(String, boolean);
  811. method public android.os.IBinder getBinder();
  812. method public long getCurrentRestoreSet();
  813. method public int getNextFullRestoreDataChunk(android.os.ParcelFileDescriptor);
  814. method public int getRestoreData(android.os.ParcelFileDescriptor);
  815. method public int getTransportFlags();
  816. method public int initializeDevice();
  817. method public boolean isAppEligibleForBackup(android.content.pm.PackageInfo, boolean);
  818. method public String name();
  819. method public android.app.backup.RestoreDescription nextRestorePackage();
  820. method public int performBackup(android.content.pm.PackageInfo, android.os.ParcelFileDescriptor, int);
  821. method public int performBackup(android.content.pm.PackageInfo, android.os.ParcelFileDescriptor);
  822. method public int performFullBackup(android.content.pm.PackageInfo, android.os.ParcelFileDescriptor, int);
  823. method public int performFullBackup(android.content.pm.PackageInfo, android.os.ParcelFileDescriptor);
  824. method public long requestBackupTime();
  825. method public long requestFullBackupTime();
  826. method public int sendBackupData(int);
  827. method public int startRestore(long, android.content.pm.PackageInfo[]);
  828. method public String transportDirName();
  829. field public static final int AGENT_ERROR = -1003; // 0xfffffc15
  830. field public static final int AGENT_UNKNOWN = -1004; // 0xfffffc14
  831. field public static final String EXTRA_TRANSPORT_REGISTRATION = "android.app.backup.extra.TRANSPORT_REGISTRATION";
  832. field public static final int FLAG_INCREMENTAL = 2; // 0x2
  833. field public static final int FLAG_NON_INCREMENTAL = 4; // 0x4
  834. field public static final int FLAG_USER_INITIATED = 1; // 0x1
  835. field public static final int NO_MORE_DATA = -1; // 0xffffffff
  836. field public static final int TRANSPORT_ERROR = -1000; // 0xfffffc18
  837. field public static final int TRANSPORT_NON_INCREMENTAL_BACKUP_REQUIRED = -1006; // 0xfffffc12
  838. field public static final int TRANSPORT_NOT_INITIALIZED = -1001; // 0xfffffc17
  839. field public static final int TRANSPORT_OK = 0; // 0x0
  840. field public static final int TRANSPORT_PACKAGE_REJECTED = -1002; // 0xfffffc16
  841. field public static final int TRANSPORT_QUOTA_EXCEEDED = -1005; // 0xfffffc13
  842. }
  843. public class RestoreDescription implements android.os.Parcelable {
  844. ctor public RestoreDescription(String, int);
  845. method public int describeContents();
  846. method public int getDataType();
  847. method public String getPackageName();
  848. method public void writeToParcel(android.os.Parcel, int);
  849. field @NonNull public static final android.os.Parcelable.Creator<android.app.backup.RestoreDescription> CREATOR;
  850. field public static final android.app.backup.RestoreDescription NO_MORE_PACKAGES;
  851. field public static final int TYPE_FULL_STREAM = 2; // 0x2
  852. field public static final int TYPE_KEY_VALUE = 1; // 0x1
  853. }
  854. public abstract class RestoreObserver {
  855. method public void restoreSetsAvailable(android.app.backup.RestoreSet[]);
  856. }
  857. public class RestoreSession {
  858. method public void endRestoreSession();
  859. method public int getAvailableRestoreSets(android.app.backup.RestoreObserver, android.app.backup.BackupManagerMonitor);
  860. method public int getAvailableRestoreSets(android.app.backup.RestoreObserver);
  861. method public int restoreAll(long, android.app.backup.RestoreObserver, android.app.backup.BackupManagerMonitor);
  862. method public int restoreAll(long, android.app.backup.RestoreObserver);
  863. method public int restorePackage(String, android.app.backup.RestoreObserver, android.app.backup.BackupManagerMonitor);
  864. method public int restorePackage(String, android.app.backup.RestoreObserver);
  865. method public int restorePackages(long, @Nullable android.app.backup.RestoreObserver, @NonNull java.util.Set<java.lang.String>, @Nullable android.app.backup.BackupManagerMonitor);
  866. method public int restorePackages(long, @Nullable android.app.backup.RestoreObserver, @NonNull java.util.Set<java.lang.String>);
  867. }
  868. public class RestoreSet implements android.os.Parcelable {
  869. ctor public RestoreSet();
  870. ctor public RestoreSet(String, String, long);
  871. method public int describeContents();
  872. method public void writeToParcel(android.os.Parcel, int);
  873. field @NonNull public static final android.os.Parcelable.Creator<android.app.backup.RestoreSet> CREATOR;
  874. field public String device;
  875. field public String name;
  876. field public long token;
  877. }
  878. public abstract class SelectBackupTransportCallback {
  879. ctor public SelectBackupTransportCallback();
  880. method public void onFailure(int);
  881. method public void onSuccess(String);
  882. }
  883. }
  884. package android.app.contentsuggestions {
  885. public final class ClassificationsRequest implements android.os.Parcelable {
  886. method public int describeContents();
  887. method @NonNull public android.os.Bundle getExtras();
  888. method @NonNull public java.util.List<android.app.contentsuggestions.ContentSelection> getSelections();
  889. method public void writeToParcel(android.os.Parcel, int);
  890. field @NonNull public static final android.os.Parcelable.Creator<android.app.contentsuggestions.ClassificationsRequest> CREATOR;
  891. }
  892. public static final class ClassificationsRequest.Builder {
  893. ctor public ClassificationsRequest.Builder(@NonNull java.util.List<android.app.contentsuggestions.ContentSelection>);
  894. method @NonNull public android.app.contentsuggestions.ClassificationsRequest build();
  895. method @NonNull public android.app.contentsuggestions.ClassificationsRequest.Builder setExtras(@NonNull android.os.Bundle);
  896. }
  897. public final class ContentClassification implements android.os.Parcelable {
  898. ctor public ContentClassification(@NonNull String, @NonNull android.os.Bundle);
  899. method public int describeContents();
  900. method @NonNull public android.os.Bundle getExtras();
  901. method @NonNull public String getId();
  902. method public void writeToParcel(android.os.Parcel, int);
  903. field @NonNull public static final android.os.Parcelable.Creator<android.app.contentsuggestions.ContentClassification> CREATOR;
  904. }
  905. public final class ContentSelection implements android.os.Parcelable {
  906. ctor public ContentSelection(@NonNull String, @NonNull android.os.Bundle);
  907. method public int describeContents();
  908. method @NonNull public android.os.Bundle getExtras();
  909. method @NonNull public String getId();
  910. method public void writeToParcel(android.os.Parcel, int);
  911. field @NonNull public static final android.os.Parcelable.Creator<android.app.contentsuggestions.ContentSelection> CREATOR;
  912. }
  913. public final class ContentSuggestionsManager {
  914. method public void classifyContentSelections(@NonNull android.app.contentsuggestions.ClassificationsRequest, @NonNull java.util.concurrent.Executor, @NonNull android.app.contentsuggestions.ContentSuggestionsManager.ClassificationsCallback);
  915. method public boolean isEnabled();
  916. method public void notifyInteraction(@NonNull String, @NonNull android.os.Bundle);
  917. method public void provideContextImage(int, @NonNull android.os.Bundle);
  918. method public void suggestContentSelections(@NonNull android.app.contentsuggestions.SelectionsRequest, @NonNull java.util.concurrent.Executor, @NonNull android.app.contentsuggestions.ContentSuggestionsManager.SelectionsCallback);
  919. }
  920. public static interface ContentSuggestionsManager.ClassificationsCallback {
  921. method public void onContentClassificationsAvailable(int, @NonNull java.util.List<android.app.contentsuggestions.ContentClassification>);
  922. }
  923. public static interface ContentSuggestionsManager.SelectionsCallback {
  924. method public void onContentSelectionsAvailable(int, @NonNull java.util.List<android.app.contentsuggestions.ContentSelection>);
  925. }
  926. public final class SelectionsRequest implements android.os.Parcelable {
  927. method public int describeContents();
  928. method @NonNull public android.os.Bundle getExtras();
  929. method @Nullable public android.graphics.Point getInterestPoint();
  930. method public int getTaskId();
  931. method public void writeToParcel(android.os.Parcel, int);
  932. field @NonNull public static final android.os.Parcelable.Creator<android.app.contentsuggestions.SelectionsRequest> CREATOR;
  933. }
  934. public static final class SelectionsRequest.Builder {
  935. ctor public SelectionsRequest.Builder(int);
  936. method @NonNull public android.app.contentsuggestions.SelectionsRequest build();
  937. method @NonNull public android.app.contentsuggestions.SelectionsRequest.Builder setExtras(@NonNull android.os.Bundle);
  938. method @NonNull public android.app.contentsuggestions.SelectionsRequest.Builder setInterestPoint(@NonNull android.graphics.Point);
  939. }
  940. }
  941. package android.app.job {
  942. public abstract class JobScheduler {
  943. method @RequiresPermission(android.Manifest.permission.UPDATE_DEVICE_STATS) public abstract int scheduleAsPackage(@NonNull android.app.job.JobInfo, @NonNull String, int, String);
  944. }
  945. }
  946. package android.app.prediction {
  947. public final class AppPredictionContext implements android.os.Parcelable {
  948. method public int describeContents();
  949. method @Nullable public android.os.Bundle getExtras();
  950. method @NonNull public String getPackageName();
  951. method @IntRange(from=0) public int getPredictedTargetCount();
  952. method @NonNull public String getUiSurface();
  953. method public void writeToParcel(@NonNull android.os.Parcel, int);
  954. field @NonNull public static final android.os.Parcelable.Creator<android.app.prediction.AppPredictionContext> CREATOR;
  955. }
  956. public static final class AppPredictionContext.Builder {
  957. ctor public AppPredictionContext.Builder(@NonNull android.content.Context);
  958. method @NonNull public android.app.prediction.AppPredictionContext build();
  959. method @NonNull public android.app.prediction.AppPredictionContext.Builder setExtras(@Nullable android.os.Bundle);
  960. method @NonNull public android.app.prediction.AppPredictionContext.Builder setPredictedTargetCount(@IntRange(from=0) int);
  961. method @NonNull public android.app.prediction.AppPredictionContext.Builder setUiSurface(@NonNull String);
  962. }
  963. public final class AppPredictionManager {
  964. method @NonNull public android.app.prediction.AppPredictor createAppPredictionSession(@NonNull android.app.prediction.AppPredictionContext);
  965. }
  966. public final class AppPredictionSessionId implements android.os.Parcelable {
  967. method public int describeContents();
  968. method public void writeToParcel(android.os.Parcel, int);
  969. field @NonNull public static final android.os.Parcelable.Creator<android.app.prediction.AppPredictionSessionId> CREATOR;
  970. }
  971. public final class AppPredictor {
  972. method public void destroy();
  973. method public void notifyAppTargetEvent(@NonNull android.app.prediction.AppTargetEvent);
  974. method public void notifyLaunchLocationShown(@NonNull String, @NonNull java.util.List<android.app.prediction.AppTargetId>);
  975. method public void registerPredictionUpdates(@NonNull java.util.concurrent.Executor, @NonNull android.app.prediction.AppPredictor.Callback);
  976. method public void requestPredictionUpdate();
  977. method @Nullable public void sortTargets(@NonNull java.util.List<android.app.prediction.AppTarget>, @NonNull java.util.concurrent.Executor, @NonNull java.util.function.Consumer<java.util.List<android.app.prediction.AppTarget>>);
  978. method public void unregisterPredictionUpdates(@NonNull android.app.prediction.AppPredictor.Callback);
  979. }
  980. public static interface AppPredictor.Callback {
  981. method public void onTargetsAvailable(@NonNull java.util.List<android.app.prediction.AppTarget>);
  982. }
  983. public final class AppTarget implements android.os.Parcelable {
  984. method public int describeContents();
  985. method @Nullable public String getClassName();
  986. method @NonNull public android.app.prediction.AppTargetId getId();
  987. method @NonNull public String getPackageName();
  988. method @IntRange(from=0) public int getRank();
  989. method @Nullable public android.content.pm.ShortcutInfo getShortcutInfo();
  990. method @NonNull public android.os.UserHandle getUser();
  991. method public void writeToParcel(android.os.Parcel, int);
  992. field @NonNull public static final android.os.Parcelable.Creator<android.app.prediction.AppTarget> CREATOR;
  993. }
  994. public static final class AppTarget.Builder {
  995. ctor public AppTarget.Builder(@NonNull android.app.prediction.AppTargetId, @NonNull String, @NonNull android.os.UserHandle);
  996. ctor public AppTarget.Builder(@NonNull android.app.prediction.AppTargetId, @NonNull android.content.pm.ShortcutInfo);
  997. method @NonNull public android.app.prediction.AppTarget build();
  998. method @NonNull public android.app.prediction.AppTarget.Builder setClassName(@NonNull String);
  999. method @NonNull public android.app.prediction.AppTarget.Builder setRank(@IntRange(from=0) int);
  1000. }
  1001. public final class AppTargetEvent implements android.os.Parcelable {
  1002. method public int describeContents();
  1003. method public int getAction();
  1004. method @Nullable public String getLaunchLocation();
  1005. method @Nullable public android.app.prediction.AppTarget getTarget();
  1006. method public void writeToParcel(android.os.Parcel, int);
  1007. field public static final int ACTION_DISMISS = 2; // 0x2
  1008. field public static final int ACTION_LAUNCH = 1; // 0x1
  1009. field public static final int ACTION_PIN = 3; // 0x3
  1010. field @NonNull public static final android.os.Parcelable.Creator<android.app.prediction.AppTargetEvent> CREATOR;
  1011. }
  1012. public static final class AppTargetEvent.Builder {
  1013. ctor public AppTargetEvent.Builder(@Nullable android.app.prediction.AppTarget, int);
  1014. method @NonNull public android.app.prediction.AppTargetEvent build();
  1015. method @NonNull public android.app.prediction.AppTargetEvent.Builder setLaunchLocation(@Nullable String);
  1016. }
  1017. public final class AppTargetId implements android.os.Parcelable {
  1018. ctor public AppTargetId(@NonNull String);
  1019. method public int describeContents();
  1020. method public void writeToParcel(android.os.Parcel, int);
  1021. field @NonNull public static final android.os.Parcelable.Creator<android.app.prediction.AppTargetId> CREATOR;
  1022. }
  1023. }
  1024. package android.app.role {
  1025. public interface OnRoleHoldersChangedListener {
  1026. method public void onRoleHoldersChanged(@NonNull String, @NonNull android.os.UserHandle);
  1027. }
  1028. public abstract class RoleControllerService extends android.app.Service {
  1029. ctor public RoleControllerService();
  1030. method @WorkerThread public abstract boolean onAddRoleHolder(@NonNull String, @NonNull String, int);
  1031. method @Nullable public final android.os.IBinder onBind(@Nullable android.content.Intent);
  1032. method @WorkerThread public abstract boolean onClearRoleHolders(@NonNull String, int);
  1033. method @WorkerThread public abstract boolean onGrantDefaultRoles();
  1034. method public abstract boolean onIsApplicationQualifiedForRole(@NonNull String, @NonNull String);
  1035. method public abstract boolean onIsRoleVisible(@NonNull String);
  1036. method @WorkerThread public abstract boolean onRemoveRoleHolder(@NonNull String, @NonNull String, int);
  1037. field public static final String SERVICE_INTERFACE = "android.app.role.RoleControllerService";
  1038. }
  1039. public final class RoleManager {
  1040. method @RequiresPermission(android.Manifest.permission.OBSERVE_ROLE_HOLDERS) public void addOnRoleHoldersChangedListenerAsUser(@NonNull java.util.concurrent.Executor, @NonNull android.app.role.OnRoleHoldersChangedListener, @NonNull android.os.UserHandle);
  1041. method @RequiresPermission(android.Manifest.permission.MANAGE_ROLE_HOLDERS) public void addRoleHolderAsUser(@NonNull String, @NonNull String, int, @NonNull android.os.UserHandle, @NonNull java.util.concurrent.Executor, @NonNull java.util.function.Consumer<java.lang.Boolean>);
  1042. method @RequiresPermission("com.android.permissioncontroller.permission.MANAGE_ROLES_FROM_CONTROLLER") public boolean addRoleHolderFromController(@NonNull String, @NonNull String);
  1043. method @RequiresPermission(android.Manifest.permission.MANAGE_ROLE_HOLDERS) public void clearRoleHoldersAsUser(@NonNull String, int, @NonNull android.os.UserHandle, @NonNull java.util.concurrent.Executor, @NonNull java.util.function.Consumer<java.lang.Boolean>);
  1044. method @NonNull @RequiresPermission("com.android.permissioncontroller.permission.MANAGE_ROLES_FROM_CONTROLLER") public java.util.List<java.lang.String> getHeldRolesFromController(@NonNull String);
  1045. method @NonNull @RequiresPermission(android.Manifest.permission.MANAGE_ROLE_HOLDERS) public java.util.List<java.lang.String> getRoleHolders(@NonNull String);
  1046. method @NonNull @RequiresPermission(android.Manifest.permission.MANAGE_ROLE_HOLDERS) public java.util.List<java.lang.String> getRoleHoldersAsUser(@NonNull String, @NonNull android.os.UserHandle);
  1047. method @RequiresPermission(android.Manifest.permission.OBSERVE_ROLE_HOLDERS) public void removeOnRoleHoldersChangedListenerAsUser(@NonNull android.app.role.OnRoleHoldersChangedListener, @NonNull android.os.UserHandle);
  1048. method @RequiresPermission(android.Manifest.permission.MANAGE_ROLE_HOLDERS) public void removeRoleHolderAsUser(@NonNull String, @NonNull String, int, @NonNull android.os.UserHandle, @NonNull java.util.concurrent.Executor, @NonNull java.util.function.Consumer<java.lang.Boolean>);
  1049. method @RequiresPermission("com.android.permissioncontroller.permission.MANAGE_ROLES_FROM_CONTROLLER") public boolean removeRoleHolderFromController(@NonNull String, @NonNull String);
  1050. method @RequiresPermission("com.android.permissioncontroller.permission.MANAGE_ROLES_FROM_CONTROLLER") public void setRoleNamesFromController(@NonNull java.util.List<java.lang.String>);
  1051. field public static final int MANAGE_HOLDERS_FLAG_DONT_KILL_APP = 1; // 0x1
  1052. }
  1053. }
  1054. package android.app.usage {
  1055. public final class CacheQuotaHint implements android.os.Parcelable {
  1056. ctor public CacheQuotaHint(android.app.usage.CacheQuotaHint.Builder);
  1057. method public int describeContents();
  1058. method public long getQuota();
  1059. method public int getUid();
  1060. method public android.app.usage.UsageStats getUsageStats();
  1061. method public String getVolumeUuid();
  1062. method public void writeToParcel(android.os.Parcel, int);
  1063. field @NonNull public static final android.os.Parcelable.Creator<android.app.usage.CacheQuotaHint> CREATOR;
  1064. field public static final long QUOTA_NOT_SET = -1L; // 0xffffffffffffffffL
  1065. }
  1066. public static final class CacheQuotaHint.Builder {
  1067. ctor public CacheQuotaHint.Builder();
  1068. ctor public CacheQuotaHint.Builder(android.app.usage.CacheQuotaHint);
  1069. method @NonNull public android.app.usage.CacheQuotaHint build();
  1070. method @NonNull public android.app.usage.CacheQuotaHint.Builder setQuota(long);
  1071. method @NonNull public android.app.usage.CacheQuotaHint.Builder setUid(int);
  1072. method @NonNull public android.app.usage.CacheQuotaHint.Builder setUsageStats(@Nullable android.app.usage.UsageStats);
  1073. method @NonNull public android.app.usage.CacheQuotaHint.Builder setVolumeUuid(@Nullable String);
  1074. }
  1075. public abstract class CacheQuotaService extends android.app.Service {
  1076. ctor public CacheQuotaService();
  1077. method public android.os.IBinder onBind(android.content.Intent);
  1078. method public abstract java.util.List<android.app.usage.CacheQuotaHint> onComputeCacheQuotaHints(java.util.List<android.app.usage.CacheQuotaHint>);
  1079. field public static final String SERVICE_INTERFACE = "android.app.usage.CacheQuotaService";
  1080. }
  1081. public static final class UsageEvents.Event {
  1082. method public int getInstanceId();
  1083. method public String getNotificationChannelId();
  1084. method @Nullable public String getTaskRootClassName();
  1085. method @Nullable public String getTaskRootPackageName();
  1086. method public boolean isInstantApp();
  1087. field public static final int NOTIFICATION_INTERRUPTION = 12; // 0xc
  1088. field public static final int NOTIFICATION_SEEN = 10; // 0xa
  1089. field public static final int SLICE_PINNED = 14; // 0xe
  1090. field public static final int SLICE_PINNED_PRIV = 13; // 0xd
  1091. field public static final int SYSTEM_INTERACTION = 6; // 0x6
  1092. }
  1093. public final class UsageStats implements android.os.Parcelable {
  1094. method public int getAppLaunchCount();
  1095. }
  1096. public final class UsageStatsManager {
  1097. method @RequiresPermission(android.Manifest.permission.PACKAGE_USAGE_STATS) public int getAppStandbyBucket(String);
  1098. method @RequiresPermission(android.Manifest.permission.PACKAGE_USAGE_STATS) public java.util.Map<java.lang.String,java.lang.Integer> getAppStandbyBuckets();
  1099. method public int getUsageSource();
  1100. method @RequiresPermission(allOf={android.Manifest.permission.SUSPEND_APPS, android.Manifest.permission.OBSERVE_APP_USAGE}) public void registerAppUsageLimitObserver(int, @NonNull String[], @NonNull java.time.Duration, @NonNull java.time.Duration, @Nullable android.app.PendingIntent);
  1101. method @RequiresPermission(android.Manifest.permission.OBSERVE_APP_USAGE) public void registerAppUsageObserver(int, @NonNull String[], long, @NonNull java.util.concurrent.TimeUnit, @NonNull android.app.PendingIntent);
  1102. method @RequiresPermission(android.Manifest.permission.OBSERVE_APP_USAGE) public void registerUsageSessionObserver(int, @NonNull String[], @NonNull java.time.Duration, @NonNull java.time.Duration, @NonNull android.app.PendingIntent, @Nullable android.app.PendingIntent);
  1103. method public void reportUsageStart(@NonNull android.app.Activity, @NonNull String);
  1104. method public void reportUsageStart(@NonNull android.app.Activity, @NonNull String, long);
  1105. method public void reportUsageStop(@NonNull android.app.Activity, @NonNull String);
  1106. method @RequiresPermission(android.Manifest.permission.CHANGE_APP_IDLE_STATE) public void setAppStandbyBucket(String, int);
  1107. method @RequiresPermission(android.Manifest.permission.CHANGE_APP_IDLE_STATE) public void setAppStandbyBuckets(java.util.Map<java.lang.String,java.lang.Integer>);
  1108. method @RequiresPermission(allOf={android.Manifest.permission.SUSPEND_APPS, android.Manifest.permission.OBSERVE_APP_USAGE}) public void unregisterAppUsageLimitObserver(int);
  1109. method @RequiresPermission(android.Manifest.permission.OBSERVE_APP_USAGE) public void unregisterAppUsageObserver(int);
  1110. method @RequiresPermission(android.Manifest.permission.OBSERVE_APP_USAGE) public void unregisterUsageSessionObserver(int);
  1111. method @RequiresPermission(android.Manifest.permission.CHANGE_DEVICE_IDLE_TEMP_WHITELIST) public void whitelistAppTemporarily(String, long, android.os.UserHandle);
  1112. field public static final String EXTRA_OBSERVER_ID = "android.app.usage.extra.OBSERVER_ID";
  1113. field public static final String EXTRA_TIME_LIMIT = "android.app.usage.extra.TIME_LIMIT";
  1114. field public static final String EXTRA_TIME_USED = "android.app.usage.extra.TIME_USED";
  1115. field public static final int STANDBY_BUCKET_EXEMPTED = 5; // 0x5
  1116. field public static final int STANDBY_BUCKET_NEVER = 50; // 0x32
  1117. field public static final int USAGE_SOURCE_CURRENT_ACTIVITY = 2; // 0x2
  1118. field public static final int USAGE_SOURCE_TASK_ROOT_ACTIVITY = 1; // 0x1
  1119. }
  1120. }
  1121. package android.bluetooth {
  1122. public final class BluetoothAdapter {
  1123. method @RequiresPermission(android.Manifest.permission.BLUETOOTH_PRIVILEGED) public boolean addOnMetadataChangedListener(@NonNull android.bluetooth.BluetoothDevice, @NonNull java.util.concurrent.Executor, @NonNull android.bluetooth.BluetoothAdapter.OnMetadataChangedListener);
  1124. method public boolean disableBLE();
  1125. method public boolean enableBLE();
  1126. method @RequiresPermission(android.Manifest.permission.BLUETOOTH_ADMIN) public boolean enableNoAutoConnect();
  1127. method public boolean isBleScanAlwaysAvailable();
  1128. method public boolean isLeEnabled();
  1129. method @RequiresPermission(android.Manifest.permission.BLUETOOTH_PRIVILEGED) public boolean removeOnMetadataChangedListener(@NonNull android.bluetooth.BluetoothDevice, @NonNull android.bluetooth.BluetoothAdapter.OnMetadataChangedListener);
  1130. field public static final String ACTION_BLE_STATE_CHANGED = "android.bluetooth.adapter.action.BLE_STATE_CHANGED";
  1131. field public static final String ACTION_REQUEST_BLE_SCAN_ALWAYS_AVAILABLE = "android.bluetooth.adapter.action.REQUEST_BLE_SCAN_ALWAYS_AVAILABLE";
  1132. }
  1133. public static interface BluetoothAdapter.OnMetadataChangedListener {
  1134. method public void onMetadataChanged(@NonNull android.bluetooth.BluetoothDevice, int, @Nullable byte[]);
  1135. }
  1136. public final class BluetoothDevice implements android.os.Parcelable {
  1137. method @RequiresPermission(android.Manifest.permission.BLUETOOTH_ADMIN) public boolean cancelBondProcess();
  1138. method @Nullable @RequiresPermission(android.Manifest.permission.BLUETOOTH_PRIVILEGED) public byte[] getMetadata(int);
  1139. method @RequiresPermission(android.Manifest.permission.BLUETOOTH) public boolean isConnected();
  1140. method @RequiresPermission(android.Manifest.permission.BLUETOOTH) public boolean isEncrypted();
  1141. method @RequiresPermission(android.Manifest.permission.BLUETOOTH_PRIVILEGED) public boolean isInSilenceMode();
  1142. method @RequiresPermission(android.Manifest.permission.BLUETOOTH_ADMIN) public boolean removeBond();
  1143. method @RequiresPermission(android.Manifest.permission.BLUETOOTH_PRIVILEGED) public boolean setMetadata(int, @NonNull byte[]);
  1144. method @RequiresPermission(android.Manifest.permission.BLUETOOTH_PRIVILEGED) public boolean setPhonebookAccessPermission(int);
  1145. method @RequiresPermission(android.Manifest.permission.BLUETOOTH_PRIVILEGED) public boolean setSilenceMode(boolean);
  1146. field public static final int ACCESS_ALLOWED = 1; // 0x1
  1147. field public static final int ACCESS_REJECTED = 2; // 0x2
  1148. field public static final int ACCESS_UNKNOWN = 0; // 0x0
  1149. field public static final String ACTION_SILENCE_MODE_CHANGED = "android.bluetooth.device.action.SILENCE_MODE_CHANGED";
  1150. field public static final int METADATA_COMPANION_APP = 4; // 0x4
  1151. field public static final int METADATA_ENHANCED_SETTINGS_UI_URI = 16; // 0x10
  1152. field public static final int METADATA_HARDWARE_VERSION = 3; // 0x3
  1153. field public static final int METADATA_IS_UNTETHERED_HEADSET = 6; // 0x6
  1154. field public static final int METADATA_MAIN_ICON = 5; // 0x5
  1155. field public static final int METADATA_MANUFACTURER_NAME = 0; // 0x0
  1156. field public static final int METADATA_MAX_LENGTH = 2048; // 0x800
  1157. field public static final int METADATA_MODEL_NAME = 1; // 0x1
  1158. field public static final int METADATA_SOFTWARE_VERSION = 2; // 0x2
  1159. field public static final int METADATA_UNTETHERED_CASE_BATTERY = 12; // 0xc
  1160. field public static final int METADATA_UNTETHERED_CASE_CHARGING = 15; // 0xf
  1161. field public static final int METADATA_UNTETHERED_CASE_ICON = 9; // 0x9
  1162. field public static final int METADATA_UNTETHERED_LEFT_BATTERY = 10; // 0xa
  1163. field public static final int METADATA_UNTETHERED_LEFT_CHARGING = 13; // 0xd
  1164. field public static final int METADATA_UNTETHERED_LEFT_ICON = 7; // 0x7
  1165. field public static final int METADATA_UNTETHERED_RIGHT_BATTERY = 11; // 0xb
  1166. field public static final int METADATA_UNTETHERED_RIGHT_CHARGING = 14; // 0xe
  1167. field public static final int METADATA_UNTETHERED_RIGHT_ICON = 8; // 0x8
  1168. }
  1169. public final class BluetoothHeadset implements android.bluetooth.BluetoothProfile {
  1170. method @RequiresPermission(android.Manifest.permission.BLUETOOTH_ADMIN) public boolean connect(android.bluetooth.BluetoothDevice);
  1171. method @RequiresPermission(android.Manifest.permission.BLUETOOTH_ADMIN) public boolean disconnect(android.bluetooth.BluetoothDevice);
  1172. method @RequiresPermission(android.Manifest.permission.BLUETOOTH_ADMIN) public boolean setPriority(android.bluetooth.BluetoothDevice, int);
  1173. }
  1174. public interface BluetoothProfile {
  1175. field public static final int PRIORITY_OFF = 0; // 0x0
  1176. field public static final int PRIORITY_ON = 100; // 0x64
  1177. }
  1178. }
  1179. package android.bluetooth.le {
  1180. public final class BluetoothLeScanner {
  1181. method @RequiresPermission(allOf={android.Manifest.permission.BLUETOOTH_ADMIN, android.Manifest.permission.UPDATE_DEVICE_STATS}) public void startScanFromSource(android.os.WorkSource, android.bluetooth.le.ScanCallback);
  1182. method @RequiresPermission(allOf={android.Manifest.permission.BLUETOOTH_ADMIN, android.Manifest.permission.UPDATE_DEVICE_STATS}) public void startScanFromSource(java.util.List<android.bluetooth.le.ScanFilter>, android.bluetooth.le.ScanSettings, android.os.WorkSource, android.bluetooth.le.ScanCallback);
  1183. method public void startTruncatedScan(java.util.List<android.bluetooth.le.TruncatedFilter>, android.bluetooth.le.ScanSettings, android.bluetooth.le.ScanCallback);
  1184. }
  1185. public final class ResultStorageDescriptor implements android.os.Parcelable {
  1186. ctor public ResultStorageDescriptor(int, int, int);
  1187. method public int describeContents();
  1188. method public int getLength();
  1189. method public int getOffset();
  1190. method public int getType();
  1191. method public void writeToParcel(android.os.Parcel, int);
  1192. field @NonNull public static final android.os.Parcelable.Creator<android.bluetooth.le.ResultStorageDescriptor> CREATOR;
  1193. }
  1194. public final class ScanSettings implements android.os.Parcelable {
  1195. field public static final int SCAN_RESULT_TYPE_ABBREVIATED = 1; // 0x1
  1196. field public static final int SCAN_RESULT_TYPE_FULL = 0; // 0x0
  1197. }
  1198. public static final class ScanSettings.Builder {
  1199. method public android.bluetooth.le.ScanSettings.Builder setScanResultType(int);
  1200. }
  1201. public final class TruncatedFilter {
  1202. ctor public TruncatedFilter(android.bluetooth.le.ScanFilter, java.util.List<android.bluetooth.le.ResultStorageDescriptor>);
  1203. method public android.bluetooth.le.ScanFilter getFilter();
  1204. method public java.util.List<android.bluetooth.le.ResultStorageDescriptor> getStorageDescriptors();
  1205. }
  1206. }
  1207. package android.content {
  1208. public class ContentProviderClient implements java.lang.AutoCloseable {
  1209. method @RequiresPermission(android.Manifest.permission.REMOVE_TASKS) public void setDetectNotResponding(long);
  1210. }
  1211. public abstract class ContentResolver {
  1212. method @Nullable @RequiresPermission("android.permission.CACHE_CONTENT") public android.os.Bundle getCache(@NonNull android.net.Uri);
  1213. method @RequiresPermission("android.permission.CACHE_CONTENT") public void putCache(@NonNull android.net.Uri, @Nullable android.os.Bundle);
  1214. }
  1215. public abstract class Context {
  1216. method @RequiresPermission(android.Manifest.permission.INTERACT_ACROSS_USERS) public boolean bindServiceAsUser(@RequiresPermission android.content.Intent, android.content.ServiceConnection, int, android.os.UserHandle);
  1217. method public abstract android.content.Context createCredentialProtectedStorageContext();
  1218. method public android.content.Context createPackageContextAsUser(String, int, android.os.UserHandle) throws android.content.pm.PackageManager.NameNotFoundException;
  1219. method @Nullable public abstract java.io.File getPreloadsFileCache();
  1220. method public abstract boolean isCredentialProtectedStorage();
  1221. method public abstract void sendBroadcast(android.content.Intent, @Nullable String, @Nullable android.os.Bundle);
  1222. method @RequiresPermission(android.Manifest.permission.INTERACT_ACROSS_USERS) public abstract void sendBroadcastAsUser(@RequiresPermission android.content.Intent, android.os.UserHandle, @Nullable String, @Nullable android.os.Bundle);
  1223. method public abstract void sendOrderedBroadcast(@NonNull android.content.Intent, @Nullable String, @Nullable android.os.Bundle, @Nullable android.content.BroadcastReceiver, @Nullable android.os.Handler, int, @Nullable String, @Nullable android.os.Bundle);
  1224. method @RequiresPermission(android.Manifest.permission.INTERACT_ACROSS_USERS_FULL) public void startActivityAsUser(@RequiresPermission @NonNull android.content.Intent, @NonNull android.os.UserHandle);
  1225. field public static final String APP_PREDICTION_SERVICE = "app_prediction";
  1226. field public static final String BACKUP_SERVICE = "backup";
  1227. field public static final String BUGREPORT_SERVICE = "bugreport";
  1228. field public static final String CELLS_SERVICE = "cells";
  1229. field public static final String CONTENT_SUGGESTIONS_SERVICE = "content_suggestions";
  1230. field public static final String CONTEXTHUB_SERVICE = "contexthub";
  1231. field public static final String EUICC_CARD_SERVICE = "euicc_card";
  1232. field public static final String HDMI_CONTROL_SERVICE = "hdmi_control";
  1233. field public static final String NETD_SERVICE = "netd";
  1234. field public static final String NETWORK_SCORE_SERVICE = "network_score";
  1235. field public static final String OEM_LOCK_SERVICE = "oem_lock";
  1236. field public static final String PERMISSION_SERVICE = "permission";
  1237. field public static final String PERSISTENT_DATA_BLOCK_SERVICE = "persistent_data_block";
  1238. field public static final String ROLLBACK_SERVICE = "rollback";
  1239. field public static final String SECURE_ELEMENT_SERVICE = "secure_element";
  1240. field public static final String STATS_MANAGER = "stats";
  1241. field public static final String STATUS_BAR_SERVICE = "statusbar";
  1242. field public static final String SYSTEM_UPDATE_SERVICE = "system_update";
  1243. field public static final String VR_SERVICE = "vrmanager";
  1244. field @Deprecated public static final String WIFI_RTT_SERVICE = "rttmanager";
  1245. field public static final String WIFI_SCANNING_SERVICE = "wifiscanner";
  1246. }
  1247. public class ContextWrapper extends android.content.Context {
  1248. method public android.content.Context createCredentialProtectedStorageContext();
  1249. method public java.io.File getPreloadsFileCache();
  1250. method public boolean isCredentialProtectedStorage();
  1251. method public void sendBroadcast(android.content.Intent, String, android.os.Bundle);
  1252. method public void sendBroadcastAsUser(android.content.Intent, android.os.UserHandle, String, android.os.Bundle);
  1253. method public void sendOrderedBroadcast(android.content.Intent, String, android.os.Bundle, android.content.BroadcastReceiver, android.os.Handler, int, String, android.os.Bundle);
  1254. }
  1255. public class Intent implements java.lang.Cloneable android.os.Parcelable {
  1256. field public static final String ACTION_BATTERY_LEVEL_CHANGED = "android.intent.action.BATTERY_LEVEL_CHANGED";
  1257. field public static final String ACTION_CALL_EMERGENCY = "android.intent.action.CALL_EMERGENCY";
  1258. field public static final String ACTION_CALL_PRIVILEGED = "android.intent.action.CALL_PRIVILEGED";
  1259. field public static final String ACTION_DEVICE_CUSTOMIZATION_READY = "android.intent.action.DEVICE_CUSTOMIZATION_READY";
  1260. field public static final String ACTION_FACTORY_RESET = "android.intent.action.FACTORY_RESET";
  1261. field public static final String ACTION_GLOBAL_BUTTON = "android.intent.action.GLOBAL_BUTTON";
  1262. field public static final String ACTION_INCIDENT_REPORT_READY = "android.intent.action.INCIDENT_REPORT_READY";
  1263. field public static final String ACTION_INSTALL_INSTANT_APP_PACKAGE = "android.intent.action.INSTALL_INSTANT_APP_PACKAGE";
  1264. field public static final String ACTION_INSTANT_APP_RESOLVER_SETTINGS = "android.intent.action.INSTANT_APP_RESOLVER_SETTINGS";
  1265. field public static final String ACTION_INTENT_FILTER_NEEDS_VERIFICATION = "android.intent.action.INTENT_FILTER_NEEDS_VERIFICATION";
  1266. field @RequiresPermission(android.Manifest.permission.GRANT_RUNTIME_PERMISSIONS) public static final String ACTION_MANAGE_APP_PERMISSION = "android.intent.action.MANAGE_APP_PERMISSION";
  1267. field public static final String ACTION_MANAGE_APP_PERMISSIONS = "android.intent.action.MANAGE_APP_PERMISSIONS";
  1268. field @RequiresPermission(android.Manifest.permission.MANAGE_ROLE_HOLDERS) public static final String ACTION_MANAGE_DEFAULT_APP = "android.intent.action.MANAGE_DEFAULT_APP";
  1269. field public static final String ACTION_MANAGE_PERMISSIONS = "android.intent.action.MANAGE_PERMISSIONS";
  1270. field public static final String ACTION_MANAGE_PERMISSION_APPS = "android.intent.action.MANAGE_PERMISSION_APPS";
  1271. field @RequiresPermission(android.Manifest.permission.MANAGE_ROLE_HOLDERS) public static final String ACTION_MANAGE_SPECIAL_APP_ACCESSES = "android.intent.action.MANAGE_SPECIAL_APP_ACCESSES";
  1272. field public static final String ACTION_MASTER_CLEAR_NOTIFICATION = "android.intent.action.MASTER_CLEAR_NOTIFICATION";
  1273. field public static final String ACTION_PENDING_INCIDENT_REPORTS_CHANGED = "android.intent.action.PENDING_INCIDENT_REPORTS_CHANGED";
  1274. field public static final String ACTION_PRE_BOOT_COMPLETED = "android.intent.action.PRE_BOOT_COMPLETED";
  1275. field public static final String ACTION_QUERY_PACKAGE_RESTART = "android.intent.action.QUERY_PACKAGE_RESTART";
  1276. field public static final String ACTION_RESOLVE_INSTANT_APP_PACKAGE = "android.intent.action.RESOLVE_INSTANT_APP_PACKAGE";
  1277. field @RequiresPermission(android.Manifest.permission.REVIEW_ACCESSIBILITY_SERVICES) public static final String ACTION_REVIEW_ACCESSIBILITY_SERVICES = "android.intent.action.REVIEW_ACCESSIBILITY_SERVICES";
  1278. field @RequiresPermission(android.Manifest.permission.GRANT_RUNTIME_PERMISSIONS) public static final String ACTION_REVIEW_ONGOING_PERMISSION_USAGE = "android.intent.action.REVIEW_ONGOING_PERMISSION_USAGE";
  1279. field public static final String ACTION_REVIEW_PERMISSIONS = "android.intent.action.REVIEW_PERMISSIONS";
  1280. field @RequiresPermission(android.Manifest.permission.GRANT_RUNTIME_PERMISSIONS) public static final String ACTION_REVIEW_PERMISSION_USAGE = "android.intent.action.REVIEW_PERMISSION_USAGE";
  1281. field public static final String ACTION_ROLLBACK_COMMITTED = "android.intent.action.ROLLBACK_COMMITTED";
  1282. field public static final String ACTION_SHOW_SUSPENDED_APP_DETAILS = "android.intent.action.SHOW_SUSPENDED_APP_DETAILS";
  1283. field @Deprecated public static final String ACTION_SIM_STATE_CHANGED = "android.intent.action.SIM_STATE_CHANGED";
  1284. field public static final String ACTION_SPLIT_CONFIGURATION_CHANGED = "android.intent.action.SPLIT_CONFIGURATION_CHANGED";
  1285. field public static final String ACTION_UPGRADE_SETUP = "android.intent.action.UPGRADE_SETUP";
  1286. field public static final String ACTION_USER_ADDED = "android.intent.action.USER_ADDED";
  1287. field public static final String ACTION_USER_REMOVED = "android.intent.action.USER_REMOVED";
  1288. field public static final String ACTION_VOICE_ASSIST = "android.intent.action.VOICE_ASSIST";
  1289. field public static final String CATEGORY_LEANBACK_SETTINGS = "android.intent.category.LEANBACK_SETTINGS";
  1290. field public static final String EXTRA_CALLING_PACKAGE = "android.intent.extra.CALLING_PACKAGE";
  1291. field public static final String EXTRA_FORCE_FACTORY_RESET = "android.intent.extra.FORCE_FACTORY_RESET";
  1292. field public static final String EXTRA_INSTANT_APP_ACTION = "android.intent.extra.INSTANT_APP_ACTION";
  1293. field public static final String EXTRA_INSTANT_APP_BUNDLES = "android.intent.extra.INSTANT_APP_BUNDLES";
  1294. field public static final String EXTRA_INSTANT_APP_EXTRAS = "android.intent.extra.INSTANT_APP_EXTRAS";
  1295. field public static final String EXTRA_INSTANT_APP_FAILURE = "android.intent.extra.INSTANT_APP_FAILURE";
  1296. field public static final String EXTRA_INSTANT_APP_HOSTNAME = "android.intent.extra.INSTANT_APP_HOSTNAME";
  1297. field public static final String EXTRA_INSTANT_APP_SUCCESS = "android.intent.extra.INSTANT_APP_SUCCESS";
  1298. field public static final String EXTRA_INSTANT_APP_TOKEN = "android.intent.extra.INSTANT_APP_TOKEN";
  1299. field public static final String EXTRA_LONG_VERSION_CODE = "android.intent.extra.LONG_VERSION_CODE";
  1300. field public static final String EXTRA_ORIGINATING_UID = "android.intent.extra.ORIGINATING_UID";
  1301. field public static final String EXTRA_PACKAGES = "android.intent.extra.PACKAGES";
  1302. field public static final String EXTRA_PERMISSION_GROUP_NAME = "android.intent.extra.PERMISSION_GROUP_NAME";
  1303. field public static final String EXTRA_PERMISSION_NAME = "android.intent.extra.PERMISSION_NAME";
  1304. field public static final String EXTRA_REASON = "android.intent.extra.REASON";
  1305. field public static final String EXTRA_REMOTE_CALLBACK = "android.intent.extra.REMOTE_CALLBACK";
  1306. field public static final String EXTRA_RESULT_NEEDED = "android.intent.extra.RESULT_NEEDED";
  1307. field public static final String EXTRA_ROLE_NAME = "android.intent.extra.ROLE_NAME";
  1308. field public static final String EXTRA_UNKNOWN_INSTANT_APP = "android.intent.extra.UNKNOWN_INSTANT_APP";
  1309. field public static final String EXTRA_VERIFICATION_BUNDLE = "android.intent.extra.VERIFICATION_BUNDLE";
  1310. field public static final String METADATA_SETUP_VERSION = "android.SETUP_VERSION";
  1311. }
  1312. public class IntentFilter implements android.os.Parcelable {
  1313. method public final int getOrder();
  1314. method public final void setOrder(int);
  1315. }
  1316. }
  1317. package android.content.om {
  1318. public final class OverlayInfo implements android.os.Parcelable {
  1319. method public int describeContents();
  1320. method @Nullable public String getCategory();
  1321. method @NonNull public String getPackageName();
  1322. method @Nullable public String getTargetOverlayableName();
  1323. method @NonNull public String getTargetPackageName();
  1324. method public int getUserId();
  1325. method public boolean isEnabled();
  1326. method public void writeToParcel(android.os.Parcel, int);
  1327. field @NonNull public static final android.os.Parcelable.Creator<android.content.om.OverlayInfo> CREATOR;
  1328. }
  1329. public class OverlayManager {
  1330. method @Nullable public android.content.om.OverlayInfo getOverlayInfo(@NonNull String, @NonNull android.os.UserHandle);
  1331. method @NonNull @RequiresPermission(anyOf={"android.permission.INTERACT_ACROSS_USERS", "android.permission.INTERACT_ACROSS_USERS_FULL"}) public java.util.List<android.content.om.OverlayInfo> getOverlayInfosForTarget(@NonNull String, @NonNull android.os.UserHandle);
  1332. method @RequiresPermission(anyOf={"android.permission.INTERACT_ACROSS_USERS", "android.permission.INTERACT_ACROSS_USERS_FULL"}) public void setEnabled(@NonNull String, boolean, @NonNull android.os.UserHandle);
  1333. method @RequiresPermission(anyOf={"android.permission.INTERACT_ACROSS_USERS", "android.permission.INTERACT_ACROSS_USERS_FULL"}) public void setEnabledExclusiveInCategory(@NonNull String, @NonNull android.os.UserHandle);
  1334. }
  1335. }
  1336. package android.content.pm {
  1337. public class ApplicationInfo extends android.content.pm.PackageItemInfo implements android.os.Parcelable {
  1338. method public boolean isEncryptionAware();
  1339. method public boolean isInstantApp();
  1340. field public String credentialProtectedDataDir;
  1341. field public int targetSandboxVersion;
  1342. }
  1343. public class CrossProfileApps {
  1344. method @RequiresPermission(android.Manifest.permission.INTERACT_ACROSS_PROFILES) public void startActivity(@NonNull android.content.ComponentName, @NonNull android.os.UserHandle);
  1345. }
  1346. public final class InstantAppInfo implements android.os.Parcelable {
  1347. ctor public InstantAppInfo(android.content.pm.ApplicationInfo, String[], String[]);
  1348. ctor public InstantAppInfo(String, CharSequence, String[], String[]);
  1349. method public int describeContents();
  1350. method @Nullable public android.content.pm.ApplicationInfo getApplicationInfo();
  1351. method @Nullable public String[] getGrantedPermissions();
  1352. method @NonNull public String getPackageName();
  1353. method @Nullable public String[] getRequestedPermissions();
  1354. method @NonNull public android.graphics.drawable.Drawable loadIcon(@NonNull android.content.pm.PackageManager);
  1355. method @NonNull public CharSequence loadLabel(@NonNull android.content.pm.PackageManager);
  1356. method public void writeToParcel(android.os.Parcel, int);
  1357. field @NonNull public static final android.os.Parcelable.Creator<android.content.pm.InstantAppInfo> CREATOR;
  1358. }
  1359. public final class InstantAppIntentFilter implements android.os.Parcelable {
  1360. ctor public InstantAppIntentFilter(@Nullable String, @NonNull java.util.List<android.content.IntentFilter>);
  1361. method public int describeContents();
  1362. method public java.util.List<android.content.IntentFilter> getFilters();
  1363. method public String getSplitName();
  1364. method public void writeToParcel(android.os.Parcel, int);
  1365. field @NonNull public static final android.os.Parcelable.Creator<android.content.pm.InstantAppIntentFilter> CREATOR;
  1366. }
  1367. public final class InstantAppResolveInfo implements android.os.Parcelable {
  1368. ctor public InstantAppResolveInfo(@NonNull android.content.pm.InstantAppResolveInfo.InstantAppDigest, @Nullable String, @Nullable java.util.List<android.content.pm.InstantAppIntentFilter>, int);
  1369. ctor public InstantAppResolveInfo(@NonNull android.content.pm.InstantAppResolveInfo.InstantAppDigest, @Nullable String, @Nullable java.util.List<android.content.pm.InstantAppIntentFilter>, long, @Nullable android.os.Bundle);
  1370. ctor public InstantAppResolveInfo(@NonNull String, @Nullable String, @Nullable java.util.List<android.content.pm.InstantAppIntentFilter>);
  1371. ctor public InstantAppResolveInfo(@Nullable android.os.Bundle);
  1372. method public int describeContents();
  1373. method public byte[] getDigestBytes();
  1374. method public int getDigestPrefix();
  1375. method @Nullable public android.os.Bundle getExtras();
  1376. method public java.util.List<android.content.pm.InstantAppIntentFilter> getIntentFilters();
  1377. method public long getLongVersionCode();
  1378. method public String getPackageName();
  1379. method @Deprecated public int getVersionCode();
  1380. method public boolean shouldLetInstallerDecide();
  1381. method public void writeToParcel(android.os.Parcel, int);
  1382. field @NonNull public static final android.os.Parcelable.Creator<android.content.pm.InstantAppResolveInfo> CREATOR;
  1383. }
  1384. public static final class InstantAppResolveInfo.InstantAppDigest implements android.os.Parcelable {
  1385. ctor public InstantAppResolveInfo.InstantAppDigest(@NonNull String);
  1386. method public int describeContents();
  1387. method public byte[][] getDigestBytes();
  1388. method public int[] getDigestPrefix();
  1389. method public void writeToParcel(android.os.Parcel, int);
  1390. field @NonNull public static final android.os.Parcelable.Creator<android.content.pm.InstantAppResolveInfo.InstantAppDigest> CREATOR;
  1391. field public static final android.content.pm.InstantAppResolveInfo.InstantAppDigest UNDEFINED;
  1392. }
  1393. public final class IntentFilterVerificationInfo implements android.os.Parcelable {
  1394. method public int describeContents();
  1395. method public java.util.Set<java.lang.String> getDomains();
  1396. method public String getPackageName();
  1397. method public int getStatus();
  1398. method public void writeToParcel(android.os.Parcel, int);
  1399. field @NonNull public static final android.os.Parcelable.Creator<android.content.pm.IntentFilterVerificationInfo> CREATOR;
  1400. }
  1401. public class LauncherApps {
  1402. method @Nullable public android.content.pm.LauncherApps.AppUsageLimit getAppUsageLimit(@NonNull String, @NonNull android.os.UserHandle);
  1403. }
  1404. public static final class LauncherApps.AppUsageLimit implements android.os.Parcelable {
  1405. method public int describeContents();
  1406. method public long getTotalUsageLimit();
  1407. method public long getUsageRemaining();
  1408. method public void writeToParcel(android.os.Parcel, int);
  1409. field @NonNull public static final android.os.Parcelable.Creator<android.content.pm.LauncherApps.AppUsageLimit> CREATOR;
  1410. }
  1411. public class PackageInstaller {
  1412. method @RequiresPermission(android.Manifest.permission.INSTALL_PACKAGES) public void setPermissionsResult(int, boolean);
  1413. }
  1414. public static class PackageInstaller.Session implements java.io.Closeable {
  1415. method @RequiresPermission(android.Manifest.permission.INSTALL_PACKAGES) public void commitTransferred(@NonNull android.content.IntentSender);
  1416. }
  1417. public static class PackageInstaller.SessionInfo implements android.os.Parcelable {
  1418. method public boolean getAllocateAggressive();
  1419. method @Deprecated public boolean getAllowDowngrade();
  1420. method public boolean getDontKillApp();
  1421. method public boolean getEnableRollback();
  1422. method @Nullable public String[] getGrantedRuntimePermissions();
  1423. method public boolean getInstallAsFullApp(boolean);
  1424. method public boolean getInstallAsInstantApp(boolean);
  1425. method public boolean getInstallAsVirtualPreload();
  1426. method public boolean getRequestDowngrade();
  1427. method @NonNull public java.util.Set<java.lang.String> getWhitelistedRestrictedPermissions();
  1428. }
  1429. public static class PackageInstaller.SessionParams implements android.os.Parcelable {
  1430. method @RequiresPermission(android.Manifest.permission.ALLOCATE_AGGRESSIVE) public void setAllocateAggressive(boolean);
  1431. method @Deprecated public void setAllowDowngrade(boolean);
  1432. method public void setDontKillApp(boolean);
  1433. method public void setEnableRollback(boolean);
  1434. method @RequiresPermission(android.Manifest.permission.INSTALL_GRANT_RUNTIME_PERMISSIONS) public void setGrantedRuntimePermissions(String[]);
  1435. method @RequiresPermission(android.Manifest.permission.INSTALL_PACKAGES) public void setInstallAsApex();
  1436. method public void setInstallAsInstantApp(boolean);
  1437. method public void setInstallAsVirtualPreload();
  1438. method public void setRequestDowngrade(boolean);
  1439. method @RequiresPermission(android.Manifest.permission.INSTALL_PACKAGES) public void setStaged();
  1440. }
  1441. public class PackageItemInfo {
  1442. method public static void forceSafeLabels();
  1443. method @Deprecated @NonNull public CharSequence loadSafeLabel(@NonNull android.content.pm.PackageManager);
  1444. method @NonNull public CharSequence loadSafeLabel(@NonNull android.content.pm.PackageManager, @FloatRange(from=0) float, int);
  1445. }
  1446. public abstract class PackageManager {
  1447. method @RequiresPermission("android.permission.OBSERVE_GRANT_REVOKE_PERMISSIONS") public abstract void addOnPermissionsChangeListener(@NonNull android.content.pm.PackageManager.OnPermissionsChangedListener);
  1448. method public abstract boolean arePermissionsIndividuallyControlled();
  1449. method @NonNull public abstract java.util.List<android.content.IntentFilter> getAllIntentFilters(@NonNull String);
  1450. method @NonNull @RequiresPermission(android.Manifest.permission.INTERACT_ACROSS_USERS) public android.content.pm.ApplicationInfo getApplicationInfoAsUser(@NonNull String, int, @NonNull android.os.UserHandle) throws android.content.pm.PackageManager.NameNotFoundException;
  1451. method @NonNull public android.content.pm.dex.ArtManager getArtManager();
  1452. method @NonNull @RequiresPermission(android.Manifest.permission.ACCESS_SHARED_LIBRARIES) public java.util.List<android.content.pm.SharedLibraryInfo> getDeclaredSharedLibraries(@NonNull String, int);
  1453. method @Nullable @RequiresPermission(android.Manifest.permission.INTERACT_ACROSS_USERS_FULL) public abstract String getDefaultBrowserPackageNameAsUser(int);
  1454. method @Nullable @RequiresPermission(android.Manifest.permission.SET_HARMFUL_APP_WARNINGS) public CharSequence getHarmfulAppWarning(@NonNull String);
  1455. method @Nullable public String getIncidentReportApproverPackageName();
  1456. method @NonNull @RequiresPermission(android.Manifest.permission.INTERACT_ACROSS_USERS_FULL) public abstract java.util.List<android.content.pm.PackageInfo> getInstalledPackagesAsUser(int, int);
  1457. method @Nullable @RequiresPermission(android.Manifest.permission.ACCESS_INSTANT_APPS) public abstract android.graphics.drawable.Drawable getInstantAppIcon(String);
  1458. method @Nullable public abstract android.content.ComponentName getInstantAppInstallerComponent();
  1459. method @Nullable public abstract android.content.ComponentName getInstantAppResolverSettingsComponent();
  1460. method @NonNull @RequiresPermission(android.Manifest.permission.ACCESS_INSTANT_APPS) public abstract java.util.List<android.content.pm.InstantAppInfo> getInstantApps();
  1461. method @NonNull public abstract java.util.List<android.content.pm.IntentFilterVerificationInfo> getIntentFilterVerifications(@NonNull String);
  1462. method @RequiresPermission(android.Manifest.permission.INTERACT_ACROSS_USERS_FULL) public abstract int getIntentVerificationStatusAsUser(@NonNull String, int);
  1463. method @android.content.pm.PackageManager.PermissionFlags @RequiresPermission(anyOf={android.Manifest.permission.GRANT_RUNTIME_PERMISSIONS, android.Manifest.permission.REVOKE_RUNTIME_PERMISSIONS, android.Manifest.permission.GET_RUNTIME_PERMISSIONS}) public abstract int getPermissionFlags(@NonNull String, @NonNull String, @NonNull android.os.UserHandle);
  1464. method @NonNull @RequiresPermission(android.Manifest.permission.SUSPEND_APPS) public String[] getUnsuspendablePackages(@NonNull String[]);
  1465. method @RequiresPermission(android.Manifest.permission.GRANT_RUNTIME_PERMISSIONS) public abstract void grantRuntimePermission(@NonNull String, @NonNull String, @NonNull android.os.UserHandle);
  1466. method @Deprecated public abstract int installExistingPackage(@NonNull String) throws android.content.pm.PackageManager.NameNotFoundException;
  1467. method @Deprecated public abstract int installExistingPackage(@NonNull String, int) throws android.content.pm.PackageManager.NameNotFoundException;
  1468. method @NonNull @RequiresPermission(android.Manifest.permission.INTERACT_ACROSS_USERS) public java.util.List<android.content.pm.ResolveInfo> queryBroadcastReceiversAsUser(@NonNull android.content.Intent, int, android.os.UserHandle);
  1469. method @NonNull @RequiresPermission(android.Manifest.permission.INTERACT_ACROSS_USERS) public java.util.List<android.content.pm.ResolveInfo> queryIntentActivitiesAsUser(@NonNull android.content.Intent, int, @NonNull android.os.UserHandle);
  1470. method @NonNull @RequiresPermission(android.Manifest.permission.INTERACT_ACROSS_USERS) public java.util.List<android.content.pm.ResolveInfo> queryIntentContentProvidersAsUser(@NonNull android.content.Intent, int, @NonNull android.os.UserHandle);
  1471. method @NonNull @RequiresPermission(android.Manifest.permission.INTERACT_ACROSS_USERS) public java.util.List<android.content.pm.ResolveInfo> queryIntentServicesAsUser(@NonNull android.content.Intent, int, @NonNull android.os.UserHandle);
  1472. method public abstract void registerDexModule(@NonNull String, @Nullable android.content.pm.PackageManager.DexModuleRegisterCallback);
  1473. method @RequiresPermission("android.permission.OBSERVE_GRANT_REVOKE_PERMISSIONS") public abstract void removeOnPermissionsChangeListener(@NonNull android.content.pm.PackageManager.OnPermissionsChangedListener);
  1474. method public void replacePreferredActivity(@NonNull android.content.IntentFilter, int, @NonNull java.util.List<android.content.ComponentName>, @NonNull android.content.ComponentName);
  1475. method @RequiresPermission(android.Manifest.permission.REVOKE_RUNTIME_PERMISSIONS) public abstract void revokeRuntimePermission(@NonNull String, @NonNull String, @NonNull android.os.UserHandle);
  1476. method public void sendDeviceCustomizationReadyBroadcast();
  1477. method @RequiresPermission(allOf={android.Manifest.permission.SET_PREFERRED_APPLICATIONS, android.Manifest.permission.INTERACT_ACROSS_USERS_FULL}) public abstract boolean setDefaultBrowserPackageNameAsUser(@Nullable String, int);
  1478. method @NonNull @RequiresPermission(android.Manifest.permission.SUSPEND_APPS) public String[] setDistractingPackageRestrictions(@NonNull String[], int);
  1479. method @RequiresPermission(android.Manifest.permission.SET_HARMFUL_APP_WARNINGS) public void setHarmfulAppWarning(@NonNull String, @Nullable CharSequence);
  1480. method @Deprecated @Nullable @RequiresPermission(android.Manifest.permission.SUSPEND_APPS) public String[] setPackagesSuspended(@Nullable String[], boolean, @Nullable android.os.PersistableBundle, @Nullable android.os.PersistableBundle, @Nullable String);
  1481. method @Nullable @RequiresPermission(android.Manifest.permission.SUSPEND_APPS) public String[] setPackagesSuspended(@Nullable String[], boolean, @Nullable android.os.PersistableBundle, @Nullable android.os.PersistableBundle, @Nullable android.content.pm.SuspendDialogInfo);
  1482. method @RequiresPermission(value=android.Manifest.permission.CHANGE_COMPONENT_ENABLED_STATE, conditional=true) public void setSyntheticAppDetailsActivityEnabled(@NonNull String, boolean);
  1483. method @RequiresPermission(android.Manifest.permission.INSTALL_PACKAGES) public abstract void setUpdateAvailable(@NonNull String, boolean);
  1484. method @RequiresPermission(android.Manifest.permission.SET_PREFERRED_APPLICATIONS) public abstract boolean updateIntentVerificationStatusAsUser(@NonNull String, int, int);
  1485. method @RequiresPermission(anyOf={android.Manifest.permission.GRANT_RUNTIME_PERMISSIONS, android.Manifest.permission.REVOKE_RUNTIME_PERMISSIONS}) public abstract void updatePermissionFlags(@NonNull String, @NonNull String, @android.content.pm.PackageManager.PermissionFlags int, @android.content.pm.PackageManager.PermissionFlags int, @NonNull android.os.UserHandle);
  1486. method @RequiresPermission(android.Manifest.permission.INTENT_FILTER_VERIFICATION_AGENT) public abstract void verifyIntentFilter(int, int, @NonNull java.util.List<java.lang.String>);
  1487. field public static final String ACTION_REQUEST_PERMISSIONS = "android.content.pm.action.REQUEST_PERMISSIONS";
  1488. field public static final String EXTRA_REQUEST_PERMISSIONS_NAMES = "android.content.pm.extra.REQUEST_PERMISSIONS_NAMES";
  1489. field public static final String EXTRA_REQUEST_PERMISSIONS_RESULTS = "android.content.pm.extra.REQUEST_PERMISSIONS_RESULTS";
  1490. field public static final String FEATURE_BROADCAST_RADIO = "android.hardware.broadcastradio";
  1491. field public static final String FEATURE_TELEPHONY_CARRIERLOCK = "android.hardware.telephony.carrierlock";
  1492. field public static final int FLAG_PERMISSION_APPLY_RESTRICTION = 16384; // 0x4000
  1493. field public static final int FLAG_PERMISSION_GRANTED_BY_DEFAULT = 32; // 0x20
  1494. field public static final int FLAG_PERMISSION_GRANTED_BY_ROLE = 32768; // 0x8000
  1495. field public static final int FLAG_PERMISSION_POLICY_FIXED = 4; // 0x4
  1496. field public static final int FLAG_PERMISSION_RESTRICTION_INSTALLER_EXEMPT = 2048; // 0x800
  1497. field public static final int FLAG_PERMISSION_RESTRICTION_SYSTEM_EXEMPT = 4096; // 0x1000
  1498. field public static final int FLAG_PERMISSION_RESTRICTION_UPGRADE_EXEMPT = 8192; // 0x2000
  1499. field public static final int FLAG_PERMISSION_REVIEW_REQUIRED = 64; // 0x40
  1500. field public static final int FLAG_PERMISSION_REVOKE_ON_UPGRADE = 8; // 0x8
  1501. field public static final int FLAG_PERMISSION_SYSTEM_FIXED = 16; // 0x10
  1502. field public static final int FLAG_PERMISSION_USER_FIXED = 2; // 0x2
  1503. field public static final int FLAG_PERMISSION_USER_SENSITIVE_WHEN_DENIED = 512; // 0x200
  1504. field public static final int FLAG_PERMISSION_USER_SENSITIVE_WHEN_GRANTED = 256; // 0x100
  1505. field public static final int FLAG_PERMISSION_USER_SET = 1; // 0x1
  1506. field public static final int INSTALL_FAILED_ALREADY_EXISTS = -1; // 0xffffffff
  1507. field public static final int INSTALL_FAILED_CONFLICTING_PROVIDER = -13; // 0xfffffff3
  1508. field public static final int INSTALL_FAILED_CONTAINER_ERROR = -18; // 0xffffffee
  1509. field public static final int INSTALL_FAILED_CPU_ABI_INCOMPATIBLE = -16; // 0xfffffff0
  1510. field public static final int INSTALL_FAILED_DEXOPT = -11; // 0xfffffff5
  1511. field public static final int INSTALL_FAILED_DUPLICATE_PACKAGE = -5; // 0xfffffffb
  1512. field public static final int INSTALL_FAILED_INSUFFICIENT_STORAGE = -4; // 0xfffffffc
  1513. field public static final int INSTALL_FAILED_INTERNAL_ERROR = -110; // 0xffffff92
  1514. field public static final int INSTALL_FAILED_INVALID_APK = -2; // 0xfffffffe
  1515. field public static final int INSTALL_FAILED_INVALID_INSTALL_LOCATION = -19; // 0xffffffed
  1516. field public static final int INSTALL_FAILED_INVALID_URI = -3; // 0xfffffffd
  1517. field public static final int INSTALL_FAILED_MEDIA_UNAVAILABLE = -20; // 0xffffffec
  1518. field public static final int INSTALL_FAILED_MISSING_FEATURE = -17; // 0xffffffef
  1519. field public static final int INSTALL_FAILED_MISSING_SHARED_LIBRARY = -9; // 0xfffffff7
  1520. field public static final int INSTALL_FAILED_NEWER_SDK = -14; // 0xfffffff2
  1521. field public static final int INSTALL_FAILED_NO_SHARED_USER = -6; // 0xfffffffa
  1522. field public static final int INSTALL_FAILED_OLDER_SDK = -12; // 0xfffffff4
  1523. field public static final int INSTALL_FAILED_PACKAGE_CHANGED = -23; // 0xffffffe9
  1524. field public static final int INSTALL_FAILED_PERMISSION_MODEL_DOWNGRADE = -26; // 0xffffffe6
  1525. field public static final int INSTALL_FAILED_REPLACE_COULDNT_DELETE = -10; // 0xfffffff6
  1526. field public static final int INSTALL_FAILED_SANDBOX_VERSION_DOWNGRADE = -27; // 0xffffffe5
  1527. field public static final int INSTALL_FAILED_SHARED_USER_INCOMPATIBLE = -8; // 0xfffffff8
  1528. field public static final int INSTALL_FAILED_TEST_ONLY = -15; // 0xfffffff1
  1529. field public static final int INSTALL_FAILED_UPDATE_INCOMPATIBLE = -7; // 0xfffffff9
  1530. field public static final int INSTALL_FAILED_VERIFICATION_FAILURE = -22; // 0xffffffea
  1531. field public static final int INSTALL_FAILED_VERIFICATION_TIMEOUT = -21; // 0xffffffeb
  1532. field public static final int INSTALL_PARSE_FAILED_BAD_MANIFEST = -101; // 0xffffff9b
  1533. field public static final int INSTALL_PARSE_FAILED_BAD_PACKAGE_NAME = -106; // 0xffffff96
  1534. field public static final int INSTALL_PARSE_FAILED_BAD_SHARED_USER_ID = -107; // 0xffffff95
  1535. field public static final int INSTALL_PARSE_FAILED_CERTIFICATE_ENCODING = -105; // 0xffffff97
  1536. field public static final int INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES = -104; // 0xffffff98
  1537. field public static final int INSTALL_PARSE_FAILED_MANIFEST_EMPTY = -109; // 0xffffff93
  1538. field public static final int INSTALL_PARSE_FAILED_MANIFEST_MALFORMED = -108; // 0xffffff94
  1539. field public static final int INSTALL_PARSE_FAILED_NOT_APK = -100; // 0xffffff9c
  1540. field public static final int INSTALL_PARSE_FAILED_NO_CERTIFICATES = -103; // 0xffffff99
  1541. field public static final int INSTALL_PARSE_FAILED_UNEXPECTED_EXCEPTION = -102; // 0xffffff9a
  1542. field public static final int INSTALL_SUCCEEDED = 1; // 0x1
  1543. field public static final int INTENT_FILTER_DOMAIN_VERIFICATION_STATUS_ALWAYS = 2; // 0x2
  1544. field public static final int INTENT_FILTER_DOMAIN_VERIFICATION_STATUS_ALWAYS_ASK = 4; // 0x4
  1545. field public static final int INTENT_FILTER_DOMAIN_VERIFICATION_STATUS_ASK = 1; // 0x1
  1546. field public static final int INTENT_FILTER_DOMAIN_VERIFICATION_STATUS_NEVER = 3; // 0x3
  1547. field public static final int INTENT_FILTER_DOMAIN_VERIFICATION_STATUS_UNDEFINED = 0; // 0x0
  1548. field public static final int INTENT_FILTER_VERIFICATION_FAILURE = -1; // 0xffffffff
  1549. field public static final int INTENT_FILTER_VERIFICATION_SUCCESS = 1; // 0x1
  1550. field @Deprecated public static final int MASK_PERMISSION_FLAGS = 255; // 0xff
  1551. field public static final int MATCH_ANY_USER = 4194304; // 0x400000
  1552. field public static final int MATCH_FACTORY_ONLY = 2097152; // 0x200000
  1553. field public static final int MATCH_INSTANT = 8388608; // 0x800000
  1554. field public static final int RESTRICTION_HIDE_FROM_SUGGESTIONS = 1; // 0x1
  1555. field public static final int RESTRICTION_HIDE_NOTIFICATIONS = 2; // 0x2
  1556. field public static final int RESTRICTION_NONE = 0; // 0x0
  1557. }
  1558. public abstract static class PackageManager.DexModuleRegisterCallback {
  1559. ctor public PackageManager.DexModuleRegisterCallback();
  1560. method public abstract void onDexModuleRegistered(String, boolean, String);
  1561. }
  1562. public static interface PackageManager.OnPermissionsChangedListener {
  1563. method public void onPermissionsChanged(int);
  1564. }
  1565. @IntDef(prefix={"FLAG_PERMISSION_"}, value={android.content.pm.PackageManager.FLAG_PERMISSION_USER_SET, android.content.pm.PackageManager.FLAG_PERMISSION_USER_FIXED, android.content.pm.PackageManager.FLAG_PERMISSION_POLICY_FIXED, android.content.pm.PackageManager.FLAG_PERMISSION_REVOKE_ON_UPGRADE, android.content.pm.PackageManager.FLAG_PERMISSION_SYSTEM_FIXED, android.content.pm.PackageManager.FLAG_PERMISSION_GRANTED_BY_DEFAULT, android.content.pm.PackageManager.FLAG_PERMISSION_USER_SENSITIVE_WHEN_GRANTED, android.content.pm.PackageManager.FLAG_PERMISSION_USER_SENSITIVE_WHEN_DENIED, android.content.pm.PackageManager.FLAG_PERMISSION_RESTRICTION_UPGRADE_EXEMPT, android.content.pm.PackageManager.FLAG_PERMISSION_RESTRICTION_SYSTEM_EXEMPT, android.content.pm.PackageManager.FLAG_PERMISSION_RESTRICTION_INSTALLER_EXEMPT, android.content.pm.PackageManager.FLAG_PERMISSION_APPLY_RESTRICTION, android.content.pm.PackageManager.FLAG_PERMISSION_GRANTED_BY_ROLE}) @java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.SOURCE) public static @interface PackageManager.PermissionFlags {
  1566. }
  1567. public class PermissionGroupInfo extends android.content.pm.PackageItemInfo implements android.os.Parcelable {
  1568. field @StringRes public final int backgroundRequestDetailResourceId;
  1569. field @StringRes public final int backgroundRequestResourceId;
  1570. field @StringRes public final int requestDetailResourceId;
  1571. field @StringRes public int requestRes;
  1572. }
  1573. public class PermissionInfo extends android.content.pm.PackageItemInfo implements android.os.Parcelable {
  1574. field public static final int FLAG_REMOVED = 2; // 0x2
  1575. field public static final int PROTECTION_FLAG_APP_PREDICTOR = 2097152; // 0x200000
  1576. field public static final int PROTECTION_FLAG_CONFIGURATOR = 524288; // 0x80000
  1577. field public static final int PROTECTION_FLAG_DOCUMENTER = 262144; // 0x40000
  1578. field public static final int PROTECTION_FLAG_INCIDENT_REPORT_APPROVER = 1048576; // 0x100000
  1579. field public static final int PROTECTION_FLAG_OEM = 16384; // 0x4000
  1580. field public static final int PROTECTION_FLAG_SYSTEM_TEXT_CLASSIFIER = 65536; // 0x10000
  1581. field public static final int PROTECTION_FLAG_WELLBEING = 131072; // 0x20000
  1582. field @Nullable public final String backgroundPermission;
  1583. field @StringRes public int requestRes;
  1584. }
  1585. public class ResolveInfo implements android.os.Parcelable {
  1586. field public boolean handleAllWebDataURI;
  1587. }
  1588. public final class ShortcutInfo implements android.os.Parcelable {
  1589. method @Nullable public android.app.Person[] getPersons();
  1590. }
  1591. public class ShortcutManager {
  1592. method @NonNull @RequiresPermission(android.Manifest.permission.MANAGE_APP_PREDICTIONS) public java.util.List<android.content.pm.ShortcutManager.ShareShortcutInfo> getShareTargets(@NonNull android.content.IntentFilter);
  1593. method public boolean hasShareTargets(@NonNull String);
  1594. }
  1595. public static final class ShortcutManager.ShareShortcutInfo implements android.os.Parcelable {
  1596. method public int describeContents();
  1597. method @NonNull public android.content.pm.ShortcutInfo getShortcutInfo();
  1598. method @NonNull public android.content.ComponentName getTargetComponent();
  1599. method public void writeToParcel(@NonNull android.os.Parcel, int);
  1600. field @NonNull public static final android.os.Parcelable.Creator<android.content.pm.ShortcutManager.ShareShortcutInfo> CREATOR;
  1601. }
  1602. public final class SuspendDialogInfo implements android.os.Parcelable {
  1603. method public int describeContents();
  1604. method public void writeToParcel(android.os.Parcel, int);
  1605. field @NonNull public static final android.os.Parcelable.Creator<android.content.pm.SuspendDialogInfo> CREATOR;
  1606. }
  1607. public static final class SuspendDialogInfo.Builder {
  1608. ctor public SuspendDialogInfo.Builder();
  1609. method @NonNull public android.content.pm.SuspendDialogInfo build();
  1610. method @NonNull public android.content.pm.SuspendDialogInfo.Builder setIcon(@DrawableRes int);
  1611. method @NonNull public android.content.pm.SuspendDialogInfo.Builder setMessage(@NonNull String);
  1612. method @NonNull public android.content.pm.SuspendDialogInfo.Builder setMessage(@StringRes int);
  1613. method @NonNull public android.content.pm.SuspendDialogInfo.Builder setNeutralButtonText(@StringRes int);
  1614. method @NonNull public android.content.pm.SuspendDialogInfo.Builder setTitle(@StringRes int);
  1615. }
  1616. }
  1617. package android.content.pm.dex {
  1618. public class ArtManager {
  1619. method @RequiresPermission(allOf={android.Manifest.permission.READ_RUNTIME_PROFILES, android.Manifest.permission.PACKAGE_USAGE_STATS}) public boolean isRuntimeProfilingEnabled(int);
  1620. method @RequiresPermission(allOf={android.Manifest.permission.READ_RUNTIME_PROFILES, android.Manifest.permission.PACKAGE_USAGE_STATS}) public void snapshotRuntimeProfile(int, @Nullable String, @Nullable String, @NonNull java.util.concurrent.Executor, @NonNull android.content.pm.dex.ArtManager.SnapshotRuntimeProfileCallback);
  1621. field public static final int PROFILE_APPS = 0; // 0x0
  1622. field public static final int PROFILE_BOOT_IMAGE = 1; // 0x1
  1623. field public static final int SNAPSHOT_FAILED_CODE_PATH_NOT_FOUND = 1; // 0x1
  1624. field public static final int SNAPSHOT_FAILED_INTERNAL_ERROR = 2; // 0x2
  1625. field public static final int SNAPSHOT_FAILED_PACKAGE_NOT_FOUND = 0; // 0x0
  1626. }
  1627. public abstract static class ArtManager.SnapshotRuntimeProfileCallback {
  1628. ctor public ArtManager.SnapshotRuntimeProfileCallback();
  1629. method public abstract void onError(int);
  1630. method public abstract void onSuccess(android.os.ParcelFileDescriptor);
  1631. }
  1632. }
  1633. package android.content.pm.permission {
  1634. @Deprecated public final class RuntimePermissionPresentationInfo implements android.os.Parcelable {
  1635. ctor @Deprecated public RuntimePermissionPresentationInfo(CharSequence, boolean, boolean);
  1636. method @Deprecated public int describeContents();
  1637. method @Deprecated @NonNull public CharSequence getLabel();
  1638. method @Deprecated public boolean isGranted();
  1639. method @Deprecated public boolean isStandard();
  1640. method @Deprecated public void writeToParcel(android.os.Parcel, int);
  1641. field @Deprecated @NonNull public static final android.os.Parcelable.Creator<android.content.pm.permission.RuntimePermissionPresentationInfo> CREATOR;
  1642. }
  1643. }
  1644. package android.content.rollback {
  1645. public final class PackageRollbackInfo implements android.os.Parcelable {
  1646. method public int describeContents();
  1647. method @NonNull public String getPackageName();
  1648. method @NonNull public android.content.pm.VersionedPackage getVersionRolledBackFrom();
  1649. method @NonNull public android.content.pm.VersionedPackage getVersionRolledBackTo();
  1650. method public void writeToParcel(android.os.Parcel, int);
  1651. field @NonNull public static final android.os.Parcelable.Creator<android.content.rollback.PackageRollbackInfo> CREATOR;
  1652. }
  1653. public final class RollbackInfo implements android.os.Parcelable {
  1654. method public int describeContents();
  1655. method @NonNull public java.util.List<android.content.pm.VersionedPackage> getCausePackages();
  1656. method public int getCommittedSessionId();
  1657. method @NonNull public java.util.List<android.content.rollback.PackageRollbackInfo> getPackages();
  1658. method public int getRollbackId();
  1659. method public boolean isStaged();
  1660. method public void writeToParcel(android.os.Parcel, int);
  1661. field @NonNull public static final android.os.Parcelable.Creator<android.content.rollback.RollbackInfo> CREATOR;
  1662. }
  1663. public final class RollbackManager {
  1664. method @RequiresPermission(anyOf={android.Manifest.permission.MANAGE_ROLLBACKS, "android.permission.TEST_MANAGE_ROLLBACKS"}) public void commitRollback(int, @NonNull java.util.List<android.content.pm.VersionedPackage>, @NonNull android.content.IntentSender);
  1665. method @RequiresPermission(anyOf={android.Manifest.permission.MANAGE_ROLLBACKS, "android.permission.TEST_MANAGE_ROLLBACKS"}) @NonNull public java.util.List<android.content.rollback.RollbackInfo> getAvailableRollbacks();
  1666. method @RequiresPermission(anyOf={android.Manifest.permission.MANAGE_ROLLBACKS, "android.permission.TEST_MANAGE_ROLLBACKS"}) @NonNull public java.util.List<android.content.rollback.RollbackInfo> getRecentlyCommittedRollbacks();
  1667. field public static final String EXTRA_STATUS = "android.content.rollback.extra.STATUS";
  1668. field public static final String EXTRA_STATUS_MESSAGE = "android.content.rollback.extra.STATUS_MESSAGE";
  1669. field public static final int STATUS_FAILURE = 1; // 0x1
  1670. field public static final int STATUS_FAILURE_INSTALL = 3; // 0x3
  1671. field public static final int STATUS_FAILURE_ROLLBACK_UNAVAILABLE = 2; // 0x2
  1672. field public static final int STATUS_SUCCESS = 0; // 0x0
  1673. }
  1674. }
  1675. package android.hardware {
  1676. public final class Sensor {
  1677. method public java.util.UUID getUuid();
  1678. method public boolean isDataInjectionSupported();
  1679. field public static final String STRING_TYPE_DYNAMIC_SENSOR_META = "android.sensor.dynamic_sensor_meta";
  1680. field public static final String STRING_TYPE_WRIST_TILT_GESTURE = "android.sensor.wrist_tilt_gesture";
  1681. field public static final int TYPE_DYNAMIC_SENSOR_META = 32; // 0x20
  1682. field public static final int TYPE_WRIST_TILT_GESTURE = 26; // 0x1a
  1683. }
  1684. public abstract class SensorManager {
  1685. method public boolean initDataInjection(boolean);
  1686. method public boolean injectSensorData(android.hardware.Sensor, float[], int, long);
  1687. }
  1688. }
  1689. package android.hardware.camera2 {
  1690. public abstract class CameraDevice implements java.lang.AutoCloseable {
  1691. method public abstract void createCustomCaptureSession(android.hardware.camera2.params.InputConfiguration, @NonNull java.util.List<android.hardware.camera2.params.OutputConfiguration>, int, @NonNull android.hardware.camera2.CameraCaptureSession.StateCallback, @Nullable android.os.Handler) throws android.hardware.camera2.CameraAccessException;
  1692. field public static final int SESSION_OPERATION_MODE_CONSTRAINED_HIGH_SPEED = 1; // 0x1
  1693. field public static final int SESSION_OPERATION_MODE_NORMAL = 0; // 0x0
  1694. field public static final int SESSION_OPERATION_MODE_VENDOR_START = 32768; // 0x8000
  1695. }
  1696. }
  1697. package android.hardware.camera2.params {
  1698. public final class OutputConfiguration implements android.os.Parcelable {
  1699. ctor public OutputConfiguration(@NonNull android.view.Surface, int);
  1700. ctor public OutputConfiguration(int, @NonNull android.view.Surface, int);
  1701. method public int getRotation();
  1702. field public static final int ROTATION_0 = 0; // 0x0
  1703. field public static final int ROTATION_180 = 2; // 0x2
  1704. field public static final int ROTATION_270 = 3; // 0x3
  1705. field public static final int ROTATION_90 = 1; // 0x1
  1706. }
  1707. }
  1708. package android.hardware.display {
  1709. public final class AmbientBrightnessDayStats implements android.os.Parcelable {
  1710. method public int describeContents();
  1711. method public float[] getBucketBoundaries();
  1712. method public java.time.LocalDate getLocalDate();
  1713. method public float[] getStats();
  1714. method public void writeToParcel(android.os.Parcel, int);
  1715. field @NonNull public static final android.os.Parcelable.Creator<android.hardware.display.AmbientBrightnessDayStats> CREATOR;
  1716. }
  1717. public final class BrightnessChangeEvent implements android.os.Parcelable {
  1718. method public int describeContents();
  1719. method public void writeToParcel(android.os.Parcel, int);
  1720. field @NonNull public static final android.os.Parcelable.Creator<android.hardware.display.BrightnessChangeEvent> CREATOR;
  1721. field public final float batteryLevel;
  1722. field public final float brightness;
  1723. field public final long colorSampleDuration;
  1724. field public final int colorTemperature;
  1725. field @Nullable public final long[] colorValueBuckets;
  1726. field public final boolean isDefaultBrightnessConfig;
  1727. field public final boolean isUserSetBrightness;
  1728. field public final float lastBrightness;
  1729. field public final long[] luxTimestamps;
  1730. field public final float[] luxValues;
  1731. field public final boolean nightMode;
  1732. field public final String packageName;
  1733. field public final float powerBrightnessFactor;
  1734. field public final long timeStamp;
  1735. }
  1736. public final class BrightnessConfiguration implements android.os.Parcelable {
  1737. method public int describeContents();
  1738. method @Nullable public android.hardware.display.BrightnessCorrection getCorrectionByCategory(int);
  1739. method @Nullable public android.hardware.display.BrightnessCorrection getCorrectionByPackageName(@NonNull String);
  1740. method public android.util.Pair<float[],float[]> getCurve();
  1741. method public void writeToParcel(android.os.Parcel, int);
  1742. field @NonNull public static final android.os.Parcelable.Creator<android.hardware.display.BrightnessConfiguration> CREATOR;
  1743. }
  1744. public static class BrightnessConfiguration.Builder {
  1745. ctor public BrightnessConfiguration.Builder(float[], float[]);
  1746. method @NonNull public android.hardware.display.BrightnessConfiguration.Builder addCorrectionByCategory(int, @NonNull android.hardware.display.BrightnessCorrection);
  1747. method @NonNull public android.hardware.display.BrightnessConfiguration.Builder addCorrectionByPackageName(@NonNull String, @NonNull android.hardware.display.BrightnessCorrection);
  1748. method @NonNull public android.hardware.display.BrightnessConfiguration build();
  1749. method public int getMaxCorrectionsByCategory();
  1750. method public int getMaxCorrectionsByPackageName();
  1751. method @NonNull public android.hardware.display.BrightnessConfiguration.Builder setDescription(@Nullable String);
  1752. }
  1753. public final class BrightnessCorrection implements android.os.Parcelable {
  1754. method @FloatRange(from=0.0) public float apply(@FloatRange(from=0.0) float);
  1755. method @NonNull public static android.hardware.display.BrightnessCorrection createScaleAndTranslateLog(float, float);
  1756. method public int describeContents();
  1757. method public void writeToParcel(android.os.Parcel, int);
  1758. field @NonNull public static final android.os.Parcelable.Creator<android.hardware.display.BrightnessCorrection> CREATOR;
  1759. }
  1760. public final class ColorDisplayManager {
  1761. method @RequiresPermission(android.Manifest.permission.CONTROL_DISPLAY_COLOR_TRANSFORMS) public int getNightDisplayAutoMode();
  1762. method @RequiresPermission(android.Manifest.permission.CONTROL_DISPLAY_COLOR_TRANSFORMS) public int getTransformCapabilities();
  1763. method @RequiresPermission(android.Manifest.permission.CONTROL_DISPLAY_COLOR_TRANSFORMS) public boolean setAppSaturationLevel(@NonNull String, @IntRange(from=0, to=100) int);
  1764. method @RequiresPermission(android.Manifest.permission.CONTROL_DISPLAY_COLOR_TRANSFORMS) public boolean setNightDisplayAutoMode(int);
  1765. method @RequiresPermission(android.Manifest.permission.CONTROL_DISPLAY_COLOR_TRANSFORMS) public boolean setNightDisplayCustomEndTime(@NonNull java.time.LocalTime);
  1766. method @RequiresPermission(android.Manifest.permission.CONTROL_DISPLAY_COLOR_TRANSFORMS) public boolean setNightDisplayCustomStartTime(@NonNull java.time.LocalTime);
  1767. method @RequiresPermission(android.Manifest.permission.CONTROL_DISPLAY_COLOR_TRANSFORMS) public boolean setSaturationLevel(@IntRange(from=0, to=100) int);
  1768. field public static final int AUTO_MODE_CUSTOM_TIME = 1; // 0x1
  1769. field public static final int AUTO_MODE_DISABLED = 0; // 0x0
  1770. field public static final int AUTO_MODE_TWILIGHT = 2; // 0x2
  1771. field public static final int CAPABILITY_HARDWARE_ACCELERATION_GLOBAL = 2; // 0x2
  1772. field public static final int CAPABILITY_HARDWARE_ACCELERATION_PER_APP = 4; // 0x4
  1773. field public static final int CAPABILITY_NONE = 0; // 0x0
  1774. field public static final int CAPABILITY_PROTECTED_CONTENT = 1; // 0x1
  1775. }
  1776. public final class DisplayManager {
  1777. method @RequiresPermission(android.Manifest.permission.ACCESS_AMBIENT_LIGHT_STATS) public java.util.List<android.hardware.display.AmbientBrightnessDayStats> getAmbientBrightnessStats();
  1778. method @RequiresPermission(android.Manifest.permission.CONFIGURE_DISPLAY_BRIGHTNESS) public android.hardware.display.BrightnessConfiguration getBrightnessConfiguration();
  1779. method @RequiresPermission(android.Manifest.permission.BRIGHTNESS_SLIDER_USAGE) public java.util.List<android.hardware.display.BrightnessChangeEvent> getBrightnessEvents();
  1780. method @Nullable @RequiresPermission(android.Manifest.permission.CONFIGURE_DISPLAY_BRIGHTNESS) public android.hardware.display.BrightnessConfiguration getDefaultBrightnessConfiguration();
  1781. method public android.util.Pair<float[],float[]> getMinimumBrightnessCurve();
  1782. method public android.graphics.Point getStableDisplaySize();
  1783. method @RequiresPermission(android.Manifest.permission.CONFIGURE_DISPLAY_BRIGHTNESS) public void setBrightnessConfiguration(android.hardware.display.BrightnessConfiguration);
  1784. method @Deprecated @RequiresPermission(android.Manifest.permission.CONTROL_DISPLAY_SATURATION) public void setSaturationLevel(float);
  1785. }
  1786. }
  1787. package android.hardware.hdmi {
  1788. public abstract class HdmiClient {
  1789. method public android.hardware.hdmi.HdmiDeviceInfo getActiveSource();
  1790. method public void sendKeyEvent(int, boolean);
  1791. method public void sendVendorCommand(int, byte[], boolean);
  1792. method public void setVendorCommandListener(@NonNull android.hardware.hdmi.HdmiControlManager.VendorCommandListener);
  1793. }
  1794. public final class HdmiControlManager {
  1795. method @RequiresPermission(android.Manifest.permission.HDMI_CEC) public void addHotplugEventListener(android.hardware.hdmi.HdmiControlManager.HotplugEventListener);
  1796. method @Nullable public android.hardware.hdmi.HdmiClient getClient(int);
  1797. method @NonNull public java.util.List<android.hardware.hdmi.HdmiDeviceInfo> getConnectedDevices();
  1798. method public int getPhysicalAddress();
  1799. method @Nullable public android.hardware.hdmi.HdmiPlaybackClient getPlaybackClient();
  1800. method @Nullable public android.hardware.hdmi.HdmiSwitchClient getSwitchClient();
  1801. method @Nullable public android.hardware.hdmi.HdmiTvClient getTvClient();
  1802. method public boolean isDeviceConnected(@NonNull android.hardware.hdmi.HdmiDeviceInfo);
  1803. method public void powerOffDevice(@NonNull android.hardware.hdmi.HdmiDeviceInfo);
  1804. method @RequiresPermission(android.Manifest.permission.HDMI_CEC) public void removeHotplugEventListener(android.hardware.hdmi.HdmiControlManager.HotplugEventListener);
  1805. method public void setActiveSource(@NonNull android.hardware.hdmi.HdmiDeviceInfo);
  1806. method @RequiresPermission(android.Manifest.permission.HDMI_CEC) public void setStandbyMode(boolean);
  1807. field public static final String ACTION_OSD_MESSAGE = "android.hardware.hdmi.action.OSD_MESSAGE";
  1808. field public static final int AVR_VOLUME_MUTED = 101; // 0x65
  1809. field public static final int CLEAR_TIMER_STATUS_CEC_DISABLE = 162; // 0xa2
  1810. field public static final int CLEAR_TIMER_STATUS_CHECK_RECORDER_CONNECTION = 160; // 0xa0
  1811. field public static final int CLEAR_TIMER_STATUS_FAIL_TO_CLEAR_SELECTED_SOURCE = 161; // 0xa1
  1812. field public static final int CLEAR_TIMER_STATUS_TIMER_CLEARED = 128; // 0x80
  1813. field public static final int CLEAR_TIMER_STATUS_TIMER_NOT_CLEARED_NO_INFO_AVAILABLE = 2; // 0x2
  1814. field public static final int CLEAR_TIMER_STATUS_TIMER_NOT_CLEARED_NO_MATCHING = 1; // 0x1
  1815. field public static final int CLEAR_TIMER_STATUS_TIMER_NOT_CLEARED_RECORDING = 0; // 0x0
  1816. field public static final int CONTROL_STATE_CHANGED_REASON_SETTING = 1; // 0x1
  1817. field public static final int CONTROL_STATE_CHANGED_REASON_STANDBY = 3; // 0x3
  1818. field public static final int CONTROL_STATE_CHANGED_REASON_START = 0; // 0x0
  1819. field public static final int CONTROL_STATE_CHANGED_REASON_WAKEUP = 2; // 0x2
  1820. field public static final int DEVICE_EVENT_ADD_DEVICE = 1; // 0x1
  1821. field public static final int DEVICE_EVENT_REMOVE_DEVICE = 2; // 0x2
  1822. field public static final int DEVICE_EVENT_UPDATE_DEVICE = 3; // 0x3
  1823. field public static final String EXTRA_MESSAGE_EXTRA_PARAM1 = "android.hardware.hdmi.extra.MESSAGE_EXTRA_PARAM1";
  1824. field public static final String EXTRA_MESSAGE_ID = "android.hardware.hdmi.extra.MESSAGE_ID";
  1825. field public static final int ONE_TOUCH_RECORD_ALREADY_RECORDING = 18; // 0x12
  1826. field public static final int ONE_TOUCH_RECORD_CEC_DISABLED = 51; // 0x33
  1827. field public static final int ONE_TOUCH_RECORD_CHECK_RECORDER_CONNECTION = 49; // 0x31
  1828. field public static final int ONE_TOUCH_RECORD_DISALLOW_TO_COPY = 13; // 0xd
  1829. field public static final int ONE_TOUCH_RECORD_DISALLOW_TO_FUTHER_COPIES = 14; // 0xe
  1830. field public static final int ONE_TOUCH_RECORD_FAIL_TO_RECORD_DISPLAYED_SCREEN = 50; // 0x32
  1831. field public static final int ONE_TOUCH_RECORD_INVALID_EXTERNAL_PHYSICAL_ADDRESS = 10; // 0xa
  1832. field public static final int ONE_TOUCH_RECORD_INVALID_EXTERNAL_PLUG_NUMBER = 9; // 0x9
  1833. field public static final int ONE_TOUCH_RECORD_MEDIA_PROBLEM = 21; // 0x15
  1834. field public static final int ONE_TOUCH_RECORD_MEDIA_PROTECTED = 19; // 0x13
  1835. field public static final int ONE_TOUCH_RECORD_NOT_ENOUGH_SPACE = 22; // 0x16
  1836. field public static final int ONE_TOUCH_RECORD_NO_MEDIA = 16; // 0x10
  1837. field public static final int ONE_TOUCH_RECORD_NO_OR_INSUFFICIENT_CA_ENTITLEMENTS = 12; // 0xc
  1838. field public static final int ONE_TOUCH_RECORD_NO_SOURCE_SIGNAL = 20; // 0x14
  1839. field public static final int ONE_TOUCH_RECORD_OTHER_REASON = 31; // 0x1f
  1840. field public static final int ONE_TOUCH_RECORD_PARENT_LOCK_ON = 23; // 0x17
  1841. field public static final int ONE_TOUCH_RECORD_PLAYING = 17; // 0x11
  1842. field public static final int ONE_TOUCH_RECORD_PREVIOUS_RECORDING_IN_PROGRESS = 48; // 0x30
  1843. field public static final int ONE_TOUCH_RECORD_RECORDING_ALREADY_TERMINATED = 27; // 0x1b
  1844. field public static final int ONE_TOUCH_RECORD_RECORDING_ANALOGUE_SERVICE = 3; // 0x3
  1845. field public static final int ONE_TOUCH_RECORD_RECORDING_CURRENTLY_SELECTED_SOURCE = 1; // 0x1
  1846. field public static final int ONE_TOUCH_RECORD_RECORDING_DIGITAL_SERVICE = 2; // 0x2
  1847. field public static final int ONE_TOUCH_RECORD_RECORDING_EXTERNAL_INPUT = 4; // 0x4
  1848. field public static final int ONE_TOUCH_RECORD_RECORDING_TERMINATED_NORMALLY = 26; // 0x1a
  1849. field public static final int ONE_TOUCH_RECORD_UNABLE_ANALOGUE_SERVICE = 6; // 0x6
  1850. field public static final int ONE_TOUCH_RECORD_UNABLE_DIGITAL_SERVICE = 5; // 0x5
  1851. field public static final int ONE_TOUCH_RECORD_UNABLE_SELECTED_SERVICE = 7; // 0x7
  1852. field public static final int ONE_TOUCH_RECORD_UNSUPPORTED_CA = 11; // 0xb
  1853. field public static final int OSD_MESSAGE_ARC_CONNECTED_INVALID_PORT = 1; // 0x1
  1854. field public static final int OSD_MESSAGE_AVR_VOLUME_CHANGED = 2; // 0x2
  1855. field public static final int POWER_STATUS_ON = 0; // 0x0
  1856. field public static final int POWER_STATUS_STANDBY = 1; // 0x1
  1857. field public static final int POWER_STATUS_TRANSIENT_TO_ON = 2; // 0x2
  1858. field public static final int POWER_STATUS_TRANSIENT_TO_STANDBY = 3; // 0x3
  1859. field public static final int POWER_STATUS_UNKNOWN = -1; // 0xffffffff
  1860. field @Deprecated public static final int RESULT_ALREADY_IN_PROGRESS = 4; // 0x4
  1861. field public static final int RESULT_COMMUNICATION_FAILED = 7; // 0x7
  1862. field public static final int RESULT_EXCEPTION = 5; // 0x5
  1863. field public static final int RESULT_INCORRECT_MODE = 6; // 0x6
  1864. field public static final int RESULT_SOURCE_NOT_AVAILABLE = 2; // 0x2
  1865. field public static final int RESULT_SUCCESS = 0; // 0x0
  1866. field public static final int RESULT_TARGET_NOT_AVAILABLE = 3; // 0x3
  1867. field public static final int RESULT_TIMEOUT = 1; // 0x1
  1868. field public static final int TIMER_RECORDING_RESULT_EXTRA_CEC_DISABLED = 3; // 0x3
  1869. field public static final int TIMER_RECORDING_RESULT_EXTRA_CHECK_RECORDER_CONNECTION = 1; // 0x1
  1870. field public static final int TIMER_RECORDING_RESULT_EXTRA_FAIL_TO_RECORD_SELECTED_SOURCE = 2; // 0x2
  1871. field public static final int TIMER_RECORDING_RESULT_EXTRA_NO_ERROR = 0; // 0x0
  1872. field public static final int TIMER_RECORDING_TYPE_ANALOGUE = 2; // 0x2
  1873. field public static final int TIMER_RECORDING_TYPE_DIGITAL = 1; // 0x1
  1874. field public static final int TIMER_RECORDING_TYPE_EXTERNAL = 3; // 0x3
  1875. field public static final int TIMER_STATUS_MEDIA_INFO_NOT_PRESENT = 2; // 0x2
  1876. field public static final int TIMER_STATUS_MEDIA_INFO_PRESENT_NOT_PROTECTED = 0; // 0x0
  1877. field public static final int TIMER_STATUS_MEDIA_INFO_PRESENT_PROTECTED = 1; // 0x1
  1878. field public static final int TIMER_STATUS_NOT_PROGRAMMED_CA_NOT_SUPPORTED = 6; // 0x6
  1879. field public static final int TIMER_STATUS_NOT_PROGRAMMED_CLOCK_FAILURE = 10; // 0xa
  1880. field public static final int TIMER_STATUS_NOT_PROGRAMMED_DATE_OUT_OF_RANGE = 2; // 0x2
  1881. field public static final int TIMER_STATUS_NOT_PROGRAMMED_DUPLICATED = 14; // 0xe
  1882. field public static final int TIMER_STATUS_NOT_PROGRAMMED_INVALID_EXTERNAL_PHYSICAL_NUMBER = 5; // 0x5
  1883. field public static final int TIMER_STATUS_NOT_PROGRAMMED_INVALID_EXTERNAL_PLUG_NUMBER = 4; // 0x4
  1884. field public static final int TIMER_STATUS_NOT_PROGRAMMED_INVALID_SEQUENCE = 3; // 0x3
  1885. field public static final int TIMER_STATUS_NOT_PROGRAMMED_NO_CA_ENTITLEMENTS = 7; // 0x7
  1886. field public static final int TIMER_STATUS_NOT_PROGRAMMED_NO_FREE_TIME = 1; // 0x1
  1887. field public static final int TIMER_STATUS_NOT_PROGRAMMED_PARENTAL_LOCK_ON = 9; // 0x9
  1888. field public static final int TIMER_STATUS_NOT_PROGRAMMED_UNSUPPORTED_RESOLUTION = 8; // 0x8
  1889. field public static final int TIMER_STATUS_PROGRAMMED_INFO_ENOUGH_SPACE = 8; // 0x8
  1890. field public static final int TIMER_STATUS_PROGRAMMED_INFO_MIGHT_NOT_ENOUGH_SPACE = 11; // 0xb
  1891. field public static final int TIMER_STATUS_PROGRAMMED_INFO_NOT_ENOUGH_SPACE = 9; // 0x9
  1892. field public static final int TIMER_STATUS_PROGRAMMED_INFO_NO_MEDIA_INFO = 10; // 0xa
  1893. }
  1894. @IntDef({android.hardware.hdmi.HdmiControlManager.RESULT_SUCCESS, android.hardware.hdmi.HdmiControlManager.RESULT_TIMEOUT, android.hardware.hdmi.HdmiControlManager.RESULT_SOURCE_NOT_AVAILABLE, android.hardware.hdmi.HdmiControlManager.RESULT_TARGET_NOT_AVAILABLE, android.hardware.hdmi.HdmiControlManager.RESULT_ALREADY_IN_PROGRESS, android.hardware.hdmi.HdmiControlManager.RESULT_EXCEPTION, android.hardware.hdmi.HdmiControlManager.RESULT_INCORRECT_MODE, android.hardware.hdmi.HdmiControlManager.RESULT_COMMUNICATION_FAILED}) @java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.CLASS) public static @interface HdmiControlManager.ControlCallbackResult {
  1895. }
  1896. public static interface HdmiControlManager.HotplugEventListener {
  1897. method public void onReceived(android.hardware.hdmi.HdmiHotplugEvent);
  1898. }
  1899. public static interface HdmiControlManager.VendorCommandListener {
  1900. method public void onControlStateChanged(boolean, int);
  1901. method public void onReceived(int, int, byte[], boolean);
  1902. }
  1903. public class HdmiDeviceInfo implements android.os.Parcelable {
  1904. ctor public HdmiDeviceInfo();
  1905. method public int describeContents();
  1906. method public int getAdopterId();
  1907. method public int getDeviceId();
  1908. method public int getDevicePowerStatus();
  1909. method public int getDeviceType();
  1910. method public String getDisplayName();
  1911. method public int getId();
  1912. method public int getLogicalAddress();
  1913. method public int getPhysicalAddress();
  1914. method public int getPortId();
  1915. method public int getVendorId();
  1916. method public static int idForCecDevice(int);
  1917. method public static int idForHardware(int);
  1918. method public static int idForMhlDevice(int);
  1919. method public boolean isCecDevice();
  1920. method public boolean isInactivated();
  1921. method public boolean isMhlDevice();
  1922. method public boolean isSourceType();
  1923. method public void writeToParcel(android.os.Parcel, int);
  1924. field public static final int ADDR_INTERNAL = 0; // 0x0
  1925. field @NonNull public static final android.os.Parcelable.Creator<android.hardware.hdmi.HdmiDeviceInfo> CREATOR;
  1926. field public static final int DEVICE_AUDIO_SYSTEM = 5; // 0x5
  1927. field public static final int DEVICE_INACTIVE = -1; // 0xffffffff
  1928. field public static final int DEVICE_PLAYBACK = 4; // 0x4
  1929. field public static final int DEVICE_RECORDER = 1; // 0x1
  1930. field public static final int DEVICE_RESERVED = 2; // 0x2
  1931. field public static final int DEVICE_TUNER = 3; // 0x3
  1932. field public static final int DEVICE_TV = 0; // 0x0
  1933. field public static final int ID_INVALID = 65535; // 0xffff
  1934. field public static final android.hardware.hdmi.HdmiDeviceInfo INACTIVE_DEVICE;
  1935. field public static final int PATH_INTERNAL = 0; // 0x0
  1936. field public static final int PATH_INVALID = 65535; // 0xffff
  1937. field public static final int PORT_INVALID = -1; // 0xffffffff
  1938. }
  1939. public final class HdmiHotplugEvent implements android.os.Parcelable {
  1940. method public int describeContents();
  1941. method public int getPort();
  1942. method public boolean isConnected();
  1943. method public void writeToParcel(android.os.Parcel, int);
  1944. field @NonNull public static final android.os.Parcelable.Creator<android.hardware.hdmi.HdmiHotplugEvent> CREATOR;
  1945. }
  1946. public final class HdmiPlaybackClient extends android.hardware.hdmi.HdmiClient {
  1947. method public int getDeviceType();
  1948. method public void oneTouchPlay(android.hardware.hdmi.HdmiPlaybackClient.OneTouchPlayCallback);
  1949. method public void queryDisplayStatus(android.hardware.hdmi.HdmiPlaybackClient.DisplayStatusCallback);
  1950. method public void sendStandby();
  1951. }
  1952. public static interface HdmiPlaybackClient.DisplayStatusCallback {
  1953. method public void onComplete(int);
  1954. }
  1955. public static interface HdmiPlaybackClient.OneTouchPlayCallback {
  1956. method public void onComplete(int);
  1957. }
  1958. public final class HdmiPortInfo implements android.os.Parcelable {
  1959. ctor public HdmiPortInfo(int, int, int, boolean, boolean, boolean);
  1960. method public int describeContents();
  1961. method public int getAddress();
  1962. method public int getId();
  1963. method public int getType();
  1964. method public boolean isArcSupported();
  1965. method public boolean isCecSupported();
  1966. method public boolean isMhlSupported();
  1967. method public void writeToParcel(android.os.Parcel, int);
  1968. field @NonNull public static final android.os.Parcelable.Creator<android.hardware.hdmi.HdmiPortInfo> CREATOR;
  1969. field public static final int PORT_INPUT = 0; // 0x0
  1970. field public static final int PORT_OUTPUT = 1; // 0x1
  1971. }
  1972. public abstract class HdmiRecordListener {
  1973. ctor public HdmiRecordListener();
  1974. method public void onClearTimerRecordingResult(int, int);
  1975. method public void onOneTouchRecordResult(int, int);
  1976. method public abstract android.hardware.hdmi.HdmiRecordSources.RecordSource onOneTouchRecordSourceRequested(int);
  1977. method public void onTimerRecordingResult(int, android.hardware.hdmi.HdmiRecordListener.TimerStatusData);
  1978. }
  1979. public static class HdmiRecordListener.TimerStatusData {
  1980. method public int getDurationHour();
  1981. method public int getDurationMinute();
  1982. method public int getExtraError();
  1983. method public int getMediaInfo();
  1984. method public int getNotProgammedError();
  1985. method public int getProgrammedInfo();
  1986. method public boolean isOverlapped();
  1987. method public boolean isProgrammed();
  1988. }
  1989. public final class HdmiRecordSources {
  1990. method public static boolean checkRecordSource(byte[]);
  1991. method public static android.hardware.hdmi.HdmiRecordSources.OwnSource ofOwnSource();
  1992. }
  1993. public static final class HdmiRecordSources.AnalogueServiceSource extends android.hardware.hdmi.HdmiRecordSources.RecordSource {
  1994. }
  1995. public static final class HdmiRecordSources.DigitalServiceSource extends android.hardware.hdmi.HdmiRecordSources.RecordSource {
  1996. }
  1997. public static final class HdmiRecordSources.ExternalPhysicalAddress extends android.hardware.hdmi.HdmiRecordSources.RecordSource {
  1998. }
  1999. public static final class HdmiRecordSources.ExternalPlugData extends android.hardware.hdmi.HdmiRecordSources.RecordSource {
  2000. }
  2001. public static final class HdmiRecordSources.OwnSource extends android.hardware.hdmi.HdmiRecordSources.RecordSource {
  2002. }
  2003. public abstract static class HdmiRecordSources.RecordSource {
  2004. }
  2005. public class HdmiSwitchClient extends android.hardware.hdmi.HdmiClient {
  2006. method public int getDeviceType();
  2007. method public void selectPort(int, @NonNull android.hardware.hdmi.HdmiSwitchClient.OnSelectListener);
  2008. method public void selectPort(int, @NonNull java.util.concurrent.Executor, @NonNull android.hardware.hdmi.HdmiSwitchClient.OnSelectListener);
  2009. }
  2010. public static interface HdmiSwitchClient.OnSelectListener {
  2011. method public void onSelect(@android.hardware.hdmi.HdmiControlManager.ControlCallbackResult int);
  2012. }
  2013. public class HdmiTimerRecordSources {
  2014. method public static boolean checkTimerRecordSource(int, byte[]);
  2015. method public static android.hardware.hdmi.HdmiTimerRecordSources.Duration durationOf(int, int);
  2016. method public static android.hardware.hdmi.HdmiTimerRecordSources.TimerRecordSource ofAnalogueSource(android.hardware.hdmi.HdmiTimerRecordSources.TimerInfo, android.hardware.hdmi.HdmiRecordSources.AnalogueServiceSource);
  2017. method public static android.hardware.hdmi.HdmiTimerRecordSources.TimerRecordSource ofDigitalSource(android.hardware.hdmi.HdmiTimerRecordSources.TimerInfo, android.hardware.hdmi.HdmiRecordSources.DigitalServiceSource);
  2018. method public static android.hardware.hdmi.HdmiTimerRecordSources.TimerRecordSource ofExternalPhysicalAddress(android.hardware.hdmi.HdmiTimerRecordSources.TimerInfo, android.hardware.hdmi.HdmiRecordSources.ExternalPhysicalAddress);
  2019. method public static android.hardware.hdmi.HdmiTimerRecordSources.TimerRecordSource ofExternalPlug(android.hardware.hdmi.HdmiTimerRecordSources.TimerInfo, android.hardware.hdmi.HdmiRecordSources.ExternalPlugData);
  2020. method public static android.hardware.hdmi.HdmiTimerRecordSources.Time timeOf(int, int);
  2021. method public static android.hardware.hdmi.HdmiTimerRecordSources.TimerInfo timerInfoOf(int, int, android.hardware.hdmi.HdmiTimerRecordSources.Time, android.hardware.hdmi.HdmiTimerRecordSources.Duration, int);
  2022. field public static final int RECORDING_SEQUENCE_REPEAT_FRIDAY = 32; // 0x20
  2023. field public static final int RECORDING_SEQUENCE_REPEAT_MONDAY = 2; // 0x2
  2024. field public static final int RECORDING_SEQUENCE_REPEAT_ONCE_ONLY = 0; // 0x0
  2025. field public static final int RECORDING_SEQUENCE_REPEAT_SATUREDAY = 64; // 0x40
  2026. field public static final int RECORDING_SEQUENCE_REPEAT_SUNDAY = 1; // 0x1
  2027. field public static final int RECORDING_SEQUENCE_REPEAT_THURSDAY = 16; // 0x10
  2028. field public static final int RECORDING_SEQUENCE_REPEAT_TUESDAY = 4; // 0x4
  2029. field public static final int RECORDING_SEQUENCE_REPEAT_WEDNESDAY = 8; // 0x8
  2030. }
  2031. public static final class HdmiTimerRecordSources.Duration {
  2032. }
  2033. public static final class HdmiTimerRecordSources.Time {
  2034. }
  2035. public static final class HdmiTimerRecordSources.TimerInfo {
  2036. }
  2037. public static final class HdmiTimerRecordSources.TimerRecordSource {
  2038. }
  2039. public final class HdmiTvClient extends android.hardware.hdmi.HdmiClient {
  2040. method public void clearTimerRecording(int, int, android.hardware.hdmi.HdmiTimerRecordSources.TimerRecordSource);
  2041. method public void deviceSelect(int, @NonNull android.hardware.hdmi.HdmiTvClient.SelectCallback);
  2042. method public java.util.List<android.hardware.hdmi.HdmiDeviceInfo> getDeviceList();
  2043. method public int getDeviceType();
  2044. method public void portSelect(int, @NonNull android.hardware.hdmi.HdmiTvClient.SelectCallback);
  2045. method public void sendMhlVendorCommand(int, int, int, byte[]);
  2046. method public void sendStandby(int);
  2047. method public void setHdmiMhlVendorCommandListener(android.hardware.hdmi.HdmiTvClient.HdmiMhlVendorCommandListener);
  2048. method public void setInputChangeListener(android.hardware.hdmi.HdmiTvClient.InputChangeListener);
  2049. method public void setRecordListener(@NonNull android.hardware.hdmi.HdmiRecordListener);
  2050. method public void setSystemAudioMode(boolean, android.hardware.hdmi.HdmiTvClient.SelectCallback);
  2051. method public void setSystemAudioMute(boolean);
  2052. method public void setSystemAudioVolume(int, int, int);
  2053. method public void startOneTouchRecord(int, @NonNull android.hardware.hdmi.HdmiRecordSources.RecordSource);
  2054. method public void startTimerRecording(int, int, android.hardware.hdmi.HdmiTimerRecordSources.TimerRecordSource);
  2055. method public void stopOneTouchRecord(int);
  2056. field public static final int VENDOR_DATA_SIZE = 16; // 0x10
  2057. }
  2058. public static interface HdmiTvClient.HdmiMhlVendorCommandListener {
  2059. method public void onReceived(int, int, int, byte[]);
  2060. }
  2061. public static interface HdmiTvClient.InputChangeListener {
  2062. method public void onChanged(android.hardware.hdmi.HdmiDeviceInfo);
  2063. }
  2064. public static interface HdmiTvClient.SelectCallback {
  2065. method public void onComplete(int);
  2066. }
  2067. }
  2068. package android.hardware.location {
  2069. public class ContextHubClient implements java.io.Closeable {
  2070. method public void close();
  2071. method @NonNull public android.hardware.location.ContextHubInfo getAttachedHub();
  2072. method @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public int sendMessageToNanoApp(@NonNull android.hardware.location.NanoAppMessage);
  2073. }
  2074. public class ContextHubClientCallback {
  2075. ctor public ContextHubClientCallback();
  2076. method public void onHubReset(android.hardware.location.ContextHubClient);
  2077. method public void onMessageFromNanoApp(android.hardware.location.ContextHubClient, android.hardware.location.NanoAppMessage);
  2078. method public void onNanoAppAborted(android.hardware.location.ContextHubClient, long, int);
  2079. method public void onNanoAppDisabled(android.hardware.location.ContextHubClient, long);
  2080. method public void onNanoAppEnabled(android.hardware.location.ContextHubClient, long);
  2081. method public void onNanoAppLoaded(android.hardware.location.ContextHubClient, long);
  2082. method public void onNanoAppUnloaded(android.hardware.location.ContextHubClient, long);
  2083. }
  2084. public class ContextHubInfo implements android.os.Parcelable {
  2085. ctor public ContextHubInfo();
  2086. method public int describeContents();
  2087. method public byte getChreApiMajorVersion();
  2088. method public byte getChreApiMinorVersion();
  2089. method public short getChrePatchVersion();
  2090. method public long getChrePlatformId();
  2091. method public int getId();
  2092. method public int getMaxPacketLengthBytes();
  2093. method public android.hardware.location.MemoryRegion[] getMemoryRegions();
  2094. method public String getName();
  2095. method public float getPeakMips();
  2096. method public float getPeakPowerDrawMw();
  2097. method public int getPlatformVersion();
  2098. method public float getSleepPowerDrawMw();
  2099. method public int getStaticSwVersion();
  2100. method public float getStoppedPowerDrawMw();
  2101. method public int[] getSupportedSensors();
  2102. method public String getToolchain();
  2103. method public int getToolchainVersion();
  2104. method public String getVendor();
  2105. method public void writeToParcel(android.os.Parcel, int);
  2106. field @NonNull public static final android.os.Parcelable.Creator<android.hardware.location.ContextHubInfo> CREATOR;
  2107. }
  2108. public class ContextHubIntentEvent {
  2109. method @NonNull public static android.hardware.location.ContextHubIntentEvent fromIntent(@NonNull android.content.Intent);
  2110. method @NonNull public android.hardware.location.ContextHubInfo getContextHubInfo();
  2111. method public int getEventType();
  2112. method public int getNanoAppAbortCode();
  2113. method public long getNanoAppId();
  2114. method @NonNull public android.hardware.location.NanoAppMessage getNanoAppMessage();
  2115. }
  2116. public final class ContextHubManager {
  2117. method @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) @NonNull public android.hardware.location.ContextHubClient createClient(@NonNull android.hardware.location.ContextHubInfo, @NonNull android.hardware.location.ContextHubClientCallback, @NonNull java.util.concurrent.Executor);
  2118. method @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) @NonNull public android.hardware.location.ContextHubClient createClient(@NonNull android.hardware.location.ContextHubInfo, @NonNull android.hardware.location.ContextHubClientCallback);
  2119. method @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) @NonNull public android.hardware.location.ContextHubClient createClient(@NonNull android.hardware.location.ContextHubInfo, @NonNull android.app.PendingIntent, long);
  2120. method @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) @NonNull public android.hardware.location.ContextHubTransaction<java.lang.Void> disableNanoApp(@NonNull android.hardware.location.ContextHubInfo, long);
  2121. method @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) @NonNull public android.hardware.location.ContextHubTransaction<java.lang.Void> enableNanoApp(@NonNull android.hardware.location.ContextHubInfo, long);
  2122. method @Deprecated @NonNull @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public int[] findNanoAppOnHub(int, @NonNull android.hardware.location.NanoAppFilter);
  2123. method @Deprecated @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public int[] getContextHubHandles();
  2124. method @Deprecated @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public android.hardware.location.ContextHubInfo getContextHubInfo(int);
  2125. method @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) @NonNull public java.util.List<android.hardware.location.ContextHubInfo> getContextHubs();
  2126. method @Deprecated @Nullable @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public android.hardware.location.NanoAppInstanceInfo getNanoAppInstanceInfo(int);
  2127. method @Deprecated @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public int loadNanoApp(int, @NonNull android.hardware.location.NanoApp);
  2128. method @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) @NonNull public android.hardware.location.ContextHubTransaction<java.lang.Void> loadNanoApp(@NonNull android.hardware.location.ContextHubInfo, @NonNull android.hardware.location.NanoAppBinary);
  2129. method @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) @NonNull public android.hardware.location.ContextHubTransaction<java.util.List<android.hardware.location.NanoAppState>> queryNanoApps(@NonNull android.hardware.location.ContextHubInfo);
  2130. method @Deprecated public int registerCallback(@NonNull android.hardware.location.ContextHubManager.Callback);
  2131. method @Deprecated public int registerCallback(android.hardware.location.ContextHubManager.Callback, android.os.Handler);
  2132. method @Deprecated @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public int sendMessage(int, int, @NonNull android.hardware.location.ContextHubMessage);
  2133. method @Deprecated @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public int unloadNanoApp(int);
  2134. method @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) @NonNull public android.hardware.location.ContextHubTransaction<java.lang.Void> unloadNanoApp(@NonNull android.hardware.location.ContextHubInfo, long);
  2135. method @Deprecated public int unregisterCallback(@NonNull android.hardware.location.ContextHubManager.Callback);
  2136. field public static final int EVENT_HUB_RESET = 6; // 0x6
  2137. field public static final int EVENT_NANOAPP_ABORTED = 4; // 0x4
  2138. field public static final int EVENT_NANOAPP_DISABLED = 3; // 0x3
  2139. field public static final int EVENT_NANOAPP_ENABLED = 2; // 0x2
  2140. field public static final int EVENT_NANOAPP_LOADED = 0; // 0x0
  2141. field public static final int EVENT_NANOAPP_MESSAGE = 5; // 0x5
  2142. field public static final int EVENT_NANOAPP_UNLOADED = 1; // 0x1
  2143. field public static final String EXTRA_CONTEXT_HUB_INFO = "android.hardware.location.extra.CONTEXT_HUB_INFO";
  2144. field public static final String EXTRA_EVENT_TYPE = "android.hardware.location.extra.EVENT_TYPE";
  2145. field public static final String EXTRA_MESSAGE = "android.hardware.location.extra.MESSAGE";
  2146. field public static final String EXTRA_NANOAPP_ABORT_CODE = "android.hardware.location.extra.NANOAPP_ABORT_CODE";
  2147. field public static final String EXTRA_NANOAPP_ID = "android.hardware.location.extra.NANOAPP_ID";
  2148. }
  2149. @Deprecated public abstract static class ContextHubManager.Callback {
  2150. ctor @Deprecated protected ContextHubManager.Callback();
  2151. method @Deprecated public abstract void onMessageReceipt(int, int, @NonNull android.hardware.location.ContextHubMessage);
  2152. }
  2153. @Deprecated public class ContextHubMessage implements android.os.Parcelable {
  2154. ctor @Deprecated public ContextHubMessage(int, int, byte[]);
  2155. method @Deprecated public int describeContents();
  2156. method @Deprecated public byte[] getData();
  2157. method @Deprecated public int getMsgType();
  2158. method @Deprecated public int getVersion();
  2159. method @Deprecated public void setMsgData(byte[]);
  2160. method @Deprecated public void setMsgType(int);
  2161. method @Deprecated public void setVersion(int);
  2162. method @Deprecated public void writeToParcel(android.os.Parcel, int);
  2163. field @Deprecated @NonNull public static final android.os.Parcelable.Creator<android.hardware.location.ContextHubMessage> CREATOR;
  2164. }
  2165. public class ContextHubTransaction<T> {
  2166. method public int getType();
  2167. method public void setOnCompleteListener(@NonNull android.hardware.location.ContextHubTransaction.OnCompleteListener<T>, @NonNull java.util.concurrent.Executor);
  2168. method public void setOnCompleteListener(@NonNull android.hardware.location.ContextHubTransaction.OnCompleteListener<T>);
  2169. method public static String typeToString(int, boolean);
  2170. method public android.hardware.location.ContextHubTransaction.Response<T> waitForResponse(long, java.util.concurrent.TimeUnit) throws java.lang.InterruptedException, java.util.concurrent.TimeoutException;
  2171. field public static final int RESULT_FAILED_AT_HUB = 5; // 0x5
  2172. field public static final int RESULT_FAILED_BAD_PARAMS = 2; // 0x2
  2173. field public static final int RESULT_FAILED_BUSY = 4; // 0x4
  2174. field public static final int RESULT_FAILED_HAL_UNAVAILABLE = 8; // 0x8
  2175. field public static final int RESULT_FAILED_SERVICE_INTERNAL_FAILURE = 7; // 0x7
  2176. field public static final int RESULT_FAILED_TIMEOUT = 6; // 0x6
  2177. field public static final int RESULT_FAILED_UNINITIALIZED = 3; // 0x3
  2178. field public static final int RESULT_FAILED_UNKNOWN = 1; // 0x1
  2179. field public static final int RESULT_SUCCESS = 0; // 0x0
  2180. field public static final int TYPE_DISABLE_NANOAPP = 3; // 0x3
  2181. field public static final int TYPE_ENABLE_NANOAPP = 2; // 0x2
  2182. field public static final int TYPE_LOAD_NANOAPP = 0; // 0x0
  2183. field public static final int TYPE_QUERY_NANOAPPS = 4; // 0x4
  2184. field public static final int TYPE_UNLOAD_NANOAPP = 1; // 0x1
  2185. }
  2186. @java.lang.FunctionalInterface public static interface ContextHubTransaction.OnCompleteListener<L> {
  2187. method public void onComplete(android.hardware.location.ContextHubTransaction<L>, android.hardware.location.ContextHubTransaction.Response<L>);
  2188. }
  2189. public static class ContextHubTransaction.Response<R> {
  2190. method public R getContents();
  2191. method public int getResult();
  2192. }
  2193. public final class GeofenceHardware {
  2194. method public boolean addGeofence(int, int, android.hardware.location.GeofenceHardwareRequest, android.hardware.location.GeofenceHardwareCallback);
  2195. method public int[] getMonitoringTypes();
  2196. method public int getStatusOfMonitoringType(int);
  2197. method public boolean pauseGeofence(int, int);
  2198. method public boolean registerForMonitorStateChangeCallback(int, android.hardware.location.GeofenceHardwareMonitorCallback);
  2199. method public boolean removeGeofence(int, int);
  2200. method public boolean resumeGeofence(int, int, int);
  2201. method public boolean unregisterForMonitorStateChangeCallback(int, android.hardware.location.GeofenceHardwareMonitorCallback);
  2202. field public static final int GEOFENCE_ENTERED = 1; // 0x1
  2203. field public static final int GEOFENCE_ERROR_ID_EXISTS = 2; // 0x2
  2204. field public static final int GEOFENCE_ERROR_ID_UNKNOWN = 3; // 0x3
  2205. field public static final int GEOFENCE_ERROR_INSUFFICIENT_MEMORY = 6; // 0x6
  2206. field public static final int GEOFENCE_ERROR_INVALID_TRANSITION = 4; // 0x4
  2207. field public static final int GEOFENCE_ERROR_TOO_MANY_GEOFENCES = 1; // 0x1
  2208. field public static final int GEOFENCE_EXITED = 2; // 0x2
  2209. field public static final int GEOFENCE_FAILURE = 5; // 0x5
  2210. field public static final int GEOFENCE_SUCCESS = 0; // 0x0
  2211. field public static final int GEOFENCE_UNCERTAIN = 4; // 0x4
  2212. field public static final int MONITORING_TYPE_FUSED_HARDWARE = 1; // 0x1
  2213. field public static final int MONITORING_TYPE_GPS_HARDWARE = 0; // 0x0
  2214. field public static final int MONITOR_CURRENTLY_AVAILABLE = 0; // 0x0
  2215. field public static final int MONITOR_CURRENTLY_UNAVAILABLE = 1; // 0x1
  2216. field public static final int MONITOR_UNSUPPORTED = 2; // 0x2
  2217. field public static final int SOURCE_TECHNOLOGY_BLUETOOTH = 16; // 0x10
  2218. field public static final int SOURCE_TECHNOLOGY_CELL = 8; // 0x8
  2219. field public static final int SOURCE_TECHNOLOGY_GNSS = 1; // 0x1
  2220. field public static final int SOURCE_TECHNOLOGY_SENSORS = 4; // 0x4
  2221. field public static final int SOURCE_TECHNOLOGY_WIFI = 2; // 0x2
  2222. }
  2223. public abstract class GeofenceHardwareCallback {
  2224. ctor public GeofenceHardwareCallback();
  2225. method public void onGeofenceAdd(int, int);
  2226. method public void onGeofencePause(int, int);
  2227. method public void onGeofenceRemove(int, int);
  2228. method public void onGeofenceResume(int, int);
  2229. method public void onGeofenceTransition(int, int, android.location.Location, long, int);
  2230. }
  2231. public abstract class GeofenceHardwareMonitorCallback {
  2232. ctor public GeofenceHardwareMonitorCallback();
  2233. method @Deprecated public void onMonitoringSystemChange(int, boolean, android.location.Location);
  2234. method public void onMonitoringSystemChange(android.hardware.location.GeofenceHardwareMonitorEvent);
  2235. }
  2236. public class GeofenceHardwareMonitorEvent implements android.os.Parcelable {
  2237. ctor public GeofenceHardwareMonitorEvent(int, int, int, android.location.Location);
  2238. method public int describeContents();
  2239. method public android.location.Location getLocation();
  2240. method public int getMonitoringStatus();
  2241. method public int getMonitoringType();
  2242. method public int getSourceTechnologies();
  2243. method public void writeToParcel(android.os.Parcel, int);
  2244. field @NonNull public static final android.os.Parcelable.Creator<android.hardware.location.GeofenceHardwareMonitorEvent> CREATOR;
  2245. }
  2246. public final class GeofenceHardwareRequest {
  2247. ctor public GeofenceHardwareRequest();
  2248. method public static android.hardware.location.GeofenceHardwareRequest createCircularGeofence(double, double, double);
  2249. method public int getLastTransition();
  2250. method public double getLatitude();
  2251. method public double getLongitude();
  2252. method public int getMonitorTransitions();
  2253. method public int getNotificationResponsiveness();
  2254. method public double getRadius();
  2255. method public int getSourceTechnologies();
  2256. method public int getUnknownTimer();
  2257. method public void setLastTransition(int);
  2258. method public void setMonitorTransitions(int);
  2259. method public void setNotificationResponsiveness(int);
  2260. method public void setSourceTechnologies(int);
  2261. method public void setUnknownTimer(int);
  2262. }
  2263. public class MemoryRegion implements android.os.Parcelable {
  2264. ctor public MemoryRegion(android.os.Parcel);
  2265. method public int describeContents();
  2266. method public int getCapacityBytes();
  2267. method public int getFreeCapacityBytes();
  2268. method public boolean isExecutable();
  2269. method public boolean isReadable();
  2270. method public boolean isWritable();
  2271. method public void writeToParcel(android.os.Parcel, int);
  2272. field @NonNull public static final android.os.Parcelable.Creator<android.hardware.location.MemoryRegion> CREATOR;
  2273. }
  2274. @Deprecated public class NanoApp implements android.os.Parcelable {
  2275. ctor @Deprecated public NanoApp();
  2276. ctor @Deprecated public NanoApp(int, byte[]);
  2277. ctor @Deprecated public NanoApp(long, byte[]);
  2278. method @Deprecated public int describeContents();
  2279. method @Deprecated public byte[] getAppBinary();
  2280. method @Deprecated public long getAppId();
  2281. method @Deprecated public int getAppVersion();
  2282. method @Deprecated public String getName();
  2283. method @Deprecated public int getNeededExecMemBytes();
  2284. method @Deprecated public int getNeededReadMemBytes();
  2285. method @Deprecated public int[] getNeededSensors();
  2286. method @Deprecated public int getNeededWriteMemBytes();
  2287. method @Deprecated public int[] getOutputEvents();
  2288. method @Deprecated public String getPublisher();
  2289. method @Deprecated public void setAppBinary(byte[]);
  2290. method @Deprecated public void setAppId(long);
  2291. method @Deprecated public void setAppVersion(int);
  2292. method @Deprecated public void setName(String);
  2293. method @Deprecated public void setNeededExecMemBytes(int);
  2294. method @Deprecated public void setNeededReadMemBytes(int);
  2295. method @Deprecated public void setNeededSensors(int[]);
  2296. method @Deprecated public void setNeededWriteMemBytes(int);
  2297. method @Deprecated public void setOutputEvents(int[]);
  2298. method @Deprecated public void setPublisher(String);
  2299. method @Deprecated public void writeToParcel(android.os.Parcel, int);
  2300. field @Deprecated @NonNull public static final android.os.Parcelable.Creator<android.hardware.location.NanoApp> CREATOR;
  2301. }
  2302. public final class NanoAppBinary implements android.os.Parcelable {
  2303. ctor public NanoAppBinary(byte[]);
  2304. method public int describeContents();
  2305. method public byte[] getBinary();
  2306. method public byte[] getBinaryNoHeader();
  2307. method public int getFlags();
  2308. method public int getHeaderVersion();
  2309. method public long getHwHubType();
  2310. method public long getNanoAppId();
  2311. method public int getNanoAppVersion();
  2312. method public byte getTargetChreApiMajorVersion();
  2313. method public byte getTargetChreApiMinorVersion();
  2314. method public boolean hasValidHeader();
  2315. method public boolean isEncrypted();
  2316. method public boolean isSigned();
  2317. method public void writeToParcel(android.os.Parcel, int);
  2318. field @NonNull public static final android.os.Parcelable.Creator<android.hardware.location.NanoAppBinary> CREATOR;
  2319. }
  2320. @Deprecated public class NanoAppFilter implements android.os.Parcelable {
  2321. ctor @Deprecated public NanoAppFilter(long, int, int, long);
  2322. method @Deprecated public int describeContents();
  2323. method @Deprecated public boolean testMatch(android.hardware.location.NanoAppInstanceInfo);
  2324. method @Deprecated public void writeToParcel(android.os.Parcel, int);
  2325. field @Deprecated public static final int APP_ANY = -1; // 0xffffffff
  2326. field @Deprecated @NonNull public static final android.os.Parcelable.Creator<android.hardware.location.NanoAppFilter> CREATOR;
  2327. field @Deprecated public static final int FLAGS_VERSION_ANY = -1; // 0xffffffff
  2328. field @Deprecated public static final int FLAGS_VERSION_GREAT_THAN = 2; // 0x2
  2329. field @Deprecated public static final int FLAGS_VERSION_LESS_THAN = 4; // 0x4
  2330. field @Deprecated public static final int FLAGS_VERSION_STRICTLY_EQUAL = 8; // 0x8
  2331. field @Deprecated public static final int HUB_ANY = -1; // 0xffffffff
  2332. field @Deprecated public static final int VENDOR_ANY = -1; // 0xffffffff
  2333. }
  2334. @Deprecated public class NanoAppInstanceInfo implements android.os.Parcelable {
  2335. ctor @Deprecated public NanoAppInstanceInfo();
  2336. method @Deprecated public int describeContents();
  2337. method @Deprecated public long getAppId();
  2338. method @Deprecated public int getAppVersion();
  2339. method @Deprecated public int getContexthubId();
  2340. method @Deprecated public int getHandle();
  2341. method @Deprecated public String getName();
  2342. method @Deprecated public int getNeededExecMemBytes();
  2343. method @Deprecated public int getNeededReadMemBytes();
  2344. method @Deprecated @NonNull public int[] getNeededSensors();
  2345. method @Deprecated public int getNeededWriteMemBytes();
  2346. method @Deprecated @NonNull public int[] getOutputEvents();
  2347. method @Deprecated public String getPublisher();
  2348. method @Deprecated public void writeToParcel(android.os.Parcel, int);
  2349. field @Deprecated @NonNull public static final android.os.Parcelable.Creator<android.hardware.location.NanoAppInstanceInfo> CREATOR;
  2350. }
  2351. public final class NanoAppMessage implements android.os.Parcelable {
  2352. method public static android.hardware.location.NanoAppMessage createMessageFromNanoApp(long, int, byte[], boolean);
  2353. method public static android.hardware.location.NanoAppMessage createMessageToNanoApp(long, int, byte[]);
  2354. method public int describeContents();
  2355. method public byte[] getMessageBody();
  2356. method public int getMessageType();
  2357. method public long getNanoAppId();
  2358. method public boolean isBroadcastMessage();
  2359. method public void writeToParcel(android.os.Parcel, int);
  2360. field @NonNull public static final android.os.Parcelable.Creator<android.hardware.location.NanoAppMessage> CREATOR;
  2361. }
  2362. public final class NanoAppState implements android.os.Parcelable {
  2363. ctor public NanoAppState(long, int, boolean);
  2364. method public int describeContents();
  2365. method public long getNanoAppId();
  2366. method public long getNanoAppVersion();
  2367. method public boolean isEnabled();
  2368. method public void writeToParcel(android.os.Parcel, int);
  2369. field @NonNull public static final android.os.Parcelable.Creator<android.hardware.location.NanoAppState> CREATOR;
  2370. }
  2371. }
  2372. package android.hardware.radio {
  2373. public final class Announcement implements android.os.Parcelable {
  2374. method public int describeContents();
  2375. method @NonNull public android.hardware.radio.ProgramSelector getSelector();
  2376. method public int getType();
  2377. method @NonNull public java.util.Map<java.lang.String,java.lang.String> getVendorInfo();
  2378. method public void writeToParcel(android.os.Parcel, int);
  2379. field @NonNull public static final android.os.Parcelable.Creator<android.hardware.radio.Announcement> CREATOR;
  2380. field public static final int TYPE_EMERGENCY = 1; // 0x1
  2381. field public static final int TYPE_EVENT = 6; // 0x6
  2382. field public static final int TYPE_MISC = 8; // 0x8
  2383. field public static final int TYPE_NEWS = 5; // 0x5
  2384. field public static final int TYPE_SPORT = 7; // 0x7
  2385. field public static final int TYPE_TRAFFIC = 3; // 0x3
  2386. field public static final int TYPE_WARNING = 2; // 0x2
  2387. field public static final int TYPE_WEATHER = 4; // 0x4
  2388. }
  2389. public static interface Announcement.OnListUpdatedListener {
  2390. method public void onListUpdated(java.util.Collection<android.hardware.radio.Announcement>);
  2391. }
  2392. public final class ProgramList implements java.lang.AutoCloseable {
  2393. method public void addOnCompleteListener(@NonNull java.util.concurrent.Executor, @NonNull android.hardware.radio.ProgramList.OnCompleteListener);
  2394. method public void addOnCompleteListener(@NonNull android.hardware.radio.ProgramList.OnCompleteListener);
  2395. method public void close();
  2396. method @Nullable public android.hardware.radio.RadioManager.ProgramInfo get(@NonNull android.hardware.radio.ProgramSelector.Identifier);
  2397. method public void registerListCallback(@NonNull java.util.concurrent.Executor, @NonNull android.hardware.radio.ProgramList.ListCallback);
  2398. method public void registerListCallback(@NonNull android.hardware.radio.ProgramList.ListCallback);
  2399. method public void removeOnCompleteListener(@NonNull android.hardware.radio.ProgramList.OnCompleteListener);
  2400. method @NonNull public java.util.List<android.hardware.radio.RadioManager.ProgramInfo> toList();
  2401. method public void unregisterListCallback(@NonNull android.hardware.radio.ProgramList.ListCallback);
  2402. }
  2403. public static final class ProgramList.Filter implements android.os.Parcelable {
  2404. ctor public ProgramList.Filter(@NonNull java.util.Set<java.lang.Integer>, @NonNull java.util.Set<android.hardware.radio.ProgramSelector.Identifier>, boolean, boolean);
  2405. method public boolean areCategoriesIncluded();
  2406. method public boolean areModificationsExcluded();
  2407. method public int describeContents();
  2408. method @NonNull public java.util.Set<java.lang.Integer> getIdentifierTypes();
  2409. method @NonNull public java.util.Set<android.hardware.radio.ProgramSelector.Identifier> getIdentifiers();
  2410. method public void writeToParcel(android.os.Parcel, int);
  2411. field @NonNull public static final android.os.Parcelable.Creator<android.hardware.radio.ProgramList.Filter> CREATOR;
  2412. }
  2413. public abstract static class ProgramList.ListCallback {
  2414. ctor public ProgramList.ListCallback();
  2415. method public void onItemChanged(@NonNull android.hardware.radio.ProgramSelector.Identifier);
  2416. method public void onItemRemoved(@NonNull android.hardware.radio.ProgramSelector.Identifier);
  2417. }
  2418. public static interface ProgramList.OnCompleteListener {
  2419. method public void onComplete();
  2420. }
  2421. public final class ProgramSelector implements android.os.Parcelable {
  2422. ctor public ProgramSelector(@android.hardware.radio.ProgramSelector.ProgramType int, @NonNull android.hardware.radio.ProgramSelector.Identifier, @Nullable android.hardware.radio.ProgramSelector.Identifier[], @Nullable long[]);
  2423. method @NonNull public static android.hardware.radio.ProgramSelector createAmFmSelector(@android.hardware.radio.RadioManager.Band int, int);
  2424. method @NonNull public static android.hardware.radio.ProgramSelector createAmFmSelector(@android.hardware.radio.RadioManager.Band int, int, int);
  2425. method public int describeContents();
  2426. method @NonNull public android.hardware.radio.ProgramSelector.Identifier[] getAllIds(@android.hardware.radio.ProgramSelector.IdentifierType int);
  2427. method public long getFirstId(@android.hardware.radio.ProgramSelector.IdentifierType int);
  2428. method @NonNull public android.hardware.radio.ProgramSelector.Identifier getPrimaryId();
  2429. method @Deprecated @android.hardware.radio.ProgramSelector.ProgramType public int getProgramType();
  2430. method @NonNull public android.hardware.radio.ProgramSelector.Identifier[] getSecondaryIds();
  2431. method @Deprecated @NonNull public long[] getVendorIds();
  2432. method @NonNull public android.hardware.radio.ProgramSelector withSecondaryPreferred(@NonNull android.hardware.radio.ProgramSelector.Identifier);
  2433. method public void writeToParcel(android.os.Parcel, int);
  2434. field @NonNull public static final android.os.Parcelable.Creator<android.hardware.radio.ProgramSelector> CREATOR;
  2435. field public static final int IDENTIFIER_TYPE_AMFM_FREQUENCY = 1; // 0x1
  2436. field public static final int IDENTIFIER_TYPE_DAB_ENSEMBLE = 6; // 0x6
  2437. field public static final int IDENTIFIER_TYPE_DAB_FREQUENCY = 8; // 0x8
  2438. field public static final int IDENTIFIER_TYPE_DAB_SCID = 7; // 0x7
  2439. field public static final int IDENTIFIER_TYPE_DAB_SIDECC = 5; // 0x5
  2440. field public static final int IDENTIFIER_TYPE_DAB_SID_EXT = 5; // 0x5
  2441. field public static final int IDENTIFIER_TYPE_DRMO_FREQUENCY = 10; // 0xa
  2442. field @Deprecated public static final int IDENTIFIER_TYPE_DRMO_MODULATION = 11; // 0xb
  2443. field public static final int IDENTIFIER_TYPE_DRMO_SERVICE_ID = 9; // 0x9
  2444. field public static final int IDENTIFIER_TYPE_HD_STATION_ID_EXT = 3; // 0x3
  2445. field public static final int IDENTIFIER_TYPE_HD_STATION_NAME = 10004; // 0x2714
  2446. field @Deprecated public static final int IDENTIFIER_TYPE_HD_SUBCHANNEL = 4; // 0x4
  2447. field public static final int IDENTIFIER_TYPE_INVALID = 0; // 0x0
  2448. field public static final int IDENTIFIER_TYPE_RDS_PI = 2; // 0x2
  2449. field public static final int IDENTIFIER_TYPE_SXM_CHANNEL = 13; // 0xd
  2450. field public static final int IDENTIFIER_TYPE_SXM_SERVICE_ID = 12; // 0xc
  2451. field public static final int IDENTIFIER_TYPE_VENDOR_END = 1999; // 0x7cf
  2452. field @Deprecated public static final int IDENTIFIER_TYPE_VENDOR_PRIMARY_END = 1999; // 0x7cf
  2453. field @Deprecated public static final int IDENTIFIER_TYPE_VENDOR_PRIMARY_START = 1000; // 0x3e8
  2454. field public static final int IDENTIFIER_TYPE_VENDOR_START = 1000; // 0x3e8
  2455. field @Deprecated public static final int PROGRAM_TYPE_AM = 1; // 0x1
  2456. field @Deprecated public static final int PROGRAM_TYPE_AM_HD = 3; // 0x3
  2457. field @Deprecated public static final int PROGRAM_TYPE_DAB = 5; // 0x5
  2458. field @Deprecated public static final int PROGRAM_TYPE_DRMO = 6; // 0x6
  2459. field @Deprecated public static final int PROGRAM_TYPE_FM = 2; // 0x2
  2460. field @Deprecated public static final int PROGRAM_TYPE_FM_HD = 4; // 0x4
  2461. field @Deprecated public static final int PROGRAM_TYPE_INVALID = 0; // 0x0
  2462. field @Deprecated public static final int PROGRAM_TYPE_SXM = 7; // 0x7
  2463. field @Deprecated public static final int PROGRAM_TYPE_VENDOR_END = 1999; // 0x7cf
  2464. field @Deprecated public static final int PROGRAM_TYPE_VENDOR_START = 1000; // 0x3e8
  2465. }
  2466. public static final class ProgramSelector.Identifier implements android.os.Parcelable {
  2467. ctor public ProgramSelector.Identifier(@android.hardware.radio.ProgramSelector.IdentifierType int, long);
  2468. method public int describeContents();
  2469. method @android.hardware.radio.ProgramSelector.IdentifierType public int getType();
  2470. method public long getValue();
  2471. method public void writeToParcel(android.os.Parcel, int);
  2472. field @NonNull public static final android.os.Parcelable.Creator<android.hardware.radio.ProgramSelector.Identifier> CREATOR;
  2473. }
  2474. @IntDef(prefix={"IDENTIFIER_TYPE_"}, value={android.hardware.radio.ProgramSelector.IDENTIFIER_TYPE_INVALID, android.hardware.radio.ProgramSelector.IDENTIFIER_TYPE_AMFM_FREQUENCY, android.hardware.radio.ProgramSelector.IDENTIFIER_TYPE_RDS_PI, android.hardware.radio.ProgramSelector.IDENTIFIER_TYPE_HD_STATION_ID_EXT, android.hardware.radio.ProgramSelector.IDENTIFIER_TYPE_HD_SUBCHANNEL, android.hardware.radio.ProgramSelector.IDENTIFIER_TYPE_HD_STATION_NAME, android.hardware.radio.ProgramSelector.IDENTIFIER_TYPE_DAB_SID_EXT, android.hardware.radio.ProgramSelector.IDENTIFIER_TYPE_DAB_SIDECC, android.hardware.radio.ProgramSelector.IDENTIFIER_TYPE_DAB_ENSEMBLE, android.hardware.radio.ProgramSelector.IDENTIFIER_TYPE_DAB_SCID, android.hardware.radio.ProgramSelector.IDENTIFIER_TYPE_DAB_FREQUENCY, android.hardware.radio.ProgramSelector.IDENTIFIER_TYPE_DRMO_SERVICE_ID, android.hardware.radio.ProgramSelector.IDENTIFIER_TYPE_DRMO_FREQUENCY, android.hardware.radio.ProgramSelector.IDENTIFIER_TYPE_DRMO_MODULATION, android.hardware.radio.ProgramSelector.IDENTIFIER_TYPE_SXM_SERVICE_ID, android.hardware.radio.ProgramSelector.IDENTIFIER_TYPE_SXM_CHANNEL}) @IntRange(from=android.hardware.radio.ProgramSelector.IDENTIFIER_TYPE_VENDOR_START, to=android.hardware.radio.ProgramSelector.IDENTIFIER_TYPE_VENDOR_END) @java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.SOURCE) public static @interface ProgramSelector.IdentifierType {
  2475. }
  2476. @Deprecated @IntDef(prefix={"PROGRAM_TYPE_"}, value={android.hardware.radio.ProgramSelector.PROGRAM_TYPE_INVALID, android.hardware.radio.ProgramSelector.PROGRAM_TYPE_AM, android.hardware.radio.ProgramSelector.PROGRAM_TYPE_FM, android.hardware.radio.ProgramSelector.PROGRAM_TYPE_AM_HD, android.hardware.radio.ProgramSelector.PROGRAM_TYPE_FM_HD, android.hardware.radio.ProgramSelector.PROGRAM_TYPE_DAB, android.hardware.radio.ProgramSelector.PROGRAM_TYPE_DRMO, android.hardware.radio.ProgramSelector.PROGRAM_TYPE_SXM}) @IntRange(from=android.hardware.radio.ProgramSelector.PROGRAM_TYPE_VENDOR_START, to=android.hardware.radio.ProgramSelector.PROGRAM_TYPE_VENDOR_END) @java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.SOURCE) public static @interface ProgramSelector.ProgramType {
  2477. }
  2478. public class RadioManager {
  2479. method @RequiresPermission(android.Manifest.permission.ACCESS_BROADCAST_RADIO) public void addAnnouncementListener(@NonNull java.util.Set<java.lang.Integer>, @NonNull android.hardware.radio.Announcement.OnListUpdatedListener);
  2480. method @RequiresPermission(android.Manifest.permission.ACCESS_BROADCAST_RADIO) public void addAnnouncementListener(@NonNull java.util.concurrent.Executor, @NonNull java.util.Set<java.lang.Integer>, @NonNull android.hardware.radio.Announcement.OnListUpdatedListener);
  2481. method @RequiresPermission(android.Manifest.permission.ACCESS_BROADCAST_RADIO) public int listModules(java.util.List<android.hardware.radio.RadioManager.ModuleProperties>);
  2482. method @RequiresPermission(android.Manifest.permission.ACCESS_BROADCAST_RADIO) public android.hardware.radio.RadioTuner openTuner(int, android.hardware.radio.RadioManager.BandConfig, boolean, android.hardware.radio.RadioTuner.Callback, android.os.Handler);
  2483. method @RequiresPermission(android.Manifest.permission.ACCESS_BROADCAST_RADIO) public void removeAnnouncementListener(@NonNull android.hardware.radio.Announcement.OnListUpdatedListener);
  2484. field public static final int BAND_AM = 0; // 0x0
  2485. field public static final int BAND_AM_HD = 3; // 0x3
  2486. field public static final int BAND_FM = 1; // 0x1
  2487. field public static final int BAND_FM_HD = 2; // 0x2
  2488. field public static final int BAND_INVALID = -1; // 0xffffffff
  2489. field public static final int CLASS_AM_FM = 0; // 0x0
  2490. field public static final int CLASS_DT = 2; // 0x2
  2491. field public static final int CLASS_SAT = 1; // 0x1
  2492. field public static final int CONFIG_DAB_DAB_LINKING = 6; // 0x6
  2493. field public static final int CONFIG_DAB_DAB_SOFT_LINKING = 8; // 0x8
  2494. field public static final int CONFIG_DAB_FM_LINKING = 7; // 0x7
  2495. field public static final int CONFIG_DAB_FM_SOFT_LINKING = 9; // 0x9
  2496. field public static final int CONFIG_FORCE_ANALOG = 2; // 0x2
  2497. field public static final int CONFIG_FORCE_DIGITAL = 3; // 0x3
  2498. field public static final int CONFIG_FORCE_MONO = 1; // 0x1
  2499. field public static final int CONFIG_RDS_AF = 4; // 0x4
  2500. field public static final int CONFIG_RDS_REG = 5; // 0x5
  2501. field public static final int REGION_ITU_1 = 0; // 0x0
  2502. field public static final int REGION_ITU_2 = 1; // 0x1
  2503. field public static final int REGION_JAPAN = 3; // 0x3
  2504. field public static final int REGION_KOREA = 4; // 0x4
  2505. field public static final int REGION_OIRT = 2; // 0x2
  2506. field public static final int STATUS_BAD_VALUE = -22; // 0xffffffea
  2507. field public static final int STATUS_DEAD_OBJECT = -32; // 0xffffffe0
  2508. field public static final int STATUS_ERROR = -2147483648; // 0x80000000
  2509. field public static final int STATUS_INVALID_OPERATION = -38; // 0xffffffda
  2510. field public static final int STATUS_NO_INIT = -19; // 0xffffffed
  2511. field public static final int STATUS_OK = 0; // 0x0
  2512. field public static final int STATUS_PERMISSION_DENIED = -1; // 0xffffffff
  2513. field public static final int STATUS_TIMED_OUT = -110; // 0xffffff92
  2514. }
  2515. public static class RadioManager.AmBandConfig extends android.hardware.radio.RadioManager.BandConfig {
  2516. method public boolean getStereo();
  2517. field @NonNull public static final android.os.Parcelable.Creator<android.hardware.radio.RadioManager.AmBandConfig> CREATOR;
  2518. }
  2519. public static class RadioManager.AmBandConfig.Builder {
  2520. ctor public RadioManager.AmBandConfig.Builder(android.hardware.radio.RadioManager.AmBandDescriptor);
  2521. ctor public RadioManager.AmBandConfig.Builder(android.hardware.radio.RadioManager.AmBandConfig);
  2522. method public android.hardware.radio.RadioManager.AmBandConfig build();
  2523. method public android.hardware.radio.RadioManager.AmBandConfig.Builder setStereo(boolean);
  2524. }
  2525. public static class RadioManager.AmBandDescriptor extends android.hardware.radio.RadioManager.BandDescriptor {
  2526. method public boolean isStereoSupported();
  2527. field @NonNull public static final android.os.Parcelable.Creator<android.hardware.radio.RadioManager.AmBandDescriptor> CREATOR;
  2528. }
  2529. @IntDef(prefix={"BAND_"}, value={android.hardware.radio.RadioManager.BAND_INVALID, android.hardware.radio.RadioManager.BAND_AM, android.hardware.radio.RadioManager.BAND_FM, android.hardware.radio.RadioManager.BAND_AM_HD, android.hardware.radio.RadioManager.BAND_FM_HD}) @java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.SOURCE) public static @interface RadioManager.Band {
  2530. }
  2531. public static class RadioManager.BandConfig implements android.os.Parcelable {
  2532. method public int describeContents();
  2533. method public int getLowerLimit();
  2534. method public int getRegion();
  2535. method public int getSpacing();
  2536. method public int getType();
  2537. method public int getUpperLimit();
  2538. method public void writeToParcel(android.os.Parcel, int);
  2539. field @NonNull public static final android.os.Parcelable.Creator<android.hardware.radio.RadioManager.BandConfig> CREATOR;
  2540. }
  2541. public static class RadioManager.BandDescriptor implements android.os.Parcelable {
  2542. method public int describeContents();
  2543. method public int getLowerLimit();
  2544. method public int getRegion();
  2545. method public int getSpacing();
  2546. method public int getType();
  2547. method public int getUpperLimit();
  2548. method public boolean isAmBand();
  2549. method public boolean isFmBand();
  2550. method public void writeToParcel(android.os.Parcel, int);
  2551. field @NonNull public static final android.os.Parcelable.Creator<android.hardware.radio.RadioManager.BandDescriptor> CREATOR;
  2552. }
  2553. public static class RadioManager.FmBandConfig extends android.hardware.radio.RadioManager.BandConfig {
  2554. method public boolean getAf();
  2555. method public boolean getEa();
  2556. method public boolean getRds();
  2557. method public boolean getStereo();
  2558. method public boolean getTa();
  2559. field @NonNull public static final android.os.Parcelable.Creator<android.hardware.radio.RadioManager.FmBandConfig> CREATOR;
  2560. }
  2561. public static class RadioManager.FmBandConfig.Builder {
  2562. ctor public RadioManager.FmBandConfig.Builder(android.hardware.radio.RadioManager.FmBandDescriptor);
  2563. ctor public RadioManager.FmBandConfig.Builder(android.hardware.radio.RadioManager.FmBandConfig);
  2564. method public android.hardware.radio.RadioManager.FmBandConfig build();
  2565. method public android.hardware.radio.RadioManager.FmBandConfig.Builder setAf(boolean);
  2566. method public android.hardware.radio.RadioManager.FmBandConfig.Builder setEa(boolean);
  2567. method public android.hardware.radio.RadioManager.FmBandConfig.Builder setRds(boolean);
  2568. method public android.hardware.radio.RadioManager.FmBandConfig.Builder setStereo(boolean);
  2569. method public android.hardware.radio.RadioManager.FmBandConfig.Builder setTa(boolean);
  2570. }
  2571. public static class RadioManager.FmBandDescriptor extends android.hardware.radio.RadioManager.BandDescriptor {
  2572. method public boolean isAfSupported();
  2573. method public boolean isEaSupported();
  2574. method public boolean isRdsSupported();
  2575. method public boolean isStereoSupported();
  2576. method public boolean isTaSupported();
  2577. field @NonNull public static final android.os.Parcelable.Creator<android.hardware.radio.RadioManager.FmBandDescriptor> CREATOR;
  2578. }
  2579. public static class RadioManager.ModuleProperties implements android.os.Parcelable {
  2580. method public int describeContents();
  2581. method public android.hardware.radio.RadioManager.BandDescriptor[] getBands();
  2582. method public int getClassId();
  2583. method @Nullable public java.util.Map<java.lang.String,java.lang.Integer> getDabFrequencyTable();
  2584. method public int getId();
  2585. method public String getImplementor();
  2586. method public int getNumAudioSources();
  2587. method public int getNumTuners();
  2588. method public String getProduct();
  2589. method public String getSerial();
  2590. method @NonNull public String getServiceName();
  2591. method @NonNull public java.util.Map<java.lang.String,java.lang.String> getVendorInfo();
  2592. method public String getVersion();
  2593. method public boolean isBackgroundScanningSupported();
  2594. method public boolean isCaptureSupported();
  2595. method public boolean isInitializationRequired();
  2596. method public boolean isProgramIdentifierSupported(@android.hardware.radio.ProgramSelector.IdentifierType int);
  2597. method public boolean isProgramTypeSupported(@android.hardware.radio.ProgramSelector.ProgramType int);
  2598. method public void writeToParcel(android.os.Parcel, int);
  2599. field @NonNull public static final android.os.Parcelable.Creator<android.hardware.radio.RadioManager.ModuleProperties> CREATOR;
  2600. }
  2601. public static class RadioManager.ProgramInfo implements android.os.Parcelable {
  2602. method public int describeContents();
  2603. method @Deprecated public int getChannel();
  2604. method @Nullable public android.hardware.radio.ProgramSelector.Identifier getLogicallyTunedTo();
  2605. method public android.hardware.radio.RadioMetadata getMetadata();
  2606. method @Nullable public android.hardware.radio.ProgramSelector.Identifier getPhysicallyTunedTo();
  2607. method @Nullable public java.util.Collection<android.hardware.radio.ProgramSelector.Identifier> getRelatedContent();
  2608. method @NonNull public android.hardware.radio.ProgramSelector getSelector();
  2609. method public int getSignalStrength();
  2610. method @Deprecated public int getSubChannel();
  2611. method @NonNull public java.util.Map<java.lang.String,java.lang.String> getVendorInfo();
  2612. method @Deprecated public boolean isDigital();
  2613. method public boolean isLive();
  2614. method public boolean isMuted();
  2615. method public boolean isStereo();
  2616. method public boolean isTrafficAnnouncementActive();
  2617. method public boolean isTrafficProgram();
  2618. method public boolean isTuned();
  2619. method public void writeToParcel(android.os.Parcel, int);
  2620. field @NonNull public static final android.os.Parcelable.Creator<android.hardware.radio.RadioManager.ProgramInfo> CREATOR;
  2621. }
  2622. public final class RadioMetadata implements android.os.Parcelable {
  2623. method public boolean containsKey(String);
  2624. method public int describeContents();
  2625. method @Deprecated public android.graphics.Bitmap getBitmap(String);
  2626. method public android.hardware.radio.RadioMetadata.Clock getClock(String);
  2627. method public int getInt(String);
  2628. method public String getString(String);
  2629. method public java.util.Set<java.lang.String> keySet();
  2630. method public int size();
  2631. method public void writeToParcel(android.os.Parcel, int);
  2632. field @NonNull public static final android.os.Parcelable.Creator<android.hardware.radio.RadioMetadata> CREATOR;
  2633. field public static final String METADATA_KEY_ALBUM = "android.hardware.radio.metadata.ALBUM";
  2634. field public static final String METADATA_KEY_ART = "android.hardware.radio.metadata.ART";
  2635. field public static final String METADATA_KEY_ARTIST = "android.hardware.radio.metadata.ARTIST";
  2636. field public static final String METADATA_KEY_CLOCK = "android.hardware.radio.metadata.CLOCK";
  2637. field public static final String METADATA_KEY_DAB_COMPONENT_NAME = "android.hardware.radio.metadata.DAB_COMPONENT_NAME";
  2638. field public static final String METADATA_KEY_DAB_COMPONENT_NAME_SHORT = "android.hardware.radio.metadata.DAB_COMPONENT_NAME_SHORT";
  2639. field public static final String METADATA_KEY_DAB_ENSEMBLE_NAME = "android.hardware.radio.metadata.DAB_ENSEMBLE_NAME";
  2640. field public static final String METADATA_KEY_DAB_ENSEMBLE_NAME_SHORT = "android.hardware.radio.metadata.DAB_ENSEMBLE_NAME_SHORT";
  2641. field public static final String METADATA_KEY_DAB_SERVICE_NAME = "android.hardware.radio.metadata.DAB_SERVICE_NAME";
  2642. field public static final String METADATA_KEY_DAB_SERVICE_NAME_SHORT = "android.hardware.radio.metadata.DAB_SERVICE_NAME_SHORT";
  2643. field public static final String METADATA_KEY_GENRE = "android.hardware.radio.metadata.GENRE";
  2644. field public static final String METADATA_KEY_ICON = "android.hardware.radio.metadata.ICON";
  2645. field public static final String METADATA_KEY_PROGRAM_NAME = "android.hardware.radio.metadata.PROGRAM_NAME";
  2646. field public static final String METADATA_KEY_RBDS_PTY = "android.hardware.radio.metadata.RBDS_PTY";
  2647. field public static final String METADATA_KEY_RDS_PI = "android.hardware.radio.metadata.RDS_PI";
  2648. field public static final String METADATA_KEY_RDS_PS = "android.hardware.radio.metadata.RDS_PS";
  2649. field public static final String METADATA_KEY_RDS_PTY = "android.hardware.radio.metadata.RDS_PTY";
  2650. field public static final String METADATA_KEY_RDS_RT = "android.hardware.radio.metadata.RDS_RT";
  2651. field public static final String METADATA_KEY_TITLE = "android.hardware.radio.metadata.TITLE";
  2652. }
  2653. public static final class RadioMetadata.Builder {
  2654. ctor public RadioMetadata.Builder();
  2655. ctor public RadioMetadata.Builder(android.hardware.radio.RadioMetadata);
  2656. method public android.hardware.radio.RadioMetadata build();
  2657. method public android.hardware.radio.RadioMetadata.Builder putBitmap(String, android.graphics.Bitmap);
  2658. method public android.hardware.radio.RadioMetadata.Builder putClock(String, long, int);
  2659. method public android.hardware.radio.RadioMetadata.Builder putInt(String, int);
  2660. method public android.hardware.radio.RadioMetadata.Builder putString(String, String);
  2661. }
  2662. public static final class RadioMetadata.Clock implements android.os.Parcelable {
  2663. ctor public RadioMetadata.Clock(long, int);
  2664. method public int describeContents();
  2665. method public int getTimezoneOffsetMinutes();
  2666. method public long getUtcEpochSeconds();
  2667. method public void writeToParcel(android.os.Parcel, int);
  2668. field @NonNull public static final android.os.Parcelable.Creator<android.hardware.radio.RadioMetadata.Clock> CREATOR;
  2669. }
  2670. public abstract class RadioTuner {
  2671. ctor public RadioTuner();
  2672. method public abstract int cancel();
  2673. method public abstract void cancelAnnouncement();
  2674. method public abstract void close();
  2675. method @Deprecated public abstract int getConfiguration(android.hardware.radio.RadioManager.BandConfig[]);
  2676. method @Nullable public android.hardware.radio.ProgramList getDynamicProgramList(@Nullable android.hardware.radio.ProgramList.Filter);
  2677. method public abstract boolean getMute();
  2678. method @NonNull public java.util.Map<java.lang.String,java.lang.String> getParameters(@NonNull java.util.List<java.lang.String>);
  2679. method @Deprecated public abstract int getProgramInformation(android.hardware.radio.RadioManager.ProgramInfo[]);
  2680. method @Deprecated @NonNull public abstract java.util.List<android.hardware.radio.RadioManager.ProgramInfo> getProgramList(@Nullable java.util.Map<java.lang.String,java.lang.String>);
  2681. method public abstract boolean hasControl();
  2682. method @Deprecated public abstract boolean isAnalogForced();
  2683. method @Deprecated public abstract boolean isAntennaConnected();
  2684. method public boolean isConfigFlagSet(int);
  2685. method public boolean isConfigFlagSupported(int);
  2686. method public abstract int scan(int, boolean);
  2687. method @Deprecated public abstract void setAnalogForced(boolean);
  2688. method public void setConfigFlag(int, boolean);
  2689. method @Deprecated public abstract int setConfiguration(android.hardware.radio.RadioManager.BandConfig);
  2690. method public abstract int setMute(boolean);
  2691. method @NonNull public java.util.Map<java.lang.String,java.lang.String> setParameters(@NonNull java.util.Map<java.lang.String,java.lang.String>);
  2692. method public abstract boolean startBackgroundScan();
  2693. method public abstract int step(int, boolean);
  2694. method @Deprecated public abstract int tune(int, int);
  2695. method public abstract void tune(@NonNull android.hardware.radio.ProgramSelector);
  2696. field public static final int DIRECTION_DOWN = 1; // 0x1
  2697. field public static final int DIRECTION_UP = 0; // 0x0
  2698. field @Deprecated public static final int ERROR_BACKGROUND_SCAN_FAILED = 6; // 0x6
  2699. field @Deprecated public static final int ERROR_BACKGROUND_SCAN_UNAVAILABLE = 5; // 0x5
  2700. field @Deprecated public static final int ERROR_CANCELLED = 2; // 0x2
  2701. field @Deprecated public static final int ERROR_CONFIG = 4; // 0x4
  2702. field @Deprecated public static final int ERROR_HARDWARE_FAILURE = 0; // 0x0
  2703. field @Deprecated public static final int ERROR_SCAN_TIMEOUT = 3; // 0x3
  2704. field @Deprecated public static final int ERROR_SERVER_DIED = 1; // 0x1
  2705. }
  2706. public abstract static class RadioTuner.Callback {
  2707. ctor public RadioTuner.Callback();
  2708. method public void onAntennaState(boolean);
  2709. method public void onBackgroundScanAvailabilityChange(boolean);
  2710. method public void onBackgroundScanComplete();
  2711. method @Deprecated public void onConfigurationChanged(android.hardware.radio.RadioManager.BandConfig);
  2712. method public void onControlChanged(boolean);
  2713. method public void onEmergencyAnnouncement(boolean);
  2714. method @Deprecated public void onError(int);
  2715. method @Deprecated public void onMetadataChanged(android.hardware.radio.RadioMetadata);
  2716. method public void onParametersUpdated(@NonNull java.util.Map<java.lang.String,java.lang.String>);
  2717. method public void onProgramInfoChanged(android.hardware.radio.RadioManager.ProgramInfo);
  2718. method public void onProgramListChanged();
  2719. method public void onTrafficAnnouncement(boolean);
  2720. method public void onTuneFailed(int, @Nullable android.hardware.radio.ProgramSelector);
  2721. }
  2722. }
  2723. package android.hardware.soundtrigger {
  2724. public class SoundTrigger {
  2725. field public static final int STATUS_OK = 0; // 0x0
  2726. }
  2727. public static class SoundTrigger.RecognitionEvent {
  2728. method @Nullable public android.media.AudioFormat getCaptureFormat();
  2729. method public int getCaptureSession();
  2730. method public byte[] getData();
  2731. method public boolean isCaptureAvailable();
  2732. }
  2733. }
  2734. package android.hardware.usb {
  2735. public class UsbDeviceConnection {
  2736. method public boolean resetDevice();
  2737. }
  2738. public class UsbManager {
  2739. method @NonNull @RequiresPermission(android.Manifest.permission.MANAGE_USB) public java.util.List<android.hardware.usb.UsbPort> getPorts();
  2740. method @RequiresPermission(android.Manifest.permission.MANAGE_USB) public void grantPermission(android.hardware.usb.UsbDevice, String);
  2741. field @RequiresPermission(android.Manifest.permission.MANAGE_USB) public static final String ACTION_USB_PORT_CHANGED = "android.hardware.usb.action.USB_PORT_CHANGED";
  2742. }
  2743. public final class UsbPort {
  2744. method @RequiresPermission(android.Manifest.permission.MANAGE_USB) @Nullable public android.hardware.usb.UsbPortStatus getStatus();
  2745. method @RequiresPermission(android.Manifest.permission.MANAGE_USB) public void setRoles(int, int);
  2746. }
  2747. public final class UsbPortStatus implements android.os.Parcelable {
  2748. method public int describeContents();
  2749. method public int getCurrentDataRole();
  2750. method public int getCurrentMode();
  2751. method public int getCurrentPowerRole();
  2752. method public int getSupportedRoleCombinations();
  2753. method public boolean isConnected();
  2754. method public boolean isRoleCombinationSupported(int, int);
  2755. method public void writeToParcel(android.os.Parcel, int);
  2756. field @NonNull public static final android.os.Parcelable.Creator<android.hardware.usb.UsbPortStatus> CREATOR;
  2757. field public static final int DATA_ROLE_DEVICE = 2; // 0x2
  2758. field public static final int DATA_ROLE_HOST = 1; // 0x1
  2759. field public static final int DATA_ROLE_NONE = 0; // 0x0
  2760. field public static final int MODE_AUDIO_ACCESSORY = 4; // 0x4
  2761. field public static final int MODE_DEBUG_ACCESSORY = 8; // 0x8
  2762. field public static final int MODE_DFP = 2; // 0x2
  2763. field public static final int MODE_NONE = 0; // 0x0
  2764. field public static final int MODE_UFP = 1; // 0x1
  2765. field public static final int POWER_ROLE_NONE = 0; // 0x0
  2766. field public static final int POWER_ROLE_SINK = 2; // 0x2
  2767. field public static final int POWER_ROLE_SOURCE = 1; // 0x1
  2768. }
  2769. }
  2770. package android.location {
  2771. public abstract class BatchedLocationCallback {
  2772. ctor public BatchedLocationCallback();
  2773. method public void onLocationBatch(java.util.List<android.location.Location>);
  2774. }
  2775. public final class GnssCapabilities {
  2776. method public boolean hasGeofencing();
  2777. method public boolean hasLowPowerMode();
  2778. method public boolean hasMeasurementCorrections();
  2779. method public boolean hasMeasurementCorrectionsExcessPathLength();
  2780. method public boolean hasMeasurementCorrectionsLosSats();
  2781. method public boolean hasMeasurementCorrectionsReflectingPane();
  2782. method public boolean hasMeasurements();
  2783. method public boolean hasNavMessages();
  2784. method public boolean hasSatelliteBlacklist();
  2785. }
  2786. public final class GnssMeasurementCorrections implements android.os.Parcelable {
  2787. method public int describeContents();
  2788. method @FloatRange(from=-1000.0F, to=10000.0f) public double getAltitudeMeters();
  2789. method @FloatRange(from=0.0f) public double getHorizontalPositionUncertaintyMeters();
  2790. method @FloatRange(from=-90.0F, to=90.0f) public double getLatitudeDegrees();
  2791. method @FloatRange(from=-180.0F, to=180.0f) public double getLongitudeDegrees();
  2792. method @NonNull public java.util.List<android.location.GnssSingleSatCorrection> getSingleSatelliteCorrectionList();
  2793. method @IntRange(from=0) public long getToaGpsNanosecondsOfWeek();
  2794. method @FloatRange(from=0.0f) public double getVerticalPositionUncertaintyMeters();
  2795. method public void writeToParcel(@NonNull android.os.Parcel, int);
  2796. field public static final android.os.Parcelable.Creator<android.location.GnssMeasurementCorrections> CREATOR;
  2797. }
  2798. public static final class GnssMeasurementCorrections.Builder {
  2799. ctor public GnssMeasurementCorrections.Builder();
  2800. method @NonNull public android.location.GnssMeasurementCorrections build();
  2801. method @NonNull public android.location.GnssMeasurementCorrections.Builder setAltitudeMeters(@FloatRange(from=-1000.0F, to=10000.0f) double);
  2802. method @NonNull public android.location.GnssMeasurementCorrections.Builder setHorizontalPositionUncertaintyMeters(@FloatRange(from=0.0f) double);
  2803. method @NonNull public android.location.GnssMeasurementCorrections.Builder setLatitudeDegrees(@FloatRange(from=-90.0F, to=90.0f) double);
  2804. method @NonNull public android.location.GnssMeasurementCorrections.Builder setLongitudeDegrees(@FloatRange(from=-180.0F, to=180.0f) double);
  2805. method @NonNull public android.location.GnssMeasurementCorrections.Builder setSingleSatelliteCorrectionList(@NonNull java.util.List<android.location.GnssSingleSatCorrection>);
  2806. method @NonNull public android.location.GnssMeasurementCorrections.Builder setToaGpsNanosecondsOfWeek(@IntRange(from=0) long);
  2807. method @NonNull public android.location.GnssMeasurementCorrections.Builder setVerticalPositionUncertaintyMeters(@FloatRange(from=0.0f) double);
  2808. }
  2809. public final class GnssReflectingPlane implements android.os.Parcelable {
  2810. method public int describeContents();
  2811. method @FloatRange(from=-1000.0F, to=10000.0f) public double getAltitudeMeters();
  2812. method @FloatRange(from=0.0f, to=360.0f) public double getAzimuthDegrees();
  2813. method @FloatRange(from=-90.0F, to=90.0f) public double getLatitudeDegrees();
  2814. method @FloatRange(from=-180.0F, to=180.0f) public double getLongitudeDegrees();
  2815. method public void writeToParcel(@NonNull android.os.Parcel, int);
  2816. field public static final android.os.Parcelable.Creator<android.location.GnssReflectingPlane> CREATOR;
  2817. }
  2818. public static final class GnssReflectingPlane.Builder {
  2819. ctor public GnssReflectingPlane.Builder();
  2820. method @NonNull public android.location.GnssReflectingPlane build();
  2821. method @NonNull public android.location.GnssReflectingPlane.Builder setAltitudeMeters(@FloatRange(from=-1000.0F, to=10000.0f) double);
  2822. method @NonNull public android.location.GnssReflectingPlane.Builder setAzimuthDegrees(@FloatRange(from=0.0f, to=360.0f) double);
  2823. method @NonNull public android.location.GnssReflectingPlane.Builder setLatitudeDegrees(@FloatRange(from=-90.0F, to=90.0f) double);
  2824. method @NonNull public android.location.GnssReflectingPlane.Builder setLongitudeDegrees(@FloatRange(from=-180.0F, to=180.0f) double);
  2825. }
  2826. public final class GnssSingleSatCorrection implements android.os.Parcelable {
  2827. method public int describeContents();
  2828. method @FloatRange(from=0.0f, fromInclusive=false) public float getCarrierFrequencyHz();
  2829. method public int getConstellationType();
  2830. method @FloatRange(from=0.0f) public float getExcessPathLengthMeters();
  2831. method @FloatRange(from=0.0f) public float getExcessPathLengthUncertaintyMeters();
  2832. method @FloatRange(from=0.0f, to=1.0f) public float getProbabilityLineOfSight();
  2833. method @Nullable public android.location.GnssReflectingPlane getReflectingPlane();
  2834. method @IntRange(from=0) public int getSatelliteId();
  2835. method public boolean hasExcessPathLength();
  2836. method public boolean hasExcessPathLengthUncertainty();
  2837. method public boolean hasReflectingPlane();
  2838. method public boolean hasValidSatelliteLineOfSight();
  2839. method public void writeToParcel(@NonNull android.os.Parcel, int);
  2840. field public static final android.os.Parcelable.Creator<android.location.GnssSingleSatCorrection> CREATOR;
  2841. }
  2842. public static final class GnssSingleSatCorrection.Builder {
  2843. ctor public GnssSingleSatCorrection.Builder();
  2844. method @NonNull public android.location.GnssSingleSatCorrection build();
  2845. method @NonNull public android.location.GnssSingleSatCorrection.Builder setCarrierFrequencyHz(@FloatRange(from=0.0f, fromInclusive=false) float);
  2846. method @NonNull public android.location.GnssSingleSatCorrection.Builder setConstellationType(int);
  2847. method @NonNull public android.location.GnssSingleSatCorrection.Builder setExcessPathLengthMeters(@FloatRange(from=0.0f) float);
  2848. method @NonNull public android.location.GnssSingleSatCorrection.Builder setExcessPathLengthUncertaintyMeters(@FloatRange(from=0.0f) float);
  2849. method @NonNull public android.location.GnssSingleSatCorrection.Builder setProbabilityLineOfSight(@FloatRange(from=0.0f, to=1.0f) float);
  2850. method @NonNull public android.location.GnssSingleSatCorrection.Builder setReflectingPlane(@Nullable android.location.GnssReflectingPlane);
  2851. method @NonNull public android.location.GnssSingleSatCorrection.Builder setSatelliteId(@IntRange(from=0) int);
  2852. }
  2853. public class GpsClock implements android.os.Parcelable {
  2854. method public int describeContents();
  2855. method public double getBiasInNs();
  2856. method public double getBiasUncertaintyInNs();
  2857. method public double getDriftInNsPerSec();
  2858. method public double getDriftUncertaintyInNsPerSec();
  2859. method public long getFullBiasInNs();
  2860. method public short getLeapSecond();
  2861. method public long getTimeInNs();
  2862. method public double getTimeUncertaintyInNs();
  2863. method public byte getType();
  2864. method public boolean hasBiasInNs();
  2865. method public boolean hasBiasUncertaintyInNs();
  2866. method public boolean hasDriftInNsPerSec();
  2867. method public boolean hasDriftUncertaintyInNsPerSec();
  2868. method public boolean hasFullBiasInNs();
  2869. method public boolean hasLeapSecond();
  2870. method public boolean hasTimeUncertaintyInNs();
  2871. method public void reset();
  2872. method public void resetBiasInNs();
  2873. method public void resetBiasUncertaintyInNs();
  2874. method public void resetDriftInNsPerSec();
  2875. method public void resetDriftUncertaintyInNsPerSec();
  2876. method public void resetFullBiasInNs();
  2877. method public void resetLeapSecond();
  2878. method public void resetTimeUncertaintyInNs();
  2879. method public void set(android.location.GpsClock);
  2880. method public void setBiasInNs(double);
  2881. method public void setBiasUncertaintyInNs(double);
  2882. method public void setDriftInNsPerSec(double);
  2883. method public void setDriftUncertaintyInNsPerSec(double);
  2884. method public void setFullBiasInNs(long);
  2885. method public void setLeapSecond(short);
  2886. method public void setTimeInNs(long);
  2887. method public void setTimeUncertaintyInNs(double);
  2888. method public void setType(byte);
  2889. method public void writeToParcel(android.os.Parcel, int);
  2890. field @NonNull public static final android.os.Parcelable.Creator<android.location.GpsClock> CREATOR;
  2891. field public static final byte TYPE_GPS_TIME = 2; // 0x2
  2892. field public static final byte TYPE_LOCAL_HW_TIME = 1; // 0x1
  2893. field public static final byte TYPE_UNKNOWN = 0; // 0x0
  2894. }
  2895. public class GpsMeasurement implements android.os.Parcelable {
  2896. method public int describeContents();
  2897. method public double getAccumulatedDeltaRangeInMeters();
  2898. method public short getAccumulatedDeltaRangeState();
  2899. method public double getAccumulatedDeltaRangeUncertaintyInMeters();
  2900. method public double getAzimuthInDeg();
  2901. method public double getAzimuthUncertaintyInDeg();
  2902. method public int getBitNumber();
  2903. method public long getCarrierCycles();
  2904. method public float getCarrierFrequencyInHz();
  2905. method public double getCarrierPhase();
  2906. method public double getCarrierPhaseUncertainty();
  2907. method public double getCn0InDbHz();
  2908. method public double getCodePhaseInChips();
  2909. method public double getCodePhaseUncertaintyInChips();
  2910. method public double getDopplerShiftInHz();
  2911. method public double getDopplerShiftUncertaintyInHz();
  2912. method public double getElevationInDeg();
  2913. method public double getElevationUncertaintyInDeg();
  2914. method public byte getLossOfLock();
  2915. method public byte getMultipathIndicator();
  2916. method public byte getPrn();
  2917. method public double getPseudorangeInMeters();
  2918. method public double getPseudorangeRateInMetersPerSec();
  2919. method public double getPseudorangeRateUncertaintyInMetersPerSec();
  2920. method public double getPseudorangeUncertaintyInMeters();
  2921. method public long getReceivedGpsTowInNs();
  2922. method public long getReceivedGpsTowUncertaintyInNs();
  2923. method public double getSnrInDb();
  2924. method public short getState();
  2925. method public short getTimeFromLastBitInMs();
  2926. method public double getTimeOffsetInNs();
  2927. method public boolean hasAzimuthInDeg();
  2928. method public boolean hasAzimuthUncertaintyInDeg();
  2929. method public boolean hasBitNumber();
  2930. method public boolean hasCarrierCycles();
  2931. method public boolean hasCarrierFrequencyInHz();
  2932. method public boolean hasCarrierPhase();
  2933. method public boolean hasCarrierPhaseUncertainty();
  2934. method public boolean hasCodePhaseInChips();
  2935. method public boolean hasCodePhaseUncertaintyInChips();
  2936. method public boolean hasDopplerShiftInHz();
  2937. method public boolean hasDopplerShiftUncertaintyInHz();
  2938. method public boolean hasElevationInDeg();
  2939. method public boolean hasElevationUncertaintyInDeg();
  2940. method public boolean hasPseudorangeInMeters();
  2941. method public boolean hasPseudorangeUncertaintyInMeters();
  2942. method public boolean hasSnrInDb();
  2943. method public boolean hasTimeFromLastBitInMs();
  2944. method public boolean isPseudorangeRateCorrected();
  2945. method public boolean isUsedInFix();
  2946. method public void reset();
  2947. method public void resetAzimuthInDeg();
  2948. method public void resetAzimuthUncertaintyInDeg();
  2949. method public void resetBitNumber();
  2950. method public void resetCarrierCycles();
  2951. method public void resetCarrierFrequencyInHz();
  2952. method public void resetCarrierPhase();
  2953. method public void resetCarrierPhaseUncertainty();
  2954. method public void resetCodePhaseInChips();
  2955. method public void resetCodePhaseUncertaintyInChips();
  2956. method public void resetDopplerShiftInHz();
  2957. method public void resetDopplerShiftUncertaintyInHz();
  2958. method public void resetElevationInDeg();
  2959. method public void resetElevationUncertaintyInDeg();
  2960. method public void resetPseudorangeInMeters();
  2961. method public void resetPseudorangeUncertaintyInMeters();
  2962. method public void resetSnrInDb();
  2963. method public void resetTimeFromLastBitInMs();
  2964. method public void set(android.location.GpsMeasurement);
  2965. method public void setAccumulatedDeltaRangeInMeters(double);
  2966. method public void setAccumulatedDeltaRangeState(short);
  2967. method public void setAccumulatedDeltaRangeUncertaintyInMeters(double);
  2968. method public void setAzimuthInDeg(double);
  2969. method public void setAzimuthUncertaintyInDeg(double);
  2970. method public void setBitNumber(int);
  2971. method public void setCarrierCycles(long);
  2972. method public void setCarrierFrequencyInHz(float);
  2973. method public void setCarrierPhase(double);
  2974. method public void setCarrierPhaseUncertainty(double);
  2975. method public void setCn0InDbHz(double);
  2976. method public void setCodePhaseInChips(double);
  2977. method public void setCodePhaseUncertaintyInChips(double);
  2978. method public void setDopplerShiftInHz(double);
  2979. method public void setDopplerShiftUncertaintyInHz(double);
  2980. method public void setElevationInDeg(double);
  2981. method public void setElevationUncertaintyInDeg(double);
  2982. method public void setLossOfLock(byte);
  2983. method public void setMultipathIndicator(byte);
  2984. method public void setPrn(byte);
  2985. method public void setPseudorangeInMeters(double);
  2986. method public void setPseudorangeRateInMetersPerSec(double);
  2987. method public void setPseudorangeRateUncertaintyInMetersPerSec(double);
  2988. method public void setPseudorangeUncertaintyInMeters(double);
  2989. method public void setReceivedGpsTowInNs(long);
  2990. method public void setReceivedGpsTowUncertaintyInNs(long);
  2991. method public void setSnrInDb(double);
  2992. method public void setState(short);
  2993. method public void setTimeFromLastBitInMs(short);
  2994. method public void setTimeOffsetInNs(double);
  2995. method public void setUsedInFix(boolean);
  2996. method public void writeToParcel(android.os.Parcel, int);
  2997. field public static final short ADR_STATE_CYCLE_SLIP = 4; // 0x4
  2998. field public static final short ADR_STATE_RESET = 2; // 0x2
  2999. field public static final short ADR_STATE_UNKNOWN = 0; // 0x0
  3000. field public static final short ADR_STATE_VALID = 1; // 0x1
  3001. field @NonNull public static final android.os.Parcelable.Creator<android.location.GpsMeasurement> CREATOR;
  3002. field public static final byte LOSS_OF_LOCK_CYCLE_SLIP = 2; // 0x2
  3003. field public static final byte LOSS_OF_LOCK_OK = 1; // 0x1
  3004. field public static final byte LOSS_OF_LOCK_UNKNOWN = 0; // 0x0
  3005. field public static final byte MULTIPATH_INDICATOR_DETECTED = 1; // 0x1
  3006. field public static final byte MULTIPATH_INDICATOR_NOT_USED = 2; // 0x2
  3007. field public static final byte MULTIPATH_INDICATOR_UNKNOWN = 0; // 0x0
  3008. field public static final short STATE_BIT_SYNC = 2; // 0x2
  3009. field public static final short STATE_CODE_LOCK = 1; // 0x1
  3010. field public static final short STATE_MSEC_AMBIGUOUS = 16; // 0x10
  3011. field public static final short STATE_SUBFRAME_SYNC = 4; // 0x4
  3012. field public static final short STATE_TOW_DECODED = 8; // 0x8
  3013. field public static final short STATE_UNKNOWN = 0; // 0x0
  3014. }
  3015. public class GpsMeasurementsEvent implements android.os.Parcelable {
  3016. ctor public GpsMeasurementsEvent(android.location.GpsClock, android.location.GpsMeasurement[]);
  3017. method public int describeContents();
  3018. method @NonNull public android.location.GpsClock getClock();
  3019. method @NonNull public java.util.Collection<android.location.GpsMeasurement> getMeasurements();
  3020. method public void writeToParcel(android.os.Parcel, int);
  3021. field @NonNull public static final android.os.Parcelable.Creator<android.location.GpsMeasurementsEvent> CREATOR;
  3022. field public static final int STATUS_GPS_LOCATION_DISABLED = 2; // 0x2
  3023. field public static final int STATUS_NOT_SUPPORTED = 0; // 0x0
  3024. field public static final int STATUS_READY = 1; // 0x1
  3025. }
  3026. public static interface GpsMeasurementsEvent.Listener {
  3027. method public void onGpsMeasurementsReceived(android.location.GpsMeasurementsEvent);
  3028. method public void onStatusChanged(int);
  3029. }
  3030. public class GpsNavigationMessage implements android.os.Parcelable {
  3031. method public int describeContents();
  3032. method @NonNull public byte[] getData();
  3033. method public short getMessageId();
  3034. method public byte getPrn();
  3035. method public short getStatus();
  3036. method public short getSubmessageId();
  3037. method public byte getType();
  3038. method public void reset();
  3039. method public void set(android.location.GpsNavigationMessage);
  3040. method public void setData(byte[]);
  3041. method public void setMessageId(short);
  3042. method public void setPrn(byte);
  3043. method public void setStatus(short);
  3044. method public void setSubmessageId(short);
  3045. method public void setType(byte);
  3046. method public void writeToParcel(android.os.Parcel, int);
  3047. field @NonNull public static final android.os.Parcelable.Creator<android.location.GpsNavigationMessage> CREATOR;
  3048. field public static final short STATUS_PARITY_PASSED = 1; // 0x1
  3049. field public static final short STATUS_PARITY_REBUILT = 2; // 0x2
  3050. field public static final short STATUS_UNKNOWN = 0; // 0x0
  3051. field public static final byte TYPE_CNAV2 = 4; // 0x4
  3052. field public static final byte TYPE_L1CA = 1; // 0x1
  3053. field public static final byte TYPE_L2CNAV = 2; // 0x2
  3054. field public static final byte TYPE_L5CNAV = 3; // 0x3
  3055. field public static final byte TYPE_UNKNOWN = 0; // 0x0
  3056. }
  3057. public class GpsNavigationMessageEvent implements android.os.Parcelable {
  3058. ctor public GpsNavigationMessageEvent(android.location.GpsNavigationMessage);
  3059. method public int describeContents();
  3060. method @NonNull public android.location.GpsNavigationMessage getNavigationMessage();
  3061. method public void writeToParcel(android.os.Parcel, int);
  3062. field @NonNull public static final android.os.Parcelable.Creator<android.location.GpsNavigationMessageEvent> CREATOR;
  3063. field public static int STATUS_GPS_LOCATION_DISABLED;
  3064. field public static int STATUS_NOT_SUPPORTED;
  3065. field public static int STATUS_READY;
  3066. }
  3067. public static interface GpsNavigationMessageEvent.Listener {
  3068. method public void onGpsNavigationMessageReceived(android.location.GpsNavigationMessageEvent);
  3069. method public void onStatusChanged(int);
  3070. }
  3071. public class Location implements android.os.Parcelable {
  3072. method public boolean isComplete();
  3073. method public void makeComplete();
  3074. method public void setIsFromMockProvider(boolean);
  3075. }
  3076. public class LocationManager {
  3077. method @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public void flushGnssBatch();
  3078. method @Nullable public String getExtraLocationControllerPackage();
  3079. method @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public int getGnssBatchSize();
  3080. method @NonNull @RequiresPermission(android.Manifest.permission.ACCESS_FINE_LOCATION) public android.location.GnssCapabilities getGnssCapabilities();
  3081. method @RequiresPermission(android.Manifest.permission.ACCESS_FINE_LOCATION) public void injectGnssMeasurementCorrections(@NonNull android.location.GnssMeasurementCorrections);
  3082. method public boolean isExtraLocationControllerPackageEnabled();
  3083. method public boolean isLocationEnabledForUser(@NonNull android.os.UserHandle);
  3084. method public boolean isProviderEnabledForUser(@NonNull String, @NonNull android.os.UserHandle);
  3085. method public boolean isProviderPackage(@NonNull String);
  3086. method @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public boolean registerGnssBatchedLocationCallback(long, boolean, @NonNull android.location.BatchedLocationCallback, @Nullable android.os.Handler);
  3087. method @RequiresPermission(anyOf={android.Manifest.permission.ACCESS_COARSE_LOCATION, android.Manifest.permission.ACCESS_FINE_LOCATION}) public void requestLocationUpdates(@NonNull android.location.LocationRequest, @NonNull android.location.LocationListener, @Nullable android.os.Looper);
  3088. method @RequiresPermission(anyOf={android.Manifest.permission.ACCESS_COARSE_LOCATION, android.Manifest.permission.ACCESS_FINE_LOCATION}) public void requestLocationUpdates(@NonNull android.location.LocationRequest, @NonNull android.app.PendingIntent);
  3089. method @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public void setExtraLocationControllerPackage(@Nullable String);
  3090. method @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public void setExtraLocationControllerPackageEnabled(boolean);
  3091. method @RequiresPermission(android.Manifest.permission.WRITE_SECURE_SETTINGS) public void setLocationEnabledForUser(boolean, @NonNull android.os.UserHandle);
  3092. method @Deprecated @RequiresPermission(android.Manifest.permission.WRITE_SECURE_SETTINGS) public boolean setProviderEnabledForUser(@NonNull String, boolean, @NonNull android.os.UserHandle);
  3093. method @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public boolean unregisterGnssBatchedLocationCallback(@NonNull android.location.BatchedLocationCallback);
  3094. }
  3095. public final class LocationRequest implements android.os.Parcelable {
  3096. method @NonNull public static android.location.LocationRequest create();
  3097. method @NonNull public static android.location.LocationRequest createFromDeprecatedCriteria(@NonNull android.location.Criteria, long, float, boolean);
  3098. method @NonNull public static android.location.LocationRequest createFromDeprecatedProvider(@NonNull String, long, float, boolean);
  3099. method public int describeContents();
  3100. method public long getExpireAt();
  3101. method public long getFastestInterval();
  3102. method public boolean getHideFromAppOps();
  3103. method public long getInterval();
  3104. method public int getNumUpdates();
  3105. method @NonNull public String getProvider();
  3106. method public int getQuality();
  3107. method public float getSmallestDisplacement();
  3108. method @Nullable public android.os.WorkSource getWorkSource();
  3109. method public boolean isLocationSettingsIgnored();
  3110. method public boolean isLowPowerMode();
  3111. method @NonNull public android.location.LocationRequest setExpireAt(long);
  3112. method @NonNull public android.location.LocationRequest setExpireIn(long);
  3113. method @NonNull public android.location.LocationRequest setFastestInterval(long);
  3114. method public void setHideFromAppOps(boolean);
  3115. method @NonNull public android.location.LocationRequest setInterval(long);
  3116. method @RequiresPermission(android.Manifest.permission.WRITE_SECURE_SETTINGS) @NonNull public android.location.LocationRequest setLocationSettingsIgnored(boolean);
  3117. method @NonNull public android.location.LocationRequest setLowPowerMode(boolean);
  3118. method @NonNull public android.location.LocationRequest setNumUpdates(int);
  3119. method @NonNull public android.location.LocationRequest setProvider(@NonNull String);
  3120. method @NonNull public android.location.LocationRequest setQuality(int);
  3121. method @NonNull public android.location.LocationRequest setSmallestDisplacement(float);
  3122. method public void setWorkSource(@Nullable android.os.WorkSource);
  3123. method public void writeToParcel(android.os.Parcel, int);
  3124. field public static final int ACCURACY_BLOCK = 102; // 0x66
  3125. field public static final int ACCURACY_CITY = 104; // 0x68
  3126. field public static final int ACCURACY_FINE = 100; // 0x64
  3127. field @NonNull public static final android.os.Parcelable.Creator<android.location.LocationRequest> CREATOR;
  3128. field public static final int POWER_HIGH = 203; // 0xcb
  3129. field public static final int POWER_LOW = 201; // 0xc9
  3130. field public static final int POWER_NONE = 200; // 0xc8
  3131. }
  3132. }
  3133. package android.media {
  3134. public final class AudioAttributes implements android.os.Parcelable {
  3135. method public int getAllFlags();
  3136. method public android.os.Bundle getBundle();
  3137. method public int getCapturePreset();
  3138. field public static final int FLAG_BEACON = 8; // 0x8
  3139. field public static final int FLAG_BYPASS_INTERRUPTION_POLICY = 64; // 0x40
  3140. field public static final int FLAG_BYPASS_MUTE = 128; // 0x80
  3141. field public static final int FLAG_HW_HOTWORD = 32; // 0x20
  3142. }
  3143. public static class AudioAttributes.Builder {
  3144. method public android.media.AudioAttributes.Builder addBundle(@NonNull android.os.Bundle);
  3145. method public android.media.AudioAttributes.Builder setCapturePreset(int);
  3146. method public android.media.AudioAttributes.Builder setInternalCapturePreset(int);
  3147. }
  3148. public final class AudioFocusInfo implements android.os.Parcelable {
  3149. method public int describeContents();
  3150. method @NonNull public android.media.AudioAttributes getAttributes();
  3151. method @NonNull public String getClientId();
  3152. method public int getClientUid();
  3153. method public int getFlags();
  3154. method public int getGainRequest();
  3155. method public int getLossReceived();
  3156. method @NonNull public String getPackageName();
  3157. method public void writeToParcel(android.os.Parcel, int);
  3158. field @NonNull public static final android.os.Parcelable.Creator<android.media.AudioFocusInfo> CREATOR;
  3159. }
  3160. public final class AudioFocusRequest {
  3161. method public boolean locksFocus();
  3162. }
  3163. public static final class AudioFocusRequest.Builder {
  3164. method @NonNull public android.media.AudioFocusRequest.Builder setLocksFocus(boolean);
  3165. }
  3166. public class AudioManager {
  3167. method @Deprecated public int abandonAudioFocus(android.media.AudioManager.OnAudioFocusChangeListener, android.media.AudioAttributes);
  3168. method public void clearAudioServerStateCallback();
  3169. method @RequiresPermission(android.Manifest.permission.MODIFY_AUDIO_ROUTING) public int dispatchAudioFocusChange(@NonNull android.media.AudioFocusInfo, int, @NonNull android.media.audiopolicy.AudioPolicy);
  3170. method @NonNull @RequiresPermission(android.Manifest.permission.MODIFY_AUDIO_ROUTING) public static java.util.List<android.media.audiopolicy.AudioProductStrategy> getAudioProductStrategies();
  3171. method @NonNull @RequiresPermission(android.Manifest.permission.MODIFY_AUDIO_ROUTING) public static java.util.List<android.media.audiopolicy.AudioVolumeGroup> getAudioVolumeGroups();
  3172. method @IntRange(from=0) @RequiresPermission(android.Manifest.permission.MODIFY_AUDIO_ROUTING) public int getMaxVolumeIndexForAttributes(@NonNull android.media.AudioAttributes);
  3173. method @IntRange(from=0) @RequiresPermission(android.Manifest.permission.MODIFY_AUDIO_ROUTING) public int getMinVolumeIndexForAttributes(@NonNull android.media.AudioAttributes);
  3174. method @IntRange(from=0) @RequiresPermission(android.Manifest.permission.MODIFY_AUDIO_ROUTING) public int getVolumeIndexForAttributes(@NonNull android.media.AudioAttributes);
  3175. method public boolean isAudioServerRunning();
  3176. method public boolean isHdmiSystemAudioSupported();
  3177. method @RequiresPermission(android.Manifest.permission.MODIFY_AUDIO_ROUTING) public int registerAudioPolicy(@NonNull android.media.audiopolicy.AudioPolicy);
  3178. method public void registerVolumeGroupCallback(@NonNull java.util.concurrent.Executor, @NonNull android.media.AudioManager.VolumeGroupCallback);
  3179. method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public int requestAudioFocus(android.media.AudioManager.OnAudioFocusChangeListener, @NonNull android.media.AudioAttributes, int, int) throws java.lang.IllegalArgumentException;
  3180. method @Deprecated @RequiresPermission(anyOf={android.Manifest.permission.MODIFY_PHONE_STATE, android.Manifest.permission.MODIFY_AUDIO_ROUTING}) public int requestAudioFocus(android.media.AudioManager.OnAudioFocusChangeListener, @NonNull android.media.AudioAttributes, int, int, android.media.audiopolicy.AudioPolicy) throws java.lang.IllegalArgumentException;
  3181. method @RequiresPermission(android.Manifest.permission.MODIFY_AUDIO_ROUTING) public int requestAudioFocus(@NonNull android.media.AudioFocusRequest, @Nullable android.media.audiopolicy.AudioPolicy);
  3182. method public void setAudioServerStateCallback(@NonNull java.util.concurrent.Executor, @NonNull android.media.AudioManager.AudioServerStateCallback);
  3183. method @RequiresPermission(android.Manifest.permission.MODIFY_AUDIO_ROUTING) public void setFocusRequestResult(@NonNull android.media.AudioFocusInfo, int, @NonNull android.media.audiopolicy.AudioPolicy);
  3184. method @RequiresPermission(android.Manifest.permission.MODIFY_AUDIO_ROUTING) public void setVolumeIndexForAttributes(@NonNull android.media.AudioAttributes, int, int);
  3185. method @RequiresPermission(android.Manifest.permission.MODIFY_AUDIO_ROUTING) public void unregisterAudioPolicy(@NonNull android.media.audiopolicy.AudioPolicy);
  3186. method @RequiresPermission(android.Manifest.permission.MODIFY_AUDIO_ROUTING) public void unregisterAudioPolicyAsync(@NonNull android.media.audiopolicy.AudioPolicy);
  3187. method public void unregisterVolumeGroupCallback(@NonNull android.media.AudioManager.VolumeGroupCallback);
  3188. field public static final int AUDIOFOCUS_FLAG_DELAY_OK = 1; // 0x1
  3189. field public static final int AUDIOFOCUS_FLAG_LOCK = 4; // 0x4
  3190. field public static final int AUDIOFOCUS_FLAG_PAUSES_ON_DUCKABLE_LOSS = 2; // 0x2
  3191. field public static final int SUCCESS = 0; // 0x0
  3192. }
  3193. public abstract static class AudioManager.AudioServerStateCallback {
  3194. ctor public AudioManager.AudioServerStateCallback();
  3195. method public void onAudioServerDown();
  3196. method public void onAudioServerUp();
  3197. }
  3198. public abstract static class AudioManager.VolumeGroupCallback {
  3199. ctor public AudioManager.VolumeGroupCallback();
  3200. method public void onAudioVolumeGroupChanged(int, int);
  3201. }
  3202. public final class AudioPlaybackConfiguration implements android.os.Parcelable {
  3203. method public int getClientPid();
  3204. method public int getClientUid();
  3205. method public int getPlayerInterfaceId();
  3206. method public android.media.PlayerProxy getPlayerProxy();
  3207. method public int getPlayerState();
  3208. method public int getPlayerType();
  3209. field public static final int PLAYER_STATE_IDLE = 1; // 0x1
  3210. field public static final int PLAYER_STATE_PAUSED = 3; // 0x3
  3211. field public static final int PLAYER_STATE_RELEASED = 0; // 0x0
  3212. field public static final int PLAYER_STATE_STARTED = 2; // 0x2
  3213. field public static final int PLAYER_STATE_STOPPED = 4; // 0x4
  3214. field public static final int PLAYER_STATE_UNKNOWN = -1; // 0xffffffff
  3215. field public static final int PLAYER_TYPE_JAM_AUDIOTRACK = 1; // 0x1
  3216. field public static final int PLAYER_TYPE_JAM_MEDIAPLAYER = 2; // 0x2
  3217. field public static final int PLAYER_TYPE_JAM_SOUNDPOOL = 3; // 0x3
  3218. field public static final int PLAYER_TYPE_SLES_AUDIOPLAYER_BUFFERQUEUE = 11; // 0xb
  3219. field public static final int PLAYER_TYPE_SLES_AUDIOPLAYER_URI_FD = 12; // 0xc
  3220. field public static final int PLAYER_TYPE_UNKNOWN = -1; // 0xffffffff
  3221. }
  3222. public class AudioRecord implements android.media.AudioRecordingMonitor android.media.AudioRouting android.media.MicrophoneDirection {
  3223. ctor public AudioRecord(android.media.AudioAttributes, android.media.AudioFormat, int, int) throws java.lang.IllegalArgumentException;
  3224. }
  3225. public static class AudioRecord.Builder {
  3226. method public android.media.AudioRecord.Builder setAudioAttributes(@NonNull android.media.AudioAttributes) throws java.lang.IllegalArgumentException;
  3227. method public android.media.AudioRecord.Builder setSessionId(int) throws java.lang.IllegalArgumentException;
  3228. }
  3229. public class HwAudioSource {
  3230. method public boolean isPlaying();
  3231. method public void start();
  3232. method public void stop();
  3233. }
  3234. public static final class HwAudioSource.Builder {
  3235. ctor public HwAudioSource.Builder();
  3236. method @NonNull public android.media.HwAudioSource build();
  3237. method @NonNull public android.media.HwAudioSource.Builder setAudioAttributes(@NonNull android.media.AudioAttributes);
  3238. method @NonNull public android.media.HwAudioSource.Builder setAudioDeviceInfo(@NonNull android.media.AudioDeviceInfo);
  3239. }
  3240. public final class MediaRecorder.AudioSource {
  3241. field @RequiresPermission(android.Manifest.permission.CAPTURE_AUDIO_OUTPUT) public static final int ECHO_REFERENCE = 1997; // 0x7cd
  3242. field @RequiresPermission(android.Manifest.permission.CAPTURE_AUDIO_HOTWORD) public static final int HOTWORD = 1999; // 0x7cf
  3243. field public static final int RADIO_TUNER = 1998; // 0x7ce
  3244. }
  3245. public class PlayerProxy {
  3246. method public void pause();
  3247. method public void setPan(float);
  3248. method public void setStartDelayMs(int);
  3249. method public void setVolume(float);
  3250. method public void start();
  3251. method public void stop();
  3252. }
  3253. }
  3254. package android.media.audiopolicy {
  3255. public class AudioMix {
  3256. method public int getMixState();
  3257. field public static final int MIX_STATE_DISABLED = -1; // 0xffffffff
  3258. field public static final int MIX_STATE_IDLE = 0; // 0x0
  3259. field public static final int MIX_STATE_MIXING = 1; // 0x1
  3260. field public static final int ROUTE_FLAG_LOOP_BACK = 2; // 0x2
  3261. field public static final int ROUTE_FLAG_RENDER = 1; // 0x1
  3262. }
  3263. public static class AudioMix.Builder {
  3264. ctor public AudioMix.Builder(android.media.audiopolicy.AudioMixingRule) throws java.lang.IllegalArgumentException;
  3265. method public android.media.audiopolicy.AudioMix build() throws java.lang.IllegalArgumentException;
  3266. method public android.media.audiopolicy.AudioMix.Builder setDevice(@NonNull android.media.AudioDeviceInfo) throws java.lang.IllegalArgumentException;
  3267. method public android.media.audiopolicy.AudioMix.Builder setFormat(android.media.AudioFormat) throws java.lang.IllegalArgumentException;
  3268. method public android.media.audiopolicy.AudioMix.Builder setRouteFlags(int) throws java.lang.IllegalArgumentException;
  3269. }
  3270. public class AudioMixingRule {
  3271. field public static final int RULE_MATCH_ATTRIBUTE_CAPTURE_PRESET = 2; // 0x2
  3272. field public static final int RULE_MATCH_ATTRIBUTE_USAGE = 1; // 0x1
  3273. field public static final int RULE_MATCH_UID = 4; // 0x4
  3274. }
  3275. public static class AudioMixingRule.Builder {
  3276. ctor public AudioMixingRule.Builder();
  3277. method public android.media.audiopolicy.AudioMixingRule.Builder addMixRule(int, Object) throws java.lang.IllegalArgumentException;
  3278. method public android.media.audiopolicy.AudioMixingRule.Builder addRule(android.media.AudioAttributes, int) throws java.lang.IllegalArgumentException;
  3279. method @NonNull public android.media.audiopolicy.AudioMixingRule.Builder allowPrivilegedPlaybackCapture(boolean);
  3280. method public android.media.audiopolicy.AudioMixingRule build();
  3281. method public android.media.audiopolicy.AudioMixingRule.Builder excludeMixRule(int, Object) throws java.lang.IllegalArgumentException;
  3282. method public android.media.audiopolicy.AudioMixingRule.Builder excludeRule(android.media.AudioAttributes, int) throws java.lang.IllegalArgumentException;
  3283. }
  3284. public class AudioPolicy {
  3285. method public int attachMixes(@NonNull java.util.List<android.media.audiopolicy.AudioMix>);
  3286. method public android.media.AudioRecord createAudioRecordSink(android.media.audiopolicy.AudioMix) throws java.lang.IllegalArgumentException;
  3287. method public android.media.AudioTrack createAudioTrackSource(android.media.audiopolicy.AudioMix) throws java.lang.IllegalArgumentException;
  3288. method public int detachMixes(@NonNull java.util.List<android.media.audiopolicy.AudioMix>);
  3289. method public int getFocusDuckingBehavior();
  3290. method public int getStatus();
  3291. method public boolean removeUidDeviceAffinity(int);
  3292. method public int setFocusDuckingBehavior(int) throws java.lang.IllegalArgumentException, java.lang.IllegalStateException;
  3293. method public void setRegistration(String);
  3294. method public boolean setUidDeviceAffinity(int, @NonNull java.util.List<android.media.AudioDeviceInfo>);
  3295. method public String toLogFriendlyString();
  3296. field public static final int FOCUS_POLICY_DUCKING_DEFAULT = 0; // 0x0
  3297. field public static final int FOCUS_POLICY_DUCKING_IN_APP = 0; // 0x0
  3298. field public static final int FOCUS_POLICY_DUCKING_IN_POLICY = 1; // 0x1
  3299. field public static final int POLICY_STATUS_REGISTERED = 2; // 0x2
  3300. field public static final int POLICY_STATUS_UNREGISTERED = 1; // 0x1
  3301. }
  3302. public abstract static class AudioPolicy.AudioPolicyFocusListener {
  3303. ctor public AudioPolicy.AudioPolicyFocusListener();
  3304. method public void onAudioFocusAbandon(android.media.AudioFocusInfo);
  3305. method public void onAudioFocusGrant(android.media.AudioFocusInfo, int);
  3306. method public void onAudioFocusLoss(android.media.AudioFocusInfo, boolean);
  3307. method public void onAudioFocusRequest(android.media.AudioFocusInfo, int);
  3308. }
  3309. public abstract static class AudioPolicy.AudioPolicyStatusListener {
  3310. ctor public AudioPolicy.AudioPolicyStatusListener();
  3311. method public void onMixStateUpdate(android.media.audiopolicy.AudioMix);
  3312. method public void onStatusChange();
  3313. }
  3314. public abstract static class AudioPolicy.AudioPolicyVolumeCallback {
  3315. ctor public AudioPolicy.AudioPolicyVolumeCallback();
  3316. method public void onVolumeAdjustment(int);
  3317. }
  3318. public static class AudioPolicy.Builder {
  3319. ctor public AudioPolicy.Builder(android.content.Context);
  3320. method @NonNull public android.media.audiopolicy.AudioPolicy.Builder addMix(@NonNull android.media.audiopolicy.AudioMix) throws java.lang.IllegalArgumentException;
  3321. method @NonNull public android.media.audiopolicy.AudioPolicy build();
  3322. method public void setAudioPolicyFocusListener(android.media.audiopolicy.AudioPolicy.AudioPolicyFocusListener);
  3323. method public void setAudioPolicyStatusListener(android.media.audiopolicy.AudioPolicy.AudioPolicyStatusListener);
  3324. method @NonNull public android.media.audiopolicy.AudioPolicy.Builder setAudioPolicyVolumeCallback(@NonNull android.media.audiopolicy.AudioPolicy.AudioPolicyVolumeCallback);
  3325. method @NonNull public android.media.audiopolicy.AudioPolicy.Builder setIsAudioFocusPolicy(boolean);
  3326. method @NonNull public android.media.audiopolicy.AudioPolicy.Builder setLooper(@NonNull android.os.Looper) throws java.lang.IllegalArgumentException;
  3327. }
  3328. public final class AudioProductStrategy implements android.os.Parcelable {
  3329. method public int describeContents();
  3330. method @NonNull public android.media.AudioAttributes getAudioAttributes();
  3331. method public int getId();
  3332. method public void writeToParcel(@NonNull android.os.Parcel, int);
  3333. field @NonNull public static final android.os.Parcelable.Creator<android.media.audiopolicy.AudioProductStrategy> CREATOR;
  3334. }
  3335. public final class AudioVolumeGroup implements android.os.Parcelable {
  3336. method public int describeContents();
  3337. method @NonNull public java.util.List<android.media.AudioAttributes> getAudioAttributes();
  3338. method public int getId();
  3339. method @NonNull public int[] getLegacyStreamTypes();
  3340. method @NonNull public String name();
  3341. method public void writeToParcel(@NonNull android.os.Parcel, int);
  3342. field public static final android.os.Parcelable.Creator<android.media.audiopolicy.AudioVolumeGroup> CREATOR;
  3343. field public static final int DEFAULT_VOLUME_GROUP = -1; // 0xffffffff
  3344. }
  3345. }
  3346. package android.media.session {
  3347. public final class MediaSessionManager {
  3348. method @RequiresPermission(android.Manifest.permission.SET_MEDIA_KEY_LISTENER) public void setOnMediaKeyListener(android.media.session.MediaSessionManager.OnMediaKeyListener, @Nullable android.os.Handler);
  3349. method @RequiresPermission(android.Manifest.permission.SET_VOLUME_KEY_LONG_PRESS_LISTENER) public void setOnVolumeKeyLongPressListener(android.media.session.MediaSessionManager.OnVolumeKeyLongPressListener, @Nullable android.os.Handler);
  3350. }
  3351. public static interface MediaSessionManager.OnMediaKeyListener {
  3352. method public boolean onMediaKey(android.view.KeyEvent);
  3353. }
  3354. public static interface MediaSessionManager.OnVolumeKeyLongPressListener {
  3355. method public void onVolumeKeyLongPress(android.view.KeyEvent);
  3356. }
  3357. }
  3358. package android.media.soundtrigger {
  3359. public abstract class SoundTriggerDetectionService extends android.app.Service {
  3360. ctor public SoundTriggerDetectionService();
  3361. method @MainThread public void onConnected(@NonNull java.util.UUID, @Nullable android.os.Bundle);
  3362. method @MainThread public void onDisconnected(@NonNull java.util.UUID, @Nullable android.os.Bundle);
  3363. method @MainThread public void onError(@NonNull java.util.UUID, @Nullable android.os.Bundle, int, int);
  3364. method @MainThread public void onGenericRecognitionEvent(@NonNull java.util.UUID, @Nullable android.os.Bundle, int, @NonNull android.hardware.soundtrigger.SoundTrigger.RecognitionEvent);
  3365. method @MainThread public abstract void onStopOperation(@NonNull java.util.UUID, @Nullable android.os.Bundle, int);
  3366. method public final void operationFinished(@Nullable java.util.UUID, int);
  3367. }
  3368. public final class SoundTriggerDetector {
  3369. method @RequiresPermission(android.Manifest.permission.MANAGE_SOUND_TRIGGER) public boolean startRecognition(int);
  3370. method @RequiresPermission(android.Manifest.permission.MANAGE_SOUND_TRIGGER) public boolean stopRecognition();
  3371. field public static final int RECOGNITION_FLAG_ALLOW_MULTIPLE_TRIGGERS = 2; // 0x2
  3372. field public static final int RECOGNITION_FLAG_CAPTURE_TRIGGER_AUDIO = 1; // 0x1
  3373. }
  3374. public abstract static class SoundTriggerDetector.Callback {
  3375. ctor public SoundTriggerDetector.Callback();
  3376. method public abstract void onAvailabilityChanged(int);
  3377. method public abstract void onDetected(@NonNull android.media.soundtrigger.SoundTriggerDetector.EventPayload);
  3378. method public abstract void onError();
  3379. method public abstract void onRecognitionPaused();
  3380. method public abstract void onRecognitionResumed();
  3381. }
  3382. public static class SoundTriggerDetector.EventPayload {
  3383. method @Nullable public android.media.AudioFormat getCaptureAudioFormat();
  3384. method @Nullable public byte[] getTriggerAudio();
  3385. }
  3386. public final class SoundTriggerManager {
  3387. method @Nullable @RequiresPermission(android.Manifest.permission.MANAGE_SOUND_TRIGGER) public android.media.soundtrigger.SoundTriggerDetector createSoundTriggerDetector(java.util.UUID, @NonNull android.media.soundtrigger.SoundTriggerDetector.Callback, @Nullable android.os.Handler);
  3388. method @RequiresPermission(android.Manifest.permission.MANAGE_SOUND_TRIGGER) public void deleteModel(java.util.UUID);
  3389. method public int getDetectionServiceOperationsTimeout();
  3390. method @RequiresPermission(android.Manifest.permission.MANAGE_SOUND_TRIGGER) public android.media.soundtrigger.SoundTriggerManager.Model getModel(java.util.UUID);
  3391. method @RequiresPermission(android.Manifest.permission.MANAGE_SOUND_TRIGGER) public void updateModel(android.media.soundtrigger.SoundTriggerManager.Model);
  3392. }
  3393. public static class SoundTriggerManager.Model {
  3394. method public static android.media.soundtrigger.SoundTriggerManager.Model create(java.util.UUID, java.util.UUID, byte[]);
  3395. method public byte[] getModelData();
  3396. method public java.util.UUID getModelUuid();
  3397. method public java.util.UUID getVendorUuid();
  3398. }
  3399. }
  3400. package android.media.tv {
  3401. public final class TvContentRatingSystemInfo implements android.os.Parcelable {
  3402. method public static android.media.tv.TvContentRatingSystemInfo createTvContentRatingSystemInfo(int, android.content.pm.ApplicationInfo);
  3403. method public int describeContents();
  3404. method public android.net.Uri getXmlUri();
  3405. method public boolean isSystemDefined();
  3406. method public void writeToParcel(android.os.Parcel, int);
  3407. }
  3408. public final class TvContract {
  3409. method public static android.net.Uri buildChannelsUriForInput(@Nullable String, boolean);
  3410. method public static android.net.Uri buildChannelsUriForInput(@Nullable String, @Nullable String, boolean);
  3411. field public static final String ACTION_CHANNEL_BROWSABLE_REQUESTED = "android.media.tv.action.CHANNEL_BROWSABLE_REQUESTED";
  3412. field public static final String EXTRA_BLOCKED_PACKAGES = "android.media.tv.extra.BLOCKED_PACKAGES";
  3413. field public static final String EXTRA_COLUMN_NAME = "android.media.tv.extra.COLUMN_NAME";
  3414. field public static final String EXTRA_DATA_TYPE = "android.media.tv.extra.DATA_TYPE";
  3415. field public static final String EXTRA_DEFAULT_VALUE = "android.media.tv.extra.DEFAULT_VALUE";
  3416. field public static final String EXTRA_EXISTING_COLUMN_NAMES = "android.media.tv.extra.EXISTING_COLUMN_NAMES";
  3417. field public static final String EXTRA_PACKAGE_NAME = "android.media.tv.extra.PACKAGE_NAME";
  3418. field public static final String EXTRA_RESULT_CODE = "android.media.tv.extra.RESULT_CODE";
  3419. field public static final String METHOD_ADD_COLUMN = "add_column";
  3420. field public static final String METHOD_BLOCK_PACKAGE = "block_package";
  3421. field public static final String METHOD_GET_BLOCKED_PACKAGES = "get_blocked_packages";
  3422. field public static final String METHOD_GET_COLUMNS = "get_columns";
  3423. field public static final String METHOD_UNBLOCK_PACKAGE = "unblock_package";
  3424. field public static final int RESULT_ERROR_INVALID_ARGUMENT = 2; // 0x2
  3425. field public static final int RESULT_ERROR_IO = 1; // 0x1
  3426. field public static final int RESULT_OK = 0; // 0x0
  3427. }
  3428. public static final class TvContract.WatchedPrograms implements android.media.tv.TvContract.BaseTvColumns {
  3429. field public static final String COLUMN_CHANNEL_ID = "channel_id";
  3430. field public static final String COLUMN_DESCRIPTION = "description";
  3431. field public static final String COLUMN_END_TIME_UTC_MILLIS = "end_time_utc_millis";
  3432. field public static final String COLUMN_INTERNAL_SESSION_TOKEN = "session_token";
  3433. field public static final String COLUMN_INTERNAL_TUNE_PARAMS = "tune_params";
  3434. field public static final String COLUMN_START_TIME_UTC_MILLIS = "start_time_utc_millis";
  3435. field public static final String COLUMN_TITLE = "title";
  3436. field public static final String COLUMN_WATCH_END_TIME_UTC_MILLIS = "watch_end_time_utc_millis";
  3437. field public static final String COLUMN_WATCH_START_TIME_UTC_MILLIS = "watch_start_time_utc_millis";
  3438. field public static final String CONTENT_ITEM_TYPE = "vnd.android.cursor.item/watched_program";
  3439. field public static final String CONTENT_TYPE = "vnd.android.cursor.dir/watched_program";
  3440. field public static final android.net.Uri CONTENT_URI;
  3441. }
  3442. public final class TvInputHardwareInfo implements android.os.Parcelable {
  3443. method public int describeContents();
  3444. method public String getAudioAddress();
  3445. method public int getAudioType();
  3446. method public int getCableConnectionStatus();
  3447. method public int getDeviceId();
  3448. method public int getHdmiPortId();
  3449. method public int getType();
  3450. method public void readFromParcel(android.os.Parcel);
  3451. method public void writeToParcel(android.os.Parcel, int);
  3452. field public static final int CABLE_CONNECTION_STATUS_CONNECTED = 1; // 0x1
  3453. field public static final int CABLE_CONNECTION_STATUS_DISCONNECTED = 2; // 0x2
  3454. field public static final int CABLE_CONNECTION_STATUS_UNKNOWN = 0; // 0x0
  3455. field @NonNull public static final android.os.Parcelable.Creator<android.media.tv.TvInputHardwareInfo> CREATOR;
  3456. field public static final int TV_INPUT_TYPE_COMPONENT = 6; // 0x6
  3457. field public static final int TV_INPUT_TYPE_COMPOSITE = 3; // 0x3
  3458. field public static final int TV_INPUT_TYPE_DISPLAY_PORT = 10; // 0xa
  3459. field public static final int TV_INPUT_TYPE_DVI = 8; // 0x8
  3460. field public static final int TV_INPUT_TYPE_HDMI = 9; // 0x9
  3461. field public static final int TV_INPUT_TYPE_OTHER_HARDWARE = 1; // 0x1
  3462. field public static final int TV_INPUT_TYPE_SCART = 5; // 0x5
  3463. field public static final int TV_INPUT_TYPE_SVIDEO = 4; // 0x4
  3464. field public static final int TV_INPUT_TYPE_TUNER = 2; // 0x2
  3465. field public static final int TV_INPUT_TYPE_VGA = 7; // 0x7
  3466. }
  3467. public static final class TvInputHardwareInfo.Builder {
  3468. ctor public TvInputHardwareInfo.Builder();
  3469. method public android.media.tv.TvInputHardwareInfo.Builder audioAddress(String);
  3470. method public android.media.tv.TvInputHardwareInfo.Builder audioType(int);
  3471. method public android.media.tv.TvInputHardwareInfo build();
  3472. method public android.media.tv.TvInputHardwareInfo.Builder cableConnectionStatus(int);
  3473. method public android.media.tv.TvInputHardwareInfo.Builder deviceId(int);
  3474. method public android.media.tv.TvInputHardwareInfo.Builder hdmiPortId(int);
  3475. method public android.media.tv.TvInputHardwareInfo.Builder type(int);
  3476. }
  3477. public final class TvInputInfo implements android.os.Parcelable {
  3478. method @Deprecated public static android.media.tv.TvInputInfo createTvInputInfo(android.content.Context, android.content.pm.ResolveInfo, android.hardware.hdmi.HdmiDeviceInfo, String, String, android.net.Uri) throws java.io.IOException, org.xmlpull.v1.XmlPullParserException;
  3479. method @Deprecated public static android.media.tv.TvInputInfo createTvInputInfo(android.content.Context, android.content.pm.ResolveInfo, android.hardware.hdmi.HdmiDeviceInfo, String, int, android.graphics.drawable.Icon) throws java.io.IOException, org.xmlpull.v1.XmlPullParserException;
  3480. method @Deprecated public static android.media.tv.TvInputInfo createTvInputInfo(android.content.Context, android.content.pm.ResolveInfo, android.media.tv.TvInputHardwareInfo, String, android.net.Uri) throws java.io.IOException, org.xmlpull.v1.XmlPullParserException;
  3481. method @Deprecated public static android.media.tv.TvInputInfo createTvInputInfo(android.content.Context, android.content.pm.ResolveInfo, android.media.tv.TvInputHardwareInfo, int, android.graphics.drawable.Icon) throws java.io.IOException, org.xmlpull.v1.XmlPullParserException;
  3482. method public android.hardware.hdmi.HdmiDeviceInfo getHdmiDeviceInfo();
  3483. method public boolean isConnectedToHdmiSwitch();
  3484. method public boolean isHardwareInput();
  3485. method public android.graphics.drawable.Drawable loadIcon(@NonNull android.content.Context, int);
  3486. }
  3487. public static final class TvInputInfo.Builder {
  3488. method public android.media.tv.TvInputInfo.Builder setHdmiDeviceInfo(android.hardware.hdmi.HdmiDeviceInfo);
  3489. method public android.media.tv.TvInputInfo.Builder setIcon(android.graphics.drawable.Icon);
  3490. method public android.media.tv.TvInputInfo.Builder setIcon(android.graphics.drawable.Icon, int);
  3491. method public android.media.tv.TvInputInfo.Builder setLabel(CharSequence);
  3492. method public android.media.tv.TvInputInfo.Builder setLabel(@StringRes int);
  3493. method public android.media.tv.TvInputInfo.Builder setParentId(String);
  3494. method public android.media.tv.TvInputInfo.Builder setTvInputHardwareInfo(android.media.tv.TvInputHardwareInfo);
  3495. }
  3496. public static final class TvInputInfo.TvInputSettings {
  3497. method public static java.util.Map<java.lang.String,java.lang.String> getCustomLabels(android.content.Context, int);
  3498. method public static java.util.Set<java.lang.String> getHiddenTvInputIds(android.content.Context, int);
  3499. method public static void putCustomLabels(android.content.Context, java.util.Map<java.lang.String,java.lang.String>, int);
  3500. method public static void putHiddenTvInputs(android.content.Context, java.util.Set<java.lang.String>, int);
  3501. }
  3502. public final class TvInputManager {
  3503. method @RequiresPermission(android.Manifest.permission.TV_INPUT_HARDWARE) public android.media.tv.TvInputManager.Hardware acquireTvInputHardware(int, android.media.tv.TvInputInfo, android.media.tv.TvInputManager.HardwareCallback);
  3504. method @RequiresPermission(android.Manifest.permission.MODIFY_PARENTAL_CONTROLS) public void addBlockedRating(@NonNull android.media.tv.TvContentRating);
  3505. method @RequiresPermission(android.Manifest.permission.CAPTURE_TV_INPUT) public boolean captureFrame(String, android.view.Surface, android.media.tv.TvStreamConfig);
  3506. method @RequiresPermission(android.Manifest.permission.CAPTURE_TV_INPUT) public java.util.List<android.media.tv.TvStreamConfig> getAvailableTvStreamConfigList(String);
  3507. method @RequiresPermission(android.Manifest.permission.TV_INPUT_HARDWARE) public java.util.List<android.media.tv.TvInputHardwareInfo> getHardwareList();
  3508. method @RequiresPermission(android.Manifest.permission.READ_CONTENT_RATING_SYSTEMS) public java.util.List<android.media.tv.TvContentRatingSystemInfo> getTvContentRatingSystemList();
  3509. method @RequiresPermission(android.Manifest.permission.CAPTURE_TV_INPUT) public boolean isSingleSessionActive();
  3510. method @RequiresPermission(android.Manifest.permission.NOTIFY_TV_INPUTS) public void notifyPreviewProgramAddedToWatchNext(String, long, long);
  3511. method @RequiresPermission(android.Manifest.permission.NOTIFY_TV_INPUTS) public void notifyPreviewProgramBrowsableDisabled(String, long);
  3512. method @RequiresPermission(android.Manifest.permission.NOTIFY_TV_INPUTS) public void notifyWatchNextProgramBrowsableDisabled(String, long);
  3513. method @RequiresPermission(android.Manifest.permission.TV_INPUT_HARDWARE) public void releaseTvInputHardware(int, android.media.tv.TvInputManager.Hardware);
  3514. method @RequiresPermission(android.Manifest.permission.MODIFY_PARENTAL_CONTROLS) public void removeBlockedRating(@NonNull android.media.tv.TvContentRating);
  3515. method @RequiresPermission(android.Manifest.permission.MODIFY_PARENTAL_CONTROLS) public void setParentalControlsEnabled(boolean);
  3516. }
  3517. public static final class TvInputManager.Hardware {
  3518. method public void overrideAudioSink(int, String, int, int, int);
  3519. method public void setStreamVolume(float);
  3520. method public boolean setSurface(android.view.Surface, android.media.tv.TvStreamConfig);
  3521. }
  3522. public abstract static class TvInputManager.HardwareCallback {
  3523. ctor public TvInputManager.HardwareCallback();
  3524. method public abstract void onReleased();
  3525. method public abstract void onStreamConfigChanged(android.media.tv.TvStreamConfig[]);
  3526. }
  3527. public abstract class TvInputService extends android.app.Service {
  3528. method @Nullable public android.media.tv.TvInputInfo onHardwareAdded(android.media.tv.TvInputHardwareInfo);
  3529. method @Nullable public String onHardwareRemoved(android.media.tv.TvInputHardwareInfo);
  3530. method @Nullable public android.media.tv.TvInputInfo onHdmiDeviceAdded(android.hardware.hdmi.HdmiDeviceInfo);
  3531. method @Nullable public String onHdmiDeviceRemoved(android.hardware.hdmi.HdmiDeviceInfo);
  3532. }
  3533. public abstract static class TvInputService.RecordingSession {
  3534. method public void notifySessionEvent(@NonNull String, android.os.Bundle);
  3535. }
  3536. public abstract static class TvInputService.Session implements android.view.KeyEvent.Callback {
  3537. method public void notifySessionEvent(@NonNull String, android.os.Bundle);
  3538. method public void onSetMain(boolean);
  3539. }
  3540. public abstract static class TvRecordingClient.RecordingCallback {
  3541. method public void onEvent(String, String, android.os.Bundle);
  3542. }
  3543. public class TvStreamConfig implements android.os.Parcelable {
  3544. method public int describeContents();
  3545. method public int getGeneration();
  3546. method public int getMaxHeight();
  3547. method public int getMaxWidth();
  3548. method public int getStreamId();
  3549. method public int getType();
  3550. method public void writeToParcel(android.os.Parcel, int);
  3551. field @NonNull public static final android.os.Parcelable.Creator<android.media.tv.TvStreamConfig> CREATOR;
  3552. field public static final int STREAM_TYPE_BUFFER_PRODUCER = 2; // 0x2
  3553. field public static final int STREAM_TYPE_INDEPENDENT_VIDEO_SOURCE = 1; // 0x1
  3554. }
  3555. public static final class TvStreamConfig.Builder {
  3556. ctor public TvStreamConfig.Builder();
  3557. method public android.media.tv.TvStreamConfig build();
  3558. method public android.media.tv.TvStreamConfig.Builder generation(int);
  3559. method public android.media.tv.TvStreamConfig.Builder maxHeight(int);
  3560. method public android.media.tv.TvStreamConfig.Builder maxWidth(int);
  3561. method public android.media.tv.TvStreamConfig.Builder streamId(int);
  3562. method public android.media.tv.TvStreamConfig.Builder type(int);
  3563. }
  3564. public class TvView extends android.view.ViewGroup {
  3565. method @RequiresPermission("android.permission.CHANGE_HDMI_CEC_ACTIVE_SOURCE") public void setMain();
  3566. method @RequiresPermission(android.Manifest.permission.MODIFY_PARENTAL_CONTROLS) public void unblockContent(android.media.tv.TvContentRating);
  3567. }
  3568. public abstract static class TvView.TvInputCallback {
  3569. method public void onEvent(String, String, android.os.Bundle);
  3570. }
  3571. }
  3572. package android.metrics {
  3573. public class LogMaker {
  3574. ctor public LogMaker(int);
  3575. ctor public LogMaker(Object[]);
  3576. method public android.metrics.LogMaker addTaggedData(int, Object);
  3577. method public android.metrics.LogMaker clearCategory();
  3578. method public android.metrics.LogMaker clearPackageName();
  3579. method public android.metrics.LogMaker clearSubtype();
  3580. method public android.metrics.LogMaker clearTaggedData(int);
  3581. method public android.metrics.LogMaker clearType();
  3582. method public void deserialize(Object[]);
  3583. method public int getCategory();
  3584. method public long getCounterBucket();
  3585. method public String getCounterName();
  3586. method public int getCounterValue();
  3587. method public String getPackageName();
  3588. method public int getProcessId();
  3589. method public int getSubtype();
  3590. method public Object getTaggedData(int);
  3591. method public long getTimestamp();
  3592. method public int getType();
  3593. method public int getUid();
  3594. method public boolean isLongCounterBucket();
  3595. method public boolean isSubsetOf(android.metrics.LogMaker);
  3596. method public boolean isValidValue(Object);
  3597. method public Object[] serialize();
  3598. method public android.metrics.LogMaker setCategory(int);
  3599. method public android.metrics.LogMaker setPackageName(String);
  3600. method public android.metrics.LogMaker setSubtype(int);
  3601. method public android.metrics.LogMaker setType(int);
  3602. }
  3603. public class MetricsReader {
  3604. ctor public MetricsReader();
  3605. method public void checkpoint();
  3606. method public boolean hasNext();
  3607. method public android.metrics.LogMaker next();
  3608. method public void read(long);
  3609. method public void reset();
  3610. }
  3611. }
  3612. package android.net {
  3613. public class CaptivePortal implements android.os.Parcelable {
  3614. method public void logEvent(int, @NonNull String);
  3615. method public void useNetwork();
  3616. field public static final int APP_RETURN_DISMISSED = 0; // 0x0
  3617. field public static final int APP_RETURN_UNWANTED = 1; // 0x1
  3618. field public static final int APP_RETURN_WANTED_AS_IS = 2; // 0x2
  3619. }
  3620. public class ConnectivityManager {
  3621. method @NonNull @RequiresPermission(android.Manifest.permission.PACKET_KEEPALIVE_OFFLOAD) public android.net.SocketKeepalive createNattKeepalive(@NonNull android.net.Network, @NonNull android.os.ParcelFileDescriptor, @NonNull java.net.InetAddress, @NonNull java.net.InetAddress, @NonNull java.util.concurrent.Executor, @NonNull android.net.SocketKeepalive.Callback);
  3622. method @NonNull @RequiresPermission(android.Manifest.permission.PACKET_KEEPALIVE_OFFLOAD) public android.net.SocketKeepalive createSocketKeepalive(@NonNull android.net.Network, @NonNull java.net.Socket, @NonNull java.util.concurrent.Executor, @NonNull android.net.SocketKeepalive.Callback);
  3623. method @RequiresPermission(android.Manifest.permission.LOCAL_MAC_ADDRESS) public String getCaptivePortalServerUrl();
  3624. method @RequiresPermission(android.Manifest.permission.TETHER_PRIVILEGED) public void getLatestTetheringEntitlementResult(int, boolean, @NonNull java.util.concurrent.Executor, @NonNull android.net.ConnectivityManager.OnTetheringEntitlementResultListener);
  3625. method @RequiresPermission(anyOf={android.Manifest.permission.TETHER_PRIVILEGED, android.Manifest.permission.WRITE_SETTINGS}) public boolean isTetheringSupported();
  3626. method @RequiresPermission(android.Manifest.permission.TETHER_PRIVILEGED) public void registerTetheringEventCallback(@NonNull java.util.concurrent.Executor, @NonNull android.net.ConnectivityManager.OnTetheringEventCallback);
  3627. method @RequiresPermission(anyOf={"android.permission.NETWORK_SETTINGS", android.Manifest.permission.NETWORK_SETUP_WIZARD, "android.permission.NETWORK_STACK"}) public void setAirplaneMode(boolean);
  3628. method @RequiresPermission(anyOf={android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK, "android.permission.NETWORK_STACK"}) public boolean shouldAvoidBadWifi();
  3629. method @RequiresPermission(android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK) public void startCaptivePortalApp(@NonNull android.net.Network, @NonNull android.os.Bundle);
  3630. method @RequiresPermission(android.Manifest.permission.TETHER_PRIVILEGED) public void startTethering(int, boolean, android.net.ConnectivityManager.OnStartTetheringCallback);
  3631. method @RequiresPermission(android.Manifest.permission.TETHER_PRIVILEGED) public void startTethering(int, boolean, android.net.ConnectivityManager.OnStartTetheringCallback, android.os.Handler);
  3632. method @RequiresPermission(android.Manifest.permission.TETHER_PRIVILEGED) public void stopTethering(int);
  3633. method @RequiresPermission(android.Manifest.permission.TETHER_PRIVILEGED) public void unregisterTetheringEventCallback(@NonNull android.net.ConnectivityManager.OnTetheringEventCallback);
  3634. field public static final String EXTRA_CAPTIVE_PORTAL_PROBE_SPEC = "android.net.extra.CAPTIVE_PORTAL_PROBE_SPEC";
  3635. field public static final String EXTRA_CAPTIVE_PORTAL_USER_AGENT = "android.net.extra.CAPTIVE_PORTAL_USER_AGENT";
  3636. field public static final int TETHERING_BLUETOOTH = 2; // 0x2
  3637. field public static final int TETHERING_USB = 1; // 0x1
  3638. field public static final int TETHERING_WIFI = 0; // 0x0
  3639. field public static final int TETHER_ERROR_ENTITLEMENT_UNKONWN = 13; // 0xd
  3640. field public static final int TETHER_ERROR_NO_ERROR = 0; // 0x0
  3641. field public static final int TETHER_ERROR_PROVISION_FAILED = 11; // 0xb
  3642. }
  3643. public abstract static class ConnectivityManager.OnStartTetheringCallback {
  3644. ctor public ConnectivityManager.OnStartTetheringCallback();
  3645. method public void onTetheringFailed();
  3646. method public void onTetheringStarted();
  3647. }
  3648. public static interface ConnectivityManager.OnTetheringEntitlementResultListener {
  3649. method public void onTetheringEntitlementResult(int);
  3650. }
  3651. public abstract static class ConnectivityManager.OnTetheringEventCallback {
  3652. ctor public ConnectivityManager.OnTetheringEventCallback();
  3653. method public void onUpstreamChanged(@Nullable android.net.Network);
  3654. }
  3655. public final class IpPrefix implements android.os.Parcelable {
  3656. ctor public IpPrefix(@NonNull java.net.InetAddress, @IntRange(from=0, to=128) int);
  3657. ctor public IpPrefix(@NonNull String);
  3658. }
  3659. public final class IpSecManager {
  3660. method @RequiresPermission(android.Manifest.permission.MANAGE_IPSEC_TUNNELS) public void applyTunnelModeTransform(@NonNull android.net.IpSecManager.IpSecTunnelInterface, int, @NonNull android.net.IpSecTransform) throws java.io.IOException;
  3661. method @NonNull @RequiresPermission(android.Manifest.permission.MANAGE_IPSEC_TUNNELS) public android.net.IpSecManager.IpSecTunnelInterface createIpSecTunnelInterface(@NonNull java.net.InetAddress, @NonNull java.net.InetAddress, @NonNull android.net.Network) throws java.io.IOException, android.net.IpSecManager.ResourceUnavailableException;
  3662. }
  3663. public static final class IpSecManager.IpSecTunnelInterface implements java.lang.AutoCloseable {
  3664. method @RequiresPermission(android.Manifest.permission.MANAGE_IPSEC_TUNNELS) public void addAddress(@NonNull java.net.InetAddress, int) throws java.io.IOException;
  3665. method public void close();
  3666. method @NonNull public String getInterfaceName();
  3667. method @RequiresPermission(android.Manifest.permission.MANAGE_IPSEC_TUNNELS) public void removeAddress(@NonNull java.net.InetAddress, int) throws java.io.IOException;
  3668. }
  3669. public static class IpSecTransform.Builder {
  3670. method @NonNull @RequiresPermission(android.Manifest.permission.MANAGE_IPSEC_TUNNELS) public android.net.IpSecTransform buildTunnelModeTransform(@NonNull java.net.InetAddress, @NonNull android.net.IpSecManager.SecurityParameterIndex) throws java.io.IOException, android.net.IpSecManager.ResourceUnavailableException, android.net.IpSecManager.SpiUnavailableException;
  3671. }
  3672. public class LinkAddress implements android.os.Parcelable {
  3673. ctor public LinkAddress(@NonNull java.net.InetAddress, @IntRange(from=0, to=128) int, int, int);
  3674. ctor public LinkAddress(@NonNull java.net.InetAddress, @IntRange(from=0, to=128) int);
  3675. ctor public LinkAddress(@NonNull String);
  3676. ctor public LinkAddress(@NonNull String, int, int);
  3677. method public boolean isGlobalPreferred();
  3678. method public boolean isIpv4();
  3679. method public boolean isIpv6();
  3680. method public boolean isSameAddressAs(@Nullable android.net.LinkAddress);
  3681. }
  3682. public final class LinkProperties implements android.os.Parcelable {
  3683. ctor public LinkProperties(@Nullable android.net.LinkProperties);
  3684. method public boolean addDnsServer(@NonNull java.net.InetAddress);
  3685. method public boolean addLinkAddress(@NonNull android.net.LinkAddress);
  3686. method @Nullable public android.net.IpPrefix getNat64Prefix();
  3687. method @NonNull public java.util.List<java.net.InetAddress> getPcscfServers();
  3688. method @Nullable public String getTcpBufferSizes();
  3689. method @NonNull public java.util.List<java.net.InetAddress> getValidatedPrivateDnsServers();
  3690. method public boolean hasGlobalIpv6Address();
  3691. method public boolean hasIpv4Address();
  3692. method public boolean hasIpv6DefaultRoute();
  3693. method public boolean isIpv4Provisioned();
  3694. method public boolean isIpv6Provisioned();
  3695. method public boolean isProvisioned();
  3696. method public boolean isReachable(@NonNull java.net.InetAddress);
  3697. method public boolean removeDnsServer(@NonNull java.net.InetAddress);
  3698. method public boolean removeLinkAddress(@NonNull android.net.LinkAddress);
  3699. method public boolean removeRoute(@NonNull android.net.RouteInfo);
  3700. method public void setNat64Prefix(@Nullable android.net.IpPrefix);
  3701. method public void setPcscfServers(@NonNull java.util.Collection<java.net.InetAddress>);
  3702. method public void setPrivateDnsServerName(@Nullable String);
  3703. method public void setTcpBufferSizes(@Nullable String);
  3704. method public void setUsePrivateDns(boolean);
  3705. method public void setValidatedPrivateDnsServers(@NonNull java.util.Collection<java.net.InetAddress>);
  3706. }
  3707. public class Network implements android.os.Parcelable {
  3708. ctor public Network(@NonNull android.net.Network);
  3709. method @NonNull public android.net.Network getPrivateDnsBypassingCopy();
  3710. }
  3711. public final class NetworkCapabilities implements android.os.Parcelable {
  3712. method @NonNull public int[] getTransportTypes();
  3713. method public boolean satisfiedByNetworkCapabilities(@Nullable android.net.NetworkCapabilities);
  3714. field public static final int NET_CAPABILITY_OEM_PAID = 22; // 0x16
  3715. field public static final int NET_CAPABILITY_PARTIAL_CONNECTIVITY = 24; // 0x18
  3716. }
  3717. public class NetworkKey implements android.os.Parcelable {
  3718. ctor public NetworkKey(android.net.WifiKey);
  3719. method public int describeContents();
  3720. method public void writeToParcel(android.os.Parcel, int);
  3721. field @NonNull public static final android.os.Parcelable.Creator<android.net.NetworkKey> CREATOR;
  3722. field public static final int TYPE_WIFI = 1; // 0x1
  3723. field public final int type;
  3724. field public final android.net.WifiKey wifiKey;
  3725. }
  3726. public abstract class NetworkRecommendationProvider {
  3727. ctor public NetworkRecommendationProvider(android.content.Context, java.util.concurrent.Executor);
  3728. method public final android.os.IBinder getBinder();
  3729. method public abstract void onRequestScores(android.net.NetworkKey[]);
  3730. }
  3731. public static class NetworkRequest.Builder {
  3732. method @NonNull @RequiresPermission(android.Manifest.permission.NETWORK_SIGNAL_STRENGTH_WAKEUP) public android.net.NetworkRequest.Builder setSignalStrength(int);
  3733. }
  3734. public class NetworkScoreManager {
  3735. method @RequiresPermission(anyOf={android.Manifest.permission.SCORE_NETWORKS, "android.permission.REQUEST_NETWORK_SCORES"}) public boolean clearScores() throws java.lang.SecurityException;
  3736. method @RequiresPermission(anyOf={android.Manifest.permission.SCORE_NETWORKS, "android.permission.REQUEST_NETWORK_SCORES"}) public void disableScoring() throws java.lang.SecurityException;
  3737. method @RequiresPermission(anyOf={android.Manifest.permission.SCORE_NETWORKS, "android.permission.REQUEST_NETWORK_SCORES"}) public String getActiveScorerPackage();
  3738. method @RequiresPermission(anyOf={android.Manifest.permission.SCORE_NETWORKS, "android.permission.REQUEST_NETWORK_SCORES"}) public boolean setActiveScorer(String) throws java.lang.SecurityException;
  3739. method @RequiresPermission(android.Manifest.permission.SCORE_NETWORKS) public boolean updateScores(android.net.ScoredNetwork[]) throws java.lang.SecurityException;
  3740. field public static final String ACTION_CHANGE_ACTIVE = "android.net.scoring.CHANGE_ACTIVE";
  3741. field public static final String ACTION_CUSTOM_ENABLE = "android.net.scoring.CUSTOM_ENABLE";
  3742. field public static final String ACTION_RECOMMEND_NETWORKS = "android.net.action.RECOMMEND_NETWORKS";
  3743. field public static final String ACTION_SCORER_CHANGED = "android.net.scoring.SCORER_CHANGED";
  3744. field public static final String ACTION_SCORE_NETWORKS = "android.net.scoring.SCORE_NETWORKS";
  3745. field public static final String EXTRA_NETWORKS_TO_SCORE = "networksToScore";
  3746. field public static final String EXTRA_NEW_SCORER = "newScorer";
  3747. field public static final String EXTRA_PACKAGE_NAME = "packageName";
  3748. }
  3749. public class NetworkStack {
  3750. field public static final String PERMISSION_MAINLINE_NETWORK_STACK = "android.permission.MAINLINE_NETWORK_STACK";
  3751. }
  3752. public final class RouteInfo implements android.os.Parcelable {
  3753. ctor public RouteInfo(@Nullable android.net.IpPrefix, @Nullable java.net.InetAddress, @Nullable String, int);
  3754. method public int getType();
  3755. field public static final int RTN_THROW = 9; // 0x9
  3756. field public static final int RTN_UNICAST = 1; // 0x1
  3757. field public static final int RTN_UNREACHABLE = 7; // 0x7
  3758. }
  3759. public class RssiCurve implements android.os.Parcelable {
  3760. ctor public RssiCurve(int, int, byte[]);
  3761. ctor public RssiCurve(int, int, byte[], int);
  3762. method public int describeContents();
  3763. method public byte lookupScore(int);
  3764. method public byte lookupScore(int, boolean);
  3765. method public void writeToParcel(android.os.Parcel, int);
  3766. field @NonNull public static final android.os.Parcelable.Creator<android.net.RssiCurve> CREATOR;
  3767. field public final int activeNetworkRssiBoost;
  3768. field public final int bucketWidth;
  3769. field public final byte[] rssiBuckets;
  3770. field public final int start;
  3771. }
  3772. public class ScoredNetwork implements android.os.Parcelable {
  3773. ctor public ScoredNetwork(android.net.NetworkKey, android.net.RssiCurve);
  3774. ctor public ScoredNetwork(android.net.NetworkKey, android.net.RssiCurve, boolean);
  3775. ctor public ScoredNetwork(android.net.NetworkKey, android.net.RssiCurve, boolean, @Nullable android.os.Bundle);
  3776. method public int calculateBadge(int);
  3777. method public int describeContents();
  3778. method public void writeToParcel(android.os.Parcel, int);
  3779. field public static final String ATTRIBUTES_KEY_BADGING_CURVE = "android.net.attributes.key.BADGING_CURVE";
  3780. field public static final String ATTRIBUTES_KEY_HAS_CAPTIVE_PORTAL = "android.net.attributes.key.HAS_CAPTIVE_PORTAL";
  3781. field public static final String ATTRIBUTES_KEY_RANKING_SCORE_OFFSET = "android.net.attributes.key.RANKING_SCORE_OFFSET";
  3782. field @NonNull public static final android.os.Parcelable.Creator<android.net.ScoredNetwork> CREATOR;
  3783. field @Nullable public final android.os.Bundle attributes;
  3784. field public final boolean meteredHint;
  3785. field public final android.net.NetworkKey networkKey;
  3786. field public final android.net.RssiCurve rssiCurve;
  3787. }
  3788. public final class StaticIpConfiguration implements android.os.Parcelable {
  3789. ctor public StaticIpConfiguration();
  3790. ctor public StaticIpConfiguration(@Nullable android.net.StaticIpConfiguration);
  3791. method public void addDnsServer(@NonNull java.net.InetAddress);
  3792. method public void clear();
  3793. method public int describeContents();
  3794. method @NonNull public java.util.List<java.net.InetAddress> getDnsServers();
  3795. method @Nullable public String getDomains();
  3796. method @Nullable public java.net.InetAddress getGateway();
  3797. method @Nullable public android.net.LinkAddress getIpAddress();
  3798. method @NonNull public java.util.List<android.net.RouteInfo> getRoutes(@Nullable String);
  3799. method public void writeToParcel(android.os.Parcel, int);
  3800. field @NonNull public static final android.os.Parcelable.Creator<android.net.StaticIpConfiguration> CREATOR;
  3801. }
  3802. public static final class StaticIpConfiguration.Builder {
  3803. ctor public StaticIpConfiguration.Builder();
  3804. method @NonNull public android.net.StaticIpConfiguration build();
  3805. method @NonNull public android.net.StaticIpConfiguration.Builder setDnsServers(@NonNull Iterable<java.net.InetAddress>);
  3806. method @NonNull public android.net.StaticIpConfiguration.Builder setDomains(@Nullable String);
  3807. method @NonNull public android.net.StaticIpConfiguration.Builder setGateway(@Nullable java.net.InetAddress);
  3808. method @NonNull public android.net.StaticIpConfiguration.Builder setIpAddress(@Nullable android.net.LinkAddress);
  3809. }
  3810. public class TrafficStats {
  3811. method public static void setThreadStatsTagApp();
  3812. method public static void setThreadStatsTagBackup();
  3813. method public static void setThreadStatsTagRestore();
  3814. field public static final int TAG_NETWORK_STACK_IMPERSONATION_RANGE_END = -113; // 0xffffff8f
  3815. field public static final int TAG_NETWORK_STACK_IMPERSONATION_RANGE_START = -128; // 0xffffff80
  3816. field public static final int TAG_NETWORK_STACK_RANGE_END = -257; // 0xfffffeff
  3817. field public static final int TAG_NETWORK_STACK_RANGE_START = -768; // 0xfffffd00
  3818. field public static final int TAG_SYSTEM_IMPERSONATION_RANGE_END = -241; // 0xffffff0f
  3819. field public static final int TAG_SYSTEM_IMPERSONATION_RANGE_START = -256; // 0xffffff00
  3820. }
  3821. public abstract class Uri implements java.lang.Comparable<android.net.Uri> android.os.Parcelable {
  3822. method @NonNull public String toSafeString();
  3823. }
  3824. public class VpnService extends android.app.Service {
  3825. method @RequiresPermission(android.Manifest.permission.CONTROL_VPN) public static void prepareAndAuthorize(android.content.Context);
  3826. }
  3827. public class WebAddress {
  3828. ctor public WebAddress(String) throws android.net.ParseException;
  3829. }
  3830. public class WifiKey implements android.os.Parcelable {
  3831. ctor public WifiKey(String, String);
  3832. method public int describeContents();
  3833. method public void writeToParcel(android.os.Parcel, int);
  3834. field @NonNull public static final android.os.Parcelable.Creator<android.net.WifiKey> CREATOR;
  3835. field public final String bssid;
  3836. field public final String ssid;
  3837. }
  3838. }
  3839. package android.net.apf {
  3840. public final class ApfCapabilities implements android.os.Parcelable {
  3841. ctor public ApfCapabilities(int, int, int);
  3842. method public int describeContents();
  3843. method public static boolean getApfDrop8023Frames();
  3844. method @NonNull public static int[] getApfEtherTypeBlackList();
  3845. method public boolean hasDataAccess();
  3846. method public void writeToParcel(android.os.Parcel, int);
  3847. field public static final android.os.Parcelable.Creator<android.net.apf.ApfCapabilities> CREATOR;
  3848. field public final int apfPacketFormat;
  3849. field public final int apfVersionSupported;
  3850. field public final int maximumApfProgramSize;
  3851. }
  3852. }
  3853. package android.net.metrics {
  3854. public final class ApfProgramEvent implements android.net.metrics.IpConnectivityLog.Event {
  3855. }
  3856. public static final class ApfProgramEvent.Builder {
  3857. ctor public ApfProgramEvent.Builder();
  3858. method @NonNull public android.net.metrics.ApfProgramEvent build();
  3859. method @NonNull public android.net.metrics.ApfProgramEvent.Builder setActualLifetime(long);
  3860. method @NonNull public android.net.metrics.ApfProgramEvent.Builder setCurrentRas(int);
  3861. method @NonNull public android.net.metrics.ApfProgramEvent.Builder setFilteredRas(int);
  3862. method @NonNull public android.net.metrics.ApfProgramEvent.Builder setFlags(boolean, boolean);
  3863. method @NonNull public android.net.metrics.ApfProgramEvent.Builder setLifetime(long);
  3864. method @NonNull public android.net.metrics.ApfProgramEvent.Builder setProgramLength(int);
  3865. }
  3866. public final class ApfStats implements android.net.metrics.IpConnectivityLog.Event {
  3867. }
  3868. public static final class ApfStats.Builder {
  3869. ctor public ApfStats.Builder();
  3870. method @NonNull public android.net.metrics.ApfStats build();
  3871. method @NonNull public android.net.metrics.ApfStats.Builder setDroppedRas(int);
  3872. method @NonNull public android.net.metrics.ApfStats.Builder setDurationMs(long);
  3873. method @NonNull public android.net.metrics.ApfStats.Builder setMatchingRas(int);
  3874. method @NonNull public android.net.metrics.ApfStats.Builder setMaxProgramSize(int);
  3875. method @NonNull public android.net.metrics.ApfStats.Builder setParseErrors(int);
  3876. method @NonNull public android.net.metrics.ApfStats.Builder setProgramUpdates(int);
  3877. method @NonNull public android.net.metrics.ApfStats.Builder setProgramUpdatesAll(int);
  3878. method @NonNull public android.net.metrics.ApfStats.Builder setProgramUpdatesAllowingMulticast(int);
  3879. method @NonNull public android.net.metrics.ApfStats.Builder setReceivedRas(int);
  3880. method @NonNull public android.net.metrics.ApfStats.Builder setZeroLifetimeRas(int);
  3881. }
  3882. public final class DhcpClientEvent implements android.net.metrics.IpConnectivityLog.Event {
  3883. }
  3884. public static final class DhcpClientEvent.Builder {
  3885. ctor public DhcpClientEvent.Builder();
  3886. method @NonNull public android.net.metrics.DhcpClientEvent build();
  3887. method @NonNull public android.net.metrics.DhcpClientEvent.Builder setDurationMs(int);
  3888. method @NonNull public android.net.metrics.DhcpClientEvent.Builder setMsg(String);
  3889. }
  3890. public final class DhcpErrorEvent implements android.net.metrics.IpConnectivityLog.Event {
  3891. ctor public DhcpErrorEvent(int);
  3892. method public static int errorCodeWithOption(int, int);
  3893. field public static final int BOOTP_TOO_SHORT = 67174400; // 0x4010000
  3894. field public static final int BUFFER_UNDERFLOW = 83951616; // 0x5010000
  3895. field public static final int DHCP_BAD_MAGIC_COOKIE = 67239936; // 0x4020000
  3896. field public static final int DHCP_ERROR = 4; // 0x4
  3897. field public static final int DHCP_INVALID_OPTION_LENGTH = 67305472; // 0x4030000
  3898. field public static final int DHCP_NO_COOKIE = 67502080; // 0x4060000
  3899. field public static final int DHCP_NO_MSG_TYPE = 67371008; // 0x4040000
  3900. field public static final int DHCP_UNKNOWN_MSG_TYPE = 67436544; // 0x4050000
  3901. field public static final int L2_ERROR = 1; // 0x1
  3902. field public static final int L2_TOO_SHORT = 16842752; // 0x1010000
  3903. field public static final int L2_WRONG_ETH_TYPE = 16908288; // 0x1020000
  3904. field public static final int L3_ERROR = 2; // 0x2
  3905. field public static final int L3_INVALID_IP = 33751040; // 0x2030000
  3906. field public static final int L3_NOT_IPV4 = 33685504; // 0x2020000
  3907. field public static final int L3_TOO_SHORT = 33619968; // 0x2010000
  3908. field public static final int L4_ERROR = 3; // 0x3
  3909. field public static final int L4_NOT_UDP = 50397184; // 0x3010000
  3910. field public static final int L4_WRONG_PORT = 50462720; // 0x3020000
  3911. field public static final int MISC_ERROR = 5; // 0x5
  3912. field public static final int PARSING_ERROR = 84082688; // 0x5030000
  3913. field public static final int RECEIVE_ERROR = 84017152; // 0x5020000
  3914. }
  3915. public class IpConnectivityLog {
  3916. ctor public IpConnectivityLog();
  3917. method public boolean log(long, @NonNull android.net.metrics.IpConnectivityLog.Event);
  3918. method public boolean log(@NonNull String, @NonNull android.net.metrics.IpConnectivityLog.Event);
  3919. method public boolean log(@NonNull android.net.Network, @NonNull int[], @NonNull android.net.metrics.IpConnectivityLog.Event);
  3920. method public boolean log(int, @NonNull int[], @NonNull android.net.metrics.IpConnectivityLog.Event);
  3921. method public boolean log(@NonNull android.net.metrics.IpConnectivityLog.Event);
  3922. }
  3923. public static interface IpConnectivityLog.Event extends android.os.Parcelable {
  3924. }
  3925. public final class IpManagerEvent implements android.net.metrics.IpConnectivityLog.Event {
  3926. ctor public IpManagerEvent(int, long);
  3927. field public static final int COMPLETE_LIFECYCLE = 3; // 0x3
  3928. field public static final int ERROR_INTERFACE_NOT_FOUND = 8; // 0x8
  3929. field public static final int ERROR_INVALID_PROVISIONING = 7; // 0x7
  3930. field public static final int ERROR_STARTING_IPREACHABILITYMONITOR = 6; // 0x6
  3931. field public static final int ERROR_STARTING_IPV4 = 4; // 0x4
  3932. field public static final int ERROR_STARTING_IPV6 = 5; // 0x5
  3933. field public static final int PROVISIONING_FAIL = 2; // 0x2
  3934. field public static final int PROVISIONING_OK = 1; // 0x1
  3935. }
  3936. public final class IpReachabilityEvent implements android.net.metrics.IpConnectivityLog.Event {
  3937. ctor public IpReachabilityEvent(int);
  3938. field public static final int NUD_FAILED = 512; // 0x200
  3939. field public static final int NUD_FAILED_ORGANIC = 1024; // 0x400
  3940. field public static final int PROBE = 256; // 0x100
  3941. field public static final int PROVISIONING_LOST = 768; // 0x300
  3942. field public static final int PROVISIONING_LOST_ORGANIC = 1280; // 0x500
  3943. }
  3944. public final class NetworkEvent implements android.net.metrics.IpConnectivityLog.Event {
  3945. ctor public NetworkEvent(int, long);
  3946. ctor public NetworkEvent(int);
  3947. field public static final int NETWORK_CAPTIVE_PORTAL_FOUND = 4; // 0x4
  3948. field public static final int NETWORK_CONNECTED = 1; // 0x1
  3949. field public static final int NETWORK_CONSECUTIVE_DNS_TIMEOUT_FOUND = 12; // 0xc
  3950. field public static final int NETWORK_DISCONNECTED = 7; // 0x7
  3951. field public static final int NETWORK_FIRST_VALIDATION_PORTAL_FOUND = 10; // 0xa
  3952. field public static final int NETWORK_FIRST_VALIDATION_SUCCESS = 8; // 0x8
  3953. field public static final int NETWORK_LINGER = 5; // 0x5
  3954. field public static final int NETWORK_PARTIAL_CONNECTIVITY = 13; // 0xd
  3955. field public static final int NETWORK_REVALIDATION_PORTAL_FOUND = 11; // 0xb
  3956. field public static final int NETWORK_REVALIDATION_SUCCESS = 9; // 0x9
  3957. field public static final int NETWORK_UNLINGER = 6; // 0x6
  3958. field public static final int NETWORK_VALIDATED = 2; // 0x2
  3959. field public static final int NETWORK_VALIDATION_FAILED = 3; // 0x3
  3960. }
  3961. public final class RaEvent implements android.net.metrics.IpConnectivityLog.Event {
  3962. }
  3963. public static final class RaEvent.Builder {
  3964. ctor public RaEvent.Builder();
  3965. method @NonNull public android.net.metrics.RaEvent build();
  3966. method @NonNull public android.net.metrics.RaEvent.Builder updateDnsslLifetime(long);
  3967. method @NonNull public android.net.metrics.RaEvent.Builder updatePrefixPreferredLifetime(long);
  3968. method @NonNull public android.net.metrics.RaEvent.Builder updatePrefixValidLifetime(long);
  3969. method @NonNull public android.net.metrics.RaEvent.Builder updateRdnssLifetime(long);
  3970. method @NonNull public android.net.metrics.RaEvent.Builder updateRouteInfoLifetime(long);
  3971. method @NonNull public android.net.metrics.RaEvent.Builder updateRouterLifetime(long);
  3972. }
  3973. public final class ValidationProbeEvent implements android.net.metrics.IpConnectivityLog.Event {
  3974. method @NonNull public static String getProbeName(int);
  3975. field public static final int DNS_FAILURE = 0; // 0x0
  3976. field public static final int DNS_SUCCESS = 1; // 0x1
  3977. field public static final int PROBE_DNS = 0; // 0x0
  3978. field public static final int PROBE_FALLBACK = 4; // 0x4
  3979. field public static final int PROBE_HTTP = 1; // 0x1
  3980. field public static final int PROBE_HTTPS = 2; // 0x2
  3981. field public static final int PROBE_PAC = 3; // 0x3
  3982. field public static final int PROBE_PRIVDNS = 5; // 0x5
  3983. }
  3984. public static final class ValidationProbeEvent.Builder {
  3985. ctor public ValidationProbeEvent.Builder();
  3986. method @NonNull public android.net.metrics.ValidationProbeEvent build();
  3987. method @NonNull public android.net.metrics.ValidationProbeEvent.Builder setDurationMs(long);
  3988. method @NonNull public android.net.metrics.ValidationProbeEvent.Builder setProbeType(int, boolean);
  3989. method @NonNull public android.net.metrics.ValidationProbeEvent.Builder setReturnCode(int);
  3990. }
  3991. }
  3992. package android.net.util {
  3993. public final class SocketUtils {
  3994. method public static void bindSocketToInterface(@NonNull java.io.FileDescriptor, @NonNull String) throws android.system.ErrnoException;
  3995. method public static void closeSocket(@Nullable java.io.FileDescriptor) throws java.io.IOException;
  3996. method @NonNull public static java.net.SocketAddress makeNetlinkSocketAddress(int, int);
  3997. method @NonNull public static java.net.SocketAddress makePacketSocketAddress(int, int);
  3998. method @NonNull public static java.net.SocketAddress makePacketSocketAddress(int, @NonNull byte[]);
  3999. }
  4000. }
  4001. package android.net.wifi {
  4002. public abstract class EasyConnectStatusCallback {
  4003. ctor public EasyConnectStatusCallback();
  4004. method public abstract void onConfiguratorSuccess(int);
  4005. method public abstract void onEnrolleeSuccess(int);
  4006. method public abstract void onFailure(int);
  4007. method public abstract void onProgress(int);
  4008. field public static final int EASY_CONNECT_EVENT_FAILURE_AUTHENTICATION = -2; // 0xfffffffe
  4009. field public static final int EASY_CONNECT_EVENT_FAILURE_BUSY = -5; // 0xfffffffb
  4010. field public static final int EASY_CONNECT_EVENT_FAILURE_CONFIGURATION = -4; // 0xfffffffc
  4011. field public static final int EASY_CONNECT_EVENT_FAILURE_GENERIC = -7; // 0xfffffff9
  4012. field public static final int EASY_CONNECT_EVENT_FAILURE_INVALID_NETWORK = -9; // 0xfffffff7
  4013. field public static final int EASY_CONNECT_EVENT_FAILURE_INVALID_URI = -1; // 0xffffffff
  4014. field public static final int EASY_CONNECT_EVENT_FAILURE_NOT_COMPATIBLE = -3; // 0xfffffffd
  4015. field public static final int EASY_CONNECT_EVENT_FAILURE_NOT_SUPPORTED = -8; // 0xfffffff8
  4016. field public static final int EASY_CONNECT_EVENT_FAILURE_TIMEOUT = -6; // 0xfffffffa
  4017. field public static final int EASY_CONNECT_EVENT_PROGRESS_AUTHENTICATION_SUCCESS = 0; // 0x0
  4018. field public static final int EASY_CONNECT_EVENT_PROGRESS_RESPONSE_PENDING = 1; // 0x1
  4019. field public static final int EASY_CONNECT_EVENT_SUCCESS_CONFIGURATION_SENT = 0; // 0x0
  4020. }
  4021. @Deprecated public class RttManager {
  4022. method @Deprecated @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public void disableResponder(android.net.wifi.RttManager.ResponderCallback);
  4023. method @Deprecated @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public void enableResponder(android.net.wifi.RttManager.ResponderCallback);
  4024. method @Deprecated public android.net.wifi.RttManager.Capabilities getCapabilities();
  4025. method @Deprecated @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public android.net.wifi.RttManager.RttCapabilities getRttCapabilities();
  4026. method @Deprecated @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public void startRanging(android.net.wifi.RttManager.RttParams[], android.net.wifi.RttManager.RttListener);
  4027. method @Deprecated @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public void stopRanging(android.net.wifi.RttManager.RttListener);
  4028. field @Deprecated public static final int BASE = 160256; // 0x27200
  4029. field @Deprecated public static final int CMD_OP_ABORTED = 160260; // 0x27204
  4030. field @Deprecated public static final int CMD_OP_DISABLE_RESPONDER = 160262; // 0x27206
  4031. field @Deprecated public static final int CMD_OP_ENABLE_RESPONDER = 160261; // 0x27205
  4032. field @Deprecated public static final int CMD_OP_ENALBE_RESPONDER_FAILED = 160264; // 0x27208
  4033. field @Deprecated public static final int CMD_OP_ENALBE_RESPONDER_SUCCEEDED = 160263; // 0x27207
  4034. field @Deprecated public static final int CMD_OP_FAILED = 160258; // 0x27202
  4035. field @Deprecated public static final int CMD_OP_START_RANGING = 160256; // 0x27200
  4036. field @Deprecated public static final int CMD_OP_STOP_RANGING = 160257; // 0x27201
  4037. field @Deprecated public static final int CMD_OP_SUCCEEDED = 160259; // 0x27203
  4038. field @Deprecated public static final String DESCRIPTION_KEY = "android.net.wifi.RttManager.Description";
  4039. field @Deprecated public static final int PREAMBLE_HT = 2; // 0x2
  4040. field @Deprecated public static final int PREAMBLE_LEGACY = 1; // 0x1
  4041. field @Deprecated public static final int PREAMBLE_VHT = 4; // 0x4
  4042. field @Deprecated public static final int REASON_INITIATOR_NOT_ALLOWED_WHEN_RESPONDER_ON = -6; // 0xfffffffa
  4043. field @Deprecated public static final int REASON_INVALID_LISTENER = -3; // 0xfffffffd
  4044. field @Deprecated public static final int REASON_INVALID_REQUEST = -4; // 0xfffffffc
  4045. field @Deprecated public static final int REASON_NOT_AVAILABLE = -2; // 0xfffffffe
  4046. field @Deprecated public static final int REASON_PERMISSION_DENIED = -5; // 0xfffffffb
  4047. field @Deprecated public static final int REASON_UNSPECIFIED = -1; // 0xffffffff
  4048. field @Deprecated public static final int RTT_BW_10_SUPPORT = 2; // 0x2
  4049. field @Deprecated public static final int RTT_BW_160_SUPPORT = 32; // 0x20
  4050. field @Deprecated public static final int RTT_BW_20_SUPPORT = 4; // 0x4
  4051. field @Deprecated public static final int RTT_BW_40_SUPPORT = 8; // 0x8
  4052. field @Deprecated public static final int RTT_BW_5_SUPPORT = 1; // 0x1
  4053. field @Deprecated public static final int RTT_BW_80_SUPPORT = 16; // 0x10
  4054. field @Deprecated public static final int RTT_CHANNEL_WIDTH_10 = 6; // 0x6
  4055. field @Deprecated public static final int RTT_CHANNEL_WIDTH_160 = 3; // 0x3
  4056. field @Deprecated public static final int RTT_CHANNEL_WIDTH_20 = 0; // 0x0
  4057. field @Deprecated public static final int RTT_CHANNEL_WIDTH_40 = 1; // 0x1
  4058. field @Deprecated public static final int RTT_CHANNEL_WIDTH_5 = 5; // 0x5
  4059. field @Deprecated public static final int RTT_CHANNEL_WIDTH_80 = 2; // 0x2
  4060. field @Deprecated public static final int RTT_CHANNEL_WIDTH_80P80 = 4; // 0x4
  4061. field @Deprecated public static final int RTT_CHANNEL_WIDTH_UNSPECIFIED = -1; // 0xffffffff
  4062. field @Deprecated public static final int RTT_PEER_NAN = 5; // 0x5
  4063. field @Deprecated public static final int RTT_PEER_P2P_CLIENT = 4; // 0x4
  4064. field @Deprecated public static final int RTT_PEER_P2P_GO = 3; // 0x3
  4065. field @Deprecated public static final int RTT_PEER_TYPE_AP = 1; // 0x1
  4066. field @Deprecated public static final int RTT_PEER_TYPE_STA = 2; // 0x2
  4067. field @Deprecated public static final int RTT_PEER_TYPE_UNSPECIFIED = 0; // 0x0
  4068. field @Deprecated public static final int RTT_STATUS_ABORTED = 8; // 0x8
  4069. field @Deprecated public static final int RTT_STATUS_FAILURE = 1; // 0x1
  4070. field @Deprecated public static final int RTT_STATUS_FAIL_AP_ON_DIFF_CHANNEL = 6; // 0x6
  4071. field @Deprecated public static final int RTT_STATUS_FAIL_BUSY_TRY_LATER = 12; // 0xc
  4072. field @Deprecated public static final int RTT_STATUS_FAIL_FTM_PARAM_OVERRIDE = 15; // 0xf
  4073. field @Deprecated public static final int RTT_STATUS_FAIL_INVALID_TS = 9; // 0x9
  4074. field @Deprecated public static final int RTT_STATUS_FAIL_NOT_SCHEDULED_YET = 4; // 0x4
  4075. field @Deprecated public static final int RTT_STATUS_FAIL_NO_CAPABILITY = 7; // 0x7
  4076. field @Deprecated public static final int RTT_STATUS_FAIL_NO_RSP = 2; // 0x2
  4077. field @Deprecated public static final int RTT_STATUS_FAIL_PROTOCOL = 10; // 0xa
  4078. field @Deprecated public static final int RTT_STATUS_FAIL_REJECTED = 3; // 0x3
  4079. field @Deprecated public static final int RTT_STATUS_FAIL_SCHEDULE = 11; // 0xb
  4080. field @Deprecated public static final int RTT_STATUS_FAIL_TM_TIMEOUT = 5; // 0x5
  4081. field @Deprecated public static final int RTT_STATUS_INVALID_REQ = 13; // 0xd
  4082. field @Deprecated public static final int RTT_STATUS_NO_WIFI = 14; // 0xe
  4083. field @Deprecated public static final int RTT_STATUS_SUCCESS = 0; // 0x0
  4084. field @Deprecated public static final int RTT_TYPE_11_MC = 4; // 0x4
  4085. field @Deprecated public static final int RTT_TYPE_11_V = 2; // 0x2
  4086. field @Deprecated public static final int RTT_TYPE_ONE_SIDED = 1; // 0x1
  4087. field @Deprecated public static final int RTT_TYPE_TWO_SIDED = 2; // 0x2
  4088. field @Deprecated public static final int RTT_TYPE_UNSPECIFIED = 0; // 0x0
  4089. }
  4090. @Deprecated public class RttManager.Capabilities {
  4091. ctor @Deprecated public RttManager.Capabilities();
  4092. field @Deprecated public int supportedPeerType;
  4093. field @Deprecated public int supportedType;
  4094. }
  4095. @Deprecated public static class RttManager.ParcelableRttParams implements android.os.Parcelable {
  4096. field @Deprecated @NonNull public android.net.wifi.RttManager.RttParams[] mParams;
  4097. }
  4098. @Deprecated public static class RttManager.ParcelableRttResults implements android.os.Parcelable {
  4099. ctor @Deprecated public RttManager.ParcelableRttResults(android.net.wifi.RttManager.RttResult[]);
  4100. field @Deprecated public android.net.wifi.RttManager.RttResult[] mResults;
  4101. }
  4102. @Deprecated public abstract static class RttManager.ResponderCallback {
  4103. ctor @Deprecated public RttManager.ResponderCallback();
  4104. method @Deprecated public abstract void onResponderEnableFailure(int);
  4105. method @Deprecated public abstract void onResponderEnabled(android.net.wifi.RttManager.ResponderConfig);
  4106. }
  4107. @Deprecated public static class RttManager.ResponderConfig implements android.os.Parcelable {
  4108. ctor @Deprecated public RttManager.ResponderConfig();
  4109. method @Deprecated public int describeContents();
  4110. method @Deprecated public void writeToParcel(android.os.Parcel, int);
  4111. field @Deprecated @NonNull public static final android.os.Parcelable.Creator<android.net.wifi.RttManager.ResponderConfig> CREATOR;
  4112. field @Deprecated public int centerFreq0;
  4113. field @Deprecated public int centerFreq1;
  4114. field @Deprecated public int channelWidth;
  4115. field @Deprecated public int frequency;
  4116. field @Deprecated public String macAddress;
  4117. field @Deprecated public int preamble;
  4118. }
  4119. @Deprecated public static class RttManager.RttCapabilities implements android.os.Parcelable {
  4120. ctor @Deprecated public RttManager.RttCapabilities();
  4121. field @Deprecated public int bwSupported;
  4122. field @Deprecated public boolean lciSupported;
  4123. field @Deprecated public boolean lcrSupported;
  4124. field @Deprecated public int mcVersion;
  4125. field @Deprecated public boolean oneSidedRttSupported;
  4126. field @Deprecated public int preambleSupported;
  4127. field @Deprecated public boolean responderSupported;
  4128. field @Deprecated public boolean secureRttSupported;
  4129. field @Deprecated public boolean supportedPeerType;
  4130. field @Deprecated public boolean supportedType;
  4131. field @Deprecated public boolean twoSided11McRttSupported;
  4132. }
  4133. @Deprecated public static interface RttManager.RttListener {
  4134. method @Deprecated public void onAborted();
  4135. method @Deprecated public void onFailure(int, String);
  4136. method @Deprecated public void onSuccess(android.net.wifi.RttManager.RttResult[]);
  4137. }
  4138. @Deprecated public static class RttManager.RttParams {
  4139. ctor @Deprecated public RttManager.RttParams();
  4140. field @Deprecated public boolean LCIRequest;
  4141. field @Deprecated public boolean LCRRequest;
  4142. field @Deprecated public int bandwidth;
  4143. field @Deprecated public String bssid;
  4144. field @Deprecated public int burstTimeout;
  4145. field @Deprecated public int centerFreq0;
  4146. field @Deprecated public int centerFreq1;
  4147. field @Deprecated public int channelWidth;
  4148. field @Deprecated public int deviceType;
  4149. field @Deprecated public int frequency;
  4150. field @Deprecated public int interval;
  4151. field @Deprecated public int numRetriesPerFTMR;
  4152. field @Deprecated public int numRetriesPerMeasurementFrame;
  4153. field @Deprecated public int numSamplesPerBurst;
  4154. field @Deprecated public int num_retries;
  4155. field @Deprecated public int num_samples;
  4156. field @Deprecated public int numberBurst;
  4157. field @Deprecated public int preamble;
  4158. field @Deprecated public int requestType;
  4159. field @Deprecated public boolean secure;
  4160. }
  4161. @Deprecated public static class RttManager.RttResult {
  4162. ctor @Deprecated public RttManager.RttResult();
  4163. field @Deprecated public android.net.wifi.RttManager.WifiInformationElement LCI;
  4164. field @Deprecated public android.net.wifi.RttManager.WifiInformationElement LCR;
  4165. field @Deprecated public String bssid;
  4166. field @Deprecated public int burstDuration;
  4167. field @Deprecated public int burstNumber;
  4168. field @Deprecated public int distance;
  4169. field @Deprecated public int distanceSpread;
  4170. field @Deprecated public int distanceStandardDeviation;
  4171. field @Deprecated public int distance_cm;
  4172. field @Deprecated public int distance_sd_cm;
  4173. field @Deprecated public int distance_spread_cm;
  4174. field @Deprecated public int frameNumberPerBurstPeer;
  4175. field @Deprecated public int measurementFrameNumber;
  4176. field @Deprecated public int measurementType;
  4177. field @Deprecated public int negotiatedBurstNum;
  4178. field @Deprecated public int requestType;
  4179. field @Deprecated public int retryAfterDuration;
  4180. field @Deprecated public int rssi;
  4181. field @Deprecated public int rssiSpread;
  4182. field @Deprecated public int rssi_spread;
  4183. field @Deprecated public long rtt;
  4184. field @Deprecated public long rttSpread;
  4185. field @Deprecated public long rttStandardDeviation;
  4186. field @Deprecated public long rtt_ns;
  4187. field @Deprecated public long rtt_sd_ns;
  4188. field @Deprecated public long rtt_spread_ns;
  4189. field @Deprecated public int rxRate;
  4190. field @Deprecated public boolean secure;
  4191. field @Deprecated public int status;
  4192. field @Deprecated public int successMeasurementFrameNumber;
  4193. field @Deprecated public long ts;
  4194. field @Deprecated public int txRate;
  4195. field @Deprecated public int tx_rate;
  4196. }
  4197. @Deprecated public static class RttManager.WifiInformationElement {
  4198. ctor @Deprecated public RttManager.WifiInformationElement();
  4199. field @Deprecated public byte[] data;
  4200. field @Deprecated public byte id;
  4201. }
  4202. @Deprecated public class WifiConfiguration implements android.os.Parcelable {
  4203. method @Deprecated public boolean hasNoInternetAccess();
  4204. method @Deprecated public boolean isEphemeral();
  4205. method @Deprecated public boolean isNoInternetAccessExpected();
  4206. field @Deprecated public String creatorName;
  4207. field @Deprecated public int creatorUid;
  4208. field @Deprecated public String lastUpdateName;
  4209. field @Deprecated public int lastUpdateUid;
  4210. field @Deprecated public boolean meteredHint;
  4211. field @Deprecated public int numAssociation;
  4212. field @Deprecated public int numScorerOverride;
  4213. field @Deprecated public int numScorerOverrideAndSwitchedNetwork;
  4214. field @Deprecated public boolean useExternalScores;
  4215. }
  4216. @Deprecated public static class WifiConfiguration.KeyMgmt {
  4217. field @Deprecated public static final int WPA2_PSK = 4; // 0x4
  4218. }
  4219. public class WifiInfo implements android.os.Parcelable {
  4220. method public boolean isOsuAp();
  4221. method public boolean isPasspointAp();
  4222. }
  4223. public class WifiManager {
  4224. method @RequiresPermission("android.permission.WIFI_UPDATE_USABILITY_STATS_SCORE") public void addOnWifiUsabilityStatsListener(@NonNull java.util.concurrent.Executor, @NonNull android.net.wifi.WifiManager.OnWifiUsabilityStatsListener);
  4225. method @RequiresPermission(anyOf={"android.permission.NETWORK_SETTINGS", android.Manifest.permission.NETWORK_SETUP_WIZARD, "android.permission.NETWORK_STACK"}) public void connect(@NonNull android.net.wifi.WifiConfiguration, @Nullable android.net.wifi.WifiManager.ActionListener);
  4226. method @RequiresPermission(anyOf={"android.permission.NETWORK_SETTINGS", android.Manifest.permission.NETWORK_SETUP_WIZARD, "android.permission.NETWORK_STACK"}) public void connect(int, @Nullable android.net.wifi.WifiManager.ActionListener);
  4227. method @RequiresPermission(anyOf={"android.permission.NETWORK_SETTINGS", android.Manifest.permission.NETWORK_SETUP_WIZARD, "android.permission.NETWORK_STACK"}) public void disable(int, @Nullable android.net.wifi.WifiManager.ActionListener);
  4228. method @RequiresPermission(anyOf={"android.permission.NETWORK_SETTINGS", android.Manifest.permission.NETWORK_SETUP_WIZARD, "android.permission.NETWORK_STACK"}) public void forget(int, @Nullable android.net.wifi.WifiManager.ActionListener);
  4229. method @NonNull @RequiresPermission(anyOf={"android.permission.NETWORK_SETTINGS", android.Manifest.permission.NETWORK_SETUP_WIZARD}) public java.util.List<android.util.Pair<android.net.wifi.WifiConfiguration,java.util.Map<java.lang.Integer,java.util.List<android.net.wifi.ScanResult>>>> getAllMatchingWifiConfigs(@NonNull java.util.List<android.net.wifi.ScanResult>);
  4230. method @NonNull @RequiresPermission(anyOf={"android.permission.NETWORK_SETTINGS", android.Manifest.permission.NETWORK_SETUP_WIZARD}) public java.util.Map<android.net.wifi.hotspot2.OsuProvider,java.util.List<android.net.wifi.ScanResult>> getMatchingOsuProviders(@Nullable java.util.List<android.net.wifi.ScanResult>);
  4231. method @NonNull @RequiresPermission(anyOf={"android.permission.NETWORK_SETTINGS", android.Manifest.permission.NETWORK_SETUP_WIZARD}) public java.util.Map<android.net.wifi.hotspot2.OsuProvider,android.net.wifi.hotspot2.PasspointConfiguration> getMatchingPasspointConfigsForOsuProviders(@NonNull java.util.Set<android.net.wifi.hotspot2.OsuProvider>);
  4232. method @RequiresPermission(allOf={android.Manifest.permission.ACCESS_FINE_LOCATION, android.Manifest.permission.ACCESS_WIFI_STATE, android.Manifest.permission.READ_WIFI_CREDENTIAL}) public java.util.List<android.net.wifi.WifiConfiguration> getPrivilegedConfiguredNetworks();
  4233. method @RequiresPermission(android.Manifest.permission.ACCESS_WIFI_STATE) public android.net.wifi.WifiConfiguration getWifiApConfiguration();
  4234. method @RequiresPermission(android.Manifest.permission.ACCESS_WIFI_STATE) public int getWifiApState();
  4235. method @Deprecated public boolean isDeviceToDeviceRttSupported();
  4236. method public boolean isPortableHotspotSupported();
  4237. method @RequiresPermission(android.Manifest.permission.ACCESS_WIFI_STATE) public boolean isWifiApEnabled();
  4238. method public boolean isWifiScannerSupported();
  4239. method @RequiresPermission("android.permission.WIFI_UPDATE_USABILITY_STATS_SCORE") public void removeOnWifiUsabilityStatsListener(@NonNull android.net.wifi.WifiManager.OnWifiUsabilityStatsListener);
  4240. method @RequiresPermission(anyOf={"android.permission.NETWORK_SETTINGS", android.Manifest.permission.NETWORK_SETUP_WIZARD, "android.permission.NETWORK_STACK"}) public void save(@NonNull android.net.wifi.WifiConfiguration, @Nullable android.net.wifi.WifiManager.ActionListener);
  4241. method @RequiresPermission("android.permission.WIFI_SET_DEVICE_MOBILITY_STATE") public void setDeviceMobilityState(int);
  4242. method @RequiresPermission(android.Manifest.permission.CHANGE_WIFI_STATE) public boolean setWifiApConfiguration(android.net.wifi.WifiConfiguration);
  4243. method @RequiresPermission(anyOf={"android.permission.NETWORK_SETTINGS", android.Manifest.permission.NETWORK_SETUP_WIZARD}) public void startEasyConnectAsConfiguratorInitiator(@NonNull String, int, int, @NonNull java.util.concurrent.Executor, @NonNull android.net.wifi.EasyConnectStatusCallback);
  4244. method @RequiresPermission(anyOf={"android.permission.NETWORK_SETTINGS", android.Manifest.permission.NETWORK_SETUP_WIZARD}) public void startEasyConnectAsEnrolleeInitiator(@NonNull String, @NonNull java.util.concurrent.Executor, @NonNull android.net.wifi.EasyConnectStatusCallback);
  4245. method @RequiresPermission(android.Manifest.permission.UPDATE_DEVICE_STATS) public boolean startScan(android.os.WorkSource);
  4246. method @RequiresPermission(anyOf={"android.permission.NETWORK_SETTINGS", android.Manifest.permission.NETWORK_SETUP_WIZARD}) public void startSubscriptionProvisioning(@NonNull android.net.wifi.hotspot2.OsuProvider, @NonNull java.util.concurrent.Executor, @NonNull android.net.wifi.hotspot2.ProvisioningCallback);
  4247. method @RequiresPermission(anyOf={"android.permission.NETWORK_SETTINGS", android.Manifest.permission.NETWORK_SETUP_WIZARD}) public void stopEasyConnectSession();
  4248. method @RequiresPermission("android.permission.WIFI_UPDATE_USABILITY_STATS_SCORE") public void updateWifiUsabilityScore(int, int, int);
  4249. field public static final int CHANGE_REASON_ADDED = 0; // 0x0
  4250. field public static final int CHANGE_REASON_CONFIG_CHANGE = 2; // 0x2
  4251. field public static final int CHANGE_REASON_REMOVED = 1; // 0x1
  4252. field public static final String CONFIGURED_NETWORKS_CHANGED_ACTION = "android.net.wifi.CONFIGURED_NETWORKS_CHANGE";
  4253. field public static final int DEVICE_MOBILITY_STATE_HIGH_MVMT = 1; // 0x1
  4254. field public static final int DEVICE_MOBILITY_STATE_LOW_MVMT = 2; // 0x2
  4255. field public static final int DEVICE_MOBILITY_STATE_STATIONARY = 3; // 0x3
  4256. field public static final int DEVICE_MOBILITY_STATE_UNKNOWN = 0; // 0x0
  4257. field public static final int EASY_CONNECT_NETWORK_ROLE_AP = 1; // 0x1
  4258. field public static final int EASY_CONNECT_NETWORK_ROLE_STA = 0; // 0x0
  4259. field public static final String EXTRA_CHANGE_REASON = "changeReason";
  4260. field public static final String EXTRA_MULTIPLE_NETWORKS_CHANGED = "multipleChanges";
  4261. field public static final String EXTRA_PREVIOUS_WIFI_AP_STATE = "previous_wifi_state";
  4262. field public static final String EXTRA_WIFI_AP_STATE = "wifi_state";
  4263. field public static final String EXTRA_WIFI_CONFIGURATION = "wifiConfiguration";
  4264. field public static final String EXTRA_WIFI_CREDENTIAL_EVENT_TYPE = "et";
  4265. field public static final String EXTRA_WIFI_CREDENTIAL_SSID = "ssid";
  4266. field public static final int PASSPOINT_HOME_NETWORK = 0; // 0x0
  4267. field public static final int PASSPOINT_ROAMING_NETWORK = 1; // 0x1
  4268. field public static final String WIFI_AP_STATE_CHANGED_ACTION = "android.net.wifi.WIFI_AP_STATE_CHANGED";
  4269. field public static final int WIFI_AP_STATE_DISABLED = 11; // 0xb
  4270. field public static final int WIFI_AP_STATE_DISABLING = 10; // 0xa
  4271. field public static final int WIFI_AP_STATE_ENABLED = 13; // 0xd
  4272. field public static final int WIFI_AP_STATE_ENABLING = 12; // 0xc
  4273. field public static final int WIFI_AP_STATE_FAILED = 14; // 0xe
  4274. field public static final String WIFI_CREDENTIAL_CHANGED_ACTION = "android.net.wifi.WIFI_CREDENTIAL_CHANGED";
  4275. field public static final int WIFI_CREDENTIAL_FORGOT = 1; // 0x1
  4276. field public static final int WIFI_CREDENTIAL_SAVED = 0; // 0x0
  4277. }
  4278. public static interface WifiManager.ActionListener {
  4279. method public void onFailure(int);
  4280. method public void onSuccess();
  4281. }
  4282. public static interface WifiManager.OnWifiUsabilityStatsListener {
  4283. method public void onWifiUsabilityStats(int, boolean, @NonNull android.net.wifi.WifiUsabilityStatsEntry);
  4284. }
  4285. public class WifiNetworkConnectionStatistics implements android.os.Parcelable {
  4286. ctor public WifiNetworkConnectionStatistics(int, int);
  4287. ctor public WifiNetworkConnectionStatistics();
  4288. ctor public WifiNetworkConnectionStatistics(android.net.wifi.WifiNetworkConnectionStatistics);
  4289. method public int describeContents();
  4290. method public void writeToParcel(android.os.Parcel, int);
  4291. field @NonNull public static final android.os.Parcelable.Creator<android.net.wifi.WifiNetworkConnectionStatistics> CREATOR;
  4292. field public int numConnection;
  4293. field public int numUsage;
  4294. }
  4295. public class WifiScanner {
  4296. method @Deprecated public void configureWifiChange(int, int, int, int, int, android.net.wifi.WifiScanner.BssidInfo[]);
  4297. method @Deprecated public void configureWifiChange(android.net.wifi.WifiScanner.WifiChangeSettings);
  4298. method @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public boolean getScanResults();
  4299. method @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public void startBackgroundScan(android.net.wifi.WifiScanner.ScanSettings, android.net.wifi.WifiScanner.ScanListener);
  4300. method @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public void startBackgroundScan(android.net.wifi.WifiScanner.ScanSettings, android.net.wifi.WifiScanner.ScanListener, android.os.WorkSource);
  4301. method @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public void startScan(android.net.wifi.WifiScanner.ScanSettings, android.net.wifi.WifiScanner.ScanListener);
  4302. method @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public void startScan(android.net.wifi.WifiScanner.ScanSettings, android.net.wifi.WifiScanner.ScanListener, android.os.WorkSource);
  4303. method @Deprecated public void startTrackingBssids(android.net.wifi.WifiScanner.BssidInfo[], int, android.net.wifi.WifiScanner.BssidListener);
  4304. method @Deprecated public void startTrackingWifiChange(android.net.wifi.WifiScanner.WifiChangeListener);
  4305. method @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public void stopBackgroundScan(android.net.wifi.WifiScanner.ScanListener);
  4306. method @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public void stopScan(android.net.wifi.WifiScanner.ScanListener);
  4307. method @Deprecated public void stopTrackingBssids(android.net.wifi.WifiScanner.BssidListener);
  4308. method @Deprecated public void stopTrackingWifiChange(android.net.wifi.WifiScanner.WifiChangeListener);
  4309. field public static final int MAX_SCAN_PERIOD_MS = 1024000; // 0xfa000
  4310. field public static final int MIN_SCAN_PERIOD_MS = 1000; // 0x3e8
  4311. field public static final int REASON_DUPLICATE_REQEUST = -5; // 0xfffffffb
  4312. field public static final int REASON_INVALID_LISTENER = -2; // 0xfffffffe
  4313. field public static final int REASON_INVALID_REQUEST = -3; // 0xfffffffd
  4314. field public static final int REASON_NOT_AUTHORIZED = -4; // 0xfffffffc
  4315. field public static final int REASON_SUCCEEDED = 0; // 0x0
  4316. field public static final int REASON_UNSPECIFIED = -1; // 0xffffffff
  4317. field @Deprecated public static final int REPORT_EVENT_AFTER_BUFFER_FULL = 0; // 0x0
  4318. field public static final int REPORT_EVENT_AFTER_EACH_SCAN = 1; // 0x1
  4319. field public static final int REPORT_EVENT_FULL_SCAN_RESULT = 2; // 0x2
  4320. field public static final int REPORT_EVENT_NO_BATCH = 4; // 0x4
  4321. field public static final int WIFI_BAND_24_GHZ = 1; // 0x1
  4322. field public static final int WIFI_BAND_5_GHZ = 2; // 0x2
  4323. field public static final int WIFI_BAND_5_GHZ_DFS_ONLY = 4; // 0x4
  4324. field public static final int WIFI_BAND_5_GHZ_WITH_DFS = 6; // 0x6
  4325. field public static final int WIFI_BAND_BOTH = 3; // 0x3
  4326. field public static final int WIFI_BAND_BOTH_WITH_DFS = 7; // 0x7
  4327. field public static final int WIFI_BAND_UNSPECIFIED = 0; // 0x0
  4328. }
  4329. public static interface WifiScanner.ActionListener {
  4330. method public void onFailure(int, String);
  4331. method public void onSuccess();
  4332. }
  4333. @Deprecated public static class WifiScanner.BssidInfo {
  4334. ctor @Deprecated public WifiScanner.BssidInfo();
  4335. field @Deprecated public String bssid;
  4336. field @Deprecated public int frequencyHint;
  4337. field @Deprecated public int high;
  4338. field @Deprecated public int low;
  4339. }
  4340. @Deprecated public static interface WifiScanner.BssidListener extends android.net.wifi.WifiScanner.ActionListener {
  4341. method @Deprecated public void onFound(android.net.wifi.ScanResult[]);
  4342. method @Deprecated public void onLost(android.net.wifi.ScanResult[]);
  4343. }
  4344. public static class WifiScanner.ChannelSpec {
  4345. ctor public WifiScanner.ChannelSpec(int);
  4346. field public int frequency;
  4347. }
  4348. @Deprecated public static class WifiScanner.HotlistSettings implements android.os.Parcelable {
  4349. ctor @Deprecated public WifiScanner.HotlistSettings();
  4350. field @Deprecated public int apLostThreshold;
  4351. field @Deprecated public android.net.wifi.WifiScanner.BssidInfo[] bssidInfos;
  4352. }
  4353. public static class WifiScanner.ParcelableScanData implements android.os.Parcelable {
  4354. ctor public WifiScanner.ParcelableScanData(android.net.wifi.WifiScanner.ScanData[]);
  4355. method public android.net.wifi.WifiScanner.ScanData[] getResults();
  4356. field public android.net.wifi.WifiScanner.ScanData[] mResults;
  4357. }
  4358. public static class WifiScanner.ParcelableScanResults implements android.os.Parcelable {
  4359. ctor public WifiScanner.ParcelableScanResults(android.net.wifi.ScanResult[]);
  4360. method public android.net.wifi.ScanResult[] getResults();
  4361. field public android.net.wifi.ScanResult[] mResults;
  4362. }
  4363. public static class WifiScanner.ScanData implements android.os.Parcelable {
  4364. ctor public WifiScanner.ScanData(int, int, android.net.wifi.ScanResult[]);
  4365. ctor public WifiScanner.ScanData(android.net.wifi.WifiScanner.ScanData);
  4366. method public int getFlags();
  4367. method public int getId();
  4368. method public android.net.wifi.ScanResult[] getResults();
  4369. }
  4370. public static interface WifiScanner.ScanListener extends android.net.wifi.WifiScanner.ActionListener {
  4371. method public void onFullResult(android.net.wifi.ScanResult);
  4372. method public void onPeriodChanged(int);
  4373. method public void onResults(android.net.wifi.WifiScanner.ScanData[]);
  4374. }
  4375. public static class WifiScanner.ScanSettings implements android.os.Parcelable {
  4376. ctor public WifiScanner.ScanSettings();
  4377. field public int band;
  4378. field public android.net.wifi.WifiScanner.ChannelSpec[] channels;
  4379. field public boolean hideFromAppOps;
  4380. field public boolean ignoreLocationSettings;
  4381. field public int maxPeriodInMs;
  4382. field public int maxScansToCache;
  4383. field public int numBssidsPerScan;
  4384. field public int periodInMs;
  4385. field public int reportEvents;
  4386. field public int stepCount;
  4387. }
  4388. @Deprecated public static interface WifiScanner.WifiChangeListener extends android.net.wifi.WifiScanner.ActionListener {
  4389. method @Deprecated public void onChanging(android.net.wifi.ScanResult[]);
  4390. method @Deprecated public void onQuiescence(android.net.wifi.ScanResult[]);
  4391. }
  4392. @Deprecated public static class WifiScanner.WifiChangeSettings implements android.os.Parcelable {
  4393. ctor @Deprecated public WifiScanner.WifiChangeSettings();
  4394. field @Deprecated public android.net.wifi.WifiScanner.BssidInfo[] bssidInfos;
  4395. field @Deprecated public int lostApSampleSize;
  4396. field @Deprecated public int minApsBreachingThreshold;
  4397. field @Deprecated public int periodInMs;
  4398. field @Deprecated public int rssiSampleSize;
  4399. field @Deprecated public int unchangedSampleSize;
  4400. }
  4401. public final class WifiUsabilityStatsEntry implements android.os.Parcelable {
  4402. method public int describeContents();
  4403. method public int getCellularDataNetworkType();
  4404. method public int getCellularSignalStrengthDb();
  4405. method public int getCellularSignalStrengthDbm();
  4406. method public int getLinkSpeedMbps();
  4407. method public int getProbeElapsedTimeSinceLastUpdateMillis();
  4408. method public int getProbeMcsRateSinceLastUpdate();
  4409. method public int getProbeStatusSinceLastUpdate();
  4410. method public int getRssi();
  4411. method public int getRxLinkSpeedMbps();
  4412. method public long getTimeStampMillis();
  4413. method public long getTotalBackgroundScanTimeMillis();
  4414. method public long getTotalBeaconRx();
  4415. method public long getTotalCcaBusyFreqTimeMillis();
  4416. method public long getTotalHotspot2ScanTimeMillis();
  4417. method public long getTotalNanScanTimeMillis();
  4418. method public long getTotalPnoScanTimeMillis();
  4419. method public long getTotalRadioOnFreqTimeMillis();
  4420. method public long getTotalRadioOnTimeMillis();
  4421. method public long getTotalRadioRxTimeMillis();
  4422. method public long getTotalRadioTxTimeMillis();
  4423. method public long getTotalRoamScanTimeMillis();
  4424. method public long getTotalRxSuccess();
  4425. method public long getTotalScanTimeMillis();
  4426. method public long getTotalTxBad();
  4427. method public long getTotalTxRetries();
  4428. method public long getTotalTxSuccess();
  4429. method public boolean isSameRegisteredCell();
  4430. method public void writeToParcel(android.os.Parcel, int);
  4431. field @NonNull public static final android.os.Parcelable.Creator<android.net.wifi.WifiUsabilityStatsEntry> CREATOR;
  4432. field public static final int PROBE_STATUS_FAILURE = 3; // 0x3
  4433. field public static final int PROBE_STATUS_NO_PROBE = 1; // 0x1
  4434. field public static final int PROBE_STATUS_SUCCESS = 2; // 0x2
  4435. field public static final int PROBE_STATUS_UNKNOWN = 0; // 0x0
  4436. }
  4437. }
  4438. package android.net.wifi.aware {
  4439. public class DiscoverySession implements java.lang.AutoCloseable {
  4440. method @Deprecated public android.net.NetworkSpecifier createNetworkSpecifierPmk(@NonNull android.net.wifi.aware.PeerHandle, @NonNull byte[]);
  4441. }
  4442. public static final class WifiAwareNetworkSpecifier.Builder {
  4443. method @NonNull public android.net.wifi.aware.WifiAwareNetworkSpecifier.Builder setPmk(@NonNull byte[]);
  4444. }
  4445. public class WifiAwareSession implements java.lang.AutoCloseable {
  4446. method public android.net.NetworkSpecifier createNetworkSpecifierPmk(int, @NonNull byte[], @NonNull byte[]);
  4447. }
  4448. }
  4449. package android.net.wifi.hotspot2 {
  4450. public final class OsuProvider implements android.os.Parcelable {
  4451. method public int describeContents();
  4452. method @Nullable public String getFriendlyName();
  4453. method @Nullable public android.net.Uri getServerUri();
  4454. method public void writeToParcel(android.os.Parcel, int);
  4455. field @NonNull public static final android.os.Parcelable.Creator<android.net.wifi.hotspot2.OsuProvider> CREATOR;
  4456. }
  4457. public abstract class ProvisioningCallback {
  4458. ctor public ProvisioningCallback();
  4459. method public abstract void onProvisioningComplete();
  4460. method public abstract void onProvisioningFailure(int);
  4461. method public abstract void onProvisioningStatus(int);
  4462. field public static final int OSU_FAILURE_ADD_PASSPOINT_CONFIGURATION = 22; // 0x16
  4463. field public static final int OSU_FAILURE_AP_CONNECTION = 1; // 0x1
  4464. field public static final int OSU_FAILURE_INVALID_URL_FORMAT_FOR_OSU = 8; // 0x8
  4465. field public static final int OSU_FAILURE_NO_AAA_SERVER_TRUST_ROOT_NODE = 17; // 0x11
  4466. field public static final int OSU_FAILURE_NO_AAA_TRUST_ROOT_CERTIFICATE = 21; // 0x15
  4467. field public static final int OSU_FAILURE_NO_OSU_ACTIVITY_FOUND = 14; // 0xe
  4468. field public static final int OSU_FAILURE_NO_POLICY_SERVER_TRUST_ROOT_NODE = 19; // 0x13
  4469. field public static final int OSU_FAILURE_NO_PPS_MO = 16; // 0x10
  4470. field public static final int OSU_FAILURE_NO_REMEDIATION_SERVER_TRUST_ROOT_NODE = 18; // 0x12
  4471. field public static final int OSU_FAILURE_OSU_PROVIDER_NOT_FOUND = 23; // 0x17
  4472. field public static final int OSU_FAILURE_PROVISIONING_ABORTED = 6; // 0x6
  4473. field public static final int OSU_FAILURE_PROVISIONING_NOT_AVAILABLE = 7; // 0x7
  4474. field public static final int OSU_FAILURE_RETRIEVE_TRUST_ROOT_CERTIFICATES = 20; // 0x14
  4475. field public static final int OSU_FAILURE_SERVER_CONNECTION = 3; // 0x3
  4476. field public static final int OSU_FAILURE_SERVER_URL_INVALID = 2; // 0x2
  4477. field public static final int OSU_FAILURE_SERVER_VALIDATION = 4; // 0x4
  4478. field public static final int OSU_FAILURE_SERVICE_PROVIDER_VERIFICATION = 5; // 0x5
  4479. field public static final int OSU_FAILURE_SOAP_MESSAGE_EXCHANGE = 11; // 0xb
  4480. field public static final int OSU_FAILURE_START_REDIRECT_LISTENER = 12; // 0xc
  4481. field public static final int OSU_FAILURE_TIMED_OUT_REDIRECT_LISTENER = 13; // 0xd
  4482. field public static final int OSU_FAILURE_UNEXPECTED_COMMAND_TYPE = 9; // 0x9
  4483. field public static final int OSU_FAILURE_UNEXPECTED_SOAP_MESSAGE_STATUS = 15; // 0xf
  4484. field public static final int OSU_FAILURE_UNEXPECTED_SOAP_MESSAGE_TYPE = 10; // 0xa
  4485. field public static final int OSU_STATUS_AP_CONNECTED = 2; // 0x2
  4486. field public static final int OSU_STATUS_AP_CONNECTING = 1; // 0x1
  4487. field public static final int OSU_STATUS_INIT_SOAP_EXCHANGE = 6; // 0x6
  4488. field public static final int OSU_STATUS_REDIRECT_RESPONSE_RECEIVED = 8; // 0x8
  4489. field public static final int OSU_STATUS_RETRIEVING_TRUST_ROOT_CERTS = 11; // 0xb
  4490. field public static final int OSU_STATUS_SECOND_SOAP_EXCHANGE = 9; // 0x9
  4491. field public static final int OSU_STATUS_SERVER_CONNECTED = 5; // 0x5
  4492. field public static final int OSU_STATUS_SERVER_CONNECTING = 3; // 0x3
  4493. field public static final int OSU_STATUS_SERVER_VALIDATED = 4; // 0x4
  4494. field public static final int OSU_STATUS_THIRD_SOAP_EXCHANGE = 10; // 0xa
  4495. field public static final int OSU_STATUS_WAITING_FOR_REDIRECT_RESPONSE = 7; // 0x7
  4496. }
  4497. }
  4498. package android.net.wifi.rtt {
  4499. public static final class RangingRequest.Builder {
  4500. method public android.net.wifi.rtt.RangingRequest.Builder addResponder(@NonNull android.net.wifi.rtt.ResponderConfig);
  4501. }
  4502. public final class RangingResult implements android.os.Parcelable {
  4503. method @NonNull public byte[] getLci();
  4504. method @NonNull public byte[] getLcr();
  4505. }
  4506. public final class ResponderConfig implements android.os.Parcelable {
  4507. ctor public ResponderConfig(@NonNull android.net.MacAddress, int, boolean, int, int, int, int, int);
  4508. ctor public ResponderConfig(@NonNull android.net.wifi.aware.PeerHandle, int, boolean, int, int, int, int, int);
  4509. method public int describeContents();
  4510. method public static android.net.wifi.rtt.ResponderConfig fromScanResult(android.net.wifi.ScanResult);
  4511. method public static android.net.wifi.rtt.ResponderConfig fromWifiAwarePeerHandleWithDefaults(android.net.wifi.aware.PeerHandle);
  4512. method public static android.net.wifi.rtt.ResponderConfig fromWifiAwarePeerMacAddressWithDefaults(android.net.MacAddress);
  4513. method public void writeToParcel(android.os.Parcel, int);
  4514. field public static final int CHANNEL_WIDTH_160MHZ = 3; // 0x3
  4515. field public static final int CHANNEL_WIDTH_20MHZ = 0; // 0x0
  4516. field public static final int CHANNEL_WIDTH_40MHZ = 1; // 0x1
  4517. field public static final int CHANNEL_WIDTH_80MHZ = 2; // 0x2
  4518. field public static final int CHANNEL_WIDTH_80MHZ_PLUS_MHZ = 4; // 0x4
  4519. field @NonNull public static final android.os.Parcelable.Creator<android.net.wifi.rtt.ResponderConfig> CREATOR;
  4520. field public static final int PREAMBLE_HT = 1; // 0x1
  4521. field public static final int PREAMBLE_LEGACY = 0; // 0x0
  4522. field public static final int PREAMBLE_VHT = 2; // 0x2
  4523. field public static final int RESPONDER_AP = 0; // 0x0
  4524. field public static final int RESPONDER_AWARE = 4; // 0x4
  4525. field public static final int RESPONDER_P2P_CLIENT = 3; // 0x3
  4526. field public static final int RESPONDER_P2P_GO = 2; // 0x2
  4527. field public static final int RESPONDER_STA = 1; // 0x1
  4528. field public final int centerFreq0;
  4529. field public final int centerFreq1;
  4530. field public final int channelWidth;
  4531. field public final int frequency;
  4532. field public final android.net.MacAddress macAddress;
  4533. field public final android.net.wifi.aware.PeerHandle peerHandle;
  4534. field public final int preamble;
  4535. field public final int responderType;
  4536. field public final boolean supports80211mc;
  4537. }
  4538. public final class ResponderLocation implements android.os.Parcelable {
  4539. method public boolean getExtraInfoOnAssociationIndication();
  4540. }
  4541. public class WifiRttManager {
  4542. method @RequiresPermission(allOf={android.Manifest.permission.LOCATION_HARDWARE}) public void cancelRanging(@Nullable android.os.WorkSource);
  4543. method @RequiresPermission(allOf={android.Manifest.permission.LOCATION_HARDWARE, android.Manifest.permission.ACCESS_FINE_LOCATION, android.Manifest.permission.CHANGE_WIFI_STATE, android.Manifest.permission.ACCESS_WIFI_STATE}) public void startRanging(@Nullable android.os.WorkSource, @NonNull android.net.wifi.rtt.RangingRequest, @NonNull java.util.concurrent.Executor, @NonNull android.net.wifi.rtt.RangingResultCallback);
  4544. }
  4545. }
  4546. package android.nfc {
  4547. public final class NfcAdapter {
  4548. method @RequiresPermission(android.Manifest.permission.WRITE_SECURE_SETTINGS) public boolean addNfcUnlockHandler(android.nfc.NfcAdapter.NfcUnlockHandler, String[]);
  4549. method @RequiresPermission(android.Manifest.permission.WRITE_SECURE_SETTINGS) public boolean disable();
  4550. method @RequiresPermission(android.Manifest.permission.WRITE_SECURE_SETTINGS) public boolean disable(boolean);
  4551. method @RequiresPermission(android.Manifest.permission.WRITE_SECURE_SETTINGS) public boolean disableNdefPush();
  4552. method @RequiresPermission(android.Manifest.permission.WRITE_SECURE_SETTINGS) public boolean enable();
  4553. method @RequiresPermission(android.Manifest.permission.WRITE_SECURE_SETTINGS) public boolean enableNdefPush();
  4554. method @RequiresPermission(android.Manifest.permission.WRITE_SECURE_SETTINGS) public boolean enableSecureNfc(boolean);
  4555. method @RequiresPermission(android.Manifest.permission.WRITE_SECURE_SETTINGS) public boolean removeNfcUnlockHandler(android.nfc.NfcAdapter.NfcUnlockHandler);
  4556. method public void setNdefPushMessage(android.nfc.NdefMessage, android.app.Activity, int);
  4557. field public static final int FLAG_NDEF_PUSH_NO_CONFIRM = 1; // 0x1
  4558. }
  4559. public static interface NfcAdapter.NfcUnlockHandler {
  4560. method public boolean onUnlockAttempted(android.nfc.Tag);
  4561. }
  4562. }
  4563. package android.os {
  4564. public class BatteryManager {
  4565. method @RequiresPermission(android.Manifest.permission.POWER_SAVER) public boolean setChargingStateUpdateDelayMillis(int);
  4566. field public static final String EXTRA_EVENTS = "android.os.extra.EVENTS";
  4567. field public static final String EXTRA_EVENT_TIMESTAMP = "android.os.extra.EVENT_TIMESTAMP";
  4568. }
  4569. public final class BatterySaverPolicyConfig implements android.os.Parcelable {
  4570. method public int describeContents();
  4571. method public float getAdjustBrightnessFactor();
  4572. method public boolean getAdvertiseIsEnabled();
  4573. method public boolean getDeferFullBackup();
  4574. method public boolean getDeferKeyValueBackup();
  4575. method @NonNull public java.util.Map<java.lang.String,java.lang.String> getDeviceSpecificSettings();
  4576. method public boolean getDisableAnimation();
  4577. method public boolean getDisableAod();
  4578. method public boolean getDisableLaunchBoost();
  4579. method public boolean getDisableOptionalSensors();
  4580. method public boolean getDisableSoundTrigger();
  4581. method public boolean getDisableVibration();
  4582. method public boolean getEnableAdjustBrightness();
  4583. method public boolean getEnableDataSaver();
  4584. method public boolean getEnableFirewall();
  4585. method public boolean getEnableNightMode();
  4586. method public boolean getEnableQuickDoze();
  4587. method public boolean getForceAllAppsStandby();
  4588. method public boolean getForceBackgroundCheck();
  4589. method public int getLocationMode();
  4590. method public void writeToParcel(android.os.Parcel, int);
  4591. field @NonNull public static final android.os.Parcelable.Creator<android.os.BatterySaverPolicyConfig> CREATOR;
  4592. }
  4593. public static final class BatterySaverPolicyConfig.Builder {
  4594. ctor public BatterySaverPolicyConfig.Builder();
  4595. method @NonNull public android.os.BatterySaverPolicyConfig.Builder addDeviceSpecificSetting(@NonNull String, @NonNull String);
  4596. method @NonNull public android.os.BatterySaverPolicyConfig build();
  4597. method @NonNull public android.os.BatterySaverPolicyConfig.Builder setAdjustBrightnessFactor(float);
  4598. method @NonNull public android.os.BatterySaverPolicyConfig.Builder setAdvertiseIsEnabled(boolean);
  4599. method @NonNull public android.os.BatterySaverPolicyConfig.Builder setDeferFullBackup(boolean);
  4600. method @NonNull public android.os.BatterySaverPolicyConfig.Builder setDeferKeyValueBackup(boolean);
  4601. method @NonNull public android.os.BatterySaverPolicyConfig.Builder setDisableAnimation(boolean);
  4602. method @NonNull public android.os.BatterySaverPolicyConfig.Builder setDisableAod(boolean);
  4603. method @NonNull public android.os.BatterySaverPolicyConfig.Builder setDisableLaunchBoost(boolean);
  4604. method @NonNull public android.os.BatterySaverPolicyConfig.Builder setDisableOptionalSensors(boolean);
  4605. method @NonNull public android.os.BatterySaverPolicyConfig.Builder setDisableSoundTrigger(boolean);
  4606. method @NonNull public android.os.BatterySaverPolicyConfig.Builder setDisableVibration(boolean);
  4607. method @NonNull public android.os.BatterySaverPolicyConfig.Builder setEnableAdjustBrightness(boolean);
  4608. method @NonNull public android.os.BatterySaverPolicyConfig.Builder setEnableDataSaver(boolean);
  4609. method @NonNull public android.os.BatterySaverPolicyConfig.Builder setEnableFirewall(boolean);
  4610. method @NonNull public android.os.BatterySaverPolicyConfig.Builder setEnableNightMode(boolean);
  4611. method @NonNull public android.os.BatterySaverPolicyConfig.Builder setEnableQuickDoze(boolean);
  4612. method @NonNull public android.os.BatterySaverPolicyConfig.Builder setForceAllAppsStandby(boolean);
  4613. method @NonNull public android.os.BatterySaverPolicyConfig.Builder setForceBackgroundCheck(boolean);
  4614. method @NonNull public android.os.BatterySaverPolicyConfig.Builder setLocationMode(int);
  4615. }
  4616. public class Binder implements android.os.IBinder {
  4617. method public static void setProxyTransactListener(@Nullable android.os.Binder.ProxyTransactListener);
  4618. }
  4619. public static interface Binder.ProxyTransactListener {
  4620. method public void onTransactEnded(@Nullable Object);
  4621. method @Nullable public Object onTransactStarted(@NonNull android.os.IBinder, int);
  4622. }
  4623. public final class BugreportManager {
  4624. method @RequiresPermission(android.Manifest.permission.DUMP) public void cancelBugreport();
  4625. method @RequiresPermission(android.Manifest.permission.DUMP) public void startBugreport(@NonNull android.os.ParcelFileDescriptor, @Nullable android.os.ParcelFileDescriptor, @NonNull android.os.BugreportParams, @NonNull java.util.concurrent.Executor, @NonNull android.os.BugreportManager.BugreportCallback);
  4626. }
  4627. public abstract static class BugreportManager.BugreportCallback {
  4628. ctor public BugreportManager.BugreportCallback();
  4629. method public void onError(int);
  4630. method public void onFinished();
  4631. method public void onProgress(@FloatRange(from=0.0f, to=100.0f) float);
  4632. field public static final int BUGREPORT_ERROR_ANOTHER_REPORT_IN_PROGRESS = 5; // 0x5
  4633. field public static final int BUGREPORT_ERROR_INVALID_INPUT = 1; // 0x1
  4634. field public static final int BUGREPORT_ERROR_RUNTIME = 2; // 0x2
  4635. field public static final int BUGREPORT_ERROR_USER_CONSENT_TIMED_OUT = 4; // 0x4
  4636. field public static final int BUGREPORT_ERROR_USER_DENIED_CONSENT = 3; // 0x3
  4637. }
  4638. public final class BugreportParams {
  4639. ctor public BugreportParams(int);
  4640. method public int getMode();
  4641. field public static final int BUGREPORT_MODE_FULL = 0; // 0x0
  4642. field public static final int BUGREPORT_MODE_INTERACTIVE = 1; // 0x1
  4643. field public static final int BUGREPORT_MODE_REMOTE = 2; // 0x2
  4644. field public static final int BUGREPORT_MODE_TELEPHONY = 4; // 0x4
  4645. field public static final int BUGREPORT_MODE_WEAR = 3; // 0x3
  4646. field public static final int BUGREPORT_MODE_WIFI = 5; // 0x5
  4647. }
  4648. public static class Build.VERSION {
  4649. field @NonNull public static final String PREVIEW_SDK_FINGERPRINT;
  4650. }
  4651. public final class ConfigUpdate {
  4652. field public static final String ACTION_UPDATE_CARRIER_ID_DB = "android.os.action.UPDATE_CARRIER_ID_DB";
  4653. field public static final String ACTION_UPDATE_CARRIER_PROVISIONING_URLS = "android.intent.action.UPDATE_CARRIER_PROVISIONING_URLS";
  4654. field public static final String ACTION_UPDATE_CONVERSATION_ACTIONS = "android.intent.action.UPDATE_CONVERSATION_ACTIONS";
  4655. field public static final String ACTION_UPDATE_CT_LOGS = "android.intent.action.UPDATE_CT_LOGS";
  4656. field public static final String ACTION_UPDATE_INTENT_FIREWALL = "android.intent.action.UPDATE_INTENT_FIREWALL";
  4657. field public static final String ACTION_UPDATE_LANG_ID = "android.intent.action.UPDATE_LANG_ID";
  4658. field public static final String ACTION_UPDATE_NETWORK_WATCHLIST = "android.intent.action.UPDATE_NETWORK_WATCHLIST";
  4659. field public static final String ACTION_UPDATE_PINS = "android.intent.action.UPDATE_PINS";
  4660. field public static final String ACTION_UPDATE_SMART_SELECTION = "android.intent.action.UPDATE_SMART_SELECTION";
  4661. field public static final String ACTION_UPDATE_SMS_SHORT_CODES = "android.intent.action.UPDATE_SMS_SHORT_CODES";
  4662. }
  4663. public class Environment {
  4664. method @NonNull public static java.io.File getOdmDirectory();
  4665. method @NonNull public static java.io.File getOemDirectory();
  4666. method @NonNull public static java.io.File getProductDirectory();
  4667. method @NonNull public static java.io.File getProductServicesDirectory();
  4668. method @NonNull public static java.io.File getVendorDirectory();
  4669. }
  4670. public class HidlSupport {
  4671. method public static boolean deepEquals(Object, Object);
  4672. method public static int deepHashCode(Object);
  4673. method public static int getPidIfSharable();
  4674. method public static boolean interfacesEqual(android.os.IHwInterface, Object);
  4675. }
  4676. public abstract class HwBinder implements android.os.IHwBinder {
  4677. ctor public HwBinder();
  4678. method public static final void configureRpcThreadpool(long, boolean);
  4679. method public static void enableInstrumentation();
  4680. method public static final android.os.IHwBinder getService(String, String) throws java.util.NoSuchElementException, android.os.RemoteException;
  4681. method public static final android.os.IHwBinder getService(String, String, boolean) throws java.util.NoSuchElementException, android.os.RemoteException;
  4682. method public static final void joinRpcThreadpool();
  4683. method public abstract void onTransact(int, android.os.HwParcel, android.os.HwParcel, int) throws android.os.RemoteException;
  4684. method public final void registerService(String) throws android.os.RemoteException;
  4685. method public final void transact(int, android.os.HwParcel, android.os.HwParcel, int) throws android.os.RemoteException;
  4686. }
  4687. public class HwBlob {
  4688. ctor public HwBlob(int);
  4689. method public final void copyToBoolArray(long, boolean[], int);
  4690. method public final void copyToDoubleArray(long, double[], int);
  4691. method public final void copyToFloatArray(long, float[], int);
  4692. method public final void copyToInt16Array(long, short[], int);
  4693. method public final void copyToInt32Array(long, int[], int);
  4694. method public final void copyToInt64Array(long, long[], int);
  4695. method public final void copyToInt8Array(long, byte[], int);
  4696. method public final boolean getBool(long);
  4697. method public final double getDouble(long);
  4698. method public final float getFloat(long);
  4699. method public final short getInt16(long);
  4700. method public final int getInt32(long);
  4701. method public final long getInt64(long);
  4702. method public final byte getInt8(long);
  4703. method public final String getString(long);
  4704. method public final long handle();
  4705. method public final void putBlob(long, android.os.HwBlob);
  4706. method public final void putBool(long, boolean);
  4707. method public final void putBoolArray(long, boolean[]);
  4708. method public final void putDouble(long, double);
  4709. method public final void putDoubleArray(long, double[]);
  4710. method public final void putFloat(long, float);
  4711. method public final void putFloatArray(long, float[]);
  4712. method public final void putInt16(long, short);
  4713. method public final void putInt16Array(long, short[]);
  4714. method public final void putInt32(long, int);
  4715. method public final void putInt32Array(long, int[]);
  4716. method public final void putInt64(long, long);
  4717. method public final void putInt64Array(long, long[]);
  4718. method public final void putInt8(long, byte);
  4719. method public final void putInt8Array(long, byte[]);
  4720. method public final void putNativeHandle(long, @Nullable android.os.NativeHandle);
  4721. method public final void putString(long, String);
  4722. method public static Boolean[] wrapArray(@NonNull boolean[]);
  4723. method public static Long[] wrapArray(@NonNull long[]);
  4724. method public static Byte[] wrapArray(@NonNull byte[]);
  4725. method public static Short[] wrapArray(@NonNull short[]);
  4726. method public static Integer[] wrapArray(@NonNull int[]);
  4727. method public static Float[] wrapArray(@NonNull float[]);
  4728. method public static Double[] wrapArray(@NonNull double[]);
  4729. }
  4730. public class HwParcel {
  4731. ctor public HwParcel();
  4732. method public final void enforceInterface(String);
  4733. method public final boolean readBool();
  4734. method public final java.util.ArrayList<java.lang.Boolean> readBoolVector();
  4735. method public final android.os.HwBlob readBuffer(long);
  4736. method public final double readDouble();
  4737. method public final java.util.ArrayList<java.lang.Double> readDoubleVector();
  4738. method public final android.os.HwBlob readEmbeddedBuffer(long, long, long, boolean);
  4739. method @Nullable public final android.os.NativeHandle readEmbeddedNativeHandle(long, long);
  4740. method public final float readFloat();
  4741. method public final java.util.ArrayList<java.lang.Float> readFloatVector();
  4742. method public final short readInt16();
  4743. method public final java.util.ArrayList<java.lang.Short> readInt16Vector();
  4744. method public final int readInt32();
  4745. method public final java.util.ArrayList<java.lang.Integer> readInt32Vector();
  4746. method public final long readInt64();
  4747. method public final java.util.ArrayList<java.lang.Long> readInt64Vector();
  4748. method public final byte readInt8();
  4749. method public final java.util.ArrayList<java.lang.Byte> readInt8Vector();
  4750. method @Nullable public final android.os.NativeHandle readNativeHandle();
  4751. method @NonNull public final java.util.ArrayList<android.os.NativeHandle> readNativeHandleVector();
  4752. method public final String readString();
  4753. method public final java.util.ArrayList<java.lang.String> readStringVector();
  4754. method public final android.os.IHwBinder readStrongBinder();
  4755. method public final void release();
  4756. method public final void releaseTemporaryStorage();
  4757. method public final void send();
  4758. method public final void verifySuccess();
  4759. method public final void writeBool(boolean);
  4760. method public final void writeBoolVector(java.util.ArrayList<java.lang.Boolean>);
  4761. method public final void writeBuffer(android.os.HwBlob);
  4762. method public final void writeDouble(double);
  4763. method public final void writeDoubleVector(java.util.ArrayList<java.lang.Double>);
  4764. method public final void writeFloat(float);
  4765. method public final void writeFloatVector(java.util.ArrayList<java.lang.Float>);
  4766. method public final void writeInt16(short);
  4767. method public final void writeInt16Vector(java.util.ArrayList<java.lang.Short>);
  4768. method public final void writeInt32(int);
  4769. method public final void writeInt32Vector(java.util.ArrayList<java.lang.Integer>);
  4770. method public final void writeInt64(long);
  4771. method public final void writeInt64Vector(java.util.ArrayList<java.lang.Long>);
  4772. method public final void writeInt8(byte);
  4773. method public final void writeInt8Vector(java.util.ArrayList<java.lang.Byte>);
  4774. method public final void writeInterfaceToken(String);
  4775. method public final void writeNativeHandle(@Nullable android.os.NativeHandle);
  4776. method public final void writeNativeHandleVector(@NonNull java.util.ArrayList<android.os.NativeHandle>);
  4777. method public final void writeStatus(int);
  4778. method public final void writeString(String);
  4779. method public final void writeStringVector(java.util.ArrayList<java.lang.String>);
  4780. method public final void writeStrongBinder(android.os.IHwBinder);
  4781. field public static final int STATUS_SUCCESS = 0; // 0x0
  4782. }
  4783. @IntDef(prefix={"STATUS_"}, value={android.os.HwParcel.STATUS_SUCCESS}) @java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.SOURCE) public static @interface HwParcel.Status {
  4784. }
  4785. public interface IHwBinder {
  4786. method public boolean linkToDeath(android.os.IHwBinder.DeathRecipient, long);
  4787. method public android.os.IHwInterface queryLocalInterface(String);
  4788. method public void transact(int, android.os.HwParcel, android.os.HwParcel, int) throws android.os.RemoteException;
  4789. method public boolean unlinkToDeath(android.os.IHwBinder.DeathRecipient);
  4790. }
  4791. public static interface IHwBinder.DeathRecipient {
  4792. method public void serviceDied(long);
  4793. }
  4794. public interface IHwInterface {
  4795. method public android.os.IHwBinder asBinder();
  4796. }
  4797. public class IncidentManager {
  4798. method @RequiresPermission(android.Manifest.permission.APPROVE_INCIDENT_REPORTS) public void approveReport(android.net.Uri);
  4799. method @RequiresPermission("android.permission.REQUEST_INCIDENT_REPORT_APPROVAL") public void cancelAuthorization(android.os.IncidentManager.AuthListener);
  4800. method @RequiresPermission(allOf={android.Manifest.permission.DUMP, android.Manifest.permission.PACKAGE_USAGE_STATS}) public void deleteIncidentReports(android.net.Uri);
  4801. method @RequiresPermission(android.Manifest.permission.APPROVE_INCIDENT_REPORTS) public void denyReport(android.net.Uri);
  4802. method @RequiresPermission(allOf={android.Manifest.permission.DUMP, android.Manifest.permission.PACKAGE_USAGE_STATS}) @Nullable public android.os.IncidentManager.IncidentReport getIncidentReport(android.net.Uri);
  4803. method @RequiresPermission(allOf={android.Manifest.permission.DUMP, android.Manifest.permission.PACKAGE_USAGE_STATS}) @NonNull public java.util.List<android.net.Uri> getIncidentReportList(String);
  4804. method @RequiresPermission(android.Manifest.permission.APPROVE_INCIDENT_REPORTS) public java.util.List<android.os.IncidentManager.PendingReport> getPendingReports();
  4805. method @RequiresPermission(allOf={android.Manifest.permission.DUMP, android.Manifest.permission.PACKAGE_USAGE_STATS}) public void reportIncident(android.os.IncidentReportArgs);
  4806. method @RequiresPermission("android.permission.REQUEST_INCIDENT_REPORT_APPROVAL") public void requestAuthorization(int, String, int, android.os.IncidentManager.AuthListener);
  4807. field public static final int FLAG_CONFIRMATION_DIALOG = 1; // 0x1
  4808. field public static final int PRIVACY_POLICY_AUTO = 200; // 0xc8
  4809. field public static final int PRIVACY_POLICY_EXPLICIT = 100; // 0x64
  4810. field public static final int PRIVACY_POLICY_LOCAL = 0; // 0x0
  4811. }
  4812. public static class IncidentManager.AuthListener {
  4813. ctor public IncidentManager.AuthListener();
  4814. method public void onReportApproved();
  4815. method public void onReportDenied();
  4816. }
  4817. public static class IncidentManager.IncidentReport implements java.io.Closeable android.os.Parcelable {
  4818. ctor public IncidentManager.IncidentReport(android.os.Parcel);
  4819. method public void close();
  4820. method public int describeContents();
  4821. method public java.io.InputStream getInputStream() throws java.io.IOException;
  4822. method public long getPrivacyPolicy();
  4823. method public long getTimestamp();
  4824. method public void writeToParcel(android.os.Parcel, int);
  4825. field @NonNull public static final android.os.Parcelable.Creator<android.os.IncidentManager.IncidentReport> CREATOR;
  4826. }
  4827. public static class IncidentManager.PendingReport {
  4828. ctor public IncidentManager.PendingReport(@NonNull android.net.Uri);
  4829. method public int getFlags();
  4830. method @NonNull public String getRequestingPackage();
  4831. method public long getTimestamp();
  4832. method @NonNull public android.net.Uri getUri();
  4833. }
  4834. public final class IncidentReportArgs implements android.os.Parcelable {
  4835. ctor public IncidentReportArgs();
  4836. ctor public IncidentReportArgs(android.os.Parcel);
  4837. method public void addHeader(byte[]);
  4838. method public void addSection(int);
  4839. method public boolean containsSection(int);
  4840. method public int describeContents();
  4841. method public boolean isAll();
  4842. method public void readFromParcel(android.os.Parcel);
  4843. method public int sectionCount();
  4844. method public void setAll(boolean);
  4845. method public void setPrivacyPolicy(int);
  4846. method public void writeToParcel(android.os.Parcel, int);
  4847. field @NonNull public static final android.os.Parcelable.Creator<android.os.IncidentReportArgs> CREATOR;
  4848. }
  4849. public final class NativeHandle implements java.io.Closeable {
  4850. ctor public NativeHandle();
  4851. ctor public NativeHandle(@NonNull java.io.FileDescriptor, boolean);
  4852. ctor public NativeHandle(@NonNull java.io.FileDescriptor[], @NonNull int[], boolean);
  4853. method public void close() throws java.io.IOException;
  4854. method @NonNull public android.os.NativeHandle dup() throws java.io.IOException;
  4855. method @NonNull public java.io.FileDescriptor getFileDescriptor();
  4856. method @NonNull public java.io.FileDescriptor[] getFileDescriptors();
  4857. method @NonNull public int[] getInts();
  4858. method public boolean hasSingleFileDescriptor();
  4859. }
  4860. public final class PowerManager {
  4861. method @RequiresPermission(allOf={android.Manifest.permission.READ_DREAM_STATE, android.Manifest.permission.WRITE_DREAM_STATE}) public void dream(long);
  4862. method @RequiresPermission(android.Manifest.permission.DEVICE_POWER) public boolean forceSuspend();
  4863. method @RequiresPermission(android.Manifest.permission.POWER_SAVER) public int getPowerSaveModeTrigger();
  4864. method @RequiresPermission(anyOf={android.Manifest.permission.DEVICE_POWER, android.Manifest.permission.POWER_SAVER}) public boolean setAdaptivePowerSaveEnabled(boolean);
  4865. method @RequiresPermission(anyOf={android.Manifest.permission.DEVICE_POWER, android.Manifest.permission.POWER_SAVER}) public boolean setAdaptivePowerSavePolicy(@NonNull android.os.BatterySaverPolicyConfig);
  4866. method @RequiresPermission(android.Manifest.permission.POWER_SAVER) public boolean setDynamicPowerSaveHint(boolean, int);
  4867. method @RequiresPermission(anyOf={android.Manifest.permission.DEVICE_POWER, android.Manifest.permission.POWER_SAVER}) public boolean setPowerSaveModeEnabled(boolean);
  4868. method @RequiresPermission(anyOf={android.Manifest.permission.DEVICE_POWER, android.Manifest.permission.USER_ACTIVITY}) public void userActivity(long, int, int);
  4869. field public static final int POWER_SAVE_MODE_TRIGGER_DYNAMIC = 1; // 0x1
  4870. field public static final int POWER_SAVE_MODE_TRIGGER_PERCENTAGE = 0; // 0x0
  4871. field public static final int USER_ACTIVITY_EVENT_ACCESSIBILITY = 3; // 0x3
  4872. field public static final int USER_ACTIVITY_EVENT_BUTTON = 1; // 0x1
  4873. field public static final int USER_ACTIVITY_EVENT_OTHER = 0; // 0x0
  4874. field public static final int USER_ACTIVITY_EVENT_TOUCH = 2; // 0x2
  4875. field public static final int USER_ACTIVITY_FLAG_INDIRECT = 2; // 0x2
  4876. field public static final int USER_ACTIVITY_FLAG_NO_CHANGE_LIGHTS = 1; // 0x1
  4877. }
  4878. public class RecoverySystem {
  4879. method @RequiresPermission(android.Manifest.permission.RECOVERY) public static void cancelScheduledUpdate(android.content.Context) throws java.io.IOException;
  4880. method @RequiresPermission(android.Manifest.permission.RECOVERY) public static void installPackage(android.content.Context, java.io.File, boolean) throws java.io.IOException;
  4881. method @RequiresPermission(android.Manifest.permission.RECOVERY) public static void processPackage(android.content.Context, java.io.File, android.os.RecoverySystem.ProgressListener, android.os.Handler) throws java.io.IOException;
  4882. method @RequiresPermission(android.Manifest.permission.RECOVERY) public static void processPackage(android.content.Context, java.io.File, android.os.RecoverySystem.ProgressListener) throws java.io.IOException;
  4883. method @RequiresPermission(allOf={android.Manifest.permission.RECOVERY, android.Manifest.permission.REBOOT}) public static void rebootWipeAb(android.content.Context, java.io.File, String) throws java.io.IOException;
  4884. method @RequiresPermission(android.Manifest.permission.RECOVERY) public static void scheduleUpdateOnBoot(android.content.Context, java.io.File) throws java.io.IOException;
  4885. method public static boolean verifyPackageCompatibility(java.io.File) throws java.io.IOException;
  4886. }
  4887. public final class RemoteCallback implements android.os.Parcelable {
  4888. ctor public RemoteCallback(android.os.RemoteCallback.OnResultListener);
  4889. ctor public RemoteCallback(@NonNull android.os.RemoteCallback.OnResultListener, @Nullable android.os.Handler);
  4890. method public int describeContents();
  4891. method public void sendResult(@Nullable android.os.Bundle);
  4892. method public void writeToParcel(android.os.Parcel, int);
  4893. field @NonNull public static final android.os.Parcelable.Creator<android.os.RemoteCallback> CREATOR;
  4894. }
  4895. public static interface RemoteCallback.OnResultListener {
  4896. method public void onResult(@Nullable android.os.Bundle);
  4897. }
  4898. public class ServiceSpecificException extends java.lang.RuntimeException {
  4899. ctor public ServiceSpecificException(int, @Nullable String);
  4900. ctor public ServiceSpecificException(int);
  4901. field public final int errorCode;
  4902. }
  4903. public final class StatsDimensionsValue implements android.os.Parcelable {
  4904. method public int describeContents();
  4905. method public boolean getBooleanValue();
  4906. method public int getField();
  4907. method public float getFloatValue();
  4908. method public int getIntValue();
  4909. method public long getLongValue();
  4910. method public String getStringValue();
  4911. method public java.util.List<android.os.StatsDimensionsValue> getTupleValueList();
  4912. method public int getValueType();
  4913. method public boolean isValueType(int);
  4914. method public void writeToParcel(android.os.Parcel, int);
  4915. field public static final int BOOLEAN_VALUE_TYPE = 5; // 0x5
  4916. field @NonNull public static final android.os.Parcelable.Creator<android.os.StatsDimensionsValue> CREATOR;
  4917. field public static final int FLOAT_VALUE_TYPE = 6; // 0x6
  4918. field public static final int INT_VALUE_TYPE = 3; // 0x3
  4919. field public static final int LONG_VALUE_TYPE = 4; // 0x4
  4920. field public static final int STRING_VALUE_TYPE = 2; // 0x2
  4921. field public static final int TUPLE_VALUE_TYPE = 7; // 0x7
  4922. }
  4923. public class SystemProperties {
  4924. method @NonNull public static String get(@NonNull String);
  4925. method @NonNull public static String get(@NonNull String, @Nullable String);
  4926. method public static boolean getBoolean(@NonNull String, boolean);
  4927. method public static int getInt(@NonNull String, int);
  4928. method public static long getLong(@NonNull String, long);
  4929. }
  4930. public class SystemUpdateManager {
  4931. method @RequiresPermission(anyOf={android.Manifest.permission.READ_SYSTEM_UPDATE_INFO, android.Manifest.permission.RECOVERY}) public android.os.Bundle retrieveSystemUpdateInfo();
  4932. method @RequiresPermission(android.Manifest.permission.RECOVERY) public void updateSystemUpdateInfo(android.os.PersistableBundle);
  4933. field public static final String KEY_IS_SECURITY_UPDATE = "is_security_update";
  4934. field public static final String KEY_STATUS = "status";
  4935. field public static final String KEY_TARGET_BUILD_FINGERPRINT = "target_build_fingerprint";
  4936. field public static final String KEY_TARGET_SECURITY_PATCH_LEVEL = "target_security_patch_level";
  4937. field public static final String KEY_TITLE = "title";
  4938. field public static final int STATUS_IDLE = 1; // 0x1
  4939. field public static final int STATUS_IN_PROGRESS = 3; // 0x3
  4940. field public static final int STATUS_UNKNOWN = 0; // 0x0
  4941. field public static final int STATUS_WAITING_DOWNLOAD = 2; // 0x2
  4942. field public static final int STATUS_WAITING_INSTALL = 4; // 0x4
  4943. field public static final int STATUS_WAITING_REBOOT = 5; // 0x5
  4944. }
  4945. public class UpdateEngine {
  4946. ctor public UpdateEngine();
  4947. method public void applyPayload(String, long, long, String[]);
  4948. method public boolean bind(android.os.UpdateEngineCallback, android.os.Handler);
  4949. method public boolean bind(android.os.UpdateEngineCallback);
  4950. method public void cancel();
  4951. method public void resetStatus();
  4952. method public void resume();
  4953. method public void suspend();
  4954. method public boolean unbind();
  4955. method public boolean verifyPayloadMetadata(String);
  4956. }
  4957. public static final class UpdateEngine.ErrorCodeConstants {
  4958. ctor public UpdateEngine.ErrorCodeConstants();
  4959. field public static final int DOWNLOAD_PAYLOAD_VERIFICATION_ERROR = 12; // 0xc
  4960. field public static final int DOWNLOAD_TRANSFER_ERROR = 9; // 0x9
  4961. field public static final int ERROR = 1; // 0x1
  4962. field public static final int FILESYSTEM_COPIER_ERROR = 4; // 0x4
  4963. field public static final int INSTALL_DEVICE_OPEN_ERROR = 7; // 0x7
  4964. field public static final int KERNEL_DEVICE_OPEN_ERROR = 8; // 0x8
  4965. field public static final int PAYLOAD_HASH_MISMATCH_ERROR = 10; // 0xa
  4966. field public static final int PAYLOAD_MISMATCHED_TYPE_ERROR = 6; // 0x6
  4967. field public static final int PAYLOAD_SIZE_MISMATCH_ERROR = 11; // 0xb
  4968. field public static final int PAYLOAD_TIMESTAMP_ERROR = 51; // 0x33
  4969. field public static final int POST_INSTALL_RUNNER_ERROR = 5; // 0x5
  4970. field public static final int SUCCESS = 0; // 0x0
  4971. field public static final int UPDATED_BUT_NOT_ACTIVE = 52; // 0x34
  4972. }
  4973. public static final class UpdateEngine.UpdateStatusConstants {
  4974. ctor public UpdateEngine.UpdateStatusConstants();
  4975. field public static final int ATTEMPTING_ROLLBACK = 8; // 0x8
  4976. field public static final int CHECKING_FOR_UPDATE = 1; // 0x1
  4977. field public static final int DISABLED = 9; // 0x9
  4978. field public static final int DOWNLOADING = 3; // 0x3
  4979. field public static final int FINALIZING = 5; // 0x5
  4980. field public static final int IDLE = 0; // 0x0
  4981. field public static final int REPORTING_ERROR_EVENT = 7; // 0x7
  4982. field public static final int UPDATED_NEED_REBOOT = 6; // 0x6
  4983. field public static final int UPDATE_AVAILABLE = 2; // 0x2
  4984. field public static final int VERIFYING = 4; // 0x4
  4985. }
  4986. public abstract class UpdateEngineCallback {
  4987. ctor public UpdateEngineCallback();
  4988. method public abstract void onPayloadApplicationComplete(int);
  4989. method public abstract void onStatusUpdate(int, float);
  4990. }
  4991. public final class UserHandle implements android.os.Parcelable {
  4992. method public static int getAppId(int);
  4993. method public int getIdentifier();
  4994. method @Deprecated public boolean isOwner();
  4995. method public boolean isSystem();
  4996. method public static int myUserId();
  4997. method public static android.os.UserHandle of(int);
  4998. field @NonNull public static final android.os.UserHandle ALL;
  4999. field @NonNull public static final android.os.UserHandle CURRENT;
  5000. field @NonNull public static final android.os.UserHandle SYSTEM;
  5001. }
  5002. public class UserManager {
  5003. method @RequiresPermission(android.Manifest.permission.MANAGE_USERS) public void clearSeedAccountData();
  5004. method @Nullable @RequiresPermission(android.Manifest.permission.MANAGE_USERS) public android.os.UserHandle getProfileParent(@NonNull android.os.UserHandle);
  5005. method @RequiresPermission(android.Manifest.permission.MANAGE_USERS) public String getSeedAccountName();
  5006. method @RequiresPermission(android.Manifest.permission.MANAGE_USERS) public android.os.PersistableBundle getSeedAccountOptions();
  5007. method @RequiresPermission(android.Manifest.permission.MANAGE_USERS) public String getSeedAccountType();
  5008. method @RequiresPermission(android.Manifest.permission.MANAGE_USERS) public long[] getSerialNumbersOfUsers(boolean);
  5009. method @Nullable @RequiresPermission(anyOf={android.Manifest.permission.MANAGE_USERS, android.Manifest.permission.GET_ACCOUNTS_PRIVILEGED}) public android.graphics.Bitmap getUserIcon();
  5010. method @Deprecated @android.os.UserManager.UserRestrictionSource @RequiresPermission(android.Manifest.permission.MANAGE_USERS) public int getUserRestrictionSource(String, android.os.UserHandle);
  5011. method @RequiresPermission(android.Manifest.permission.MANAGE_USERS) public java.util.List<android.os.UserManager.EnforcingUser> getUserRestrictionSources(String, android.os.UserHandle);
  5012. method @RequiresPermission(allOf={android.Manifest.permission.READ_PHONE_STATE, android.Manifest.permission.MANAGE_USERS, android.Manifest.permission.INTERACT_ACROSS_USERS}, conditional=true) public int getUserSwitchability();
  5013. method public boolean hasRestrictedProfiles();
  5014. method @RequiresPermission(android.Manifest.permission.MANAGE_USERS) public boolean isAdminUser();
  5015. method @RequiresPermission(android.Manifest.permission.MANAGE_USERS) public boolean isGuestUser();
  5016. method @RequiresPermission(android.Manifest.permission.MANAGE_USERS) public boolean isManagedProfile();
  5017. method @RequiresPermission(android.Manifest.permission.MANAGE_USERS) public boolean isManagedProfile(int);
  5018. method @RequiresPermission(android.Manifest.permission.MANAGE_USERS) public boolean isPrimaryUser();
  5019. method @RequiresPermission(android.Manifest.permission.MANAGE_USERS) public boolean isRestrictedProfile();
  5020. method @RequiresPermission(android.Manifest.permission.MANAGE_USERS) public boolean isRestrictedProfile(@NonNull android.os.UserHandle);
  5021. method @RequiresPermission(android.Manifest.permission.MANAGE_USERS) public boolean removeUser(@NonNull android.os.UserHandle);
  5022. method @RequiresPermission(android.Manifest.permission.MANAGE_USERS) public void setUserIcon(@NonNull android.graphics.Bitmap);
  5023. method @RequiresPermission(android.Manifest.permission.MANAGE_USERS) public void setUserName(@Nullable String);
  5024. field public static final String ACTION_USER_RESTRICTIONS_CHANGED = "android.os.action.USER_RESTRICTIONS_CHANGED";
  5025. field @Deprecated public static final String DISALLOW_OEM_UNLOCK = "no_oem_unlock";
  5026. field public static final String DISALLOW_RUN_IN_BACKGROUND = "no_run_in_background";
  5027. field public static final int RESTRICTION_NOT_SET = 0; // 0x0
  5028. field public static final int RESTRICTION_SOURCE_DEVICE_OWNER = 2; // 0x2
  5029. field public static final int RESTRICTION_SOURCE_PROFILE_OWNER = 4; // 0x4
  5030. field public static final int RESTRICTION_SOURCE_SYSTEM = 1; // 0x1
  5031. field public static final int SWITCHABILITY_STATUS_OK = 0; // 0x0
  5032. field public static final int SWITCHABILITY_STATUS_SYSTEM_USER_LOCKED = 4; // 0x4
  5033. field public static final int SWITCHABILITY_STATUS_USER_IN_CALL = 1; // 0x1
  5034. field public static final int SWITCHABILITY_STATUS_USER_SWITCH_DISALLOWED = 2; // 0x2
  5035. }
  5036. public static final class UserManager.EnforcingUser implements android.os.Parcelable {
  5037. method public int describeContents();
  5038. method public android.os.UserHandle getUserHandle();
  5039. method @android.os.UserManager.UserRestrictionSource public int getUserRestrictionSource();
  5040. method public void writeToParcel(android.os.Parcel, int);
  5041. field @NonNull public static final android.os.Parcelable.Creator<android.os.UserManager.EnforcingUser> CREATOR;
  5042. }
  5043. @IntDef(flag=true, prefix={"RESTRICTION_"}, value={android.os.UserManager.RESTRICTION_NOT_SET, android.os.UserManager.RESTRICTION_SOURCE_SYSTEM, android.os.UserManager.RESTRICTION_SOURCE_DEVICE_OWNER, android.os.UserManager.RESTRICTION_SOURCE_PROFILE_OWNER}) @java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.SOURCE) public static @interface UserManager.UserRestrictionSource {
  5044. }
  5045. public class WorkSource implements android.os.Parcelable {
  5046. method public android.os.WorkSource.WorkChain createWorkChain();
  5047. }
  5048. public static final class WorkSource.WorkChain implements android.os.Parcelable {
  5049. ctor public WorkSource.WorkChain();
  5050. method public android.os.WorkSource.WorkChain addNode(int, @Nullable String);
  5051. method public int describeContents();
  5052. method public String getAttributionTag();
  5053. method public int getAttributionUid();
  5054. method public void writeToParcel(android.os.Parcel, int);
  5055. field @NonNull public static final android.os.Parcelable.Creator<android.os.WorkSource.WorkChain> CREATOR;
  5056. }
  5057. }
  5058. package android.os.image {
  5059. public class DynamicSystemClient {
  5060. ctor public DynamicSystemClient(@NonNull android.content.Context);
  5061. method @RequiresPermission(android.Manifest.permission.INSTALL_DYNAMIC_SYSTEM) public void bind();
  5062. method public void setOnStatusChangedListener(@NonNull java.util.concurrent.Executor, @NonNull android.os.image.DynamicSystemClient.OnStatusChangedListener);
  5063. method public void setOnStatusChangedListener(@NonNull android.os.image.DynamicSystemClient.OnStatusChangedListener);
  5064. method @RequiresPermission(android.Manifest.permission.INSTALL_DYNAMIC_SYSTEM) public void start(@NonNull android.net.Uri, long);
  5065. method @RequiresPermission(android.Manifest.permission.INSTALL_DYNAMIC_SYSTEM) public void start(@NonNull android.net.Uri, long, long);
  5066. method @RequiresPermission(android.Manifest.permission.INSTALL_DYNAMIC_SYSTEM) public void unbind();
  5067. field public static final int CAUSE_ERROR_EXCEPTION = 6; // 0x6
  5068. field public static final int CAUSE_ERROR_INVALID_URL = 4; // 0x4
  5069. field public static final int CAUSE_ERROR_IO = 3; // 0x3
  5070. field public static final int CAUSE_ERROR_IPC = 5; // 0x5
  5071. field public static final int CAUSE_INSTALL_CANCELLED = 2; // 0x2
  5072. field public static final int CAUSE_INSTALL_COMPLETED = 1; // 0x1
  5073. field public static final int CAUSE_NOT_SPECIFIED = 0; // 0x0
  5074. field public static final int STATUS_IN_PROGRESS = 2; // 0x2
  5075. field public static final int STATUS_IN_USE = 4; // 0x4
  5076. field public static final int STATUS_NOT_STARTED = 1; // 0x1
  5077. field public static final int STATUS_READY = 3; // 0x3
  5078. field public static final int STATUS_UNKNOWN = 0; // 0x0
  5079. }
  5080. public static interface DynamicSystemClient.OnStatusChangedListener {
  5081. method public void onStatusChanged(int, int, long, @Nullable Throwable);
  5082. }
  5083. }
  5084. package android.os.storage {
  5085. public class StorageManager {
  5086. method @WorkerThread public void allocateBytes(@NonNull java.util.UUID, long, @RequiresPermission int) throws java.io.IOException;
  5087. method @WorkerThread public void allocateBytes(java.io.FileDescriptor, long, @RequiresPermission int) throws java.io.IOException;
  5088. method @WorkerThread public long getAllocatableBytes(@NonNull java.util.UUID, @RequiresPermission int) throws java.io.IOException;
  5089. method public static boolean hasIsolatedStorage();
  5090. field @RequiresPermission(android.Manifest.permission.ALLOCATE_AGGRESSIVE) public static final int FLAG_ALLOCATE_AGGRESSIVE = 1; // 0x1
  5091. }
  5092. }
  5093. package android.permission {
  5094. public final class PermissionControllerManager {
  5095. method @RequiresPermission(android.Manifest.permission.REVOKE_RUNTIME_PERMISSIONS) public void revokeRuntimePermissions(@NonNull java.util.Map<java.lang.String,java.util.List<java.lang.String>>, boolean, int, @NonNull java.util.concurrent.Executor, @NonNull android.permission.PermissionControllerManager.OnRevokeRuntimePermissionsCallback);
  5096. field public static final int COUNT_ONLY_WHEN_GRANTED = 1; // 0x1
  5097. field public static final int COUNT_WHEN_SYSTEM = 2; // 0x2
  5098. field public static final int REASON_INSTALLER_POLICY_VIOLATION = 2; // 0x2
  5099. field public static final int REASON_MALWARE = 1; // 0x1
  5100. }
  5101. public abstract static class PermissionControllerManager.OnRevokeRuntimePermissionsCallback {
  5102. ctor public PermissionControllerManager.OnRevokeRuntimePermissionsCallback();
  5103. method public abstract void onRevokeRuntimePermissions(@NonNull java.util.Map<java.lang.String,java.util.List<java.lang.String>>);
  5104. }
  5105. public abstract class PermissionControllerService extends android.app.Service {
  5106. ctor public PermissionControllerService();
  5107. method @NonNull public final android.os.IBinder onBind(android.content.Intent);
  5108. method @BinderThread public abstract void onCountPermissionApps(@NonNull java.util.List<java.lang.String>, int, @NonNull java.util.function.IntConsumer);
  5109. method @BinderThread public abstract void onGetAppPermissions(@NonNull String, @NonNull java.util.function.Consumer<java.util.List<android.permission.RuntimePermissionPresentationInfo>>);
  5110. method @BinderThread public abstract void onGetPermissionUsages(boolean, long, @NonNull java.util.function.Consumer<java.util.List<android.permission.RuntimePermissionUsageInfo>>);
  5111. method @BinderThread public abstract void onGetRuntimePermissionsBackup(@NonNull android.os.UserHandle, @NonNull java.io.OutputStream, @NonNull Runnable);
  5112. method @BinderThread public abstract void onGrantOrUpgradeDefaultRuntimePermissions(@NonNull Runnable);
  5113. method @BinderThread public abstract void onRestoreDelayedRuntimePermissionsBackup(@NonNull String, @NonNull android.os.UserHandle, @NonNull java.util.function.Consumer<java.lang.Boolean>);
  5114. method @BinderThread public abstract void onRestoreRuntimePermissionsBackup(@NonNull android.os.UserHandle, @NonNull java.io.InputStream, @NonNull Runnable);
  5115. method @BinderThread public abstract void onRevokeRuntimePermission(@NonNull String, @NonNull String, @NonNull Runnable);
  5116. method @BinderThread public abstract void onRevokeRuntimePermissions(@NonNull java.util.Map<java.lang.String,java.util.List<java.lang.String>>, boolean, int, @NonNull String, @NonNull java.util.function.Consumer<java.util.Map<java.lang.String,java.util.List<java.lang.String>>>);
  5117. method @BinderThread public abstract void onSetRuntimePermissionGrantStateByDeviceAdmin(@NonNull String, @NonNull String, @NonNull String, int, @NonNull java.util.function.Consumer<java.lang.Boolean>);
  5118. field public static final String SERVICE_INTERFACE = "android.permission.PermissionControllerService";
  5119. }
  5120. public final class PermissionManager {
  5121. method @IntRange(from=0) @RequiresPermission(android.Manifest.permission.ADJUST_RUNTIME_PERMISSIONS_POLICY) public int getRuntimePermissionsVersion();
  5122. method @NonNull public java.util.List<android.permission.PermissionManager.SplitPermissionInfo> getSplitPermissions();
  5123. method @RequiresPermission(android.Manifest.permission.ADJUST_RUNTIME_PERMISSIONS_POLICY) public void setRuntimePermissionsVersion(@IntRange(from=0) int);
  5124. }
  5125. public static final class PermissionManager.SplitPermissionInfo {
  5126. method @NonNull public java.util.List<java.lang.String> getNewPermissions();
  5127. method @NonNull public String getSplitPermission();
  5128. method public int getTargetSdk();
  5129. }
  5130. public final class RuntimePermissionPresentationInfo implements android.os.Parcelable {
  5131. ctor public RuntimePermissionPresentationInfo(@NonNull CharSequence, boolean, boolean);
  5132. method public int describeContents();
  5133. method @NonNull public CharSequence getLabel();
  5134. method public boolean isGranted();
  5135. method public boolean isStandard();
  5136. method public void writeToParcel(android.os.Parcel, int);
  5137. field @NonNull public static final android.os.Parcelable.Creator<android.permission.RuntimePermissionPresentationInfo> CREATOR;
  5138. }
  5139. public final class RuntimePermissionUsageInfo implements android.os.Parcelable {
  5140. ctor public RuntimePermissionUsageInfo(@NonNull String, int);
  5141. method public int describeContents();
  5142. method public int getAppAccessCount();
  5143. method @NonNull public String getName();
  5144. method public void writeToParcel(android.os.Parcel, int);
  5145. field @NonNull public static final android.os.Parcelable.Creator<android.permission.RuntimePermissionUsageInfo> CREATOR;
  5146. }
  5147. }
  5148. package android.permissionpresenterservice {
  5149. @Deprecated public abstract class RuntimePermissionPresenterService extends android.app.Service {
  5150. ctor @Deprecated public RuntimePermissionPresenterService();
  5151. method @Deprecated public final void attachBaseContext(android.content.Context);
  5152. method @Deprecated public final android.os.IBinder onBind(android.content.Intent);
  5153. method @Deprecated public abstract java.util.List<android.content.pm.permission.RuntimePermissionPresentationInfo> onGetAppPermissions(@NonNull String);
  5154. field @Deprecated public static final String SERVICE_INTERFACE = "android.permissionpresenterservice.RuntimePermissionPresenterService";
  5155. }
  5156. }
  5157. package android.preference {
  5158. @Deprecated public class PreferenceManager {
  5159. method @Deprecated public boolean isStorageCredentialProtected();
  5160. method @Deprecated public void setStorageCredentialProtected();
  5161. }
  5162. }
  5163. package android.print {
  5164. public final class PrintManager {
  5165. method @RequiresPermission(android.Manifest.permission.READ_PRINT_SERVICE_RECOMMENDATIONS) public void addPrintServiceRecommendationsChangeListener(@NonNull android.print.PrintManager.PrintServiceRecommendationsChangeListener, @Nullable android.os.Handler);
  5166. method @RequiresPermission(android.Manifest.permission.READ_PRINT_SERVICES) public void addPrintServicesChangeListener(@NonNull android.print.PrintManager.PrintServicesChangeListener, @Nullable android.os.Handler);
  5167. method @NonNull @RequiresPermission(android.Manifest.permission.READ_PRINT_SERVICE_RECOMMENDATIONS) public java.util.List<android.printservice.recommendation.RecommendationInfo> getPrintServiceRecommendations();
  5168. method @NonNull @RequiresPermission(android.Manifest.permission.READ_PRINT_SERVICES) public java.util.List<android.printservice.PrintServiceInfo> getPrintServices(int);
  5169. method @RequiresPermission(android.Manifest.permission.READ_PRINT_SERVICE_RECOMMENDATIONS) public void removePrintServiceRecommendationsChangeListener(@NonNull android.print.PrintManager.PrintServiceRecommendationsChangeListener);
  5170. method @RequiresPermission(android.Manifest.permission.READ_PRINT_SERVICES) public void removePrintServicesChangeListener(@NonNull android.print.PrintManager.PrintServicesChangeListener);
  5171. field public static final int ENABLED_SERVICES = 1; // 0x1
  5172. }
  5173. public static interface PrintManager.PrintServiceRecommendationsChangeListener {
  5174. method public void onPrintServiceRecommendationsChanged();
  5175. }
  5176. public static interface PrintManager.PrintServicesChangeListener {
  5177. method public void onPrintServicesChanged();
  5178. }
  5179. }
  5180. package android.printservice {
  5181. public final class PrintServiceInfo implements android.os.Parcelable {
  5182. method public int describeContents();
  5183. method @NonNull public android.content.ComponentName getComponentName();
  5184. method public void writeToParcel(android.os.Parcel, int);
  5185. field @NonNull public static final android.os.Parcelable.Creator<android.printservice.PrintServiceInfo> CREATOR;
  5186. }
  5187. }
  5188. package android.printservice.recommendation {
  5189. public final class RecommendationInfo implements android.os.Parcelable {
  5190. ctor public RecommendationInfo(@NonNull CharSequence, @NonNull CharSequence, @NonNull java.util.List<java.net.InetAddress>, boolean);
  5191. ctor @Deprecated public RecommendationInfo(@NonNull CharSequence, @NonNull CharSequence, @IntRange(from=0) int, boolean);
  5192. method public int describeContents();
  5193. method @NonNull public java.util.List<java.net.InetAddress> getDiscoveredPrinters();
  5194. method public CharSequence getName();
  5195. method public int getNumDiscoveredPrinters();
  5196. method public CharSequence getPackageName();
  5197. method public boolean recommendsMultiVendorService();
  5198. method public void writeToParcel(android.os.Parcel, int);
  5199. field @NonNull public static final android.os.Parcelable.Creator<android.printservice.recommendation.RecommendationInfo> CREATOR;
  5200. }
  5201. public abstract class RecommendationService extends android.app.Service {
  5202. ctor public RecommendationService();
  5203. method public final android.os.IBinder onBind(android.content.Intent);
  5204. method public abstract void onConnected();
  5205. method public abstract void onDisconnected();
  5206. method public final void updateRecommendations(@Nullable java.util.List<android.printservice.recommendation.RecommendationInfo>);
  5207. field public static final String SERVICE_INTERFACE = "android.printservice.recommendation.RecommendationService";
  5208. }
  5209. }
  5210. package android.provider {
  5211. public static final class ContactsContract.MetadataSync implements android.provider.BaseColumns android.provider.ContactsContract.MetadataSyncColumns {
  5212. field public static final String CONTENT_ITEM_TYPE = "vnd.android.cursor.item/contact_metadata";
  5213. field public static final String CONTENT_TYPE = "vnd.android.cursor.dir/contact_metadata";
  5214. field public static final android.net.Uri CONTENT_URI;
  5215. field public static final String METADATA_AUTHORITY = "com.android.contacts.metadata";
  5216. field public static final android.net.Uri METADATA_AUTHORITY_URI;
  5217. }
  5218. protected static interface ContactsContract.MetadataSyncColumns {
  5219. field public static final String ACCOUNT_NAME = "account_name";
  5220. field public static final String ACCOUNT_TYPE = "account_type";
  5221. field public static final String DATA = "data";
  5222. field public static final String DATA_SET = "data_set";
  5223. field public static final String DELETED = "deleted";
  5224. field public static final String RAW_CONTACT_BACKUP_ID = "raw_contact_backup_id";
  5225. }
  5226. public static final class ContactsContract.MetadataSyncState implements android.provider.BaseColumns android.provider.ContactsContract.MetadataSyncStateColumns {
  5227. field public static final String CONTENT_ITEM_TYPE = "vnd.android.cursor.item/contact_metadata_sync_state";
  5228. field public static final String CONTENT_TYPE = "vnd.android.cursor.dir/contact_metadata_sync_state";
  5229. field public static final android.net.Uri CONTENT_URI;
  5230. }
  5231. protected static interface ContactsContract.MetadataSyncStateColumns {
  5232. field public static final String ACCOUNT_NAME = "account_name";
  5233. field public static final String ACCOUNT_TYPE = "account_type";
  5234. field public static final String DATA_SET = "data_set";
  5235. field public static final String STATE = "state";
  5236. }
  5237. public final class DeviceConfig {
  5238. method @RequiresPermission(android.Manifest.permission.READ_DEVICE_CONFIG) public static void addOnPropertiesChangedListener(@NonNull String, @NonNull java.util.concurrent.Executor, @NonNull android.provider.DeviceConfig.OnPropertiesChangedListener);
  5239. method @RequiresPermission(android.Manifest.permission.READ_DEVICE_CONFIG) public static boolean getBoolean(@NonNull String, @NonNull String, boolean);
  5240. method @RequiresPermission(android.Manifest.permission.READ_DEVICE_CONFIG) public static float getFloat(@NonNull String, @NonNull String, float);
  5241. method @RequiresPermission(android.Manifest.permission.READ_DEVICE_CONFIG) public static int getInt(@NonNull String, @NonNull String, int);
  5242. method @RequiresPermission(android.Manifest.permission.READ_DEVICE_CONFIG) public static long getLong(@NonNull String, @NonNull String, long);
  5243. method @RequiresPermission(android.Manifest.permission.READ_DEVICE_CONFIG) public static String getProperty(@NonNull String, @NonNull String);
  5244. method @RequiresPermission(android.Manifest.permission.READ_DEVICE_CONFIG) public static String getString(@NonNull String, @NonNull String, @Nullable String);
  5245. method public static void removeOnPropertiesChangedListener(@NonNull android.provider.DeviceConfig.OnPropertiesChangedListener);
  5246. method @RequiresPermission(android.Manifest.permission.WRITE_DEVICE_CONFIG) public static void resetToDefaults(int, @Nullable String);
  5247. method @RequiresPermission(android.Manifest.permission.WRITE_DEVICE_CONFIG) public static boolean setProperty(@NonNull String, @NonNull String, @Nullable String, boolean);
  5248. field public static final String NAMESPACE_ACTIVITY_MANAGER = "activity_manager";
  5249. field public static final String NAMESPACE_ACTIVITY_MANAGER_NATIVE_BOOT = "activity_manager_native_boot";
  5250. field public static final String NAMESPACE_APP_COMPAT = "app_compat";
  5251. field public static final String NAMESPACE_ATTENTION_MANAGER_SERVICE = "attention_manager_service";
  5252. field public static final String NAMESPACE_AUTOFILL = "autofill";
  5253. field public static final String NAMESPACE_CONNECTIVITY = "connectivity";
  5254. field public static final String NAMESPACE_CONTENT_CAPTURE = "content_capture";
  5255. field public static final String NAMESPACE_DEX_BOOT = "dex_boot";
  5256. field public static final String NAMESPACE_GAME_DRIVER = "game_driver";
  5257. field public static final String NAMESPACE_INPUT_NATIVE_BOOT = "input_native_boot";
  5258. field public static final String NAMESPACE_INTELLIGENCE_ATTENTION = "intelligence_attention";
  5259. field public static final String NAMESPACE_MEDIA_NATIVE = "media_native";
  5260. field public static final String NAMESPACE_NETD_NATIVE = "netd_native";
  5261. field public static final String NAMESPACE_PRIVACY = "privacy";
  5262. field public static final String NAMESPACE_ROLLBACK = "rollback";
  5263. field public static final String NAMESPACE_ROLLBACK_BOOT = "rollback_boot";
  5264. field public static final String NAMESPACE_RUNTIME = "runtime";
  5265. field public static final String NAMESPACE_RUNTIME_NATIVE = "runtime_native";
  5266. field public static final String NAMESPACE_RUNTIME_NATIVE_BOOT = "runtime_native_boot";
  5267. field public static final String NAMESPACE_SCHEDULER = "scheduler";
  5268. field public static final String NAMESPACE_STORAGE = "storage";
  5269. field public static final String NAMESPACE_SYSTEMUI = "systemui";
  5270. field public static final String NAMESPACE_TELEPHONY = "telephony";
  5271. field public static final String NAMESPACE_TEXTCLASSIFIER = "textclassifier";
  5272. }
  5273. public static interface DeviceConfig.OnPropertiesChangedListener {
  5274. method public void onPropertiesChanged(@NonNull android.provider.DeviceConfig.Properties);
  5275. }
  5276. public static class DeviceConfig.Properties {
  5277. method public boolean getBoolean(@NonNull String, boolean);
  5278. method public float getFloat(@NonNull String, float);
  5279. method public int getInt(@NonNull String, int);
  5280. method @NonNull public java.util.Set<java.lang.String> getKeyset();
  5281. method public long getLong(@NonNull String, long);
  5282. method @NonNull public String getNamespace();
  5283. method @Nullable public String getString(@NonNull String, @Nullable String);
  5284. }
  5285. public final class DocumentsContract {
  5286. method public static boolean isManageMode(@NonNull android.net.Uri);
  5287. method @NonNull public static android.net.Uri setManageMode(@NonNull android.net.Uri);
  5288. field public static final String ACTION_DOCUMENT_ROOT_SETTINGS = "android.provider.action.DOCUMENT_ROOT_SETTINGS";
  5289. field public static final String ACTION_MANAGE_DOCUMENT = "android.provider.action.MANAGE_DOCUMENT";
  5290. field public static final String EXTRA_SHOW_ADVANCED = "android.provider.extra.SHOW_ADVANCED";
  5291. }
  5292. public static final class DocumentsContract.Root {
  5293. field public static final int FLAG_ADVANCED = 65536; // 0x10000
  5294. field public static final int FLAG_HAS_SETTINGS = 131072; // 0x20000
  5295. field public static final int FLAG_REMOVABLE_SD = 262144; // 0x40000
  5296. field public static final int FLAG_REMOVABLE_USB = 524288; // 0x80000
  5297. }
  5298. public abstract class SearchIndexableData {
  5299. ctor public SearchIndexableData();
  5300. ctor public SearchIndexableData(android.content.Context);
  5301. field public String className;
  5302. field public android.content.Context context;
  5303. field public boolean enabled;
  5304. field public int iconResId;
  5305. field public String intentAction;
  5306. field public String intentTargetClass;
  5307. field public String intentTargetPackage;
  5308. field public String key;
  5309. field public java.util.Locale locale;
  5310. field public String packageName;
  5311. field public int rank;
  5312. field public int userId;
  5313. }
  5314. public class SearchIndexableResource extends android.provider.SearchIndexableData {
  5315. ctor public SearchIndexableResource(int, int, String, int);
  5316. ctor public SearchIndexableResource(android.content.Context);
  5317. field public int xmlResId;
  5318. }
  5319. public class SearchIndexablesContract {
  5320. ctor public SearchIndexablesContract();
  5321. field public static final int COLUMN_INDEX_NON_INDEXABLE_KEYS_KEY_VALUE = 0; // 0x0
  5322. field public static final int COLUMN_INDEX_RAW_CLASS_NAME = 7; // 0x7
  5323. field public static final int COLUMN_INDEX_RAW_ENTRIES = 4; // 0x4
  5324. field public static final int COLUMN_INDEX_RAW_ICON_RESID = 8; // 0x8
  5325. field public static final int COLUMN_INDEX_RAW_INTENT_ACTION = 9; // 0x9
  5326. field public static final int COLUMN_INDEX_RAW_INTENT_TARGET_CLASS = 11; // 0xb
  5327. field public static final int COLUMN_INDEX_RAW_INTENT_TARGET_PACKAGE = 10; // 0xa
  5328. field public static final int COLUMN_INDEX_RAW_KEY = 12; // 0xc
  5329. field public static final int COLUMN_INDEX_RAW_KEYWORDS = 5; // 0x5
  5330. field public static final int COLUMN_INDEX_RAW_RANK = 0; // 0x0
  5331. field public static final int COLUMN_INDEX_RAW_SCREEN_TITLE = 6; // 0x6
  5332. field public static final int COLUMN_INDEX_RAW_SUMMARY_OFF = 3; // 0x3
  5333. field public static final int COLUMN_INDEX_RAW_SUMMARY_ON = 2; // 0x2
  5334. field public static final int COLUMN_INDEX_RAW_TITLE = 1; // 0x1
  5335. field public static final int COLUMN_INDEX_RAW_USER_ID = 13; // 0xd
  5336. field public static final int COLUMN_INDEX_XML_RES_CLASS_NAME = 2; // 0x2
  5337. field public static final int COLUMN_INDEX_XML_RES_ICON_RESID = 3; // 0x3
  5338. field public static final int COLUMN_INDEX_XML_RES_INTENT_ACTION = 4; // 0x4
  5339. field public static final int COLUMN_INDEX_XML_RES_INTENT_TARGET_CLASS = 6; // 0x6
  5340. field public static final int COLUMN_INDEX_XML_RES_INTENT_TARGET_PACKAGE = 5; // 0x5
  5341. field public static final int COLUMN_INDEX_XML_RES_RANK = 0; // 0x0
  5342. field public static final int COLUMN_INDEX_XML_RES_RESID = 1; // 0x1
  5343. field public static final String INDEXABLES_RAW = "indexables_raw";
  5344. field public static final String[] INDEXABLES_RAW_COLUMNS;
  5345. field public static final String INDEXABLES_RAW_PATH = "settings/indexables_raw";
  5346. field public static final String INDEXABLES_XML_RES = "indexables_xml_res";
  5347. field public static final String[] INDEXABLES_XML_RES_COLUMNS;
  5348. field public static final String INDEXABLES_XML_RES_PATH = "settings/indexables_xml_res";
  5349. field public static final String NON_INDEXABLES_KEYS = "non_indexables_key";
  5350. field public static final String[] NON_INDEXABLES_KEYS_COLUMNS;
  5351. field public static final String NON_INDEXABLES_KEYS_PATH = "settings/non_indexables_key";
  5352. field public static final String PROVIDER_INTERFACE = "android.content.action.SEARCH_INDEXABLES_PROVIDER";
  5353. field public static final String SLICE_URI_PAIRS = "slice_uri_pairs";
  5354. field @NonNull public static final String[] SLICE_URI_PAIRS_COLUMNS;
  5355. field public static final String SLICE_URI_PAIRS_PATH = "settings/slice_uri_pairs";
  5356. }
  5357. public static class SearchIndexablesContract.BaseColumns {
  5358. field public static final String COLUMN_CLASS_NAME = "className";
  5359. field public static final String COLUMN_ICON_RESID = "iconResId";
  5360. field public static final String COLUMN_INTENT_ACTION = "intentAction";
  5361. field public static final String COLUMN_INTENT_TARGET_CLASS = "intentTargetClass";
  5362. field public static final String COLUMN_INTENT_TARGET_PACKAGE = "intentTargetPackage";
  5363. field public static final String COLUMN_RANK = "rank";
  5364. }
  5365. public static final class SearchIndexablesContract.NonIndexableKey extends android.provider.SearchIndexablesContract.BaseColumns {
  5366. field public static final String COLUMN_KEY_VALUE = "key";
  5367. field public static final String MIME_TYPE = "vnd.android.cursor.dir/non_indexables_key";
  5368. }
  5369. public static final class SearchIndexablesContract.RawData extends android.provider.SearchIndexablesContract.BaseColumns {
  5370. field public static final String COLUMN_ENTRIES = "entries";
  5371. field public static final String COLUMN_KEY = "key";
  5372. field public static final String COLUMN_KEYWORDS = "keywords";
  5373. field public static final String COLUMN_SCREEN_TITLE = "screenTitle";
  5374. field public static final String COLUMN_SUMMARY_OFF = "summaryOff";
  5375. field public static final String COLUMN_SUMMARY_ON = "summaryOn";
  5376. field public static final String COLUMN_TITLE = "title";
  5377. field public static final String COLUMN_USER_ID = "user_id";
  5378. field public static final String MIME_TYPE = "vnd.android.cursor.dir/indexables_raw";
  5379. }
  5380. public static final class SearchIndexablesContract.SliceUriPairColumns {
  5381. field public static final String KEY = "key";
  5382. field public static final String SLICE_URI = "slice_uri";
  5383. }
  5384. public static final class SearchIndexablesContract.XmlResource extends android.provider.SearchIndexablesContract.BaseColumns {
  5385. field public static final String COLUMN_XML_RESID = "xmlResId";
  5386. field public static final String MIME_TYPE = "vnd.android.cursor.dir/indexables_xml_res";
  5387. }
  5388. public abstract class SearchIndexablesProvider extends android.content.ContentProvider {
  5389. ctor public SearchIndexablesProvider();
  5390. method public final int delete(android.net.Uri, String, String[]);
  5391. method public String getType(android.net.Uri);
  5392. method public final android.net.Uri insert(android.net.Uri, android.content.ContentValues);
  5393. method public android.database.Cursor query(android.net.Uri, String[], String, String[], String);
  5394. method public abstract android.database.Cursor queryNonIndexableKeys(String[]);
  5395. method public abstract android.database.Cursor queryRawData(String[]);
  5396. method @Nullable public android.database.Cursor querySliceUriPairs();
  5397. method public abstract android.database.Cursor queryXmlResources(String[]);
  5398. method public final int update(android.net.Uri, android.content.ContentValues, String, String[]);
  5399. }
  5400. public final class Settings {
  5401. field public static final String ACTION_ACCESSIBILITY_DETAILS_SETTINGS = "android.settings.ACCESSIBILITY_DETAILS_SETTINGS";
  5402. field public static final String ACTION_ENTERPRISE_PRIVACY_SETTINGS = "android.settings.ENTERPRISE_PRIVACY_SETTINGS";
  5403. field public static final String ACTION_LOCATION_CONTROLLER_EXTRA_PACKAGE_SETTINGS = "android.settings.LOCATION_CONTROLLER_EXTRA_PACKAGE_SETTINGS";
  5404. field public static final String ACTION_MANAGE_DOMAIN_URLS = "android.settings.MANAGE_DOMAIN_URLS";
  5405. field public static final String ACTION_MANAGE_MORE_DEFAULT_APPS_SETTINGS = "android.settings.MANAGE_MORE_DEFAULT_APPS_SETTINGS";
  5406. field public static final String ACTION_NOTIFICATION_POLICY_ACCESS_DETAIL_SETTINGS = "android.settings.NOTIFICATION_POLICY_ACCESS_DETAIL_SETTINGS";
  5407. field public static final String ACTION_REQUEST_ENABLE_CONTENT_CAPTURE = "android.settings.REQUEST_ENABLE_CONTENT_CAPTURE";
  5408. field public static final String ACTION_SHOW_ADMIN_SUPPORT_DETAILS = "android.settings.SHOW_ADMIN_SUPPORT_DETAILS";
  5409. }
  5410. public static final class Settings.Global extends android.provider.Settings.NameValueTable {
  5411. method @RequiresPermission(android.Manifest.permission.WRITE_SECURE_SETTINGS) public static boolean putString(@NonNull android.content.ContentResolver, @NonNull String, @Nullable String, @Nullable String, boolean);
  5412. method @RequiresPermission(android.Manifest.permission.WRITE_SECURE_SETTINGS) public static void resetToDefaults(@NonNull android.content.ContentResolver, @Nullable String);
  5413. field public static final String APP_STANDBY_ENABLED = "app_standby_enabled";
  5414. field public static final String AUTOFILL_COMPAT_MODE_ALLOWED_PACKAGES = "autofill_compat_mode_allowed_packages";
  5415. field public static final String CARRIER_APP_NAMES = "carrier_app_names";
  5416. field public static final String CARRIER_APP_WHITELIST = "carrier_app_whitelist";
  5417. field public static final String DEFAULT_SM_DP_PLUS = "default_sm_dp_plus";
  5418. field public static final String DEVICE_DEMO_MODE = "device_demo_mode";
  5419. field public static final String DEVICE_PROVISIONING_MOBILE_DATA_ENABLED = "device_provisioning_mobile_data";
  5420. field public static final String EUICC_PROVISIONED = "euicc_provisioned";
  5421. field public static final String INSTALL_CARRIER_APP_NOTIFICATION_PERSISTENT = "install_carrier_app_notification_persistent";
  5422. field public static final String INSTALL_CARRIER_APP_NOTIFICATION_SLEEP_MILLIS = "install_carrier_app_notification_sleep_millis";
  5423. field public static final String OTA_DISABLE_AUTOMATIC_UPDATE = "ota_disable_automatic_update";
  5424. field public static final String REQUIRE_PASSWORD_TO_DECRYPT = "require_password_to_decrypt";
  5425. field public static final String THEATER_MODE_ON = "theater_mode_on";
  5426. field public static final String WEBVIEW_MULTIPROCESS = "webview_multiprocess";
  5427. field public static final String WIFI_BADGING_THRESHOLDS = "wifi_badging_thresholds";
  5428. field public static final String WIFI_WAKEUP_ENABLED = "wifi_wakeup_enabled";
  5429. }
  5430. public static final class Settings.Secure extends android.provider.Settings.NameValueTable {
  5431. method @RequiresPermission(android.Manifest.permission.WRITE_SECURE_SETTINGS) public static boolean putString(@NonNull android.content.ContentResolver, @NonNull String, @Nullable String, @Nullable String, boolean);
  5432. method @RequiresPermission(android.Manifest.permission.WRITE_SECURE_SETTINGS) public static void resetToDefaults(@NonNull android.content.ContentResolver, @Nullable String);
  5433. field public static final String ACCESSIBILITY_DISPLAY_MAGNIFICATION_NAVBAR_ENABLED = "accessibility_display_magnification_navbar_enabled";
  5434. field public static final String ASSIST_GESTURE_SETUP_COMPLETE = "assist_gesture_setup_complete";
  5435. field public static final String AUTOFILL_FEATURE_FIELD_CLASSIFICATION = "autofill_field_classification";
  5436. field public static final String AUTOFILL_USER_DATA_MAX_CATEGORY_COUNT = "autofill_user_data_max_category_count";
  5437. field public static final String AUTOFILL_USER_DATA_MAX_FIELD_CLASSIFICATION_IDS_SIZE = "autofill_user_data_max_field_classification_size";
  5438. field public static final String AUTOFILL_USER_DATA_MAX_USER_DATA_SIZE = "autofill_user_data_max_user_data_size";
  5439. field public static final String AUTOFILL_USER_DATA_MAX_VALUE_LENGTH = "autofill_user_data_max_value_length";
  5440. field public static final String AUTOFILL_USER_DATA_MIN_VALUE_LENGTH = "autofill_user_data_min_value_length";
  5441. field public static final String COMPLETED_CATEGORY_PREFIX = "suggested.completed_category.";
  5442. field public static final String DOZE_ALWAYS_ON = "doze_always_on";
  5443. field public static final String HUSH_GESTURE_USED = "hush_gesture_used";
  5444. field public static final String INSTANT_APPS_ENABLED = "instant_apps_enabled";
  5445. field public static final String LAST_SETUP_SHOWN = "last_setup_shown";
  5446. field public static final String LOCATION_ACCESS_CHECK_DELAY_MILLIS = "location_access_check_delay_millis";
  5447. field public static final String LOCATION_ACCESS_CHECK_INTERVAL_MILLIS = "location_access_check_interval_millis";
  5448. field public static final int LOCATION_MODE_ON = 3; // 0x3
  5449. field public static final String LOCATION_PERMISSIONS_UPGRADE_TO_Q_MODE = "location_permissions_upgrade_to_q_mode";
  5450. field public static final String LOCK_SCREEN_ALLOW_PRIVATE_NOTIFICATIONS = "lock_screen_allow_private_notifications";
  5451. field public static final String LOCK_SCREEN_SHOW_NOTIFICATIONS = "lock_screen_show_notifications";
  5452. field public static final String ODI_CAPTIONS_ENABLED = "odi_captions_enabled";
  5453. field public static final String THEME_CUSTOMIZATION_OVERLAY_PACKAGES = "theme_customization_overlay_packages";
  5454. field public static final String USER_SETUP_COMPLETE = "user_setup_complete";
  5455. field public static final int USER_SETUP_PERSONALIZATION_COMPLETE = 10; // 0xa
  5456. field public static final int USER_SETUP_PERSONALIZATION_NOT_STARTED = 0; // 0x0
  5457. field public static final int USER_SETUP_PERSONALIZATION_PAUSED = 2; // 0x2
  5458. field public static final int USER_SETUP_PERSONALIZATION_STARTED = 1; // 0x1
  5459. field public static final String USER_SETUP_PERSONALIZATION_STATE = "user_setup_personalization_state";
  5460. field public static final String VOLUME_HUSH_GESTURE = "volume_hush_gesture";
  5461. field public static final int VOLUME_HUSH_MUTE = 2; // 0x2
  5462. field public static final int VOLUME_HUSH_OFF = 0; // 0x0
  5463. field public static final int VOLUME_HUSH_VIBRATE = 1; // 0x1
  5464. }
  5465. public static final class Telephony.Carriers implements android.provider.BaseColumns {
  5466. field public static final String APN_SET_ID = "apn_set_id";
  5467. field public static final int CARRIER_EDITED = 4; // 0x4
  5468. field public static final String EDITED_STATUS = "edited";
  5469. field public static final String MAX_CONNECTIONS = "max_conns";
  5470. field public static final String MODEM_PERSIST = "modem_cognitive";
  5471. field public static final String MTU = "mtu";
  5472. field public static final int NO_APN_SET_ID = 0; // 0x0
  5473. field public static final String TIME_LIMIT_FOR_MAX_CONNECTIONS = "max_conns_time";
  5474. field public static final int UNEDITED = 0; // 0x0
  5475. field public static final int USER_DELETED = 2; // 0x2
  5476. field public static final String USER_EDITABLE = "user_editable";
  5477. field public static final int USER_EDITED = 1; // 0x1
  5478. field public static final String USER_VISIBLE = "user_visible";
  5479. field public static final String WAIT_TIME_RETRY = "wait_time";
  5480. }
  5481. public final class TimeZoneRulesDataContract {
  5482. field public static final String AUTHORITY = "com.android.timezone";
  5483. }
  5484. public static final class TimeZoneRulesDataContract.Operation {
  5485. field public static final String COLUMN_DISTRO_MAJOR_VERSION = "distro_major_version";
  5486. field public static final String COLUMN_DISTRO_MINOR_VERSION = "distro_minor_version";
  5487. field public static final String COLUMN_REVISION = "revision";
  5488. field public static final String COLUMN_RULES_VERSION = "rules_version";
  5489. field public static final String COLUMN_TYPE = "type";
  5490. field public static final android.net.Uri CONTENT_URI;
  5491. field public static final String TYPE_INSTALL = "INSTALL";
  5492. field public static final String TYPE_NO_OP = "NOOP";
  5493. field public static final String TYPE_UNINSTALL = "UNINSTALL";
  5494. }
  5495. }
  5496. package android.security.keystore {
  5497. public abstract class AttestationUtils {
  5498. method @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) @NonNull public static java.security.cert.X509Certificate[] attestDeviceIds(android.content.Context, @NonNull int[], @NonNull byte[]) throws android.security.keystore.DeviceIdAttestationException;
  5499. field public static final int ID_TYPE_IMEI = 2; // 0x2
  5500. field public static final int ID_TYPE_MEID = 3; // 0x3
  5501. field public static final int ID_TYPE_SERIAL = 1; // 0x1
  5502. }
  5503. public class DeviceIdAttestationException extends java.lang.Exception {
  5504. ctor public DeviceIdAttestationException(@Nullable String);
  5505. ctor public DeviceIdAttestationException(@Nullable String, @Nullable Throwable);
  5506. }
  5507. }
  5508. package android.security.keystore.recovery {
  5509. public class DecryptionFailedException extends java.security.GeneralSecurityException {
  5510. ctor public DecryptionFailedException(String);
  5511. }
  5512. public class InternalRecoveryServiceException extends java.security.GeneralSecurityException {
  5513. ctor public InternalRecoveryServiceException(String);
  5514. ctor public InternalRecoveryServiceException(String, Throwable);
  5515. }
  5516. public final class KeyChainProtectionParams implements android.os.Parcelable {
  5517. method public void clearSecret();
  5518. method public int describeContents();
  5519. method @NonNull public android.security.keystore.recovery.KeyDerivationParams getKeyDerivationParams();
  5520. method public int getLockScreenUiFormat();
  5521. method @NonNull public byte[] getSecret();
  5522. method public int getUserSecretType();
  5523. method public void writeToParcel(android.os.Parcel, int);
  5524. field @NonNull public static final android.os.Parcelable.Creator<android.security.keystore.recovery.KeyChainProtectionParams> CREATOR;
  5525. field public static final int TYPE_LOCKSCREEN = 100; // 0x64
  5526. field public static final int UI_FORMAT_PASSWORD = 2; // 0x2
  5527. field public static final int UI_FORMAT_PATTERN = 3; // 0x3
  5528. field public static final int UI_FORMAT_PIN = 1; // 0x1
  5529. }
  5530. public static class KeyChainProtectionParams.Builder {
  5531. ctor public KeyChainProtectionParams.Builder();
  5532. method @NonNull public android.security.keystore.recovery.KeyChainProtectionParams build();
  5533. method @NonNull public android.security.keystore.recovery.KeyChainProtectionParams.Builder setKeyDerivationParams(@NonNull android.security.keystore.recovery.KeyDerivationParams);
  5534. method @NonNull public android.security.keystore.recovery.KeyChainProtectionParams.Builder setLockScreenUiFormat(int);
  5535. method @NonNull public android.security.keystore.recovery.KeyChainProtectionParams.Builder setSecret(@NonNull byte[]);
  5536. method @NonNull public android.security.keystore.recovery.KeyChainProtectionParams.Builder setUserSecretType(int);
  5537. }
  5538. public final class KeyChainSnapshot implements android.os.Parcelable {
  5539. method public int describeContents();
  5540. method public long getCounterId();
  5541. method @NonNull public byte[] getEncryptedRecoveryKeyBlob();
  5542. method @NonNull public java.util.List<android.security.keystore.recovery.KeyChainProtectionParams> getKeyChainProtectionParams();
  5543. method public int getMaxAttempts();
  5544. method @NonNull public byte[] getServerParams();
  5545. method public int getSnapshotVersion();
  5546. method @NonNull public java.security.cert.CertPath getTrustedHardwareCertPath();
  5547. method @NonNull public java.util.List<android.security.keystore.recovery.WrappedApplicationKey> getWrappedApplicationKeys();
  5548. method public void writeToParcel(android.os.Parcel, int);
  5549. field @NonNull public static final android.os.Parcelable.Creator<android.security.keystore.recovery.KeyChainSnapshot> CREATOR;
  5550. }
  5551. public final class KeyDerivationParams implements android.os.Parcelable {
  5552. method @NonNull public static android.security.keystore.recovery.KeyDerivationParams createScryptParams(@NonNull byte[], int);
  5553. method @NonNull public static android.security.keystore.recovery.KeyDerivationParams createSha256Params(@NonNull byte[]);
  5554. method public int describeContents();
  5555. method public int getAlgorithm();
  5556. method public int getMemoryDifficulty();
  5557. method @NonNull public byte[] getSalt();
  5558. method public void writeToParcel(android.os.Parcel, int);
  5559. field public static final int ALGORITHM_SCRYPT = 2; // 0x2
  5560. field public static final int ALGORITHM_SHA256 = 1; // 0x1
  5561. field @NonNull public static final android.os.Parcelable.Creator<android.security.keystore.recovery.KeyDerivationParams> CREATOR;
  5562. }
  5563. public class LockScreenRequiredException extends java.security.GeneralSecurityException {
  5564. ctor public LockScreenRequiredException(String);
  5565. }
  5566. public class RecoveryController {
  5567. method @RequiresPermission(android.Manifest.permission.RECOVER_KEYSTORE) @NonNull public android.security.keystore.recovery.RecoverySession createRecoverySession();
  5568. method @Deprecated @NonNull @RequiresPermission(android.Manifest.permission.RECOVER_KEYSTORE) public java.security.Key generateKey(@NonNull String) throws android.security.keystore.recovery.InternalRecoveryServiceException, android.security.keystore.recovery.LockScreenRequiredException;
  5569. method @RequiresPermission(android.Manifest.permission.RECOVER_KEYSTORE) @NonNull public java.security.Key generateKey(@NonNull String, @Nullable byte[]) throws android.security.keystore.recovery.InternalRecoveryServiceException, android.security.keystore.recovery.LockScreenRequiredException;
  5570. method @RequiresPermission(android.Manifest.permission.RECOVER_KEYSTORE) @NonNull public java.util.List<java.lang.String> getAliases() throws android.security.keystore.recovery.InternalRecoveryServiceException;
  5571. method @RequiresPermission(android.Manifest.permission.RECOVER_KEYSTORE) @NonNull public static android.security.keystore.recovery.RecoveryController getInstance(@NonNull android.content.Context);
  5572. method @RequiresPermission(android.Manifest.permission.RECOVER_KEYSTORE) @Nullable public java.security.Key getKey(@NonNull String) throws android.security.keystore.recovery.InternalRecoveryServiceException, java.security.UnrecoverableKeyException;
  5573. method @RequiresPermission(android.Manifest.permission.RECOVER_KEYSTORE) @Nullable public android.security.keystore.recovery.KeyChainSnapshot getKeyChainSnapshot() throws android.security.keystore.recovery.InternalRecoveryServiceException;
  5574. method @NonNull @RequiresPermission(android.Manifest.permission.RECOVER_KEYSTORE) public int[] getRecoverySecretTypes() throws android.security.keystore.recovery.InternalRecoveryServiceException;
  5575. method @RequiresPermission(android.Manifest.permission.RECOVER_KEYSTORE) public int getRecoveryStatus(@NonNull String) throws android.security.keystore.recovery.InternalRecoveryServiceException;
  5576. method @RequiresPermission(android.Manifest.permission.RECOVER_KEYSTORE) @NonNull public java.util.Map<java.lang.String,java.security.cert.X509Certificate> getRootCertificates();
  5577. method @Deprecated @NonNull @RequiresPermission(android.Manifest.permission.RECOVER_KEYSTORE) public java.security.Key importKey(@NonNull String, @NonNull byte[]) throws android.security.keystore.recovery.InternalRecoveryServiceException, android.security.keystore.recovery.LockScreenRequiredException;
  5578. method @RequiresPermission(android.Manifest.permission.RECOVER_KEYSTORE) @NonNull public java.security.Key importKey(@NonNull String, @NonNull byte[], @Nullable byte[]) throws android.security.keystore.recovery.InternalRecoveryServiceException, android.security.keystore.recovery.LockScreenRequiredException;
  5579. method @RequiresPermission(android.Manifest.permission.RECOVER_KEYSTORE) public void initRecoveryService(@NonNull String, @NonNull byte[], @NonNull byte[]) throws java.security.cert.CertificateException, android.security.keystore.recovery.InternalRecoveryServiceException;
  5580. method @RequiresPermission(android.Manifest.permission.RECOVER_KEYSTORE) public static boolean isRecoverableKeyStoreEnabled(@NonNull android.content.Context);
  5581. method @RequiresPermission(android.Manifest.permission.RECOVER_KEYSTORE) public void removeKey(@NonNull String) throws android.security.keystore.recovery.InternalRecoveryServiceException;
  5582. method @RequiresPermission(android.Manifest.permission.RECOVER_KEYSTORE) public void setRecoverySecretTypes(@NonNull int[]) throws android.security.keystore.recovery.InternalRecoveryServiceException;
  5583. method @RequiresPermission(android.Manifest.permission.RECOVER_KEYSTORE) public void setRecoveryStatus(@NonNull String, int) throws android.security.keystore.recovery.InternalRecoveryServiceException;
  5584. method @RequiresPermission(android.Manifest.permission.RECOVER_KEYSTORE) public void setServerParams(@NonNull byte[]) throws android.security.keystore.recovery.InternalRecoveryServiceException;
  5585. method @RequiresPermission(android.Manifest.permission.RECOVER_KEYSTORE) public void setSnapshotCreatedPendingIntent(@Nullable android.app.PendingIntent) throws android.security.keystore.recovery.InternalRecoveryServiceException;
  5586. field public static final int RECOVERY_STATUS_PERMANENT_FAILURE = 3; // 0x3
  5587. field public static final int RECOVERY_STATUS_SYNCED = 0; // 0x0
  5588. field public static final int RECOVERY_STATUS_SYNC_IN_PROGRESS = 1; // 0x1
  5589. }
  5590. public class RecoverySession implements java.lang.AutoCloseable {
  5591. method @RequiresPermission(android.Manifest.permission.RECOVER_KEYSTORE) public void close();
  5592. method @RequiresPermission(android.Manifest.permission.RECOVER_KEYSTORE) @NonNull public java.util.Map<java.lang.String,java.security.Key> recoverKeyChainSnapshot(@NonNull byte[], @NonNull java.util.List<android.security.keystore.recovery.WrappedApplicationKey>) throws android.security.keystore.recovery.DecryptionFailedException, android.security.keystore.recovery.InternalRecoveryServiceException, android.security.keystore.recovery.SessionExpiredException;
  5593. method @RequiresPermission(android.Manifest.permission.RECOVER_KEYSTORE) @NonNull public byte[] start(@NonNull String, @NonNull java.security.cert.CertPath, @NonNull byte[], @NonNull byte[], @NonNull java.util.List<android.security.keystore.recovery.KeyChainProtectionParams>) throws java.security.cert.CertificateException, android.security.keystore.recovery.InternalRecoveryServiceException;
  5594. }
  5595. public class SessionExpiredException extends java.security.GeneralSecurityException {
  5596. ctor public SessionExpiredException(String);
  5597. }
  5598. public final class WrappedApplicationKey implements android.os.Parcelable {
  5599. method public int describeContents();
  5600. method @NonNull public String getAlias();
  5601. method @NonNull public byte[] getEncryptedKeyMaterial();
  5602. method @Nullable public byte[] getMetadata();
  5603. method public void writeToParcel(android.os.Parcel, int);
  5604. field @NonNull public static final android.os.Parcelable.Creator<android.security.keystore.recovery.WrappedApplicationKey> CREATOR;
  5605. }
  5606. public static class WrappedApplicationKey.Builder {
  5607. ctor public WrappedApplicationKey.Builder();
  5608. method @NonNull public android.security.keystore.recovery.WrappedApplicationKey build();
  5609. method @NonNull public android.security.keystore.recovery.WrappedApplicationKey.Builder setAlias(@NonNull String);
  5610. method @NonNull public android.security.keystore.recovery.WrappedApplicationKey.Builder setEncryptedKeyMaterial(@NonNull byte[]);
  5611. method @NonNull public android.security.keystore.recovery.WrappedApplicationKey.Builder setMetadata(@Nullable byte[]);
  5612. }
  5613. }
  5614. package android.service.appprediction {
  5615. public abstract class AppPredictionService extends android.app.Service {
  5616. ctor public AppPredictionService();
  5617. method @MainThread public abstract void onAppTargetEvent(@NonNull android.app.prediction.AppPredictionSessionId, @NonNull android.app.prediction.AppTargetEvent);
  5618. method @NonNull public final android.os.IBinder onBind(@NonNull android.content.Intent);
  5619. method public void onCreatePredictionSession(@NonNull android.app.prediction.AppPredictionContext, @NonNull android.app.prediction.AppPredictionSessionId);
  5620. method @MainThread public void onDestroyPredictionSession(@NonNull android.app.prediction.AppPredictionSessionId);
  5621. method @MainThread public abstract void onLaunchLocationShown(@NonNull android.app.prediction.AppPredictionSessionId, @NonNull String, @NonNull java.util.List<android.app.prediction.AppTargetId>);
  5622. method @MainThread public abstract void onRequestPredictionUpdate(@NonNull android.app.prediction.AppPredictionSessionId);
  5623. method @MainThread public abstract void onSortAppTargets(@NonNull android.app.prediction.AppPredictionSessionId, @NonNull java.util.List<android.app.prediction.AppTarget>, @NonNull android.os.CancellationSignal, @NonNull java.util.function.Consumer<java.util.List<android.app.prediction.AppTarget>>);
  5624. method @MainThread public void onStartPredictionUpdates();
  5625. method @MainThread public void onStopPredictionUpdates();
  5626. method public final void updatePredictions(@NonNull android.app.prediction.AppPredictionSessionId, @NonNull java.util.List<android.app.prediction.AppTarget>);
  5627. }
  5628. }
  5629. package android.service.attention {
  5630. public abstract class AttentionService extends android.app.Service {
  5631. ctor public AttentionService();
  5632. method @Nullable public final android.os.IBinder onBind(@NonNull android.content.Intent);
  5633. method public abstract void onCancelAttentionCheck(@NonNull android.service.attention.AttentionService.AttentionCallback);
  5634. method public abstract void onCheckAttention(@NonNull android.service.attention.AttentionService.AttentionCallback);
  5635. field public static final int ATTENTION_FAILURE_CAMERA_PERMISSION_ABSENT = 6; // 0x6
  5636. field public static final int ATTENTION_FAILURE_CANCELLED = 3; // 0x3
  5637. field public static final int ATTENTION_FAILURE_PREEMPTED = 4; // 0x4
  5638. field public static final int ATTENTION_FAILURE_TIMED_OUT = 5; // 0x5
  5639. field public static final int ATTENTION_FAILURE_UNKNOWN = 2; // 0x2
  5640. field public static final int ATTENTION_SUCCESS_ABSENT = 0; // 0x0
  5641. field public static final int ATTENTION_SUCCESS_PRESENT = 1; // 0x1
  5642. field public static final String SERVICE_INTERFACE = "android.service.attention.AttentionService";
  5643. }
  5644. public static final class AttentionService.AttentionCallback {
  5645. method public void onFailure(int);
  5646. method public void onSuccess(int, long);
  5647. }
  5648. }
  5649. package android.service.autofill {
  5650. public abstract class AutofillFieldClassificationService extends android.app.Service {
  5651. method public android.os.IBinder onBind(android.content.Intent);
  5652. method @Nullable public float[][] onCalculateScores(@NonNull java.util.List<android.view.autofill.AutofillValue>, @NonNull java.util.List<java.lang.String>, @NonNull java.util.List<java.lang.String>, @Nullable String, @Nullable android.os.Bundle, @Nullable java.util.Map, @Nullable java.util.Map);
  5653. method @Deprecated @Nullable public float[][] onGetScores(@Nullable String, @Nullable android.os.Bundle, @NonNull java.util.List<android.view.autofill.AutofillValue>, @NonNull java.util.List<java.lang.String>);
  5654. field public static final String REQUIRED_ALGORITHM_EDIT_DISTANCE = "EDIT_DISTANCE";
  5655. field public static final String REQUIRED_ALGORITHM_EXACT_MATCH = "EXACT_MATCH";
  5656. field public static final String SERVICE_INTERFACE = "android.service.autofill.AutofillFieldClassificationService";
  5657. field public static final String SERVICE_META_DATA_KEY_AVAILABLE_ALGORITHMS = "android.autofill.field_classification.available_algorithms";
  5658. field public static final String SERVICE_META_DATA_KEY_DEFAULT_ALGORITHM = "android.autofill.field_classification.default_algorithm";
  5659. }
  5660. }
  5661. package android.service.autofill.augmented {
  5662. public abstract class AugmentedAutofillService extends android.app.Service {
  5663. ctor public AugmentedAutofillService();
  5664. method protected final void dump(java.io.FileDescriptor, java.io.PrintWriter, String[]);
  5665. method protected void dump(@NonNull java.io.PrintWriter, @NonNull String[]);
  5666. method public void onConnected();
  5667. method public void onDisconnected();
  5668. method public void onFillRequest(@NonNull android.service.autofill.augmented.FillRequest, @NonNull android.os.CancellationSignal, @NonNull android.service.autofill.augmented.FillController, @NonNull android.service.autofill.augmented.FillCallback);
  5669. field public static final String SERVICE_INTERFACE = "android.service.autofill.augmented.AugmentedAutofillService";
  5670. }
  5671. public final class FillCallback {
  5672. method public void onSuccess(@Nullable android.service.autofill.augmented.FillResponse);
  5673. }
  5674. public final class FillController {
  5675. method public void autofill(@NonNull java.util.List<android.util.Pair<android.view.autofill.AutofillId,android.view.autofill.AutofillValue>>);
  5676. }
  5677. public final class FillRequest {
  5678. method @NonNull public android.content.ComponentName getActivityComponent();
  5679. method @NonNull public android.view.autofill.AutofillId getFocusedId();
  5680. method @NonNull public android.view.autofill.AutofillValue getFocusedValue();
  5681. method @Nullable public android.service.autofill.augmented.PresentationParams getPresentationParams();
  5682. method public int getTaskId();
  5683. }
  5684. public final class FillResponse {
  5685. }
  5686. public static final class FillResponse.Builder {
  5687. ctor public FillResponse.Builder();
  5688. method @NonNull public android.service.autofill.augmented.FillResponse build();
  5689. method @NonNull public android.service.autofill.augmented.FillResponse.Builder setFillWindow(@NonNull android.service.autofill.augmented.FillWindow);
  5690. }
  5691. public final class FillWindow implements java.lang.AutoCloseable {
  5692. ctor public FillWindow();
  5693. method public void destroy();
  5694. method public boolean update(@NonNull android.service.autofill.augmented.PresentationParams.Area, @NonNull android.view.View, long);
  5695. }
  5696. public abstract class PresentationParams {
  5697. method @Nullable public android.service.autofill.augmented.PresentationParams.Area getSuggestionArea();
  5698. }
  5699. public abstract static class PresentationParams.Area {
  5700. method @NonNull public android.graphics.Rect getBounds();
  5701. }
  5702. }
  5703. package android.service.carrier {
  5704. public abstract class ApnService extends android.app.Service {
  5705. ctor public ApnService();
  5706. method @NonNull public android.os.IBinder onBind(@Nullable android.content.Intent);
  5707. method @WorkerThread @NonNull public abstract java.util.List<android.content.ContentValues> onRestoreApns(int);
  5708. }
  5709. }
  5710. package android.service.contentcapture {
  5711. public final class ActivityEvent implements android.os.Parcelable {
  5712. method public int describeContents();
  5713. method @NonNull public android.content.ComponentName getComponentName();
  5714. method public int getEventType();
  5715. method public void writeToParcel(@NonNull android.os.Parcel, int);
  5716. field @NonNull public static final android.os.Parcelable.Creator<android.service.contentcapture.ActivityEvent> CREATOR;
  5717. field public static final int TYPE_ACTIVITY_DESTROYED = 24; // 0x18
  5718. field public static final int TYPE_ACTIVITY_PAUSED = 2; // 0x2
  5719. field public static final int TYPE_ACTIVITY_RESUMED = 1; // 0x1
  5720. field public static final int TYPE_ACTIVITY_STOPPED = 23; // 0x17
  5721. }
  5722. public abstract class ContentCaptureService extends android.app.Service {
  5723. ctor public ContentCaptureService();
  5724. method public final void disableSelf();
  5725. method public void onActivityEvent(@NonNull android.service.contentcapture.ActivityEvent);
  5726. method public void onActivitySnapshot(@NonNull android.view.contentcapture.ContentCaptureSessionId, @NonNull android.service.contentcapture.SnapshotData);
  5727. method public void onConnected();
  5728. method public void onContentCaptureEvent(@NonNull android.view.contentcapture.ContentCaptureSessionId, @NonNull android.view.contentcapture.ContentCaptureEvent);
  5729. method public void onCreateContentCaptureSession(@NonNull android.view.contentcapture.ContentCaptureContext, @NonNull android.view.contentcapture.ContentCaptureSessionId);
  5730. method public void onDataRemovalRequest(@NonNull android.view.contentcapture.DataRemovalRequest);
  5731. method public void onDestroyContentCaptureSession(@NonNull android.view.contentcapture.ContentCaptureSessionId);
  5732. method public void onDisconnected();
  5733. method public final void setContentCaptureConditions(@NonNull String, @Nullable java.util.Set<android.view.contentcapture.ContentCaptureCondition>);
  5734. method public final void setContentCaptureWhitelist(@Nullable java.util.Set<java.lang.String>, @Nullable java.util.Set<android.content.ComponentName>);
  5735. field public static final String SERVICE_INTERFACE = "android.service.contentcapture.ContentCaptureService";
  5736. field public static final String SERVICE_META_DATA = "android.content_capture";
  5737. }
  5738. public final class SnapshotData implements android.os.Parcelable {
  5739. method public int describeContents();
  5740. method @Nullable public android.app.assist.AssistContent getAssistContent();
  5741. method @NonNull public android.os.Bundle getAssistData();
  5742. method @NonNull public android.app.assist.AssistStructure getAssistStructure();
  5743. method public void writeToParcel(@NonNull android.os.Parcel, int);
  5744. field @NonNull public static final android.os.Parcelable.Creator<android.service.contentcapture.SnapshotData> CREATOR;
  5745. }
  5746. }
  5747. package android.service.contentsuggestions {
  5748. public abstract class ContentSuggestionsService extends android.app.Service {
  5749. ctor public ContentSuggestionsService();
  5750. method public abstract void onClassifyContentSelections(@NonNull android.app.contentsuggestions.ClassificationsRequest, @NonNull android.app.contentsuggestions.ContentSuggestionsManager.ClassificationsCallback);
  5751. method public abstract void onNotifyInteraction(@NonNull String, @NonNull android.os.Bundle);
  5752. method public abstract void onProcessContextImage(int, @Nullable android.graphics.Bitmap, @NonNull android.os.Bundle);
  5753. method public abstract void onSuggestContentSelections(@NonNull android.app.contentsuggestions.SelectionsRequest, @NonNull android.app.contentsuggestions.ContentSuggestionsManager.SelectionsCallback);
  5754. field public static final String SERVICE_INTERFACE = "android.service.contentsuggestions.ContentSuggestionsService";
  5755. }
  5756. }
  5757. package android.service.euicc {
  5758. public final class DownloadSubscriptionResult implements android.os.Parcelable {
  5759. ctor public DownloadSubscriptionResult(int, int, int);
  5760. method public int describeContents();
  5761. method public int getCardId();
  5762. method public int getResolvableErrors();
  5763. method public int getResult();
  5764. method public void writeToParcel(android.os.Parcel, int);
  5765. field @NonNull public static final android.os.Parcelable.Creator<android.service.euicc.DownloadSubscriptionResult> CREATOR;
  5766. }
  5767. public final class EuiccProfileInfo implements android.os.Parcelable {
  5768. method public int describeContents();
  5769. method public android.service.carrier.CarrierIdentifier getCarrierIdentifier();
  5770. method public String getIccid();
  5771. method @Nullable public String getNickname();
  5772. method @android.service.euicc.EuiccProfileInfo.PolicyRule public int getPolicyRules();
  5773. method @android.service.euicc.EuiccProfileInfo.ProfileClass public int getProfileClass();
  5774. method public String getProfileName();
  5775. method public String getServiceProviderName();
  5776. method @android.service.euicc.EuiccProfileInfo.ProfileState public int getState();
  5777. method @Nullable public java.util.List<android.telephony.UiccAccessRule> getUiccAccessRules();
  5778. method public boolean hasPolicyRule(@android.service.euicc.EuiccProfileInfo.PolicyRule int);
  5779. method public boolean hasPolicyRules();
  5780. method public void writeToParcel(android.os.Parcel, int);
  5781. field @NonNull public static final android.os.Parcelable.Creator<android.service.euicc.EuiccProfileInfo> CREATOR;
  5782. field public static final int POLICY_RULE_DELETE_AFTER_DISABLING = 4; // 0x4
  5783. field public static final int POLICY_RULE_DO_NOT_DELETE = 2; // 0x2
  5784. field public static final int POLICY_RULE_DO_NOT_DISABLE = 1; // 0x1
  5785. field public static final int PROFILE_CLASS_OPERATIONAL = 2; // 0x2
  5786. field public static final int PROFILE_CLASS_PROVISIONING = 1; // 0x1
  5787. field public static final int PROFILE_CLASS_TESTING = 0; // 0x0
  5788. field public static final int PROFILE_STATE_DISABLED = 0; // 0x0
  5789. field public static final int PROFILE_STATE_ENABLED = 1; // 0x1
  5790. }
  5791. public static final class EuiccProfileInfo.Builder {
  5792. ctor public EuiccProfileInfo.Builder(String);
  5793. ctor public EuiccProfileInfo.Builder(android.service.euicc.EuiccProfileInfo);
  5794. method public android.service.euicc.EuiccProfileInfo build();
  5795. method public android.service.euicc.EuiccProfileInfo.Builder setCarrierIdentifier(android.service.carrier.CarrierIdentifier);
  5796. method public android.service.euicc.EuiccProfileInfo.Builder setIccid(String);
  5797. method public android.service.euicc.EuiccProfileInfo.Builder setNickname(String);
  5798. method public android.service.euicc.EuiccProfileInfo.Builder setPolicyRules(@android.service.euicc.EuiccProfileInfo.PolicyRule int);
  5799. method public android.service.euicc.EuiccProfileInfo.Builder setProfileClass(@android.service.euicc.EuiccProfileInfo.ProfileClass int);
  5800. method public android.service.euicc.EuiccProfileInfo.Builder setProfileName(String);
  5801. method public android.service.euicc.EuiccProfileInfo.Builder setServiceProviderName(String);
  5802. method public android.service.euicc.EuiccProfileInfo.Builder setState(@android.service.euicc.EuiccProfileInfo.ProfileState int);
  5803. method public android.service.euicc.EuiccProfileInfo.Builder setUiccAccessRule(@Nullable java.util.List<android.telephony.UiccAccessRule>);
  5804. }
  5805. @java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.SOURCE) @IntDef(flag=true, prefix={"POLICY_RULE_"}, value={android.service.euicc.EuiccProfileInfo.POLICY_RULE_DO_NOT_DISABLE, android.service.euicc.EuiccProfileInfo.POLICY_RULE_DO_NOT_DELETE, android.service.euicc.EuiccProfileInfo.POLICY_RULE_DELETE_AFTER_DISABLING}) public static @interface EuiccProfileInfo.PolicyRule {
  5806. }
  5807. @java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.SOURCE) @IntDef(prefix={"PROFILE_CLASS_"}, value={android.service.euicc.EuiccProfileInfo.PROFILE_CLASS_TESTING, android.service.euicc.EuiccProfileInfo.PROFILE_CLASS_PROVISIONING, android.service.euicc.EuiccProfileInfo.PROFILE_CLASS_OPERATIONAL, 0xffffffff}) public static @interface EuiccProfileInfo.ProfileClass {
  5808. }
  5809. @java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.SOURCE) @IntDef(prefix={"PROFILE_STATE_"}, value={android.service.euicc.EuiccProfileInfo.PROFILE_STATE_DISABLED, android.service.euicc.EuiccProfileInfo.PROFILE_STATE_ENABLED, 0xffffffff}) public static @interface EuiccProfileInfo.ProfileState {
  5810. }
  5811. public abstract class EuiccService extends android.app.Service {
  5812. ctor public EuiccService();
  5813. method @CallSuper public android.os.IBinder onBind(android.content.Intent);
  5814. method public abstract int onDeleteSubscription(int, String);
  5815. method public android.service.euicc.DownloadSubscriptionResult onDownloadSubscription(int, @NonNull android.telephony.euicc.DownloadableSubscription, boolean, boolean, @Nullable android.os.Bundle);
  5816. method @Deprecated public int onDownloadSubscription(int, @NonNull android.telephony.euicc.DownloadableSubscription, boolean, boolean);
  5817. method public abstract int onEraseSubscriptions(int);
  5818. method public abstract android.service.euicc.GetDefaultDownloadableSubscriptionListResult onGetDefaultDownloadableSubscriptionList(int, boolean);
  5819. method public abstract android.service.euicc.GetDownloadableSubscriptionMetadataResult onGetDownloadableSubscriptionMetadata(int, android.telephony.euicc.DownloadableSubscription, boolean);
  5820. method public abstract String onGetEid(int);
  5821. method @NonNull public abstract android.telephony.euicc.EuiccInfo onGetEuiccInfo(int);
  5822. method @NonNull public abstract android.service.euicc.GetEuiccProfileInfoListResult onGetEuiccProfileInfoList(int);
  5823. method @android.telephony.euicc.EuiccManager.OtaStatus public abstract int onGetOtaStatus(int);
  5824. method public abstract int onRetainSubscriptionsForFactoryReset(int);
  5825. method public abstract void onStartOtaIfNecessary(int, android.service.euicc.EuiccService.OtaStatusChangedCallback);
  5826. method public abstract int onSwitchToSubscription(int, @Nullable String, boolean);
  5827. method public abstract int onUpdateSubscriptionNickname(int, String, String);
  5828. field public static final String ACTION_BIND_CARRIER_PROVISIONING_SERVICE = "android.service.euicc.action.BIND_CARRIER_PROVISIONING_SERVICE";
  5829. field public static final String ACTION_DELETE_SUBSCRIPTION_PRIVILEGED = "android.service.euicc.action.DELETE_SUBSCRIPTION_PRIVILEGED";
  5830. field public static final String ACTION_MANAGE_EMBEDDED_SUBSCRIPTIONS = "android.service.euicc.action.MANAGE_EMBEDDED_SUBSCRIPTIONS";
  5831. field public static final String ACTION_PROVISION_EMBEDDED_SUBSCRIPTION = "android.service.euicc.action.PROVISION_EMBEDDED_SUBSCRIPTION";
  5832. field public static final String ACTION_RENAME_SUBSCRIPTION_PRIVILEGED = "android.service.euicc.action.RENAME_SUBSCRIPTION_PRIVILEGED";
  5833. field @Deprecated public static final String ACTION_RESOLVE_CONFIRMATION_CODE = "android.service.euicc.action.RESOLVE_CONFIRMATION_CODE";
  5834. field public static final String ACTION_RESOLVE_DEACTIVATE_SIM = "android.service.euicc.action.RESOLVE_DEACTIVATE_SIM";
  5835. field public static final String ACTION_RESOLVE_NO_PRIVILEGES = "android.service.euicc.action.RESOLVE_NO_PRIVILEGES";
  5836. field public static final String ACTION_RESOLVE_RESOLVABLE_ERRORS = "android.service.euicc.action.RESOLVE_RESOLVABLE_ERRORS";
  5837. field public static final String ACTION_TOGGLE_SUBSCRIPTION_PRIVILEGED = "android.service.euicc.action.TOGGLE_SUBSCRIPTION_PRIVILEGED";
  5838. field public static final String CATEGORY_EUICC_UI = "android.service.euicc.category.EUICC_UI";
  5839. field public static final String EUICC_SERVICE_INTERFACE = "android.service.euicc.EuiccService";
  5840. field public static final String EXTRA_RESOLUTION_ALLOW_POLICY_RULES = "android.service.euicc.extra.RESOLUTION_ALLOW_POLICY_RULES";
  5841. field public static final String EXTRA_RESOLUTION_CALLING_PACKAGE = "android.service.euicc.extra.RESOLUTION_CALLING_PACKAGE";
  5842. field public static final String EXTRA_RESOLUTION_CARD_ID = "android.service.euicc.extra.RESOLUTION_CARD_ID";
  5843. field public static final String EXTRA_RESOLUTION_CONFIRMATION_CODE = "android.service.euicc.extra.RESOLUTION_CONFIRMATION_CODE";
  5844. field public static final String EXTRA_RESOLUTION_CONFIRMATION_CODE_RETRIED = "android.service.euicc.extra.RESOLUTION_CONFIRMATION_CODE_RETRIED";
  5845. field public static final String EXTRA_RESOLUTION_CONSENT = "android.service.euicc.extra.RESOLUTION_CONSENT";
  5846. field public static final String EXTRA_RESOLVABLE_ERRORS = "android.service.euicc.extra.RESOLVABLE_ERRORS";
  5847. field public static final int RESOLVABLE_ERROR_CONFIRMATION_CODE = 1; // 0x1
  5848. field public static final int RESOLVABLE_ERROR_POLICY_RULES = 2; // 0x2
  5849. field public static final int RESULT_FIRST_USER = 1; // 0x1
  5850. field public static final int RESULT_MUST_DEACTIVATE_SIM = -1; // 0xffffffff
  5851. field @Deprecated public static final int RESULT_NEED_CONFIRMATION_CODE = -2; // 0xfffffffe
  5852. field public static final int RESULT_OK = 0; // 0x0
  5853. field public static final int RESULT_RESOLVABLE_ERRORS = -2; // 0xfffffffe
  5854. }
  5855. public abstract static class EuiccService.OtaStatusChangedCallback {
  5856. ctor public EuiccService.OtaStatusChangedCallback();
  5857. method public abstract void onOtaStatusChanged(int);
  5858. }
  5859. public final class GetDefaultDownloadableSubscriptionListResult implements android.os.Parcelable {
  5860. ctor public GetDefaultDownloadableSubscriptionListResult(int, @Nullable android.telephony.euicc.DownloadableSubscription[]);
  5861. method public int describeContents();
  5862. method @Nullable public java.util.List<android.telephony.euicc.DownloadableSubscription> getDownloadableSubscriptions();
  5863. method public int getResult();
  5864. method public void writeToParcel(android.os.Parcel, int);
  5865. field @NonNull public static final android.os.Parcelable.Creator<android.service.euicc.GetDefaultDownloadableSubscriptionListResult> CREATOR;
  5866. }
  5867. public final class GetDownloadableSubscriptionMetadataResult implements android.os.Parcelable {
  5868. ctor public GetDownloadableSubscriptionMetadataResult(int, @Nullable android.telephony.euicc.DownloadableSubscription);
  5869. method public int describeContents();
  5870. method @Nullable public android.telephony.euicc.DownloadableSubscription getDownloadableSubscription();
  5871. method public int getResult();
  5872. method public void writeToParcel(android.os.Parcel, int);
  5873. field @NonNull public static final android.os.Parcelable.Creator<android.service.euicc.GetDownloadableSubscriptionMetadataResult> CREATOR;
  5874. }
  5875. public final class GetEuiccProfileInfoListResult implements android.os.Parcelable {
  5876. ctor public GetEuiccProfileInfoListResult(int, @Nullable android.service.euicc.EuiccProfileInfo[], boolean);
  5877. method public int describeContents();
  5878. method public boolean getIsRemovable();
  5879. method @Nullable public java.util.List<android.service.euicc.EuiccProfileInfo> getProfiles();
  5880. method public int getResult();
  5881. method public void writeToParcel(android.os.Parcel, int);
  5882. field @NonNull public static final android.os.Parcelable.Creator<android.service.euicc.GetEuiccProfileInfoListResult> CREATOR;
  5883. }
  5884. }
  5885. package android.service.notification {
  5886. public final class Adjustment implements android.os.Parcelable {
  5887. ctor public Adjustment(String, String, android.os.Bundle, CharSequence, int);
  5888. ctor public Adjustment(@NonNull String, @NonNull String, @NonNull android.os.Bundle, @NonNull CharSequence, @NonNull android.os.UserHandle);
  5889. ctor protected Adjustment(android.os.Parcel);
  5890. method public int describeContents();
  5891. method @NonNull public CharSequence getExplanation();
  5892. method @NonNull public String getKey();
  5893. method @NonNull public String getPackage();
  5894. method @NonNull public android.os.Bundle getSignals();
  5895. method public int getUser();
  5896. method @NonNull public android.os.UserHandle getUserHandle();
  5897. method public void writeToParcel(android.os.Parcel, int);
  5898. field @NonNull public static final android.os.Parcelable.Creator<android.service.notification.Adjustment> CREATOR;
  5899. field public static final String KEY_CONTEXTUAL_ACTIONS = "key_contextual_actions";
  5900. field public static final String KEY_IMPORTANCE = "key_importance";
  5901. field public static final String KEY_PEOPLE = "key_people";
  5902. field public static final String KEY_SNOOZE_CRITERIA = "key_snooze_criteria";
  5903. field public static final String KEY_TEXT_REPLIES = "key_text_replies";
  5904. field public static final String KEY_USER_SENTIMENT = "key_user_sentiment";
  5905. }
  5906. public abstract class NotificationAssistantService extends android.service.notification.NotificationListenerService {
  5907. ctor public NotificationAssistantService();
  5908. method public final void adjustNotification(@NonNull android.service.notification.Adjustment);
  5909. method public final void adjustNotifications(@NonNull java.util.List<android.service.notification.Adjustment>);
  5910. method public void onActionInvoked(@NonNull String, @NonNull android.app.Notification.Action, int);
  5911. method public void onAllowedAdjustmentsChanged();
  5912. method @NonNull public final android.os.IBinder onBind(@Nullable android.content.Intent);
  5913. method public void onNotificationDirectReplied(@NonNull String);
  5914. method @Nullable public abstract android.service.notification.Adjustment onNotificationEnqueued(@NonNull android.service.notification.StatusBarNotification);
  5915. method @Nullable public android.service.notification.Adjustment onNotificationEnqueued(@NonNull android.service.notification.StatusBarNotification, @NonNull android.app.NotificationChannel);
  5916. method public void onNotificationExpansionChanged(@NonNull String, boolean, boolean);
  5917. method public abstract void onNotificationSnoozedUntilContext(@NonNull android.service.notification.StatusBarNotification, @NonNull String);
  5918. method public void onNotificationsSeen(@NonNull java.util.List<java.lang.String>);
  5919. method public void onSuggestedReplySent(@NonNull String, @NonNull CharSequence, int);
  5920. method public final void unsnoozeNotification(@NonNull String);
  5921. field public static final String SERVICE_INTERFACE = "android.service.notification.NotificationAssistantService";
  5922. field public static final int SOURCE_FROM_APP = 0; // 0x0
  5923. field public static final int SOURCE_FROM_ASSISTANT = 1; // 0x1
  5924. }
  5925. public abstract class NotificationListenerService extends android.app.Service {
  5926. method public void onNotificationRemoved(@NonNull android.service.notification.StatusBarNotification, @NonNull android.service.notification.NotificationListenerService.RankingMap, @NonNull android.service.notification.NotificationStats, int);
  5927. }
  5928. public final class NotificationStats implements android.os.Parcelable {
  5929. ctor public NotificationStats();
  5930. ctor protected NotificationStats(android.os.Parcel);
  5931. method public int describeContents();
  5932. method public int getDismissalSentiment();
  5933. method public int getDismissalSurface();
  5934. method public boolean hasDirectReplied();
  5935. method public boolean hasExpanded();
  5936. method public boolean hasInteracted();
  5937. method public boolean hasSeen();
  5938. method public boolean hasSnoozed();
  5939. method public boolean hasViewedSettings();
  5940. method public void setDirectReplied();
  5941. method public void setDismissalSentiment(int);
  5942. method public void setDismissalSurface(int);
  5943. method public void setExpanded();
  5944. method public void setSeen();
  5945. method public void setSnoozed();
  5946. method public void setViewedSettings();
  5947. method public void writeToParcel(android.os.Parcel, int);
  5948. field @NonNull public static final android.os.Parcelable.Creator<android.service.notification.NotificationStats> CREATOR;
  5949. field public static final int DISMISSAL_AOD = 2; // 0x2
  5950. field public static final int DISMISSAL_NOT_DISMISSED = -1; // 0xffffffff
  5951. field public static final int DISMISSAL_OTHER = 0; // 0x0
  5952. field public static final int DISMISSAL_PEEK = 1; // 0x1
  5953. field public static final int DISMISSAL_SHADE = 3; // 0x3
  5954. field public static final int DISMISS_SENTIMENT_NEGATIVE = 0; // 0x0
  5955. field public static final int DISMISS_SENTIMENT_NEUTRAL = 1; // 0x1
  5956. field public static final int DISMISS_SENTIMENT_POSITIVE = 2; // 0x2
  5957. field public static final int DISMISS_SENTIMENT_UNKNOWN = -1000; // 0xfffffc18
  5958. }
  5959. public final class SnoozeCriterion implements android.os.Parcelable {
  5960. ctor public SnoozeCriterion(String, CharSequence, CharSequence);
  5961. ctor protected SnoozeCriterion(android.os.Parcel);
  5962. method public int describeContents();
  5963. method public CharSequence getConfirmation();
  5964. method public CharSequence getExplanation();
  5965. method public String getId();
  5966. method public void writeToParcel(android.os.Parcel, int);
  5967. field @NonNull public static final android.os.Parcelable.Creator<android.service.notification.SnoozeCriterion> CREATOR;
  5968. }
  5969. }
  5970. package android.service.oemlock {
  5971. public class OemLockManager {
  5972. method @RequiresPermission(android.Manifest.permission.MANAGE_CARRIER_OEM_UNLOCK_STATE) @Nullable public String getLockName();
  5973. method @RequiresPermission(android.Manifest.permission.MANAGE_CARRIER_OEM_UNLOCK_STATE) public boolean isOemUnlockAllowedByCarrier();
  5974. method @RequiresPermission(android.Manifest.permission.MANAGE_USER_OEM_UNLOCK_STATE) public boolean isOemUnlockAllowedByUser();
  5975. method @RequiresPermission(android.Manifest.permission.MANAGE_CARRIER_OEM_UNLOCK_STATE) public void setOemUnlockAllowedByCarrier(boolean, @Nullable byte[]);
  5976. method @RequiresPermission(android.Manifest.permission.MANAGE_USER_OEM_UNLOCK_STATE) public void setOemUnlockAllowedByUser(boolean);
  5977. }
  5978. }
  5979. package android.service.persistentdata {
  5980. public class PersistentDataBlockManager {
  5981. method @RequiresPermission("android.permission.ACCESS_PDB_STATE") public int getDataBlockSize();
  5982. method @RequiresPermission(anyOf={android.Manifest.permission.READ_OEM_UNLOCK_STATE, "android.permission.OEM_UNLOCK_STATE"}) @android.service.persistentdata.PersistentDataBlockManager.FlashLockState public int getFlashLockState();
  5983. method public long getMaximumDataBlockSize();
  5984. method @Deprecated @RequiresPermission(anyOf={android.Manifest.permission.READ_OEM_UNLOCK_STATE, "android.permission.OEM_UNLOCK_STATE"}) public boolean getOemUnlockEnabled();
  5985. method public byte[] read();
  5986. method @Deprecated @RequiresPermission("android.permission.OEM_UNLOCK_STATE") public void setOemUnlockEnabled(boolean);
  5987. method @RequiresPermission("android.permission.OEM_UNLOCK_STATE") public void wipe();
  5988. method public int write(byte[]);
  5989. field public static final int FLASH_LOCK_LOCKED = 1; // 0x1
  5990. field public static final int FLASH_LOCK_UNKNOWN = -1; // 0xffffffff
  5991. field public static final int FLASH_LOCK_UNLOCKED = 0; // 0x0
  5992. }
  5993. @IntDef(prefix={"FLASH_LOCK_"}, value={android.service.persistentdata.PersistentDataBlockManager.FLASH_LOCK_UNKNOWN, android.service.persistentdata.PersistentDataBlockManager.FLASH_LOCK_LOCKED, android.service.persistentdata.PersistentDataBlockManager.FLASH_LOCK_UNLOCKED}) @java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.SOURCE) public static @interface PersistentDataBlockManager.FlashLockState {
  5994. }
  5995. }
  5996. package android.service.quicksettings {
  5997. public class TileService extends android.app.Service {
  5998. method public final void setStatusIcon(android.graphics.drawable.Icon, String);
  5999. }
  6000. }
  6001. package android.service.resolver {
  6002. public abstract class ResolverRankerService extends android.app.Service {
  6003. ctor public ResolverRankerService();
  6004. method public android.os.IBinder onBind(android.content.Intent);
  6005. method public void onPredictSharingProbabilities(java.util.List<android.service.resolver.ResolverTarget>);
  6006. method public void onTrainRankingModel(java.util.List<android.service.resolver.ResolverTarget>, int);
  6007. field public static final String BIND_PERMISSION = "android.permission.BIND_RESOLVER_RANKER_SERVICE";
  6008. field public static final String HOLD_PERMISSION = "android.permission.PROVIDE_RESOLVER_RANKER_SERVICE";
  6009. field public static final String SERVICE_INTERFACE = "android.service.resolver.ResolverRankerService";
  6010. }
  6011. public final class ResolverTarget implements android.os.Parcelable {
  6012. ctor public ResolverTarget();
  6013. method public int describeContents();
  6014. method public float getChooserScore();
  6015. method public float getLaunchScore();
  6016. method public float getRecencyScore();
  6017. method public float getSelectProbability();
  6018. method public float getTimeSpentScore();
  6019. method public void setChooserScore(float);
  6020. method public void setLaunchScore(float);
  6021. method public void setRecencyScore(float);
  6022. method public void setSelectProbability(float);
  6023. method public void setTimeSpentScore(float);
  6024. method public void writeToParcel(android.os.Parcel, int);
  6025. field @NonNull public static final android.os.Parcelable.Creator<android.service.resolver.ResolverTarget> CREATOR;
  6026. }
  6027. }
  6028. package android.service.settings.suggestions {
  6029. public final class Suggestion implements android.os.Parcelable {
  6030. method public int describeContents();
  6031. method public int getFlags();
  6032. method public android.graphics.drawable.Icon getIcon();
  6033. method public String getId();
  6034. method public android.app.PendingIntent getPendingIntent();
  6035. method public CharSequence getSummary();
  6036. method public CharSequence getTitle();
  6037. method public void writeToParcel(android.os.Parcel, int);
  6038. field @NonNull public static final android.os.Parcelable.Creator<android.service.settings.suggestions.Suggestion> CREATOR;
  6039. field public static final int FLAG_HAS_BUTTON = 1; // 0x1
  6040. }
  6041. public static class Suggestion.Builder {
  6042. ctor public Suggestion.Builder(String);
  6043. method public android.service.settings.suggestions.Suggestion build();
  6044. method public android.service.settings.suggestions.Suggestion.Builder setFlags(int);
  6045. method public android.service.settings.suggestions.Suggestion.Builder setIcon(android.graphics.drawable.Icon);
  6046. method public android.service.settings.suggestions.Suggestion.Builder setPendingIntent(android.app.PendingIntent);
  6047. method public android.service.settings.suggestions.Suggestion.Builder setSummary(CharSequence);
  6048. method public android.service.settings.suggestions.Suggestion.Builder setTitle(CharSequence);
  6049. }
  6050. public abstract class SuggestionService extends android.app.Service {
  6051. ctor public SuggestionService();
  6052. method public android.os.IBinder onBind(android.content.Intent);
  6053. method public abstract java.util.List<android.service.settings.suggestions.Suggestion> onGetSuggestions();
  6054. method public abstract void onSuggestionDismissed(android.service.settings.suggestions.Suggestion);
  6055. method public abstract void onSuggestionLaunched(android.service.settings.suggestions.Suggestion);
  6056. }
  6057. }
  6058. package android.service.sms {
  6059. public abstract class FinancialSmsService extends android.app.Service {
  6060. method public android.os.IBinder onBind(android.content.Intent);
  6061. method @Nullable public abstract android.database.CursorWindow onGetSmsMessages(@NonNull android.os.Bundle);
  6062. field public static final String ACTION_FINANCIAL_SERVICE_INTENT = "android.service.sms.action.FINANCIAL_SERVICE_INTENT";
  6063. }
  6064. }
  6065. package android.service.textclassifier {
  6066. public abstract class TextClassifierService extends android.app.Service {
  6067. ctor public TextClassifierService();
  6068. method @NonNull public static android.view.textclassifier.TextClassifier getDefaultTextClassifierImplementation(@NonNull android.content.Context);
  6069. method @Deprecated public final android.view.textclassifier.TextClassifier getLocalTextClassifier();
  6070. method @Nullable public final android.os.IBinder onBind(android.content.Intent);
  6071. method @MainThread public abstract void onClassifyText(@Nullable android.view.textclassifier.TextClassificationSessionId, @NonNull android.view.textclassifier.TextClassification.Request, @NonNull android.os.CancellationSignal, @NonNull android.service.textclassifier.TextClassifierService.Callback<android.view.textclassifier.TextClassification>);
  6072. method @MainThread public void onCreateTextClassificationSession(@NonNull android.view.textclassifier.TextClassificationContext, @NonNull android.view.textclassifier.TextClassificationSessionId);
  6073. method @MainThread public void onDestroyTextClassificationSession(@NonNull android.view.textclassifier.TextClassificationSessionId);
  6074. method @MainThread public void onDetectLanguage(@Nullable android.view.textclassifier.TextClassificationSessionId, @NonNull android.view.textclassifier.TextLanguage.Request, @NonNull android.os.CancellationSignal, @NonNull android.service.textclassifier.TextClassifierService.Callback<android.view.textclassifier.TextLanguage>);
  6075. method @MainThread public abstract void onGenerateLinks(@Nullable android.view.textclassifier.TextClassificationSessionId, @NonNull android.view.textclassifier.TextLinks.Request, @NonNull android.os.CancellationSignal, @NonNull android.service.textclassifier.TextClassifierService.Callback<android.view.textclassifier.TextLinks>);
  6076. method @Deprecated @MainThread public void onSelectionEvent(@Nullable android.view.textclassifier.TextClassificationSessionId, @NonNull android.view.textclassifier.SelectionEvent);
  6077. method @MainThread public void onSuggestConversationActions(@Nullable android.view.textclassifier.TextClassificationSessionId, @NonNull android.view.textclassifier.ConversationActions.Request, @NonNull android.os.CancellationSignal, @NonNull android.service.textclassifier.TextClassifierService.Callback<android.view.textclassifier.ConversationActions>);
  6078. method @MainThread public abstract void onSuggestSelection(@Nullable android.view.textclassifier.TextClassificationSessionId, @NonNull android.view.textclassifier.TextSelection.Request, @NonNull android.os.CancellationSignal, @NonNull android.service.textclassifier.TextClassifierService.Callback<android.view.textclassifier.TextSelection>);
  6079. method @MainThread public void onTextClassifierEvent(@Nullable android.view.textclassifier.TextClassificationSessionId, @NonNull android.view.textclassifier.TextClassifierEvent);
  6080. field public static final String SERVICE_INTERFACE = "android.service.textclassifier.TextClassifierService";
  6081. }
  6082. public static interface TextClassifierService.Callback<T> {
  6083. method public void onFailure(CharSequence);
  6084. method public void onSuccess(T);
  6085. }
  6086. }
  6087. package android.service.trust {
  6088. public class TrustAgentService extends android.app.Service {
  6089. ctor public TrustAgentService();
  6090. method public final void addEscrowToken(byte[], android.os.UserHandle);
  6091. method @Deprecated public final void grantTrust(CharSequence, long, boolean);
  6092. method public final void grantTrust(CharSequence, long, int);
  6093. method public final void isEscrowTokenActive(long, android.os.UserHandle);
  6094. method public final android.os.IBinder onBind(android.content.Intent);
  6095. method public boolean onConfigure(java.util.List<android.os.PersistableBundle>);
  6096. method public void onDeviceLocked();
  6097. method public void onDeviceUnlockLockout(long);
  6098. method public void onDeviceUnlocked();
  6099. method public void onEscrowTokenAdded(byte[], long, android.os.UserHandle);
  6100. method public void onEscrowTokenRemoved(long, boolean);
  6101. method public void onEscrowTokenStateReceived(long, int);
  6102. method public void onTrustTimeout();
  6103. method public void onUnlockAttempt(boolean);
  6104. method public final void removeEscrowToken(long, android.os.UserHandle);
  6105. method public final void revokeTrust();
  6106. method public final void setManagingTrust(boolean);
  6107. method public final void showKeyguardErrorMessage(@NonNull CharSequence);
  6108. method public final void unlockUserWithToken(long, byte[], android.os.UserHandle);
  6109. field public static final int FLAG_GRANT_TRUST_DISMISS_KEYGUARD = 2; // 0x2
  6110. field public static final int FLAG_GRANT_TRUST_INITIATED_BY_USER = 1; // 0x1
  6111. field public static final String SERVICE_INTERFACE = "android.service.trust.TrustAgentService";
  6112. field public static final int TOKEN_STATE_ACTIVE = 1; // 0x1
  6113. field public static final int TOKEN_STATE_INACTIVE = 0; // 0x0
  6114. field public static final String TRUST_AGENT_META_DATA = "android.service.trust.trustagent";
  6115. }
  6116. }
  6117. package android.service.wallpaper {
  6118. public class WallpaperService.Engine {
  6119. method public boolean isInAmbientMode();
  6120. method public void onAmbientModeChanged(boolean, long);
  6121. }
  6122. }
  6123. package android.service.watchdog {
  6124. public abstract class ExplicitHealthCheckService extends android.app.Service {
  6125. ctor public ExplicitHealthCheckService();
  6126. method public final void notifyHealthCheckPassed(@NonNull String);
  6127. method @NonNull public final android.os.IBinder onBind(@NonNull android.content.Intent);
  6128. method public abstract void onCancelHealthCheck(@NonNull String);
  6129. method @NonNull public abstract java.util.List<java.lang.String> onGetRequestedPackages();
  6130. method @NonNull public abstract java.util.List<android.service.watchdog.ExplicitHealthCheckService.PackageConfig> onGetSupportedPackages();
  6131. method public abstract void onRequestHealthCheck(@NonNull String);
  6132. field public static final String BIND_PERMISSION = "android.permission.BIND_EXPLICIT_HEALTH_CHECK_SERVICE";
  6133. field public static final String SERVICE_INTERFACE = "android.service.watchdog.ExplicitHealthCheckService";
  6134. }
  6135. public static final class ExplicitHealthCheckService.PackageConfig implements android.os.Parcelable {
  6136. ctor public ExplicitHealthCheckService.PackageConfig(@NonNull String, long);
  6137. method public int describeContents();
  6138. method public long getHealthCheckTimeoutMillis();
  6139. method @NonNull public String getPackageName();
  6140. method public void writeToParcel(android.os.Parcel, int);
  6141. field @NonNull public static final android.os.Parcelable.Creator<android.service.watchdog.ExplicitHealthCheckService.PackageConfig> CREATOR;
  6142. }
  6143. }
  6144. package android.telecom {
  6145. @Deprecated public class AudioState implements android.os.Parcelable {
  6146. ctor @Deprecated public AudioState(boolean, int, int);
  6147. ctor @Deprecated public AudioState(android.telecom.AudioState);
  6148. ctor @Deprecated public AudioState(android.telecom.CallAudioState);
  6149. method @Deprecated public static String audioRouteToString(int);
  6150. method @Deprecated public int describeContents();
  6151. method @Deprecated public int getRoute();
  6152. method @Deprecated public int getSupportedRouteMask();
  6153. method @Deprecated public boolean isMuted();
  6154. method @Deprecated public void writeToParcel(android.os.Parcel, int);
  6155. field @Deprecated @NonNull public static final android.os.Parcelable.Creator<android.telecom.AudioState> CREATOR;
  6156. field @Deprecated public static final int ROUTE_BLUETOOTH = 2; // 0x2
  6157. field @Deprecated public static final int ROUTE_EARPIECE = 1; // 0x1
  6158. field @Deprecated public static final int ROUTE_SPEAKER = 8; // 0x8
  6159. field @Deprecated public static final int ROUTE_WIRED_HEADSET = 4; // 0x4
  6160. field @Deprecated public static final int ROUTE_WIRED_OR_EARPIECE = 5; // 0x5
  6161. }
  6162. public final class Call {
  6163. method @Deprecated public void addListener(android.telecom.Call.Listener);
  6164. method @Deprecated public void removeListener(android.telecom.Call.Listener);
  6165. field @Deprecated public static final int STATE_PRE_DIAL_WAIT = 8; // 0x8
  6166. }
  6167. @Deprecated public abstract static class Call.Listener extends android.telecom.Call.Callback {
  6168. ctor @Deprecated public Call.Listener();
  6169. }
  6170. public abstract class Conference extends android.telecom.Conferenceable {
  6171. method @Deprecated public final android.telecom.AudioState getAudioState();
  6172. method @Deprecated public final long getConnectTimeMillis();
  6173. method public android.telecom.Connection getPrimaryConnection();
  6174. method @Deprecated public void onAudioStateChanged(android.telecom.AudioState);
  6175. method @Deprecated public final void setConnectTimeMillis(long);
  6176. }
  6177. public abstract class Connection extends android.telecom.Conferenceable {
  6178. method @Deprecated public final android.telecom.AudioState getAudioState();
  6179. method @Deprecated public void onAudioStateChanged(android.telecom.AudioState);
  6180. }
  6181. public abstract class InCallService extends android.app.Service {
  6182. method @Deprecated public android.telecom.Phone getPhone();
  6183. method @Deprecated public void onPhoneCreated(android.telecom.Phone);
  6184. method @Deprecated public void onPhoneDestroyed(android.telecom.Phone);
  6185. }
  6186. public class ParcelableCallAnalytics implements android.os.Parcelable {
  6187. ctor public ParcelableCallAnalytics(long, long, int, boolean, boolean, int, int, boolean, String, boolean, java.util.List<android.telecom.ParcelableCallAnalytics.AnalyticsEvent>, java.util.List<android.telecom.ParcelableCallAnalytics.EventTiming>);
  6188. ctor public ParcelableCallAnalytics(android.os.Parcel);
  6189. method public java.util.List<android.telecom.ParcelableCallAnalytics.AnalyticsEvent> analyticsEvents();
  6190. method public int describeContents();
  6191. method public long getCallDurationMillis();
  6192. method public int getCallTechnologies();
  6193. method public int getCallTerminationCode();
  6194. method public int getCallType();
  6195. method public String getConnectionService();
  6196. method public java.util.List<android.telecom.ParcelableCallAnalytics.EventTiming> getEventTimings();
  6197. method public long getStartTimeMillis();
  6198. method public boolean isAdditionalCall();
  6199. method public boolean isCreatedFromExistingConnection();
  6200. method public boolean isEmergencyCall();
  6201. method public boolean isInterrupted();
  6202. method public void writeToParcel(android.os.Parcel, int);
  6203. field public static final int CALLTYPE_INCOMING = 1; // 0x1
  6204. field public static final int CALLTYPE_OUTGOING = 2; // 0x2
  6205. field public static final int CALLTYPE_UNKNOWN = 0; // 0x0
  6206. field public static final int CDMA_PHONE = 1; // 0x1
  6207. field @NonNull public static final android.os.Parcelable.Creator<android.telecom.ParcelableCallAnalytics> CREATOR;
  6208. field public static final int GSM_PHONE = 2; // 0x2
  6209. field public static final int IMS_PHONE = 4; // 0x4
  6210. field public static final long MILLIS_IN_1_SECOND = 1000L; // 0x3e8L
  6211. field public static final long MILLIS_IN_5_MINUTES = 300000L; // 0x493e0L
  6212. field public static final int SIP_PHONE = 8; // 0x8
  6213. field public static final int STILL_CONNECTED = -1; // 0xffffffff
  6214. field public static final int THIRD_PARTY_PHONE = 16; // 0x10
  6215. }
  6216. public static final class ParcelableCallAnalytics.AnalyticsEvent implements android.os.Parcelable {
  6217. ctor public ParcelableCallAnalytics.AnalyticsEvent(int, long);
  6218. method public int describeContents();
  6219. method public int getEventName();
  6220. method public long getTimeSinceLastEvent();
  6221. method public void writeToParcel(android.os.Parcel, int);
  6222. field public static final int AUDIO_ROUTE_BT = 204; // 0xcc
  6223. field public static final int AUDIO_ROUTE_EARPIECE = 205; // 0xcd
  6224. field public static final int AUDIO_ROUTE_HEADSET = 206; // 0xce
  6225. field public static final int AUDIO_ROUTE_SPEAKER = 207; // 0xcf
  6226. field public static final int BIND_CS = 5; // 0x5
  6227. field public static final int BLOCK_CHECK_FINISHED = 105; // 0x69
  6228. field public static final int BLOCK_CHECK_INITIATED = 104; // 0x68
  6229. field public static final int CONFERENCE_WITH = 300; // 0x12c
  6230. field @NonNull public static final android.os.Parcelable.Creator<android.telecom.ParcelableCallAnalytics.AnalyticsEvent> CREATOR;
  6231. field public static final int CS_BOUND = 6; // 0x6
  6232. field public static final int DIRECT_TO_VM_FINISHED = 103; // 0x67
  6233. field public static final int DIRECT_TO_VM_INITIATED = 102; // 0x66
  6234. field public static final int FILTERING_COMPLETED = 107; // 0x6b
  6235. field public static final int FILTERING_INITIATED = 106; // 0x6a
  6236. field public static final int FILTERING_TIMED_OUT = 108; // 0x6c
  6237. field public static final int MUTE = 202; // 0xca
  6238. field public static final int REMOTELY_HELD = 402; // 0x192
  6239. field public static final int REMOTELY_UNHELD = 403; // 0x193
  6240. field public static final int REQUEST_ACCEPT = 7; // 0x7
  6241. field public static final int REQUEST_HOLD = 400; // 0x190
  6242. field public static final int REQUEST_PULL = 500; // 0x1f4
  6243. field public static final int REQUEST_REJECT = 8; // 0x8
  6244. field public static final int REQUEST_UNHOLD = 401; // 0x191
  6245. field public static final int SCREENING_COMPLETED = 101; // 0x65
  6246. field public static final int SCREENING_SENT = 100; // 0x64
  6247. field public static final int SET_ACTIVE = 1; // 0x1
  6248. field public static final int SET_DIALING = 4; // 0x4
  6249. field public static final int SET_DISCONNECTED = 2; // 0x2
  6250. field public static final int SET_HOLD = 404; // 0x194
  6251. field public static final int SET_PARENT = 302; // 0x12e
  6252. field public static final int SET_SELECT_PHONE_ACCOUNT = 0; // 0x0
  6253. field public static final int SILENCE = 201; // 0xc9
  6254. field public static final int SKIP_RINGING = 200; // 0xc8
  6255. field public static final int SPLIT_CONFERENCE = 301; // 0x12d
  6256. field public static final int START_CONNECTION = 3; // 0x3
  6257. field public static final int SWAP = 405; // 0x195
  6258. field public static final int UNMUTE = 203; // 0xcb
  6259. }
  6260. public static final class ParcelableCallAnalytics.EventTiming implements android.os.Parcelable {
  6261. ctor public ParcelableCallAnalytics.EventTiming(int, long);
  6262. method public int describeContents();
  6263. method public int getName();
  6264. method public long getTime();
  6265. method public void writeToParcel(android.os.Parcel, int);
  6266. field public static final int ACCEPT_TIMING = 0; // 0x0
  6267. field public static final int BIND_CS_TIMING = 6; // 0x6
  6268. field public static final int BLOCK_CHECK_FINISHED_TIMING = 9; // 0x9
  6269. field @NonNull public static final android.os.Parcelable.Creator<android.telecom.ParcelableCallAnalytics.EventTiming> CREATOR;
  6270. field public static final int DIRECT_TO_VM_FINISHED_TIMING = 8; // 0x8
  6271. field public static final int DISCONNECT_TIMING = 2; // 0x2
  6272. field public static final int FILTERING_COMPLETED_TIMING = 10; // 0xa
  6273. field public static final int FILTERING_TIMED_OUT_TIMING = 11; // 0xb
  6274. field public static final int HOLD_TIMING = 3; // 0x3
  6275. field public static final int INVALID = 999999; // 0xf423f
  6276. field public static final int OUTGOING_TIME_TO_DIALING_TIMING = 5; // 0x5
  6277. field public static final int REJECT_TIMING = 1; // 0x1
  6278. field public static final int SCREENING_COMPLETED_TIMING = 7; // 0x7
  6279. field public static final int UNHOLD_TIMING = 4; // 0x4
  6280. }
  6281. @Deprecated public final class Phone {
  6282. method @Deprecated public void addListener(android.telecom.Phone.Listener);
  6283. method @Deprecated public boolean canAddCall();
  6284. method @Deprecated public android.telecom.AudioState getAudioState();
  6285. method @Deprecated public android.telecom.CallAudioState getCallAudioState();
  6286. method @Deprecated public java.util.List<android.telecom.Call> getCalls();
  6287. method @Deprecated public void removeListener(android.telecom.Phone.Listener);
  6288. method @Deprecated public void requestBluetoothAudio(String);
  6289. method @Deprecated public void setAudioRoute(int);
  6290. method @Deprecated public void setMuted(boolean);
  6291. }
  6292. @Deprecated public abstract static class Phone.Listener {
  6293. ctor @Deprecated public Phone.Listener();
  6294. method @Deprecated public void onAudioStateChanged(android.telecom.Phone, android.telecom.AudioState);
  6295. method @Deprecated public void onBringToForeground(android.telecom.Phone, boolean);
  6296. method @Deprecated public void onCallAdded(android.telecom.Phone, android.telecom.Call);
  6297. method @Deprecated public void onCallAudioStateChanged(android.telecom.Phone, android.telecom.CallAudioState);
  6298. method @Deprecated public void onCallRemoved(android.telecom.Phone, android.telecom.Call);
  6299. method @Deprecated public void onCanAddCallChanged(android.telecom.Phone, boolean);
  6300. method @Deprecated public void onSilenceRinger(android.telecom.Phone);
  6301. }
  6302. public final class PhoneAccount implements android.os.Parcelable {
  6303. field public static final int CAPABILITY_MULTI_USER = 32; // 0x20
  6304. }
  6305. public class PhoneAccountSuggestionService extends android.app.Service {
  6306. ctor public PhoneAccountSuggestionService();
  6307. method public void onAccountSuggestionRequest(@NonNull String);
  6308. method public android.os.IBinder onBind(android.content.Intent);
  6309. method public final void suggestPhoneAccounts(@NonNull String, @NonNull java.util.List<android.telecom.PhoneAccountSuggestion>);
  6310. field public static final String SERVICE_INTERFACE = "android.telecom.PhoneAccountSuggestionService";
  6311. }
  6312. public final class RemoteConference {
  6313. method @Deprecated public void setAudioState(android.telecom.AudioState);
  6314. }
  6315. public final class RemoteConnection {
  6316. method @Deprecated public void setAudioState(android.telecom.AudioState);
  6317. }
  6318. public final class StatusHints implements android.os.Parcelable {
  6319. ctor @Deprecated public StatusHints(android.content.ComponentName, CharSequence, int, android.os.Bundle);
  6320. method @Deprecated public android.graphics.drawable.Drawable getIcon(android.content.Context);
  6321. method @Deprecated public int getIconResId();
  6322. method @Deprecated public android.content.ComponentName getPackageName();
  6323. }
  6324. public final class TelecomAnalytics implements android.os.Parcelable {
  6325. ctor public TelecomAnalytics(java.util.List<android.telecom.TelecomAnalytics.SessionTiming>, java.util.List<android.telecom.ParcelableCallAnalytics>);
  6326. method public int describeContents();
  6327. method public java.util.List<android.telecom.ParcelableCallAnalytics> getCallAnalytics();
  6328. method public java.util.List<android.telecom.TelecomAnalytics.SessionTiming> getSessionTimings();
  6329. method public void writeToParcel(android.os.Parcel, int);
  6330. field @NonNull public static final android.os.Parcelable.Creator<android.telecom.TelecomAnalytics> CREATOR;
  6331. }
  6332. public static final class TelecomAnalytics.SessionTiming implements android.os.Parcelable {
  6333. ctor public TelecomAnalytics.SessionTiming(int, long);
  6334. method public int describeContents();
  6335. method public Integer getKey();
  6336. method public long getTime();
  6337. method public void writeToParcel(android.os.Parcel, int);
  6338. field @NonNull public static final android.os.Parcelable.Creator<android.telecom.TelecomAnalytics.SessionTiming> CREATOR;
  6339. field public static final int CSW_ADD_CONFERENCE_CALL = 108; // 0x6c
  6340. field public static final int CSW_HANDLE_CREATE_CONNECTION_COMPLETE = 100; // 0x64
  6341. field public static final int CSW_REMOVE_CALL = 106; // 0x6a
  6342. field public static final int CSW_SET_ACTIVE = 101; // 0x65
  6343. field public static final int CSW_SET_DIALING = 103; // 0x67
  6344. field public static final int CSW_SET_DISCONNECTED = 104; // 0x68
  6345. field public static final int CSW_SET_IS_CONFERENCED = 107; // 0x6b
  6346. field public static final int CSW_SET_ON_HOLD = 105; // 0x69
  6347. field public static final int CSW_SET_RINGING = 102; // 0x66
  6348. field public static final int ICA_ANSWER_CALL = 1; // 0x1
  6349. field public static final int ICA_CONFERENCE = 8; // 0x8
  6350. field public static final int ICA_DISCONNECT_CALL = 3; // 0x3
  6351. field public static final int ICA_HOLD_CALL = 4; // 0x4
  6352. field public static final int ICA_MUTE = 6; // 0x6
  6353. field public static final int ICA_REJECT_CALL = 2; // 0x2
  6354. field public static final int ICA_SET_AUDIO_ROUTE = 7; // 0x7
  6355. field public static final int ICA_UNHOLD_CALL = 5; // 0x5
  6356. }
  6357. public class TelecomManager {
  6358. method public void addNewUnknownCall(android.telecom.PhoneAccountHandle, android.os.Bundle);
  6359. method @Deprecated public void clearAccounts();
  6360. method public void clearPhoneAccounts();
  6361. method @RequiresPermission(android.Manifest.permission.DUMP) public android.telecom.TelecomAnalytics dumpAnalytics();
  6362. method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public void enablePhoneAccount(android.telecom.PhoneAccountHandle, boolean);
  6363. method public java.util.List<android.telecom.PhoneAccountHandle> getAllPhoneAccountHandles();
  6364. method public java.util.List<android.telecom.PhoneAccount> getAllPhoneAccounts();
  6365. method public int getAllPhoneAccountsCount();
  6366. method public int getCallState();
  6367. method public android.telecom.PhoneAccountHandle getConnectionManager();
  6368. method @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) public int getCurrentTtyMode();
  6369. method @Deprecated public android.content.ComponentName getDefaultPhoneApp();
  6370. method public java.util.List<android.telecom.PhoneAccountHandle> getPhoneAccountsForPackage();
  6371. method @RequiresPermission(anyOf={android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE, android.Manifest.permission.READ_PHONE_STATE}) public java.util.List<android.telecom.PhoneAccountHandle> getPhoneAccountsSupportingScheme(String);
  6372. method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public boolean isInEmergencyCall();
  6373. method @RequiresPermission(anyOf={android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE, android.Manifest.permission.READ_PHONE_STATE}) public boolean isRinging();
  6374. method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public void setUserSelectedOutgoingPhoneAccount(@Nullable android.telecom.PhoneAccountHandle);
  6375. field public static final String EXTRA_CALL_BACK_INTENT = "android.telecom.extra.CALL_BACK_INTENT";
  6376. field public static final String EXTRA_CLEAR_MISSED_CALLS_INTENT = "android.telecom.extra.CLEAR_MISSED_CALLS_INTENT";
  6377. field public static final String EXTRA_CONNECTION_SERVICE = "android.telecom.extra.CONNECTION_SERVICE";
  6378. field public static final String EXTRA_IS_USER_INTENT_EMERGENCY_CALL = "android.telecom.extra.IS_USER_INTENT_EMERGENCY_CALL";
  6379. field public static final int TTY_MODE_FULL = 1; // 0x1
  6380. field public static final int TTY_MODE_HCO = 2; // 0x2
  6381. field public static final int TTY_MODE_OFF = 0; // 0x0
  6382. field public static final int TTY_MODE_VCO = 3; // 0x3
  6383. }
  6384. }
  6385. package android.telephony {
  6386. public final class AccessNetworkConstants {
  6387. field public static final int TRANSPORT_TYPE_INVALID = -1; // 0xffffffff
  6388. field public static final int TRANSPORT_TYPE_WLAN = 2; // 0x2
  6389. field public static final int TRANSPORT_TYPE_WWAN = 1; // 0x1
  6390. }
  6391. public final class CallAttributes implements android.os.Parcelable {
  6392. ctor public CallAttributes(@NonNull android.telephony.PreciseCallState, int, @NonNull android.telephony.CallQuality);
  6393. method public int describeContents();
  6394. method @NonNull public android.telephony.CallQuality getCallQuality();
  6395. method public int getNetworkType();
  6396. method @NonNull public android.telephony.PreciseCallState getPreciseCallState();
  6397. method public void writeToParcel(android.os.Parcel, int);
  6398. field @NonNull public static final android.os.Parcelable.Creator<android.telephony.CallAttributes> CREATOR;
  6399. }
  6400. public final class CallQuality implements android.os.Parcelable {
  6401. ctor public CallQuality(int, int, int, int, int, int, int, int, int, int, int);
  6402. method public int describeContents();
  6403. method public int getAverageRelativeJitter();
  6404. method public int getAverageRoundTripTime();
  6405. method public int getCallDuration();
  6406. method public int getCodecType();
  6407. method public int getDownlinkCallQualityLevel();
  6408. method public int getMaxRelativeJitter();
  6409. method public int getNumRtpPacketsNotReceived();
  6410. method public int getNumRtpPacketsReceived();
  6411. method public int getNumRtpPacketsTransmitted();
  6412. method public int getNumRtpPacketsTransmittedLost();
  6413. method public int getUplinkCallQualityLevel();
  6414. method public void writeToParcel(android.os.Parcel, int);
  6415. field public static final int CALL_QUALITY_BAD = 4; // 0x4
  6416. field public static final int CALL_QUALITY_EXCELLENT = 0; // 0x0
  6417. field public static final int CALL_QUALITY_FAIR = 2; // 0x2
  6418. field public static final int CALL_QUALITY_GOOD = 1; // 0x1
  6419. field public static final int CALL_QUALITY_NOT_AVAILABLE = 5; // 0x5
  6420. field public static final int CALL_QUALITY_POOR = 3; // 0x3
  6421. field @NonNull public static final android.os.Parcelable.Creator<android.telephony.CallQuality> CREATOR;
  6422. }
  6423. public class CarrierConfigManager {
  6424. method @NonNull public static android.os.PersistableBundle getDefaultConfig();
  6425. method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public void overrideConfig(int, @Nullable android.os.PersistableBundle);
  6426. method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public void updateConfigForPhoneId(int, String);
  6427. field public static final String KEY_CARRIER_SETUP_APP_STRING = "carrier_setup_app_string";
  6428. }
  6429. public final class CarrierRestrictionRules implements android.os.Parcelable {
  6430. method @NonNull public java.util.List<java.lang.Boolean> areCarrierIdentifiersAllowed(@NonNull java.util.List<android.service.carrier.CarrierIdentifier>);
  6431. method public int describeContents();
  6432. method @NonNull public java.util.List<android.service.carrier.CarrierIdentifier> getAllowedCarriers();
  6433. method public int getDefaultCarrierRestriction();
  6434. method @NonNull public java.util.List<android.service.carrier.CarrierIdentifier> getExcludedCarriers();
  6435. method public int getMultiSimPolicy();
  6436. method public boolean isAllCarriersAllowed();
  6437. method public void writeToParcel(android.os.Parcel, int);
  6438. field public static final int CARRIER_RESTRICTION_DEFAULT_ALLOWED = 1; // 0x1
  6439. field public static final int CARRIER_RESTRICTION_DEFAULT_NOT_ALLOWED = 0; // 0x0
  6440. field @NonNull public static final android.os.Parcelable.Creator<android.telephony.CarrierRestrictionRules> CREATOR;
  6441. field public static final int MULTISIM_POLICY_NONE = 0; // 0x0
  6442. field public static final int MULTISIM_POLICY_ONE_VALID_SIM_MUST_BE_PRESENT = 1; // 0x1
  6443. }
  6444. public static final class CarrierRestrictionRules.Builder {
  6445. ctor public CarrierRestrictionRules.Builder();
  6446. method @NonNull public android.telephony.CarrierRestrictionRules build();
  6447. method @NonNull public android.telephony.CarrierRestrictionRules.Builder setAllCarriersAllowed();
  6448. method @NonNull public android.telephony.CarrierRestrictionRules.Builder setAllowedCarriers(@NonNull java.util.List<android.service.carrier.CarrierIdentifier>);
  6449. method @NonNull public android.telephony.CarrierRestrictionRules.Builder setDefaultCarrierRestriction(int);
  6450. method @NonNull public android.telephony.CarrierRestrictionRules.Builder setExcludedCarriers(@NonNull java.util.List<android.service.carrier.CarrierIdentifier>);
  6451. method @NonNull public android.telephony.CarrierRestrictionRules.Builder setMultiSimPolicy(int);
  6452. }
  6453. public final class DataFailCause {
  6454. field public static final int ACCESS_ATTEMPT_ALREADY_IN_PROGRESS = 2219; // 0x8ab
  6455. field public static final int ACCESS_BLOCK = 2087; // 0x827
  6456. field public static final int ACCESS_BLOCK_ALL = 2088; // 0x828
  6457. field public static final int ACCESS_CLASS_DSAC_REJECTION = 2108; // 0x83c
  6458. field public static final int ACCESS_CONTROL_LIST_CHECK_FAILURE = 2128; // 0x850
  6459. field public static final int ACTIVATION_REJECTED_BCM_VIOLATION = 48; // 0x30
  6460. field public static final int ACTIVATION_REJECT_GGSN = 30; // 0x1e
  6461. field public static final int ACTIVATION_REJECT_UNSPECIFIED = 31; // 0x1f
  6462. field public static final int ACTIVE_PDP_CONTEXT_MAX_NUMBER_REACHED = 65; // 0x41
  6463. field public static final int APN_DISABLED = 2045; // 0x7fd
  6464. field public static final int APN_DISALLOWED_ON_ROAMING = 2059; // 0x80b
  6465. field public static final int APN_MISMATCH = 2054; // 0x806
  6466. field public static final int APN_PARAMETERS_CHANGED = 2060; // 0x80c
  6467. field public static final int APN_PENDING_HANDOVER = 2041; // 0x7f9
  6468. field public static final int APN_TYPE_CONFLICT = 112; // 0x70
  6469. field public static final int AUTH_FAILURE_ON_EMERGENCY_CALL = 122; // 0x7a
  6470. field public static final int BEARER_HANDLING_NOT_SUPPORTED = 60; // 0x3c
  6471. field public static final int CALL_DISALLOWED_IN_ROAMING = 2068; // 0x814
  6472. field public static final int CALL_PREEMPT_BY_EMERGENCY_APN = 127; // 0x7f
  6473. field public static final int CANNOT_ENCODE_OTA_MESSAGE = 2159; // 0x86f
  6474. field public static final int CDMA_ALERT_STOP = 2077; // 0x81d
  6475. field public static final int CDMA_INCOMING_CALL = 2076; // 0x81c
  6476. field public static final int CDMA_INTERCEPT = 2073; // 0x819
  6477. field public static final int CDMA_LOCK = 2072; // 0x818
  6478. field public static final int CDMA_RELEASE_DUE_TO_SO_REJECTION = 2075; // 0x81b
  6479. field public static final int CDMA_REORDER = 2074; // 0x81a
  6480. field public static final int CDMA_RETRY_ORDER = 2086; // 0x826
  6481. field public static final int CHANNEL_ACQUISITION_FAILURE = 2078; // 0x81e
  6482. field public static final int CLOSE_IN_PROGRESS = 2030; // 0x7ee
  6483. field public static final int COLLISION_WITH_NETWORK_INITIATED_REQUEST = 56; // 0x38
  6484. field public static final int COMPANION_IFACE_IN_USE = 118; // 0x76
  6485. field public static final int CONCURRENT_SERVICES_INCOMPATIBLE = 2083; // 0x823
  6486. field public static final int CONCURRENT_SERVICES_NOT_ALLOWED = 2091; // 0x82b
  6487. field public static final int CONCURRENT_SERVICE_NOT_SUPPORTED_BY_BASE_STATION = 2080; // 0x820
  6488. field public static final int CONDITIONAL_IE_ERROR = 100; // 0x64
  6489. field public static final int CONGESTION = 2106; // 0x83a
  6490. field public static final int CONNECTION_RELEASED = 2113; // 0x841
  6491. field public static final int CS_DOMAIN_NOT_AVAILABLE = 2181; // 0x885
  6492. field public static final int CS_FALLBACK_CALL_ESTABLISHMENT_NOT_ALLOWED = 2188; // 0x88c
  6493. field public static final int DATA_PLAN_EXPIRED = 2198; // 0x896
  6494. field public static final int DATA_ROAMING_SETTINGS_DISABLED = 2064; // 0x810
  6495. field public static final int DATA_SETTINGS_DISABLED = 2063; // 0x80f
  6496. field public static final int DBM_OR_SMS_IN_PROGRESS = 2211; // 0x8a3
  6497. field public static final int DDS_SWITCHED = 2065; // 0x811
  6498. field public static final int DDS_SWITCH_IN_PROGRESS = 2067; // 0x813
  6499. field public static final int DRB_RELEASED_BY_RRC = 2112; // 0x840
  6500. field public static final int DS_EXPLICIT_DEACTIVATION = 2125; // 0x84d
  6501. field public static final int DUAL_SWITCH = 2227; // 0x8b3
  6502. field public static final int DUN_CALL_DISALLOWED = 2056; // 0x808
  6503. field public static final int DUPLICATE_BEARER_ID = 2118; // 0x846
  6504. field public static final int EHRPD_TO_HRPD_FALLBACK = 2049; // 0x801
  6505. field public static final int EMBMS_NOT_ENABLED = 2193; // 0x891
  6506. field public static final int EMBMS_REGULAR_DEACTIVATION = 2195; // 0x893
  6507. field public static final int EMERGENCY_IFACE_ONLY = 116; // 0x74
  6508. field public static final int EMERGENCY_MODE = 2221; // 0x8ad
  6509. field public static final int EMM_ACCESS_BARRED = 115; // 0x73
  6510. field public static final int EMM_ACCESS_BARRED_INFINITE_RETRY = 121; // 0x79
  6511. field public static final int EMM_ATTACH_FAILED = 2115; // 0x843
  6512. field public static final int EMM_ATTACH_STARTED = 2116; // 0x844
  6513. field public static final int EMM_DETACHED = 2114; // 0x842
  6514. field public static final int EMM_T3417_EXPIRED = 2130; // 0x852
  6515. field public static final int EMM_T3417_EXT_EXPIRED = 2131; // 0x853
  6516. field public static final int EPS_SERVICES_AND_NON_EPS_SERVICES_NOT_ALLOWED = 2178; // 0x882
  6517. field public static final int EPS_SERVICES_NOT_ALLOWED_IN_PLMN = 2179; // 0x883
  6518. field public static final int ERROR_UNSPECIFIED = 65535; // 0xffff
  6519. field public static final int ESM_BAD_OTA_MESSAGE = 2122; // 0x84a
  6520. field public static final int ESM_BEARER_DEACTIVATED_TO_SYNC_WITH_NETWORK = 2120; // 0x848
  6521. field public static final int ESM_COLLISION_SCENARIOS = 2119; // 0x847
  6522. field public static final int ESM_CONTEXT_TRANSFERRED_DUE_TO_IRAT = 2124; // 0x84c
  6523. field public static final int ESM_DOWNLOAD_SERVER_REJECTED_THE_CALL = 2123; // 0x84b
  6524. field public static final int ESM_FAILURE = 2182; // 0x886
  6525. field public static final int ESM_INFO_NOT_RECEIVED = 53; // 0x35
  6526. field public static final int ESM_LOCAL_CAUSE_NONE = 2126; // 0x84e
  6527. field public static final int ESM_NW_ACTIVATED_DED_BEARER_WITH_ID_OF_DEF_BEARER = 2121; // 0x849
  6528. field public static final int ESM_PROCEDURE_TIME_OUT = 2155; // 0x86b
  6529. field public static final int ESM_UNKNOWN_EPS_BEARER_CONTEXT = 2111; // 0x83f
  6530. field public static final int EVDO_CONNECTION_DENY_BY_BILLING_OR_AUTHENTICATION_FAILURE = 2201; // 0x899
  6531. field public static final int EVDO_CONNECTION_DENY_BY_GENERAL_OR_NETWORK_BUSY = 2200; // 0x898
  6532. field public static final int EVDO_HDR_CHANGED = 2202; // 0x89a
  6533. field public static final int EVDO_HDR_CONNECTION_SETUP_TIMEOUT = 2206; // 0x89e
  6534. field public static final int EVDO_HDR_EXITED = 2203; // 0x89b
  6535. field public static final int EVDO_HDR_NO_SESSION = 2204; // 0x89c
  6536. field public static final int EVDO_USING_GPS_FIX_INSTEAD_OF_HDR_CALL = 2205; // 0x89d
  6537. field public static final int FADE = 2217; // 0x8a9
  6538. field public static final int FAILED_TO_ACQUIRE_COLOCATED_HDR = 2207; // 0x89f
  6539. field public static final int FEATURE_NOT_SUPP = 40; // 0x28
  6540. field public static final int FILTER_SEMANTIC_ERROR = 44; // 0x2c
  6541. field public static final int FILTER_SYTAX_ERROR = 45; // 0x2d
  6542. field public static final int FORBIDDEN_APN_NAME = 2066; // 0x812
  6543. field public static final int GPRS_REGISTRATION_FAIL = -2; // 0xfffffffe
  6544. field public static final int GPRS_SERVICES_AND_NON_GPRS_SERVICES_NOT_ALLOWED = 2097; // 0x831
  6545. field public static final int GPRS_SERVICES_NOT_ALLOWED = 2098; // 0x832
  6546. field public static final int GPRS_SERVICES_NOT_ALLOWED_IN_THIS_PLMN = 2103; // 0x837
  6547. field public static final int HANDOFF_PREFERENCE_CHANGED = 2251; // 0x8cb
  6548. field public static final int HDR_ACCESS_FAILURE = 2213; // 0x8a5
  6549. field public static final int HDR_FADE = 2212; // 0x8a4
  6550. field public static final int HDR_NO_LOCK_GRANTED = 2210; // 0x8a2
  6551. field public static final int IFACE_AND_POL_FAMILY_MISMATCH = 120; // 0x78
  6552. field public static final int IFACE_MISMATCH = 117; // 0x75
  6553. field public static final int ILLEGAL_ME = 2096; // 0x830
  6554. field public static final int ILLEGAL_MS = 2095; // 0x82f
  6555. field public static final int IMEI_NOT_ACCEPTED = 2177; // 0x881
  6556. field public static final int IMPLICITLY_DETACHED = 2100; // 0x834
  6557. field public static final int IMSI_UNKNOWN_IN_HOME_SUBSCRIBER_SERVER = 2176; // 0x880
  6558. field public static final int INCOMING_CALL_REJECTED = 2092; // 0x82c
  6559. field public static final int INSUFFICIENT_RESOURCES = 26; // 0x1a
  6560. field public static final int INTERFACE_IN_USE = 2058; // 0x80a
  6561. field public static final int INTERNAL_CALL_PREEMPT_BY_HIGH_PRIO_APN = 114; // 0x72
  6562. field public static final int INTERNAL_EPC_NONEPC_TRANSITION = 2057; // 0x809
  6563. field public static final int INVALID_CONNECTION_ID = 2156; // 0x86c
  6564. field public static final int INVALID_DNS_ADDR = 123; // 0x7b
  6565. field public static final int INVALID_EMM_STATE = 2190; // 0x88e
  6566. field public static final int INVALID_MANDATORY_INFO = 96; // 0x60
  6567. field public static final int INVALID_MODE = 2223; // 0x8af
  6568. field public static final int INVALID_PCSCF_ADDR = 113; // 0x71
  6569. field public static final int INVALID_PCSCF_OR_DNS_ADDRESS = 124; // 0x7c
  6570. field public static final int INVALID_PRIMARY_NSAPI = 2158; // 0x86e
  6571. field public static final int INVALID_SIM_STATE = 2224; // 0x8b0
  6572. field public static final int INVALID_TRANSACTION_ID = 81; // 0x51
  6573. field public static final int IPV6_ADDRESS_TRANSFER_FAILED = 2047; // 0x7ff
  6574. field public static final int IPV6_PREFIX_UNAVAILABLE = 2250; // 0x8ca
  6575. field public static final int IP_ADDRESS_MISMATCH = 119; // 0x77
  6576. field public static final int IP_VERSION_MISMATCH = 2055; // 0x807
  6577. field public static final int IRAT_HANDOVER_FAILED = 2194; // 0x892
  6578. field public static final int IS707B_MAX_ACCESS_PROBES = 2089; // 0x829
  6579. field public static final int LIMITED_TO_IPV4 = 2234; // 0x8ba
  6580. field public static final int LIMITED_TO_IPV6 = 2235; // 0x8bb
  6581. field public static final int LLC_SNDCP = 25; // 0x19
  6582. field public static final int LOCAL_END = 2215; // 0x8a7
  6583. field public static final int LOCATION_AREA_NOT_ALLOWED = 2102; // 0x836
  6584. field public static final int LOST_CONNECTION = 65540; // 0x10004
  6585. field public static final int LOWER_LAYER_REGISTRATION_FAILURE = 2197; // 0x895
  6586. field public static final int LOW_POWER_MODE_OR_POWERING_DOWN = 2044; // 0x7fc
  6587. field public static final int LTE_NAS_SERVICE_REQUEST_FAILED = 2117; // 0x845
  6588. field public static final int LTE_THROTTLING_NOT_REQUIRED = 2127; // 0x84f
  6589. field public static final int MAC_FAILURE = 2183; // 0x887
  6590. field public static final int MAXIMIUM_NSAPIS_EXCEEDED = 2157; // 0x86d
  6591. field public static final int MAXINUM_SIZE_OF_L2_MESSAGE_EXCEEDED = 2166; // 0x876
  6592. field public static final int MAX_ACCESS_PROBE = 2079; // 0x81f
  6593. field public static final int MAX_IPV4_CONNECTIONS = 2052; // 0x804
  6594. field public static final int MAX_IPV6_CONNECTIONS = 2053; // 0x805
  6595. field public static final int MAX_PPP_INACTIVITY_TIMER_EXPIRED = 2046; // 0x7fe
  6596. field public static final int MESSAGE_INCORRECT_SEMANTIC = 95; // 0x5f
  6597. field public static final int MESSAGE_TYPE_UNSUPPORTED = 97; // 0x61
  6598. field public static final int MIP_CONFIG_FAILURE = 2050; // 0x802
  6599. field public static final int MIP_FA_ADMIN_PROHIBITED = 2001; // 0x7d1
  6600. field public static final int MIP_FA_DELIVERY_STYLE_NOT_SUPPORTED = 2012; // 0x7dc
  6601. field public static final int MIP_FA_ENCAPSULATION_UNAVAILABLE = 2008; // 0x7d8
  6602. field public static final int MIP_FA_HOME_AGENT_AUTHENTICATION_FAILURE = 2004; // 0x7d4
  6603. field public static final int MIP_FA_INSUFFICIENT_RESOURCES = 2002; // 0x7d2
  6604. field public static final int MIP_FA_MALFORMED_REPLY = 2007; // 0x7d7
  6605. field public static final int MIP_FA_MALFORMED_REQUEST = 2006; // 0x7d6
  6606. field public static final int MIP_FA_MISSING_CHALLENGE = 2017; // 0x7e1
  6607. field public static final int MIP_FA_MISSING_HOME_ADDRESS = 2015; // 0x7df
  6608. field public static final int MIP_FA_MISSING_HOME_AGENT = 2014; // 0x7de
  6609. field public static final int MIP_FA_MISSING_NAI = 2013; // 0x7dd
  6610. field public static final int MIP_FA_MOBILE_NODE_AUTHENTICATION_FAILURE = 2003; // 0x7d3
  6611. field public static final int MIP_FA_REASON_UNSPECIFIED = 2000; // 0x7d0
  6612. field public static final int MIP_FA_REQUESTED_LIFETIME_TOO_LONG = 2005; // 0x7d5
  6613. field public static final int MIP_FA_REVERSE_TUNNEL_IS_MANDATORY = 2011; // 0x7db
  6614. field public static final int MIP_FA_REVERSE_TUNNEL_UNAVAILABLE = 2010; // 0x7da
  6615. field public static final int MIP_FA_STALE_CHALLENGE = 2018; // 0x7e2
  6616. field public static final int MIP_FA_UNKNOWN_CHALLENGE = 2016; // 0x7e0
  6617. field public static final int MIP_FA_VJ_HEADER_COMPRESSION_UNAVAILABLE = 2009; // 0x7d9
  6618. field public static final int MIP_HA_ADMIN_PROHIBITED = 2020; // 0x7e4
  6619. field public static final int MIP_HA_ENCAPSULATION_UNAVAILABLE = 2029; // 0x7ed
  6620. field public static final int MIP_HA_FOREIGN_AGENT_AUTHENTICATION_FAILURE = 2023; // 0x7e7
  6621. field public static final int MIP_HA_INSUFFICIENT_RESOURCES = 2021; // 0x7e5
  6622. field public static final int MIP_HA_MALFORMED_REQUEST = 2025; // 0x7e9
  6623. field public static final int MIP_HA_MOBILE_NODE_AUTHENTICATION_FAILURE = 2022; // 0x7e6
  6624. field public static final int MIP_HA_REASON_UNSPECIFIED = 2019; // 0x7e3
  6625. field public static final int MIP_HA_REGISTRATION_ID_MISMATCH = 2024; // 0x7e8
  6626. field public static final int MIP_HA_REVERSE_TUNNEL_IS_MANDATORY = 2028; // 0x7ec
  6627. field public static final int MIP_HA_REVERSE_TUNNEL_UNAVAILABLE = 2027; // 0x7eb
  6628. field public static final int MIP_HA_UNKNOWN_HOME_AGENT_ADDRESS = 2026; // 0x7ea
  6629. field public static final int MISSING_UNKNOWN_APN = 27; // 0x1b
  6630. field public static final int MODEM_APP_PREEMPTED = 2032; // 0x7f0
  6631. field public static final int MODEM_RESTART = 2037; // 0x7f5
  6632. field public static final int MSC_TEMPORARILY_NOT_REACHABLE = 2180; // 0x884
  6633. field public static final int MSG_AND_PROTOCOL_STATE_UNCOMPATIBLE = 101; // 0x65
  6634. field public static final int MSG_TYPE_NONCOMPATIBLE_STATE = 98; // 0x62
  6635. field public static final int MS_IDENTITY_CANNOT_BE_DERIVED_BY_THE_NETWORK = 2099; // 0x833
  6636. field public static final int MULTIPLE_PDP_CALL_NOT_ALLOWED = 2192; // 0x890
  6637. field public static final int MULTI_CONN_TO_SAME_PDN_NOT_ALLOWED = 55; // 0x37
  6638. field public static final int NAS_LAYER_FAILURE = 2191; // 0x88f
  6639. field public static final int NAS_REQUEST_REJECTED_BY_NETWORK = 2167; // 0x877
  6640. field public static final int NAS_SIGNALLING = 14; // 0xe
  6641. field public static final int NETWORK_FAILURE = 38; // 0x26
  6642. field public static final int NETWORK_INITIATED_DETACH_NO_AUTO_REATTACH = 2154; // 0x86a
  6643. field public static final int NETWORK_INITIATED_DETACH_WITH_AUTO_REATTACH = 2153; // 0x869
  6644. field public static final int NETWORK_INITIATED_TERMINATION = 2031; // 0x7ef
  6645. field public static final int NONE = 0; // 0x0
  6646. field public static final int NON_IP_NOT_SUPPORTED = 2069; // 0x815
  6647. field public static final int NORMAL_RELEASE = 2218; // 0x8aa
  6648. field public static final int NO_CDMA_SERVICE = 2084; // 0x824
  6649. field public static final int NO_COLLOCATED_HDR = 2225; // 0x8b1
  6650. field public static final int NO_EPS_BEARER_CONTEXT_ACTIVATED = 2189; // 0x88d
  6651. field public static final int NO_GPRS_CONTEXT = 2094; // 0x82e
  6652. field public static final int NO_HYBRID_HDR_SERVICE = 2209; // 0x8a1
  6653. field public static final int NO_PDP_CONTEXT_ACTIVATED = 2107; // 0x83b
  6654. field public static final int NO_RESPONSE_FROM_BASE_STATION = 2081; // 0x821
  6655. field public static final int NO_SERVICE = 2216; // 0x8a8
  6656. field public static final int NO_SERVICE_ON_GATEWAY = 2093; // 0x82d
  6657. field public static final int NSAPI_IN_USE = 35; // 0x23
  6658. field public static final int NULL_APN_DISALLOWED = 2061; // 0x80d
  6659. field public static final int OEM_DCFAILCAUSE_1 = 4097; // 0x1001
  6660. field public static final int OEM_DCFAILCAUSE_10 = 4106; // 0x100a
  6661. field public static final int OEM_DCFAILCAUSE_11 = 4107; // 0x100b
  6662. field public static final int OEM_DCFAILCAUSE_12 = 4108; // 0x100c
  6663. field public static final int OEM_DCFAILCAUSE_13 = 4109; // 0x100d
  6664. field public static final int OEM_DCFAILCAUSE_14 = 4110; // 0x100e
  6665. field public static final int OEM_DCFAILCAUSE_15 = 4111; // 0x100f
  6666. field public static final int OEM_DCFAILCAUSE_2 = 4098; // 0x1002
  6667. field public static final int OEM_DCFAILCAUSE_3 = 4099; // 0x1003
  6668. field public static final int OEM_DCFAILCAUSE_4 = 4100; // 0x1004
  6669. field public static final int OEM_DCFAILCAUSE_5 = 4101; // 0x1005
  6670. field public static final int OEM_DCFAILCAUSE_6 = 4102; // 0x1006
  6671. field public static final int OEM_DCFAILCAUSE_7 = 4103; // 0x1007
  6672. field public static final int OEM_DCFAILCAUSE_8 = 4104; // 0x1008
  6673. field public static final int OEM_DCFAILCAUSE_9 = 4105; // 0x1009
  6674. field public static final int ONLY_IPV4V6_ALLOWED = 57; // 0x39
  6675. field public static final int ONLY_IPV4_ALLOWED = 50; // 0x32
  6676. field public static final int ONLY_IPV6_ALLOWED = 51; // 0x33
  6677. field public static final int ONLY_NON_IP_ALLOWED = 58; // 0x3a
  6678. field public static final int ONLY_SINGLE_BEARER_ALLOWED = 52; // 0x34
  6679. field public static final int OPERATOR_BARRED = 8; // 0x8
  6680. field public static final int OTASP_COMMIT_IN_PROGRESS = 2208; // 0x8a0
  6681. field public static final int PDN_CONN_DOES_NOT_EXIST = 54; // 0x36
  6682. field public static final int PDN_INACTIVITY_TIMER_EXPIRED = 2051; // 0x803
  6683. field public static final int PDN_IPV4_CALL_DISALLOWED = 2033; // 0x7f1
  6684. field public static final int PDN_IPV4_CALL_THROTTLED = 2034; // 0x7f2
  6685. field public static final int PDN_IPV6_CALL_DISALLOWED = 2035; // 0x7f3
  6686. field public static final int PDN_IPV6_CALL_THROTTLED = 2036; // 0x7f4
  6687. field public static final int PDN_NON_IP_CALL_DISALLOWED = 2071; // 0x817
  6688. field public static final int PDN_NON_IP_CALL_THROTTLED = 2070; // 0x816
  6689. field public static final int PDP_ACTIVATE_MAX_RETRY_FAILED = 2109; // 0x83d
  6690. field public static final int PDP_DUPLICATE = 2104; // 0x838
  6691. field public static final int PDP_ESTABLISH_TIMEOUT_EXPIRED = 2161; // 0x871
  6692. field public static final int PDP_INACTIVE_TIMEOUT_EXPIRED = 2163; // 0x873
  6693. field public static final int PDP_LOWERLAYER_ERROR = 2164; // 0x874
  6694. field public static final int PDP_MODIFY_COLLISION = 2165; // 0x875
  6695. field public static final int PDP_MODIFY_TIMEOUT_EXPIRED = 2162; // 0x872
  6696. field public static final int PDP_PPP_NOT_SUPPORTED = 2038; // 0x7f6
  6697. field public static final int PDP_WITHOUT_ACTIVE_TFT = 46; // 0x2e
  6698. field public static final int PHONE_IN_USE = 2222; // 0x8ae
  6699. field public static final int PHYSICAL_LINK_CLOSE_IN_PROGRESS = 2040; // 0x7f8
  6700. field public static final int PLMN_NOT_ALLOWED = 2101; // 0x835
  6701. field public static final int PPP_AUTH_FAILURE = 2229; // 0x8b5
  6702. field public static final int PPP_CHAP_FAILURE = 2232; // 0x8b8
  6703. field public static final int PPP_CLOSE_IN_PROGRESS = 2233; // 0x8b9
  6704. field public static final int PPP_OPTION_MISMATCH = 2230; // 0x8b6
  6705. field public static final int PPP_PAP_FAILURE = 2231; // 0x8b7
  6706. field public static final int PPP_TIMEOUT = 2228; // 0x8b4
  6707. field public static final int PREF_RADIO_TECH_CHANGED = -4; // 0xfffffffc
  6708. field public static final int PROFILE_BEARER_INCOMPATIBLE = 2042; // 0x7fa
  6709. field public static final int PROTOCOL_ERRORS = 111; // 0x6f
  6710. field public static final int QOS_NOT_ACCEPTED = 37; // 0x25
  6711. field public static final int RADIO_ACCESS_BEARER_FAILURE = 2110; // 0x83e
  6712. field public static final int RADIO_ACCESS_BEARER_SETUP_FAILURE = 2160; // 0x870
  6713. field public static final int RADIO_NOT_AVAILABLE = 65537; // 0x10001
  6714. field public static final int RADIO_POWER_OFF = -5; // 0xfffffffb
  6715. field public static final int REDIRECTION_OR_HANDOFF_IN_PROGRESS = 2220; // 0x8ac
  6716. field public static final int REGISTRATION_FAIL = -1; // 0xffffffff
  6717. field public static final int REGULAR_DEACTIVATION = 36; // 0x24
  6718. field public static final int REJECTED_BY_BASE_STATION = 2082; // 0x822
  6719. field public static final int RRC_CONNECTION_ABORTED_AFTER_HANDOVER = 2173; // 0x87d
  6720. field public static final int RRC_CONNECTION_ABORTED_AFTER_IRAT_CELL_CHANGE = 2174; // 0x87e
  6721. field public static final int RRC_CONNECTION_ABORTED_DUE_TO_IRAT_CHANGE = 2171; // 0x87b
  6722. field public static final int RRC_CONNECTION_ABORTED_DURING_IRAT_CELL_CHANGE = 2175; // 0x87f
  6723. field public static final int RRC_CONNECTION_ABORT_REQUEST = 2151; // 0x867
  6724. field public static final int RRC_CONNECTION_ACCESS_BARRED = 2139; // 0x85b
  6725. field public static final int RRC_CONNECTION_ACCESS_STRATUM_FAILURE = 2137; // 0x859
  6726. field public static final int RRC_CONNECTION_ANOTHER_PROCEDURE_IN_PROGRESS = 2138; // 0x85a
  6727. field public static final int RRC_CONNECTION_CELL_NOT_CAMPED = 2144; // 0x860
  6728. field public static final int RRC_CONNECTION_CELL_RESELECTION = 2140; // 0x85c
  6729. field public static final int RRC_CONNECTION_CONFIG_FAILURE = 2141; // 0x85d
  6730. field public static final int RRC_CONNECTION_INVALID_REQUEST = 2168; // 0x878
  6731. field public static final int RRC_CONNECTION_LINK_FAILURE = 2143; // 0x85f
  6732. field public static final int RRC_CONNECTION_NORMAL_RELEASE = 2147; // 0x863
  6733. field public static final int RRC_CONNECTION_OUT_OF_SERVICE_DURING_CELL_REGISTER = 2150; // 0x866
  6734. field public static final int RRC_CONNECTION_RADIO_LINK_FAILURE = 2148; // 0x864
  6735. field public static final int RRC_CONNECTION_REESTABLISHMENT_FAILURE = 2149; // 0x865
  6736. field public static final int RRC_CONNECTION_REJECT_BY_NETWORK = 2146; // 0x862
  6737. field public static final int RRC_CONNECTION_RELEASED_SECURITY_NOT_ACTIVE = 2172; // 0x87c
  6738. field public static final int RRC_CONNECTION_RF_UNAVAILABLE = 2170; // 0x87a
  6739. field public static final int RRC_CONNECTION_SYSTEM_INFORMATION_BLOCK_READ_ERROR = 2152; // 0x868
  6740. field public static final int RRC_CONNECTION_SYSTEM_INTERVAL_FAILURE = 2145; // 0x861
  6741. field public static final int RRC_CONNECTION_TIMER_EXPIRED = 2142; // 0x85e
  6742. field public static final int RRC_CONNECTION_TRACKING_AREA_ID_CHANGED = 2169; // 0x879
  6743. field public static final int RRC_UPLINK_CONNECTION_RELEASE = 2134; // 0x856
  6744. field public static final int RRC_UPLINK_DATA_TRANSMISSION_FAILURE = 2132; // 0x854
  6745. field public static final int RRC_UPLINK_DELIVERY_FAILED_DUE_TO_HANDOVER = 2133; // 0x855
  6746. field public static final int RRC_UPLINK_ERROR_REQUEST_FROM_NAS = 2136; // 0x858
  6747. field public static final int RRC_UPLINK_RADIO_LINK_FAILURE = 2135; // 0x857
  6748. field public static final int RUIM_NOT_PRESENT = 2085; // 0x825
  6749. field public static final int SECURITY_MODE_REJECTED = 2186; // 0x88a
  6750. field public static final int SERVICE_NOT_ALLOWED_ON_PLMN = 2129; // 0x851
  6751. field public static final int SERVICE_OPTION_NOT_SUBSCRIBED = 33; // 0x21
  6752. field public static final int SERVICE_OPTION_NOT_SUPPORTED = 32; // 0x20
  6753. field public static final int SERVICE_OPTION_OUT_OF_ORDER = 34; // 0x22
  6754. field public static final int SIGNAL_LOST = -3; // 0xfffffffd
  6755. field public static final int SIM_CARD_CHANGED = 2043; // 0x7fb
  6756. field public static final int SYNCHRONIZATION_FAILURE = 2184; // 0x888
  6757. field public static final int TEST_LOOPBACK_REGULAR_DEACTIVATION = 2196; // 0x894
  6758. field public static final int TETHERED_CALL_ACTIVE = -6; // 0xfffffffa
  6759. field public static final int TFT_SEMANTIC_ERROR = 41; // 0x29
  6760. field public static final int TFT_SYTAX_ERROR = 42; // 0x2a
  6761. field public static final int THERMAL_EMERGENCY = 2090; // 0x82a
  6762. field public static final int THERMAL_MITIGATION = 2062; // 0x80e
  6763. field public static final int TRAT_SWAP_FAILED = 2048; // 0x800
  6764. field public static final int UE_INITIATED_DETACH_OR_DISCONNECT = 128; // 0x80
  6765. field public static final int UE_IS_ENTERING_POWERSAVE_MODE = 2226; // 0x8b2
  6766. field public static final int UE_RAT_CHANGE = 2105; // 0x839
  6767. field public static final int UE_SECURITY_CAPABILITIES_MISMATCH = 2185; // 0x889
  6768. field public static final int UMTS_HANDOVER_TO_IWLAN = 2199; // 0x897
  6769. field public static final int UMTS_REACTIVATION_REQ = 39; // 0x27
  6770. field public static final int UNACCEPTABLE_NON_EPS_AUTHENTICATION = 2187; // 0x88b
  6771. field public static final int UNKNOWN = 65536; // 0x10000
  6772. field public static final int UNKNOWN_INFO_ELEMENT = 99; // 0x63
  6773. field public static final int UNKNOWN_PDP_ADDRESS_TYPE = 28; // 0x1c
  6774. field public static final int UNKNOWN_PDP_CONTEXT = 43; // 0x2b
  6775. field public static final int UNPREFERRED_RAT = 2039; // 0x7f7
  6776. field public static final int UNSUPPORTED_1X_PREV = 2214; // 0x8a6
  6777. field public static final int UNSUPPORTED_APN_IN_CURRENT_PLMN = 66; // 0x42
  6778. field public static final int UNSUPPORTED_QCI_VALUE = 59; // 0x3b
  6779. field public static final int USER_AUTHENTICATION = 29; // 0x1d
  6780. field public static final int VSNCP_ADMINISTRATIVELY_PROHIBITED = 2245; // 0x8c5
  6781. field public static final int VSNCP_APN_UNATHORIZED = 2238; // 0x8be
  6782. field public static final int VSNCP_GEN_ERROR = 2237; // 0x8bd
  6783. field public static final int VSNCP_INSUFFICIENT_PARAMETERS = 2243; // 0x8c3
  6784. field public static final int VSNCP_NO_PDN_GATEWAY_ADDRESS = 2240; // 0x8c0
  6785. field public static final int VSNCP_PDN_EXISTS_FOR_THIS_APN = 2248; // 0x8c8
  6786. field public static final int VSNCP_PDN_GATEWAY_REJECT = 2242; // 0x8c2
  6787. field public static final int VSNCP_PDN_GATEWAY_UNREACHABLE = 2241; // 0x8c1
  6788. field public static final int VSNCP_PDN_ID_IN_USE = 2246; // 0x8c6
  6789. field public static final int VSNCP_PDN_LIMIT_EXCEEDED = 2239; // 0x8bf
  6790. field public static final int VSNCP_RECONNECT_NOT_ALLOWED = 2249; // 0x8c9
  6791. field public static final int VSNCP_RESOURCE_UNAVAILABLE = 2244; // 0x8c4
  6792. field public static final int VSNCP_SUBSCRIBER_LIMITATION = 2247; // 0x8c7
  6793. field public static final int VSNCP_TIMEOUT = 2236; // 0x8bc
  6794. }
  6795. public final class DataSpecificRegistrationInfo implements android.os.Parcelable {
  6796. method public int describeContents();
  6797. method @NonNull public android.telephony.LteVopsSupportInfo getLteVopsSupportInfo();
  6798. method public void writeToParcel(android.os.Parcel, int);
  6799. field @NonNull public static final android.os.Parcelable.Creator<android.telephony.DataSpecificRegistrationInfo> CREATOR;
  6800. }
  6801. public final class DisconnectCause {
  6802. field public static final int ALREADY_DIALING = 72; // 0x48
  6803. field public static final int ANSWERED_ELSEWHERE = 52; // 0x34
  6804. field public static final int BUSY = 4; // 0x4
  6805. field public static final int CALLING_DISABLED = 74; // 0x4a
  6806. field public static final int CALL_BARRED = 20; // 0x14
  6807. field public static final int CALL_PULLED = 51; // 0x33
  6808. field public static final int CANT_CALL_WHILE_RINGING = 73; // 0x49
  6809. field public static final int CDMA_ACCESS_BLOCKED = 35; // 0x23
  6810. field public static final int CDMA_ACCESS_FAILURE = 32; // 0x20
  6811. field public static final int CDMA_ALREADY_ACTIVATED = 49; // 0x31
  6812. field public static final int CDMA_DROP = 27; // 0x1b
  6813. field public static final int CDMA_INTERCEPT = 28; // 0x1c
  6814. field public static final int CDMA_LOCKED_UNTIL_POWER_CYCLE = 26; // 0x1a
  6815. field public static final int CDMA_NOT_EMERGENCY = 34; // 0x22
  6816. field public static final int CDMA_PREEMPTED = 33; // 0x21
  6817. field public static final int CDMA_REORDER = 29; // 0x1d
  6818. field public static final int CDMA_RETRY_ORDER = 31; // 0x1f
  6819. field public static final int CDMA_SO_REJECT = 30; // 0x1e
  6820. field public static final int CONGESTION = 5; // 0x5
  6821. field public static final int CS_RESTRICTED = 22; // 0x16
  6822. field public static final int CS_RESTRICTED_EMERGENCY = 24; // 0x18
  6823. field public static final int CS_RESTRICTED_NORMAL = 23; // 0x17
  6824. field public static final int DATA_DISABLED = 54; // 0x36
  6825. field public static final int DATA_LIMIT_REACHED = 55; // 0x37
  6826. field public static final int DIALED_CALL_FORWARDING_WHILE_ROAMING = 57; // 0x39
  6827. field public static final int DIALED_MMI = 39; // 0x27
  6828. field public static final int DIAL_LOW_BATTERY = 62; // 0x3e
  6829. field public static final int DIAL_MODIFIED_TO_DIAL = 48; // 0x30
  6830. field public static final int DIAL_MODIFIED_TO_DIAL_VIDEO = 66; // 0x42
  6831. field public static final int DIAL_MODIFIED_TO_SS = 47; // 0x2f
  6832. field public static final int DIAL_MODIFIED_TO_USSD = 46; // 0x2e
  6833. field public static final int DIAL_VIDEO_MODIFIED_TO_DIAL = 69; // 0x45
  6834. field public static final int DIAL_VIDEO_MODIFIED_TO_DIAL_VIDEO = 70; // 0x46
  6835. field public static final int DIAL_VIDEO_MODIFIED_TO_SS = 67; // 0x43
  6836. field public static final int DIAL_VIDEO_MODIFIED_TO_USSD = 68; // 0x44
  6837. field public static final int EMERGENCY_PERM_FAILURE = 64; // 0x40
  6838. field public static final int EMERGENCY_TEMP_FAILURE = 63; // 0x3f
  6839. field public static final int ERROR_UNSPECIFIED = 36; // 0x24
  6840. field public static final int FDN_BLOCKED = 21; // 0x15
  6841. field public static final int ICC_ERROR = 19; // 0x13
  6842. field public static final int IMEI_NOT_ACCEPTED = 58; // 0x3a
  6843. field public static final int IMS_ACCESS_BLOCKED = 60; // 0x3c
  6844. field public static final int IMS_MERGED_SUCCESSFULLY = 45; // 0x2d
  6845. field public static final int IMS_SIP_ALTERNATE_EMERGENCY_CALL = 71; // 0x47
  6846. field public static final int INCOMING_MISSED = 1; // 0x1
  6847. field public static final int INCOMING_REJECTED = 16; // 0x10
  6848. field public static final int INVALID_CREDENTIALS = 10; // 0xa
  6849. field public static final int INVALID_NUMBER = 7; // 0x7
  6850. field public static final int LIMIT_EXCEEDED = 15; // 0xf
  6851. field public static final int LOCAL = 3; // 0x3
  6852. field public static final int LOST_SIGNAL = 14; // 0xe
  6853. field public static final int LOW_BATTERY = 61; // 0x3d
  6854. field public static final int MAXIMUM_NUMBER_OF_CALLS_REACHED = 53; // 0x35
  6855. field public static final int MMI = 6; // 0x6
  6856. field public static final int NORMAL = 2; // 0x2
  6857. field public static final int NORMAL_UNSPECIFIED = 65; // 0x41
  6858. field public static final int NOT_DISCONNECTED = 0; // 0x0
  6859. field public static final int NOT_VALID = -1; // 0xffffffff
  6860. field public static final int NO_PHONE_NUMBER_SUPPLIED = 38; // 0x26
  6861. field public static final int NUMBER_UNREACHABLE = 8; // 0x8
  6862. field public static final int OTASP_PROVISIONING_IN_PROCESS = 76; // 0x4c
  6863. field public static final int OUTGOING_CANCELED = 44; // 0x2c
  6864. field public static final int OUTGOING_FAILURE = 43; // 0x2b
  6865. field public static final int OUT_OF_NETWORK = 11; // 0xb
  6866. field public static final int OUT_OF_SERVICE = 18; // 0x12
  6867. field public static final int POWER_OFF = 17; // 0x11
  6868. field public static final int SERVER_ERROR = 12; // 0xc
  6869. field public static final int SERVER_UNREACHABLE = 9; // 0x9
  6870. field public static final int TIMED_OUT = 13; // 0xd
  6871. field public static final int TOO_MANY_ONGOING_CALLS = 75; // 0x4b
  6872. field public static final int UNOBTAINABLE_NUMBER = 25; // 0x19
  6873. field public static final int VIDEO_CALL_NOT_ALLOWED_WHILE_TTY_ENABLED = 50; // 0x32
  6874. field public static final int VOICEMAIL_NUMBER_MISSING = 40; // 0x28
  6875. field public static final int WIFI_LOST = 59; // 0x3b
  6876. }
  6877. public final class LteVopsSupportInfo implements android.os.Parcelable {
  6878. ctor public LteVopsSupportInfo(int, int);
  6879. method public int describeContents();
  6880. method public int getEmcBearerSupport();
  6881. method public int getVopsSupport();
  6882. method public void writeToParcel(android.os.Parcel, int);
  6883. field @NonNull public static final android.os.Parcelable.Creator<android.telephony.LteVopsSupportInfo> CREATOR;
  6884. field public static final int LTE_STATUS_NOT_AVAILABLE = 1; // 0x1
  6885. field public static final int LTE_STATUS_NOT_SUPPORTED = 3; // 0x3
  6886. field public static final int LTE_STATUS_SUPPORTED = 2; // 0x2
  6887. }
  6888. public class MbmsDownloadSession implements java.lang.AutoCloseable {
  6889. field public static final String MBMS_DOWNLOAD_SERVICE_ACTION = "android.telephony.action.EmbmsDownload";
  6890. }
  6891. public class MbmsGroupCallSession implements java.lang.AutoCloseable {
  6892. field public static final String MBMS_GROUP_CALL_SERVICE_ACTION = "android.telephony.action.EmbmsGroupCall";
  6893. }
  6894. public class MbmsStreamingSession implements java.lang.AutoCloseable {
  6895. field public static final String MBMS_STREAMING_SERVICE_ACTION = "android.telephony.action.EmbmsStreaming";
  6896. }
  6897. public final class NetworkRegistrationInfo implements android.os.Parcelable {
  6898. method public int describeContents();
  6899. method public int getAccessNetworkTechnology();
  6900. method @NonNull public java.util.List<java.lang.Integer> getAvailableServices();
  6901. method @Nullable public android.telephony.CellIdentity getCellIdentity();
  6902. method @Nullable public android.telephony.DataSpecificRegistrationInfo getDataSpecificInfo();
  6903. method public int getDomain();
  6904. method public int getRegistrationState();
  6905. method public int getRejectCause();
  6906. method public int getRoamingType();
  6907. method public int getTransportType();
  6908. method public boolean isEmergencyEnabled();
  6909. method public boolean isRoaming();
  6910. method public void writeToParcel(android.os.Parcel, int);
  6911. field @NonNull public static final android.os.Parcelable.Creator<android.telephony.NetworkRegistrationInfo> CREATOR;
  6912. field public static final int DOMAIN_CS = 1; // 0x1
  6913. field public static final int DOMAIN_PS = 2; // 0x2
  6914. field public static final int REGISTRATION_STATE_DENIED = 3; // 0x3
  6915. field public static final int REGISTRATION_STATE_HOME = 1; // 0x1
  6916. field public static final int REGISTRATION_STATE_NOT_REGISTERED_OR_SEARCHING = 0; // 0x0
  6917. field public static final int REGISTRATION_STATE_NOT_REGISTERED_SEARCHING = 2; // 0x2
  6918. field public static final int REGISTRATION_STATE_ROAMING = 5; // 0x5
  6919. field public static final int REGISTRATION_STATE_UNKNOWN = 4; // 0x4
  6920. field public static final int SERVICE_TYPE_DATA = 2; // 0x2
  6921. field public static final int SERVICE_TYPE_EMERGENCY = 5; // 0x5
  6922. field public static final int SERVICE_TYPE_SMS = 3; // 0x3
  6923. field public static final int SERVICE_TYPE_UNKNOWN = 0; // 0x0
  6924. field public static final int SERVICE_TYPE_VIDEO = 4; // 0x4
  6925. field public static final int SERVICE_TYPE_VOICE = 1; // 0x1
  6926. }
  6927. public static final class NetworkRegistrationInfo.Builder {
  6928. ctor public NetworkRegistrationInfo.Builder();
  6929. method @NonNull public android.telephony.NetworkRegistrationInfo build();
  6930. method @NonNull public android.telephony.NetworkRegistrationInfo.Builder setAccessNetworkTechnology(int);
  6931. method @NonNull public android.telephony.NetworkRegistrationInfo.Builder setAvailableServices(@NonNull java.util.List<java.lang.Integer>);
  6932. method @NonNull public android.telephony.NetworkRegistrationInfo.Builder setCellIdentity(@Nullable android.telephony.CellIdentity);
  6933. method @NonNull public android.telephony.NetworkRegistrationInfo.Builder setDomain(int);
  6934. method @NonNull public android.telephony.NetworkRegistrationInfo.Builder setEmergencyOnly(boolean);
  6935. method @NonNull public android.telephony.NetworkRegistrationInfo.Builder setRegistrationState(int);
  6936. method @NonNull public android.telephony.NetworkRegistrationInfo.Builder setRejectCause(int);
  6937. method @NonNull public android.telephony.NetworkRegistrationInfo.Builder setTransportType(int);
  6938. }
  6939. public abstract class NetworkService extends android.app.Service {
  6940. ctor public NetworkService();
  6941. method public android.os.IBinder onBind(android.content.Intent);
  6942. method @Nullable public abstract android.telephony.NetworkService.NetworkServiceProvider onCreateNetworkServiceProvider(int);
  6943. field public static final String SERVICE_INTERFACE = "android.telephony.NetworkService";
  6944. }
  6945. public abstract class NetworkService.NetworkServiceProvider implements java.lang.AutoCloseable {
  6946. ctor public NetworkService.NetworkServiceProvider(int);
  6947. method public abstract void close();
  6948. method public final int getSlotIndex();
  6949. method public final void notifyNetworkRegistrationInfoChanged();
  6950. method public void requestNetworkRegistrationInfo(int, @NonNull android.telephony.NetworkServiceCallback);
  6951. }
  6952. public class NetworkServiceCallback {
  6953. method public void onRequestNetworkRegistrationInfoComplete(int, @Nullable android.telephony.NetworkRegistrationInfo);
  6954. field public static final int RESULT_ERROR_BUSY = 3; // 0x3
  6955. field public static final int RESULT_ERROR_FAILED = 5; // 0x5
  6956. field public static final int RESULT_ERROR_ILLEGAL_STATE = 4; // 0x4
  6957. field public static final int RESULT_ERROR_INVALID_ARG = 2; // 0x2
  6958. field public static final int RESULT_ERROR_UNSUPPORTED = 1; // 0x1
  6959. field public static final int RESULT_SUCCESS = 0; // 0x0
  6960. }
  6961. public interface NumberVerificationCallback {
  6962. method public default void onCallReceived(@NonNull String);
  6963. method public default void onVerificationFailed(int);
  6964. field public static final int REASON_CONCURRENT_REQUESTS = 4; // 0x4
  6965. field public static final int REASON_IN_ECBM = 5; // 0x5
  6966. field public static final int REASON_IN_EMERGENCY_CALL = 6; // 0x6
  6967. field public static final int REASON_NETWORK_NOT_AVAILABLE = 2; // 0x2
  6968. field public static final int REASON_TIMED_OUT = 1; // 0x1
  6969. field public static final int REASON_TOO_MANY_CALLS = 3; // 0x3
  6970. field public static final int REASON_UNSPECIFIED = 0; // 0x0
  6971. }
  6972. public final class PhoneNumberRange implements android.os.Parcelable {
  6973. ctor public PhoneNumberRange(@NonNull String, @NonNull String, @NonNull String, @NonNull String);
  6974. method public int describeContents();
  6975. method public boolean matches(@NonNull String);
  6976. method public void writeToParcel(android.os.Parcel, int);
  6977. field @NonNull public static final android.os.Parcelable.Creator<android.telephony.PhoneNumberRange> CREATOR;
  6978. }
  6979. public class PhoneStateListener {
  6980. method public void onCallAttributesChanged(@NonNull android.telephony.CallAttributes);
  6981. method @RequiresPermission("android.permission.READ_PRECISE_PHONE_STATE") public void onCallDisconnectCauseChanged(int, int);
  6982. method @RequiresPermission("android.permission.READ_PRECISE_PHONE_STATE") public void onImsCallDisconnectCauseChanged(@NonNull android.telephony.ims.ImsReasonInfo);
  6983. method @RequiresPermission("android.permission.READ_PRECISE_PHONE_STATE") public void onPreciseCallStateChanged(@NonNull android.telephony.PreciseCallState);
  6984. method @RequiresPermission("android.permission.READ_PRECISE_PHONE_STATE") public void onPreciseDataConnectionStateChanged(@NonNull android.telephony.PreciseDataConnectionState);
  6985. method public void onRadioPowerStateChanged(int);
  6986. method public void onSrvccStateChanged(int);
  6987. method public void onVoiceActivationStateChanged(int);
  6988. field public static final int LISTEN_CALL_ATTRIBUTES_CHANGED = 67108864; // 0x4000000
  6989. field @RequiresPermission("android.permission.READ_PRECISE_PHONE_STATE") public static final int LISTEN_CALL_DISCONNECT_CAUSES = 33554432; // 0x2000000
  6990. field @RequiresPermission("android.permission.READ_PRECISE_PHONE_STATE") public static final int LISTEN_IMS_CALL_DISCONNECT_CAUSES = 134217728; // 0x8000000
  6991. field @RequiresPermission("android.permission.READ_PRECISE_PHONE_STATE") public static final int LISTEN_PRECISE_CALL_STATE = 2048; // 0x800
  6992. field @RequiresPermission("android.permission.READ_PRECISE_PHONE_STATE") public static final int LISTEN_PRECISE_DATA_CONNECTION_STATE = 4096; // 0x1000
  6993. field public static final int LISTEN_RADIO_POWER_STATE_CHANGED = 8388608; // 0x800000
  6994. field @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) public static final int LISTEN_SRVCC_STATE_CHANGED = 16384; // 0x4000
  6995. field public static final int LISTEN_VOICE_ACTIVATION_STATE = 131072; // 0x20000
  6996. }
  6997. public final class PreciseCallState implements android.os.Parcelable {
  6998. method public int describeContents();
  6999. method public int getBackgroundCallState();
  7000. method public int getForegroundCallState();
  7001. method public int getRingingCallState();
  7002. method public void writeToParcel(android.os.Parcel, int);
  7003. field @NonNull public static final android.os.Parcelable.Creator<android.telephony.PreciseCallState> CREATOR;
  7004. field public static final int PRECISE_CALL_STATE_ACTIVE = 1; // 0x1
  7005. field public static final int PRECISE_CALL_STATE_ALERTING = 4; // 0x4
  7006. field public static final int PRECISE_CALL_STATE_DIALING = 3; // 0x3
  7007. field public static final int PRECISE_CALL_STATE_DISCONNECTED = 7; // 0x7
  7008. field public static final int PRECISE_CALL_STATE_DISCONNECTING = 8; // 0x8
  7009. field public static final int PRECISE_CALL_STATE_HOLDING = 2; // 0x2
  7010. field public static final int PRECISE_CALL_STATE_IDLE = 0; // 0x0
  7011. field public static final int PRECISE_CALL_STATE_INCOMING = 5; // 0x5
  7012. field public static final int PRECISE_CALL_STATE_NOT_VALID = -1; // 0xffffffff
  7013. field public static final int PRECISE_CALL_STATE_WAITING = 6; // 0x6
  7014. }
  7015. public final class PreciseDataConnectionState implements android.os.Parcelable {
  7016. method public int describeContents();
  7017. method @Nullable public String getDataConnectionApn();
  7018. method public int getDataConnectionApnTypeBitMask();
  7019. method public int getDataConnectionFailCause();
  7020. method public int getDataConnectionState();
  7021. method public void writeToParcel(android.os.Parcel, int);
  7022. field @NonNull public static final android.os.Parcelable.Creator<android.telephony.PreciseDataConnectionState> CREATOR;
  7023. }
  7024. public final class PreciseDisconnectCause {
  7025. field public static final int ACCESS_CLASS_BLOCKED = 260; // 0x104
  7026. field public static final int ACCESS_INFORMATION_DISCARDED = 43; // 0x2b
  7027. field public static final int ACM_LIMIT_EXCEEDED = 68; // 0x44
  7028. field public static final int BEARER_CAPABILITY_NOT_AUTHORIZED = 57; // 0x39
  7029. field public static final int BEARER_NOT_AVAIL = 58; // 0x3a
  7030. field public static final int BEARER_SERVICE_NOT_IMPLEMENTED = 65; // 0x41
  7031. field public static final int BUSY = 17; // 0x11
  7032. field public static final int CALL_BARRED = 240; // 0xf0
  7033. field public static final int CALL_REJECTED = 21; // 0x15
  7034. field public static final int CDMA_ACCESS_BLOCKED = 1009; // 0x3f1
  7035. field public static final int CDMA_ACCESS_FAILURE = 1006; // 0x3ee
  7036. field public static final int CDMA_DROP = 1001; // 0x3e9
  7037. field public static final int CDMA_INTERCEPT = 1002; // 0x3ea
  7038. field public static final int CDMA_LOCKED_UNTIL_POWER_CYCLE = 1000; // 0x3e8
  7039. field public static final int CDMA_NOT_EMERGENCY = 1008; // 0x3f0
  7040. field public static final int CDMA_PREEMPTED = 1007; // 0x3ef
  7041. field public static final int CDMA_REORDER = 1003; // 0x3eb
  7042. field public static final int CDMA_RETRY_ORDER = 1005; // 0x3ed
  7043. field public static final int CDMA_SO_REJECT = 1004; // 0x3ec
  7044. field public static final int CHANNEL_NOT_AVAIL = 44; // 0x2c
  7045. field public static final int CHANNEL_UNACCEPTABLE = 6; // 0x6
  7046. field public static final int CONDITIONAL_IE_ERROR = 100; // 0x64
  7047. field public static final int DESTINATION_OUT_OF_ORDER = 27; // 0x1b
  7048. field public static final int ERROR_UNSPECIFIED = 65535; // 0xffff
  7049. field public static final int FACILITY_REJECTED = 29; // 0x1d
  7050. field public static final int FDN_BLOCKED = 241; // 0xf1
  7051. field public static final int IMEI_NOT_ACCEPTED = 243; // 0xf3
  7052. field public static final int IMSI_UNKNOWN_IN_VLR = 242; // 0xf2
  7053. field public static final int INCOMING_CALLS_BARRED_WITHIN_CUG = 55; // 0x37
  7054. field public static final int INCOMPATIBLE_DESTINATION = 88; // 0x58
  7055. field public static final int INFORMATION_ELEMENT_NON_EXISTENT = 99; // 0x63
  7056. field public static final int INTERWORKING_UNSPECIFIED = 127; // 0x7f
  7057. field public static final int INVALID_MANDATORY_INFORMATION = 96; // 0x60
  7058. field public static final int INVALID_NUMBER_FORMAT = 28; // 0x1c
  7059. field public static final int INVALID_TRANSACTION_IDENTIFIER = 81; // 0x51
  7060. field public static final int MESSAGE_NOT_COMPATIBLE_WITH_PROTOCOL_STATE = 101; // 0x65
  7061. field public static final int MESSAGE_TYPE_NON_IMPLEMENTED = 97; // 0x61
  7062. field public static final int MESSAGE_TYPE_NOT_COMPATIBLE_WITH_PROTOCOL_STATE = 98; // 0x62
  7063. field public static final int NETWORK_DETACH = 261; // 0x105
  7064. field public static final int NETWORK_OUT_OF_ORDER = 38; // 0x26
  7065. field public static final int NETWORK_REJECT = 252; // 0xfc
  7066. field public static final int NETWORK_RESP_TIMEOUT = 251; // 0xfb
  7067. field public static final int NORMAL = 16; // 0x10
  7068. field public static final int NORMAL_UNSPECIFIED = 31; // 0x1f
  7069. field public static final int NOT_VALID = -1; // 0xffffffff
  7070. field public static final int NO_ANSWER_FROM_USER = 19; // 0x13
  7071. field public static final int NO_CIRCUIT_AVAIL = 34; // 0x22
  7072. field public static final int NO_DISCONNECT_CAUSE_AVAILABLE = 0; // 0x0
  7073. field public static final int NO_ROUTE_TO_DESTINATION = 3; // 0x3
  7074. field public static final int NO_USER_RESPONDING = 18; // 0x12
  7075. field public static final int NO_VALID_SIM = 249; // 0xf9
  7076. field public static final int NUMBER_CHANGED = 22; // 0x16
  7077. field public static final int OEM_CAUSE_1 = 61441; // 0xf001
  7078. field public static final int OEM_CAUSE_10 = 61450; // 0xf00a
  7079. field public static final int OEM_CAUSE_11 = 61451; // 0xf00b
  7080. field public static final int OEM_CAUSE_12 = 61452; // 0xf00c
  7081. field public static final int OEM_CAUSE_13 = 61453; // 0xf00d
  7082. field public static final int OEM_CAUSE_14 = 61454; // 0xf00e
  7083. field public static final int OEM_CAUSE_15 = 61455; // 0xf00f
  7084. field public static final int OEM_CAUSE_2 = 61442; // 0xf002
  7085. field public static final int OEM_CAUSE_3 = 61443; // 0xf003
  7086. field public static final int OEM_CAUSE_4 = 61444; // 0xf004
  7087. field public static final int OEM_CAUSE_5 = 61445; // 0xf005
  7088. field public static final int OEM_CAUSE_6 = 61446; // 0xf006
  7089. field public static final int OEM_CAUSE_7 = 61447; // 0xf007
  7090. field public static final int OEM_CAUSE_8 = 61448; // 0xf008
  7091. field public static final int OEM_CAUSE_9 = 61449; // 0xf009
  7092. field public static final int ONLY_DIGITAL_INFORMATION_BEARER_AVAILABLE = 70; // 0x46
  7093. field public static final int OPERATOR_DETERMINED_BARRING = 8; // 0x8
  7094. field public static final int OUT_OF_SRV = 248; // 0xf8
  7095. field public static final int PREEMPTION = 25; // 0x19
  7096. field public static final int PROTOCOL_ERROR_UNSPECIFIED = 111; // 0x6f
  7097. field public static final int QOS_NOT_AVAIL = 49; // 0x31
  7098. field public static final int RADIO_ACCESS_FAILURE = 253; // 0xfd
  7099. field public static final int RADIO_INTERNAL_ERROR = 250; // 0xfa
  7100. field public static final int RADIO_LINK_FAILURE = 254; // 0xfe
  7101. field public static final int RADIO_LINK_LOST = 255; // 0xff
  7102. field public static final int RADIO_OFF = 247; // 0xf7
  7103. field public static final int RADIO_RELEASE_ABNORMAL = 259; // 0x103
  7104. field public static final int RADIO_RELEASE_NORMAL = 258; // 0x102
  7105. field public static final int RADIO_SETUP_FAILURE = 257; // 0x101
  7106. field public static final int RADIO_UPLINK_FAILURE = 256; // 0x100
  7107. field public static final int RECOVERY_ON_TIMER_EXPIRED = 102; // 0x66
  7108. field public static final int REQUESTED_FACILITY_NOT_IMPLEMENTED = 69; // 0x45
  7109. field public static final int REQUESTED_FACILITY_NOT_SUBSCRIBED = 50; // 0x32
  7110. field public static final int RESOURCES_UNAVAILABLE_OR_UNSPECIFIED = 47; // 0x2f
  7111. field public static final int SEMANTICALLY_INCORRECT_MESSAGE = 95; // 0x5f
  7112. field public static final int SERVICE_OPTION_NOT_AVAILABLE = 63; // 0x3f
  7113. field public static final int SERVICE_OR_OPTION_NOT_IMPLEMENTED = 79; // 0x4f
  7114. field public static final int STATUS_ENQUIRY = 30; // 0x1e
  7115. field public static final int SWITCHING_CONGESTION = 42; // 0x2a
  7116. field public static final int TEMPORARY_FAILURE = 41; // 0x29
  7117. field public static final int UNOBTAINABLE_NUMBER = 1; // 0x1
  7118. field public static final int USER_NOT_MEMBER_OF_CUG = 87; // 0x57
  7119. }
  7120. public class ServiceState implements android.os.Parcelable {
  7121. method @Nullable public android.telephony.NetworkRegistrationInfo getNetworkRegistrationInfo(int, int);
  7122. method @NonNull public java.util.List<android.telephony.NetworkRegistrationInfo> getNetworkRegistrationInfoList();
  7123. method @NonNull public java.util.List<android.telephony.NetworkRegistrationInfo> getNetworkRegistrationInfoListForDomain(int);
  7124. method @NonNull public java.util.List<android.telephony.NetworkRegistrationInfo> getNetworkRegistrationInfoListForTransportType(int);
  7125. field public static final int ROAMING_TYPE_DOMESTIC = 2; // 0x2
  7126. field public static final int ROAMING_TYPE_INTERNATIONAL = 3; // 0x3
  7127. field public static final int ROAMING_TYPE_NOT_ROAMING = 0; // 0x0
  7128. field public static final int ROAMING_TYPE_UNKNOWN = 1; // 0x1
  7129. }
  7130. public final class SmsManager {
  7131. method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public void sendMultipartTextMessageWithoutPersisting(String, String, java.util.List<java.lang.String>, java.util.List<android.app.PendingIntent>, java.util.List<android.app.PendingIntent>);
  7132. field public static final int RESULT_CANCELLED = 23; // 0x17
  7133. field public static final int RESULT_ENCODING_ERROR = 18; // 0x12
  7134. field public static final int RESULT_ERROR_FDN_CHECK_FAILURE = 6; // 0x6
  7135. field public static final int RESULT_ERROR_NONE = 0; // 0x0
  7136. field public static final int RESULT_INTERNAL_ERROR = 21; // 0x15
  7137. field public static final int RESULT_INVALID_ARGUMENTS = 11; // 0xb
  7138. field public static final int RESULT_INVALID_SMSC_ADDRESS = 19; // 0x13
  7139. field public static final int RESULT_INVALID_SMS_FORMAT = 14; // 0xe
  7140. field public static final int RESULT_INVALID_STATE = 12; // 0xc
  7141. field public static final int RESULT_MODEM_ERROR = 16; // 0x10
  7142. field public static final int RESULT_NETWORK_ERROR = 17; // 0x11
  7143. field public static final int RESULT_NETWORK_REJECT = 10; // 0xa
  7144. field public static final int RESULT_NO_MEMORY = 13; // 0xd
  7145. field public static final int RESULT_NO_RESOURCES = 22; // 0x16
  7146. field public static final int RESULT_OPERATION_NOT_ALLOWED = 20; // 0x14
  7147. field public static final int RESULT_RADIO_NOT_AVAILABLE = 9; // 0x9
  7148. field public static final int RESULT_REQUEST_NOT_SUPPORTED = 24; // 0x18
  7149. field public static final int RESULT_SYSTEM_ERROR = 15; // 0xf
  7150. }
  7151. public class SubscriptionInfo implements android.os.Parcelable {
  7152. method @Nullable public java.util.List<android.telephony.UiccAccessRule> getAccessRules();
  7153. method public int getProfileClass();
  7154. }
  7155. public class SubscriptionManager {
  7156. method public java.util.List<android.telephony.SubscriptionInfo> getAvailableSubscriptionInfoList();
  7157. method @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) public int getEnabledSubscriptionId(int);
  7158. method @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) public boolean isSubscriptionEnabled(int);
  7159. method public void requestEmbeddedSubscriptionInfoListRefresh();
  7160. method public void requestEmbeddedSubscriptionInfoListRefresh(int);
  7161. method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public void setDefaultDataSubId(int);
  7162. method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public void setDefaultSmsSubId(int);
  7163. method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public void setPreferredDataSubscriptionId(int, boolean, @Nullable java.util.concurrent.Executor, @Nullable java.util.function.Consumer<java.lang.Integer>);
  7164. method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public boolean setSubscriptionEnabled(int, boolean);
  7165. field @NonNull public static final android.net.Uri ADVANCED_CALLING_ENABLED_CONTENT_URI;
  7166. field public static final int PROFILE_CLASS_DEFAULT = -1; // 0xffffffff
  7167. field public static final int PROFILE_CLASS_OPERATIONAL = 2; // 0x2
  7168. field public static final int PROFILE_CLASS_PROVISIONING = 1; // 0x1
  7169. field public static final int PROFILE_CLASS_TESTING = 0; // 0x0
  7170. field public static final int PROFILE_CLASS_UNSET = -1; // 0xffffffff
  7171. field @NonNull public static final android.net.Uri VT_ENABLED_CONTENT_URI;
  7172. field @NonNull public static final android.net.Uri WFC_ENABLED_CONTENT_URI;
  7173. field @NonNull public static final android.net.Uri WFC_MODE_CONTENT_URI;
  7174. field @NonNull public static final android.net.Uri WFC_ROAMING_ENABLED_CONTENT_URI;
  7175. field @NonNull public static final android.net.Uri WFC_ROAMING_MODE_CONTENT_URI;
  7176. }
  7177. public static class SubscriptionPlan.Builder {
  7178. method @Deprecated public static android.telephony.SubscriptionPlan.Builder createRecurringDaily(java.time.ZonedDateTime);
  7179. method @Deprecated public static android.telephony.SubscriptionPlan.Builder createRecurringMonthly(java.time.ZonedDateTime);
  7180. method @Deprecated public static android.telephony.SubscriptionPlan.Builder createRecurringWeekly(java.time.ZonedDateTime);
  7181. }
  7182. public final class TelephonyHistogram implements android.os.Parcelable {
  7183. ctor public TelephonyHistogram(int, int, int);
  7184. ctor public TelephonyHistogram(android.telephony.TelephonyHistogram);
  7185. ctor public TelephonyHistogram(android.os.Parcel);
  7186. method public void addTimeTaken(int);
  7187. method public int describeContents();
  7188. method public int getAverageTime();
  7189. method public int getBucketCount();
  7190. method public int[] getBucketCounters();
  7191. method public int[] getBucketEndPoints();
  7192. method public int getCategory();
  7193. method public int getId();
  7194. method public int getMaxTime();
  7195. method public int getMinTime();
  7196. method public int getSampleCount();
  7197. method public void writeToParcel(android.os.Parcel, int);
  7198. field @NonNull public static final android.os.Parcelable.Creator<android.telephony.TelephonyHistogram> CREATOR;
  7199. field public static final int TELEPHONY_CATEGORY_RIL = 1; // 0x1
  7200. }
  7201. public class TelephonyManager {
  7202. method @Deprecated @RequiresPermission(android.Manifest.permission.CALL_PHONE) public void call(String, String);
  7203. method public int checkCarrierPrivilegesForPackage(String);
  7204. method public int checkCarrierPrivilegesForPackageAnyPhone(String);
  7205. method public void dial(String);
  7206. method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public boolean disableDataConnectivity();
  7207. method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public boolean enableDataConnectivity();
  7208. method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public boolean enableModemForSlot(int, boolean);
  7209. method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public void enableVideoCalling(boolean);
  7210. method @Nullable @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) public String getAidForAppType(int);
  7211. method @Deprecated @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) public java.util.List<android.service.carrier.CarrierIdentifier> getAllowedCarriers(int);
  7212. method public java.util.List<java.lang.String> getCarrierPackageNamesForIntent(android.content.Intent);
  7213. method public java.util.List<java.lang.String> getCarrierPackageNamesForIntentAndPhone(android.content.Intent, int);
  7214. method @Nullable @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) public android.telephony.CarrierRestrictionRules getCarrierRestrictionRules();
  7215. method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public String getCdmaMdn();
  7216. method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public String getCdmaMdn(int);
  7217. method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public String getCdmaMin();
  7218. method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public String getCdmaMin(int);
  7219. method public String getCdmaPrlVersion();
  7220. method public int getCurrentPhoneType();
  7221. method public int getCurrentPhoneType(int);
  7222. method @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) public int getDataActivationState();
  7223. method @Deprecated public boolean getDataEnabled();
  7224. method @Deprecated public boolean getDataEnabled(int);
  7225. method @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) public boolean getEmergencyCallbackMode();
  7226. method @Nullable @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) public String getIsimDomain();
  7227. method @Nullable @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) public String getIsimIst();
  7228. method @NonNull @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) public java.util.Map<java.lang.Integer,java.lang.Integer> getLogicalToPhysicalSlotMapping();
  7229. method public static long getMaxNumberVerificationTimeoutMillis();
  7230. method @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) public long getPreferredNetworkTypeBitmask();
  7231. method @RequiresPermission(anyOf={android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE, android.Manifest.permission.READ_PHONE_STATE}) public int getRadioPowerState();
  7232. method public int getSimApplicationState();
  7233. method public int getSimCardState();
  7234. method @Nullable @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) public java.util.Locale getSimLocale();
  7235. method @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) public long getSupportedRadioAccessFamily();
  7236. method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public java.util.List<android.telephony.TelephonyHistogram> getTelephonyHistograms();
  7237. method @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) public android.telephony.UiccSlotInfo[] getUiccSlotsInfo();
  7238. method @Nullable public android.os.Bundle getVisualVoicemailSettings();
  7239. method @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) public int getVoiceActivationState();
  7240. method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public boolean handlePinMmi(String);
  7241. method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public boolean handlePinMmiForSubscriber(int, String);
  7242. method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public boolean iccCloseLogicalChannelBySlot(int, int);
  7243. method @Nullable @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public android.telephony.IccOpenLogicalChannelResponse iccOpenLogicalChannelBySlot(int, @Nullable String, int);
  7244. method @NonNull @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public String iccTransmitApduBasicChannelBySlot(int, int, int, int, int, int, @Nullable String);
  7245. method @Nullable @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public String iccTransmitApduLogicalChannelBySlot(int, int, int, int, int, int, int, @Nullable String);
  7246. method public boolean isDataConnectivityPossible();
  7247. method @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) public boolean isEmergencyAssistanceEnabled();
  7248. method @Deprecated @RequiresPermission(anyOf={android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE, android.Manifest.permission.READ_PHONE_STATE}) public boolean isIdle();
  7249. method @Deprecated @RequiresPermission(anyOf={android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE, android.Manifest.permission.READ_PHONE_STATE}) public boolean isOffhook();
  7250. method @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) public boolean isPotentialEmergencyNumber(@NonNull String);
  7251. method @Deprecated @RequiresPermission(anyOf={android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE, android.Manifest.permission.READ_PHONE_STATE}) public boolean isRadioOn();
  7252. method @Deprecated @RequiresPermission(anyOf={android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE, android.Manifest.permission.READ_PHONE_STATE}) public boolean isRinging();
  7253. method @RequiresPermission(anyOf={android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE, android.Manifest.permission.READ_PHONE_STATE}) public boolean isVideoCallingEnabled();
  7254. method @Deprecated @RequiresPermission(android.Manifest.permission.READ_PHONE_STATE) public boolean isVisualVoicemailEnabled(android.telecom.PhoneAccountHandle);
  7255. method public boolean needsOtaServiceProvisioning();
  7256. method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public boolean rebootRadio();
  7257. method @RequiresPermission(allOf={android.Manifest.permission.ACCESS_FINE_LOCATION, android.Manifest.permission.MODIFY_PHONE_STATE}) public void requestCellInfoUpdate(@NonNull android.os.WorkSource, @NonNull java.util.concurrent.Executor, @NonNull android.telephony.TelephonyManager.CellInfoCallback);
  7258. method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public void requestNumberVerification(@NonNull android.telephony.PhoneNumberRange, long, @NonNull java.util.concurrent.Executor, @NonNull android.telephony.NumberVerificationCallback);
  7259. method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public boolean resetRadioConfig();
  7260. method @Deprecated @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public int setAllowedCarriers(int, java.util.List<android.service.carrier.CarrierIdentifier>);
  7261. method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public void setCarrierDataEnabled(boolean);
  7262. method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public int setCarrierRestrictionRules(@NonNull android.telephony.CarrierRestrictionRules);
  7263. method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public void setDataActivationState(int);
  7264. method @Deprecated @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public void setDataEnabled(int, boolean);
  7265. method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public void setDataRoamingEnabled(boolean);
  7266. method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public void setMultiSimCarrierRestriction(boolean);
  7267. method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public boolean setPreferredNetworkTypeBitmask(long);
  7268. method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public boolean setRadio(boolean);
  7269. method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public boolean setRadioPower(boolean);
  7270. method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public void setSimPowerState(int);
  7271. method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public void setSimPowerStateForSlot(int, int);
  7272. method @Deprecated public void setVisualVoicemailEnabled(android.telecom.PhoneAccountHandle, boolean);
  7273. method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public void setVoiceActivationState(int);
  7274. method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public boolean supplyPin(String);
  7275. method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public int[] supplyPinReportResult(String);
  7276. method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public boolean supplyPuk(String, String);
  7277. method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public int[] supplyPukReportResult(String, String);
  7278. method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public boolean switchSlots(int[]);
  7279. method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public void toggleRadioOnOff();
  7280. method public void updateServiceLocation();
  7281. field @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) public static final String ACTION_ANOMALY_REPORTED = "android.telephony.action.ANOMALY_REPORTED";
  7282. field public static final String ACTION_SIM_APPLICATION_STATE_CHANGED = "android.telephony.action.SIM_APPLICATION_STATE_CHANGED";
  7283. field public static final String ACTION_SIM_CARD_STATE_CHANGED = "android.telephony.action.SIM_CARD_STATE_CHANGED";
  7284. field public static final String ACTION_SIM_SLOT_STATUS_CHANGED = "android.telephony.action.SIM_SLOT_STATUS_CHANGED";
  7285. field public static final int CARRIER_PRIVILEGE_STATUS_ERROR_LOADING_RULES = -2; // 0xfffffffe
  7286. field public static final int CARRIER_PRIVILEGE_STATUS_HAS_ACCESS = 1; // 0x1
  7287. field public static final int CARRIER_PRIVILEGE_STATUS_NO_ACCESS = 0; // 0x0
  7288. field public static final int CARRIER_PRIVILEGE_STATUS_RULES_NOT_LOADED = -1; // 0xffffffff
  7289. field public static final String EXTRA_ANOMALY_DESCRIPTION = "android.telephony.extra.ANOMALY_DESCRIPTION";
  7290. field public static final String EXTRA_ANOMALY_ID = "android.telephony.extra.ANOMALY_ID";
  7291. field public static final String EXTRA_SIM_STATE = "android.telephony.extra.SIM_STATE";
  7292. field public static final String EXTRA_VISUAL_VOICEMAIL_ENABLED_BY_USER_BOOL = "android.telephony.extra.VISUAL_VOICEMAIL_ENABLED_BY_USER_BOOL";
  7293. field public static final String EXTRA_VOICEMAIL_SCRAMBLED_PIN_STRING = "android.telephony.extra.VOICEMAIL_SCRAMBLED_PIN_STRING";
  7294. field public static final long NETWORK_TYPE_BITMASK_1xRTT = 64L; // 0x40L
  7295. field public static final long NETWORK_TYPE_BITMASK_CDMA = 8L; // 0x8L
  7296. field public static final long NETWORK_TYPE_BITMASK_EDGE = 2L; // 0x2L
  7297. field public static final long NETWORK_TYPE_BITMASK_EHRPD = 8192L; // 0x2000L
  7298. field public static final long NETWORK_TYPE_BITMASK_EVDO_0 = 16L; // 0x10L
  7299. field public static final long NETWORK_TYPE_BITMASK_EVDO_A = 32L; // 0x20L
  7300. field public static final long NETWORK_TYPE_BITMASK_EVDO_B = 2048L; // 0x800L
  7301. field public static final long NETWORK_TYPE_BITMASK_GPRS = 1L; // 0x1L
  7302. field public static final long NETWORK_TYPE_BITMASK_GSM = 32768L; // 0x8000L
  7303. field public static final long NETWORK_TYPE_BITMASK_HSDPA = 128L; // 0x80L
  7304. field public static final long NETWORK_TYPE_BITMASK_HSPA = 512L; // 0x200L
  7305. field public static final long NETWORK_TYPE_BITMASK_HSPAP = 16384L; // 0x4000L
  7306. field public static final long NETWORK_TYPE_BITMASK_HSUPA = 256L; // 0x100L
  7307. field public static final long NETWORK_TYPE_BITMASK_IWLAN = 131072L; // 0x20000L
  7308. field public static final long NETWORK_TYPE_BITMASK_LTE = 4096L; // 0x1000L
  7309. field public static final long NETWORK_TYPE_BITMASK_LTE_CA = 262144L; // 0x40000L
  7310. field public static final long NETWORK_TYPE_BITMASK_NR = 524288L; // 0x80000L
  7311. field public static final long NETWORK_TYPE_BITMASK_TD_SCDMA = 65536L; // 0x10000L
  7312. field public static final long NETWORK_TYPE_BITMASK_UMTS = 4L; // 0x4L
  7313. field public static final long NETWORK_TYPE_BITMASK_UNKNOWN = 0L; // 0x0L
  7314. field public static final int RADIO_POWER_OFF = 0; // 0x0
  7315. field public static final int RADIO_POWER_ON = 1; // 0x1
  7316. field public static final int RADIO_POWER_UNAVAILABLE = 2; // 0x2
  7317. field public static final int SET_CARRIER_RESTRICTION_ERROR = 2; // 0x2
  7318. field public static final int SET_CARRIER_RESTRICTION_NOT_SUPPORTED = 1; // 0x1
  7319. field public static final int SET_CARRIER_RESTRICTION_SUCCESS = 0; // 0x0
  7320. field public static final int SIM_ACTIVATION_STATE_ACTIVATED = 2; // 0x2
  7321. field public static final int SIM_ACTIVATION_STATE_ACTIVATING = 1; // 0x1
  7322. field public static final int SIM_ACTIVATION_STATE_DEACTIVATED = 3; // 0x3
  7323. field public static final int SIM_ACTIVATION_STATE_RESTRICTED = 4; // 0x4
  7324. field public static final int SIM_ACTIVATION_STATE_UNKNOWN = 0; // 0x0
  7325. field public static final int SIM_STATE_LOADED = 10; // 0xa
  7326. field public static final int SIM_STATE_PRESENT = 11; // 0xb
  7327. field public static final int SRVCC_STATE_HANDOVER_CANCELED = 3; // 0x3
  7328. field public static final int SRVCC_STATE_HANDOVER_COMPLETED = 1; // 0x1
  7329. field public static final int SRVCC_STATE_HANDOVER_FAILED = 2; // 0x2
  7330. field public static final int SRVCC_STATE_HANDOVER_NONE = -1; // 0xffffffff
  7331. field public static final int SRVCC_STATE_HANDOVER_STARTED = 0; // 0x0
  7332. }
  7333. public final class UiccAccessRule implements android.os.Parcelable {
  7334. ctor public UiccAccessRule(byte[], @Nullable String, long);
  7335. method public int describeContents();
  7336. method public int getCarrierPrivilegeStatus(android.content.pm.PackageInfo);
  7337. method public int getCarrierPrivilegeStatus(android.content.pm.Signature, String);
  7338. method public String getCertificateHexString();
  7339. method @Nullable public String getPackageName();
  7340. method public void writeToParcel(android.os.Parcel, int);
  7341. field @NonNull public static final android.os.Parcelable.Creator<android.telephony.UiccAccessRule> CREATOR;
  7342. }
  7343. public class UiccSlotInfo implements android.os.Parcelable {
  7344. ctor @Deprecated public UiccSlotInfo(boolean, boolean, String, int, int, boolean);
  7345. method public int describeContents();
  7346. method public String getCardId();
  7347. method public int getCardStateInfo();
  7348. method public boolean getIsActive();
  7349. method public boolean getIsEuicc();
  7350. method public boolean getIsExtendedApduSupported();
  7351. method public int getLogicalSlotIdx();
  7352. method public boolean isRemovable();
  7353. method public void writeToParcel(android.os.Parcel, int);
  7354. field public static final int CARD_STATE_INFO_ABSENT = 1; // 0x1
  7355. field public static final int CARD_STATE_INFO_ERROR = 3; // 0x3
  7356. field public static final int CARD_STATE_INFO_PRESENT = 2; // 0x2
  7357. field public static final int CARD_STATE_INFO_RESTRICTED = 4; // 0x4
  7358. field @NonNull public static final android.os.Parcelable.Creator<android.telephony.UiccSlotInfo> CREATOR;
  7359. }
  7360. public abstract class VisualVoicemailService extends android.app.Service {
  7361. method public static final void sendVisualVoicemailSms(android.content.Context, android.telecom.PhoneAccountHandle, String, short, String, android.app.PendingIntent);
  7362. method public static final void setSmsFilterSettings(android.content.Context, android.telecom.PhoneAccountHandle, android.telephony.VisualVoicemailSmsFilterSettings);
  7363. }
  7364. }
  7365. package android.telephony.data {
  7366. public final class DataCallResponse implements android.os.Parcelable {
  7367. method public int describeContents();
  7368. method @NonNull public java.util.List<android.net.LinkAddress> getAddresses();
  7369. method public int getCause();
  7370. method @NonNull public java.util.List<java.net.InetAddress> getDnsAddresses();
  7371. method @NonNull public java.util.List<java.net.InetAddress> getGatewayAddresses();
  7372. method public int getId();
  7373. method @NonNull public String getInterfaceName();
  7374. method public int getLinkStatus();
  7375. method public int getMtu();
  7376. method @NonNull public java.util.List<java.net.InetAddress> getPcscfAddresses();
  7377. method public int getProtocolType();
  7378. method public int getSuggestedRetryTime();
  7379. method public void writeToParcel(android.os.Parcel, int);
  7380. field @NonNull public static final android.os.Parcelable.Creator<android.telephony.data.DataCallResponse> CREATOR;
  7381. field public static final int LINK_STATUS_ACTIVE = 2; // 0x2
  7382. field public static final int LINK_STATUS_DORMANT = 1; // 0x1
  7383. field public static final int LINK_STATUS_INACTIVE = 0; // 0x0
  7384. field public static final int LINK_STATUS_UNKNOWN = -1; // 0xffffffff
  7385. }
  7386. public static final class DataCallResponse.Builder {
  7387. ctor public DataCallResponse.Builder();
  7388. method @NonNull public android.telephony.data.DataCallResponse build();
  7389. method @NonNull public android.telephony.data.DataCallResponse.Builder setAddresses(@NonNull java.util.List<android.net.LinkAddress>);
  7390. method @NonNull public android.telephony.data.DataCallResponse.Builder setCause(int);
  7391. method @NonNull public android.telephony.data.DataCallResponse.Builder setDnsAddresses(@NonNull java.util.List<java.net.InetAddress>);
  7392. method @NonNull public android.telephony.data.DataCallResponse.Builder setGatewayAddresses(@NonNull java.util.List<java.net.InetAddress>);
  7393. method @NonNull public android.telephony.data.DataCallResponse.Builder setId(int);
  7394. method @NonNull public android.telephony.data.DataCallResponse.Builder setInterfaceName(@NonNull String);
  7395. method @NonNull public android.telephony.data.DataCallResponse.Builder setLinkStatus(int);
  7396. method @NonNull public android.telephony.data.DataCallResponse.Builder setMtu(int);
  7397. method @NonNull public android.telephony.data.DataCallResponse.Builder setPcscfAddresses(@NonNull java.util.List<java.net.InetAddress>);
  7398. method @NonNull public android.telephony.data.DataCallResponse.Builder setProtocolType(int);
  7399. method @NonNull public android.telephony.data.DataCallResponse.Builder setSuggestedRetryTime(int);
  7400. }
  7401. public final class DataProfile implements android.os.Parcelable {
  7402. method public int describeContents();
  7403. method @NonNull public String getApn();
  7404. method public int getAuthType();
  7405. method public int getBearerBitmask();
  7406. method public int getMtu();
  7407. method @Nullable public String getPassword();
  7408. method public int getProfileId();
  7409. method public int getProtocolType();
  7410. method public int getRoamingProtocolType();
  7411. method public int getSupportedApnTypesBitmask();
  7412. method public int getType();
  7413. method @Nullable public String getUserName();
  7414. method public boolean isEnabled();
  7415. method public boolean isPersistent();
  7416. method public boolean isPreferred();
  7417. method public void writeToParcel(android.os.Parcel, int);
  7418. field @NonNull public static final android.os.Parcelable.Creator<android.telephony.data.DataProfile> CREATOR;
  7419. field public static final int TYPE_3GPP = 1; // 0x1
  7420. field public static final int TYPE_3GPP2 = 2; // 0x2
  7421. field public static final int TYPE_COMMON = 0; // 0x0
  7422. }
  7423. public static final class DataProfile.Builder {
  7424. ctor public DataProfile.Builder();
  7425. method @NonNull public android.telephony.data.DataProfile build();
  7426. method @NonNull public android.telephony.data.DataProfile.Builder enable(boolean);
  7427. method @NonNull public android.telephony.data.DataProfile.Builder setApn(@NonNull String);
  7428. method @NonNull public android.telephony.data.DataProfile.Builder setAuthType(int);
  7429. method @NonNull public android.telephony.data.DataProfile.Builder setBearerBitmask(int);
  7430. method @NonNull public android.telephony.data.DataProfile.Builder setMtu(int);
  7431. method @NonNull public android.telephony.data.DataProfile.Builder setPassword(@NonNull String);
  7432. method @NonNull public android.telephony.data.DataProfile.Builder setPersistent(boolean);
  7433. method @NonNull public android.telephony.data.DataProfile.Builder setPreferred(boolean);
  7434. method @NonNull public android.telephony.data.DataProfile.Builder setProfileId(int);
  7435. method @NonNull public android.telephony.data.DataProfile.Builder setProtocolType(int);
  7436. method @NonNull public android.telephony.data.DataProfile.Builder setRoamingProtocolType(int);
  7437. method @NonNull public android.telephony.data.DataProfile.Builder setSupportedApnTypesBitmask(int);
  7438. method @NonNull public android.telephony.data.DataProfile.Builder setType(int);
  7439. method @NonNull public android.telephony.data.DataProfile.Builder setUserName(@NonNull String);
  7440. }
  7441. public abstract class DataService extends android.app.Service {
  7442. ctor public DataService();
  7443. method public android.os.IBinder onBind(android.content.Intent);
  7444. method @Nullable public abstract android.telephony.data.DataService.DataServiceProvider onCreateDataServiceProvider(int);
  7445. field public static final int REQUEST_REASON_HANDOVER = 3; // 0x3
  7446. field public static final int REQUEST_REASON_NORMAL = 1; // 0x1
  7447. field public static final int REQUEST_REASON_SHUTDOWN = 2; // 0x2
  7448. field public static final int REQUEST_REASON_UNKNOWN = 0; // 0x0
  7449. field public static final String SERVICE_INTERFACE = "android.telephony.data.DataService";
  7450. }
  7451. public abstract class DataService.DataServiceProvider implements java.lang.AutoCloseable {
  7452. ctor public DataService.DataServiceProvider(int);
  7453. method public abstract void close();
  7454. method public void deactivateDataCall(int, int, @Nullable android.telephony.data.DataServiceCallback);
  7455. method public final int getSlotIndex();
  7456. method public final void notifyDataCallListChanged(java.util.List<android.telephony.data.DataCallResponse>);
  7457. method public void requestDataCallList(@NonNull android.telephony.data.DataServiceCallback);
  7458. method public void setDataProfile(@NonNull java.util.List<android.telephony.data.DataProfile>, boolean, @NonNull android.telephony.data.DataServiceCallback);
  7459. method public void setInitialAttachApn(@NonNull android.telephony.data.DataProfile, boolean, @NonNull android.telephony.data.DataServiceCallback);
  7460. method public void setupDataCall(int, @NonNull android.telephony.data.DataProfile, boolean, boolean, int, @Nullable android.net.LinkProperties, @NonNull android.telephony.data.DataServiceCallback);
  7461. }
  7462. public class DataServiceCallback {
  7463. method public void onDataCallListChanged(@NonNull java.util.List<android.telephony.data.DataCallResponse>);
  7464. method public void onDeactivateDataCallComplete(int);
  7465. method public void onRequestDataCallListComplete(int, @NonNull java.util.List<android.telephony.data.DataCallResponse>);
  7466. method public void onSetDataProfileComplete(int);
  7467. method public void onSetInitialAttachApnComplete(int);
  7468. method public void onSetupDataCallComplete(int, @Nullable android.telephony.data.DataCallResponse);
  7469. field public static final int RESULT_ERROR_BUSY = 3; // 0x3
  7470. field public static final int RESULT_ERROR_ILLEGAL_STATE = 4; // 0x4
  7471. field public static final int RESULT_ERROR_INVALID_ARG = 2; // 0x2
  7472. field public static final int RESULT_ERROR_UNSUPPORTED = 1; // 0x1
  7473. field public static final int RESULT_SUCCESS = 0; // 0x0
  7474. }
  7475. public abstract class QualifiedNetworksService extends android.app.Service {
  7476. ctor public QualifiedNetworksService();
  7477. method @NonNull public abstract android.telephony.data.QualifiedNetworksService.NetworkAvailabilityProvider onCreateNetworkAvailabilityProvider(int);
  7478. field public static final String QUALIFIED_NETWORKS_SERVICE_INTERFACE = "android.telephony.data.QualifiedNetworksService";
  7479. }
  7480. public abstract class QualifiedNetworksService.NetworkAvailabilityProvider implements java.lang.AutoCloseable {
  7481. ctor public QualifiedNetworksService.NetworkAvailabilityProvider(int);
  7482. method public abstract void close();
  7483. method public final int getSlotIndex();
  7484. method public final void updateQualifiedNetworkTypes(int, @NonNull java.util.List<java.lang.Integer>);
  7485. }
  7486. }
  7487. package android.telephony.euicc {
  7488. public final class DownloadableSubscription implements android.os.Parcelable {
  7489. method public java.util.List<android.telephony.UiccAccessRule> getAccessRules();
  7490. method @Nullable public String getCarrierName();
  7491. }
  7492. public static final class DownloadableSubscription.Builder {
  7493. ctor public DownloadableSubscription.Builder();
  7494. ctor public DownloadableSubscription.Builder(android.telephony.euicc.DownloadableSubscription);
  7495. method public android.telephony.euicc.DownloadableSubscription build();
  7496. method public android.telephony.euicc.DownloadableSubscription.Builder setAccessRules(java.util.List<android.telephony.UiccAccessRule>);
  7497. method public android.telephony.euicc.DownloadableSubscription.Builder setCarrierName(String);
  7498. method public android.telephony.euicc.DownloadableSubscription.Builder setConfirmationCode(String);
  7499. method public android.telephony.euicc.DownloadableSubscription.Builder setEncodedActivationCode(String);
  7500. }
  7501. public class EuiccCardManager {
  7502. method public void authenticateServer(String, String, byte[], byte[], byte[], byte[], java.util.concurrent.Executor, android.telephony.euicc.EuiccCardManager.ResultCallback<byte[]>);
  7503. method public void cancelSession(String, byte[], @android.telephony.euicc.EuiccCardManager.CancelReason int, java.util.concurrent.Executor, android.telephony.euicc.EuiccCardManager.ResultCallback<byte[]>);
  7504. method public void deleteProfile(String, String, java.util.concurrent.Executor, android.telephony.euicc.EuiccCardManager.ResultCallback<java.lang.Void>);
  7505. method public void disableProfile(String, String, boolean, java.util.concurrent.Executor, android.telephony.euicc.EuiccCardManager.ResultCallback<java.lang.Void>);
  7506. method public void listNotifications(String, @android.telephony.euicc.EuiccNotification.Event int, java.util.concurrent.Executor, android.telephony.euicc.EuiccCardManager.ResultCallback<android.telephony.euicc.EuiccNotification[]>);
  7507. method public void loadBoundProfilePackage(String, byte[], java.util.concurrent.Executor, android.telephony.euicc.EuiccCardManager.ResultCallback<byte[]>);
  7508. method public void prepareDownload(String, @Nullable byte[], byte[], byte[], byte[], java.util.concurrent.Executor, android.telephony.euicc.EuiccCardManager.ResultCallback<byte[]>);
  7509. method public void removeNotificationFromList(String, int, java.util.concurrent.Executor, android.telephony.euicc.EuiccCardManager.ResultCallback<java.lang.Void>);
  7510. method public void requestAllProfiles(String, java.util.concurrent.Executor, android.telephony.euicc.EuiccCardManager.ResultCallback<android.service.euicc.EuiccProfileInfo[]>);
  7511. method public void requestDefaultSmdpAddress(String, java.util.concurrent.Executor, android.telephony.euicc.EuiccCardManager.ResultCallback<java.lang.String>);
  7512. method public void requestEuiccChallenge(String, java.util.concurrent.Executor, android.telephony.euicc.EuiccCardManager.ResultCallback<byte[]>);
  7513. method public void requestEuiccInfo1(String, java.util.concurrent.Executor, android.telephony.euicc.EuiccCardManager.ResultCallback<byte[]>);
  7514. method public void requestEuiccInfo2(String, java.util.concurrent.Executor, android.telephony.euicc.EuiccCardManager.ResultCallback<byte[]>);
  7515. method public void requestProfile(String, String, java.util.concurrent.Executor, android.telephony.euicc.EuiccCardManager.ResultCallback<android.service.euicc.EuiccProfileInfo>);
  7516. method public void requestRulesAuthTable(String, java.util.concurrent.Executor, android.telephony.euicc.EuiccCardManager.ResultCallback<android.telephony.euicc.EuiccRulesAuthTable>);
  7517. method public void requestSmdsAddress(String, java.util.concurrent.Executor, android.telephony.euicc.EuiccCardManager.ResultCallback<java.lang.String>);
  7518. method public void resetMemory(String, @android.telephony.euicc.EuiccCardManager.ResetOption int, java.util.concurrent.Executor, android.telephony.euicc.EuiccCardManager.ResultCallback<java.lang.Void>);
  7519. method public void retrieveNotification(String, int, java.util.concurrent.Executor, android.telephony.euicc.EuiccCardManager.ResultCallback<android.telephony.euicc.EuiccNotification>);
  7520. method public void retrieveNotificationList(String, @android.telephony.euicc.EuiccNotification.Event int, java.util.concurrent.Executor, android.telephony.euicc.EuiccCardManager.ResultCallback<android.telephony.euicc.EuiccNotification[]>);
  7521. method public void setDefaultSmdpAddress(String, String, java.util.concurrent.Executor, android.telephony.euicc.EuiccCardManager.ResultCallback<java.lang.Void>);
  7522. method public void setNickname(String, String, String, java.util.concurrent.Executor, android.telephony.euicc.EuiccCardManager.ResultCallback<java.lang.Void>);
  7523. method public void switchToProfile(String, String, boolean, java.util.concurrent.Executor, android.telephony.euicc.EuiccCardManager.ResultCallback<android.service.euicc.EuiccProfileInfo>);
  7524. field public static final int CANCEL_REASON_END_USER_REJECTED = 0; // 0x0
  7525. field public static final int CANCEL_REASON_POSTPONED = 1; // 0x1
  7526. field public static final int CANCEL_REASON_PPR_NOT_ALLOWED = 3; // 0x3
  7527. field public static final int CANCEL_REASON_TIMEOUT = 2; // 0x2
  7528. field public static final int RESET_OPTION_DELETE_FIELD_LOADED_TEST_PROFILES = 2; // 0x2
  7529. field public static final int RESET_OPTION_DELETE_OPERATIONAL_PROFILES = 1; // 0x1
  7530. field public static final int RESET_OPTION_RESET_DEFAULT_SMDP_ADDRESS = 4; // 0x4
  7531. field public static final int RESULT_CALLER_NOT_ALLOWED = -3; // 0xfffffffd
  7532. field public static final int RESULT_EUICC_NOT_FOUND = -2; // 0xfffffffe
  7533. field public static final int RESULT_OK = 0; // 0x0
  7534. field public static final int RESULT_UNKNOWN_ERROR = -1; // 0xffffffff
  7535. }
  7536. @java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.SOURCE) @IntDef(prefix={"CANCEL_REASON_"}, value={android.telephony.euicc.EuiccCardManager.CANCEL_REASON_END_USER_REJECTED, android.telephony.euicc.EuiccCardManager.CANCEL_REASON_POSTPONED, android.telephony.euicc.EuiccCardManager.CANCEL_REASON_TIMEOUT, android.telephony.euicc.EuiccCardManager.CANCEL_REASON_PPR_NOT_ALLOWED}) public static @interface EuiccCardManager.CancelReason {
  7537. }
  7538. @java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.SOURCE) @IntDef(flag=true, prefix={"RESET_OPTION_"}, value={android.telephony.euicc.EuiccCardManager.RESET_OPTION_DELETE_OPERATIONAL_PROFILES, android.telephony.euicc.EuiccCardManager.RESET_OPTION_DELETE_FIELD_LOADED_TEST_PROFILES, android.telephony.euicc.EuiccCardManager.RESET_OPTION_RESET_DEFAULT_SMDP_ADDRESS}) public static @interface EuiccCardManager.ResetOption {
  7539. }
  7540. public static interface EuiccCardManager.ResultCallback<T> {
  7541. method public void onComplete(int, T);
  7542. }
  7543. public class EuiccManager {
  7544. method @RequiresPermission(android.Manifest.permission.WRITE_EMBEDDED_SUBSCRIPTIONS) public void continueOperation(android.content.Intent, android.os.Bundle);
  7545. method @RequiresPermission(android.Manifest.permission.WRITE_EMBEDDED_SUBSCRIPTIONS) public void eraseSubscriptions(android.app.PendingIntent);
  7546. method @RequiresPermission(android.Manifest.permission.WRITE_EMBEDDED_SUBSCRIPTIONS) public void getDefaultDownloadableSubscriptionList(android.app.PendingIntent);
  7547. method @RequiresPermission(android.Manifest.permission.WRITE_EMBEDDED_SUBSCRIPTIONS) public void getDownloadableSubscriptionMetadata(android.telephony.euicc.DownloadableSubscription, android.app.PendingIntent);
  7548. method @RequiresPermission(android.Manifest.permission.WRITE_EMBEDDED_SUBSCRIPTIONS) public int getOtaStatus();
  7549. field public static final String ACTION_DELETE_SUBSCRIPTION_PRIVILEGED = "android.telephony.euicc.action.DELETE_SUBSCRIPTION_PRIVILEGED";
  7550. field @RequiresPermission(android.Manifest.permission.WRITE_EMBEDDED_SUBSCRIPTIONS) public static final String ACTION_OTA_STATUS_CHANGED = "android.telephony.euicc.action.OTA_STATUS_CHANGED";
  7551. field public static final String ACTION_PROVISION_EMBEDDED_SUBSCRIPTION = "android.telephony.euicc.action.PROVISION_EMBEDDED_SUBSCRIPTION";
  7552. field public static final String ACTION_RENAME_SUBSCRIPTION_PRIVILEGED = "android.telephony.euicc.action.RENAME_SUBSCRIPTION_PRIVILEGED";
  7553. field public static final String ACTION_TOGGLE_SUBSCRIPTION_PRIVILEGED = "android.telephony.euicc.action.TOGGLE_SUBSCRIPTION_PRIVILEGED";
  7554. field public static final int EUICC_ACTIVATION_TYPE_ACCOUNT_REQUIRED = 4; // 0x4
  7555. field public static final int EUICC_ACTIVATION_TYPE_BACKUP = 2; // 0x2
  7556. field public static final int EUICC_ACTIVATION_TYPE_DEFAULT = 1; // 0x1
  7557. field public static final int EUICC_ACTIVATION_TYPE_TRANSFER = 3; // 0x3
  7558. field public static final int EUICC_OTA_FAILED = 2; // 0x2
  7559. field public static final int EUICC_OTA_IN_PROGRESS = 1; // 0x1
  7560. field public static final int EUICC_OTA_NOT_NEEDED = 4; // 0x4
  7561. field public static final int EUICC_OTA_STATUS_UNAVAILABLE = 5; // 0x5
  7562. field public static final int EUICC_OTA_SUCCEEDED = 3; // 0x3
  7563. field public static final String EXTRA_ACTIVATION_TYPE = "android.telephony.euicc.extra.ACTIVATION_TYPE";
  7564. field public static final String EXTRA_EMBEDDED_SUBSCRIPTION_DOWNLOADABLE_SUBSCRIPTIONS = "android.telephony.euicc.extra.EMBEDDED_SUBSCRIPTION_DOWNLOADABLE_SUBSCRIPTIONS";
  7565. field public static final String EXTRA_ENABLE_SUBSCRIPTION = "android.telephony.euicc.extra.ENABLE_SUBSCRIPTION";
  7566. field public static final String EXTRA_FORCE_PROVISION = "android.telephony.euicc.extra.FORCE_PROVISION";
  7567. field public static final String EXTRA_FROM_SUBSCRIPTION_ID = "android.telephony.euicc.extra.FROM_SUBSCRIPTION_ID";
  7568. field public static final String EXTRA_SUBSCRIPTION_ID = "android.telephony.euicc.extra.SUBSCRIPTION_ID";
  7569. field public static final String EXTRA_SUBSCRIPTION_NICKNAME = "android.telephony.euicc.extra.SUBSCRIPTION_NICKNAME";
  7570. }
  7571. @IntDef(prefix={"EUICC_OTA_"}, value={android.telephony.euicc.EuiccManager.EUICC_OTA_IN_PROGRESS, android.telephony.euicc.EuiccManager.EUICC_OTA_FAILED, android.telephony.euicc.EuiccManager.EUICC_OTA_SUCCEEDED, android.telephony.euicc.EuiccManager.EUICC_OTA_NOT_NEEDED, android.telephony.euicc.EuiccManager.EUICC_OTA_STATUS_UNAVAILABLE}) @java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.SOURCE) public static @interface EuiccManager.OtaStatus {
  7572. }
  7573. public final class EuiccNotification implements android.os.Parcelable {
  7574. ctor public EuiccNotification(int, String, @android.telephony.euicc.EuiccNotification.Event int, @Nullable byte[]);
  7575. method public int describeContents();
  7576. method @Nullable public byte[] getData();
  7577. method @android.telephony.euicc.EuiccNotification.Event public int getEvent();
  7578. method public int getSeq();
  7579. method public String getTargetAddr();
  7580. method public void writeToParcel(android.os.Parcel, int);
  7581. field @android.telephony.euicc.EuiccNotification.Event public static final int ALL_EVENTS = 15; // 0xf
  7582. field @NonNull public static final android.os.Parcelable.Creator<android.telephony.euicc.EuiccNotification> CREATOR;
  7583. field public static final int EVENT_DELETE = 8; // 0x8
  7584. field public static final int EVENT_DISABLE = 4; // 0x4
  7585. field public static final int EVENT_ENABLE = 2; // 0x2
  7586. field public static final int EVENT_INSTALL = 1; // 0x1
  7587. }
  7588. @java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.SOURCE) @IntDef(flag=true, prefix={"EVENT_"}, value={android.telephony.euicc.EuiccNotification.EVENT_INSTALL, android.telephony.euicc.EuiccNotification.EVENT_ENABLE, android.telephony.euicc.EuiccNotification.EVENT_DISABLE, android.telephony.euicc.EuiccNotification.EVENT_DELETE}) public static @interface EuiccNotification.Event {
  7589. }
  7590. public final class EuiccRulesAuthTable implements android.os.Parcelable {
  7591. method public int describeContents();
  7592. method public int findIndex(@android.service.euicc.EuiccProfileInfo.PolicyRule int, android.service.carrier.CarrierIdentifier);
  7593. method public boolean hasPolicyRuleFlag(int, @android.telephony.euicc.EuiccRulesAuthTable.PolicyRuleFlag int);
  7594. method public void writeToParcel(android.os.Parcel, int);
  7595. field @NonNull public static final android.os.Parcelable.Creator<android.telephony.euicc.EuiccRulesAuthTable> CREATOR;
  7596. field public static final int POLICY_RULE_FLAG_CONSENT_REQUIRED = 1; // 0x1
  7597. }
  7598. public static final class EuiccRulesAuthTable.Builder {
  7599. ctor public EuiccRulesAuthTable.Builder(int);
  7600. method public android.telephony.euicc.EuiccRulesAuthTable.Builder add(int, java.util.List<android.service.carrier.CarrierIdentifier>, int);
  7601. method public android.telephony.euicc.EuiccRulesAuthTable build();
  7602. }
  7603. @java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.SOURCE) @IntDef(flag=true, prefix={"POLICY_RULE_FLAG_"}, value={android.telephony.euicc.EuiccRulesAuthTable.POLICY_RULE_FLAG_CONSENT_REQUIRED}) public static @interface EuiccRulesAuthTable.PolicyRuleFlag {
  7604. }
  7605. }
  7606. package android.telephony.ims {
  7607. public final class ImsCallForwardInfo implements android.os.Parcelable {
  7608. ctor public ImsCallForwardInfo(int, int, int, int, @NonNull String, int);
  7609. method public int describeContents();
  7610. method public int getCondition();
  7611. method public String getNumber();
  7612. method public int getServiceClass();
  7613. method public int getStatus();
  7614. method public int getTimeSeconds();
  7615. method public int getToA();
  7616. method public void writeToParcel(android.os.Parcel, int);
  7617. field public static final int CDIV_CF_REASON_ALL = 4; // 0x4
  7618. field public static final int CDIV_CF_REASON_ALL_CONDITIONAL = 5; // 0x5
  7619. field public static final int CDIV_CF_REASON_BUSY = 1; // 0x1
  7620. field public static final int CDIV_CF_REASON_NOT_LOGGED_IN = 6; // 0x6
  7621. field public static final int CDIV_CF_REASON_NOT_REACHABLE = 3; // 0x3
  7622. field public static final int CDIV_CF_REASON_NO_REPLY = 2; // 0x2
  7623. field public static final int CDIV_CF_REASON_UNCONDITIONAL = 0; // 0x0
  7624. field @NonNull public static final android.os.Parcelable.Creator<android.telephony.ims.ImsCallForwardInfo> CREATOR;
  7625. field public static final int STATUS_ACTIVE = 1; // 0x1
  7626. field public static final int STATUS_NOT_ACTIVE = 0; // 0x0
  7627. field public static final int TYPE_OF_ADDRESS_INTERNATIONAL = 145; // 0x91
  7628. field public static final int TYPE_OF_ADDRESS_UNKNOWN = 129; // 0x81
  7629. }
  7630. public final class ImsCallProfile implements android.os.Parcelable {
  7631. ctor public ImsCallProfile();
  7632. ctor public ImsCallProfile(int, int);
  7633. ctor public ImsCallProfile(int, int, android.os.Bundle, android.telephony.ims.ImsStreamMediaProfile);
  7634. method public int describeContents();
  7635. method public String getCallExtra(String);
  7636. method public String getCallExtra(String, String);
  7637. method public boolean getCallExtraBoolean(String);
  7638. method public boolean getCallExtraBoolean(String, boolean);
  7639. method public int getCallExtraInt(String);
  7640. method public int getCallExtraInt(String, int);
  7641. method public android.os.Bundle getCallExtras();
  7642. method public int getCallType();
  7643. method public static int getCallTypeFromVideoState(int);
  7644. method public int getEmergencyCallRouting();
  7645. method public int getEmergencyServiceCategories();
  7646. method @NonNull public java.util.List<java.lang.String> getEmergencyUrns();
  7647. method public android.telephony.ims.ImsStreamMediaProfile getMediaProfile();
  7648. method public int getRestrictCause();
  7649. method public int getServiceType();
  7650. method public static int getVideoStateFromCallType(int);
  7651. method public static int getVideoStateFromImsCallProfile(android.telephony.ims.ImsCallProfile);
  7652. method public boolean hasKnownUserIntentEmergency();
  7653. method public boolean isEmergencyCallTesting();
  7654. method public boolean isVideoCall();
  7655. method public boolean isVideoPaused();
  7656. method public static int presentationToOir(int);
  7657. method public void setCallExtra(String, String);
  7658. method public void setCallExtraBoolean(String, boolean);
  7659. method public void setCallExtraInt(String, int);
  7660. method public void setCallRestrictCause(int);
  7661. method public void setEmergencyCallRouting(int);
  7662. method public void setEmergencyCallTesting(boolean);
  7663. method public void setEmergencyServiceCategories(int);
  7664. method public void setEmergencyUrns(@NonNull java.util.List<java.lang.String>);
  7665. method public void setHasKnownUserIntentEmergency(boolean);
  7666. method public void updateCallExtras(android.telephony.ims.ImsCallProfile);
  7667. method public void updateCallType(android.telephony.ims.ImsCallProfile);
  7668. method public void updateMediaProfile(android.telephony.ims.ImsCallProfile);
  7669. method public void writeToParcel(android.os.Parcel, int);
  7670. field public static final int CALL_RESTRICT_CAUSE_DISABLED = 2; // 0x2
  7671. field public static final int CALL_RESTRICT_CAUSE_HD = 3; // 0x3
  7672. field public static final int CALL_RESTRICT_CAUSE_NONE = 0; // 0x0
  7673. field public static final int CALL_RESTRICT_CAUSE_RAT = 1; // 0x1
  7674. field public static final int CALL_TYPE_VIDEO_N_VOICE = 3; // 0x3
  7675. field public static final int CALL_TYPE_VOICE = 2; // 0x2
  7676. field public static final int CALL_TYPE_VOICE_N_VIDEO = 1; // 0x1
  7677. field public static final int CALL_TYPE_VS = 8; // 0x8
  7678. field public static final int CALL_TYPE_VS_RX = 10; // 0xa
  7679. field public static final int CALL_TYPE_VS_TX = 9; // 0x9
  7680. field public static final int CALL_TYPE_VT = 4; // 0x4
  7681. field public static final int CALL_TYPE_VT_NODIR = 7; // 0x7
  7682. field public static final int CALL_TYPE_VT_RX = 6; // 0x6
  7683. field public static final int CALL_TYPE_VT_TX = 5; // 0x5
  7684. field @NonNull public static final android.os.Parcelable.Creator<android.telephony.ims.ImsCallProfile> CREATOR;
  7685. field public static final int DIALSTRING_NORMAL = 0; // 0x0
  7686. field public static final int DIALSTRING_SS_CONF = 1; // 0x1
  7687. field public static final int DIALSTRING_USSD = 2; // 0x2
  7688. field public static final String EXTRA_ADDITIONAL_CALL_INFO = "AdditionalCallInfo";
  7689. field public static final String EXTRA_ADDITIONAL_SIP_INVITE_FIELDS = "android.telephony.ims.extra.ADDITIONAL_SIP_INVITE_FIELDS";
  7690. field public static final String EXTRA_CALL_RAT_TYPE = "CallRadioTech";
  7691. field public static final String EXTRA_CHILD_NUMBER = "ChildNum";
  7692. field public static final String EXTRA_CNA = "cna";
  7693. field public static final String EXTRA_CNAP = "cnap";
  7694. field public static final String EXTRA_CODEC = "Codec";
  7695. field public static final String EXTRA_DIALSTRING = "dialstring";
  7696. field public static final String EXTRA_DISPLAY_TEXT = "DisplayText";
  7697. field public static final String EXTRA_EMERGENCY_CALL = "e_call";
  7698. field public static final String EXTRA_IS_CALL_PULL = "CallPull";
  7699. field public static final String EXTRA_OI = "oi";
  7700. field public static final String EXTRA_OIR = "oir";
  7701. field public static final String EXTRA_REMOTE_URI = "remote_uri";
  7702. field public static final String EXTRA_USSD = "ussd";
  7703. field public static final int OIR_DEFAULT = 0; // 0x0
  7704. field public static final int OIR_PRESENTATION_NOT_RESTRICTED = 2; // 0x2
  7705. field public static final int OIR_PRESENTATION_PAYPHONE = 4; // 0x4
  7706. field public static final int OIR_PRESENTATION_RESTRICTED = 1; // 0x1
  7707. field public static final int OIR_PRESENTATION_UNKNOWN = 3; // 0x3
  7708. field public static final int SERVICE_TYPE_EMERGENCY = 2; // 0x2
  7709. field public static final int SERVICE_TYPE_NONE = 0; // 0x0
  7710. field public static final int SERVICE_TYPE_NORMAL = 1; // 0x1
  7711. }
  7712. public class ImsCallSessionListener {
  7713. method public void callQualityChanged(@NonNull android.telephony.CallQuality);
  7714. method public void callSessionConferenceExtendFailed(android.telephony.ims.ImsReasonInfo);
  7715. method public void callSessionConferenceExtendReceived(android.telephony.ims.stub.ImsCallSessionImplBase, android.telephony.ims.ImsCallProfile);
  7716. method public void callSessionConferenceExtended(android.telephony.ims.stub.ImsCallSessionImplBase, android.telephony.ims.ImsCallProfile);
  7717. method public void callSessionConferenceStateUpdated(android.telephony.ims.ImsConferenceState);
  7718. method public void callSessionHandover(int, int, android.telephony.ims.ImsReasonInfo);
  7719. method public void callSessionHandoverFailed(int, int, android.telephony.ims.ImsReasonInfo);
  7720. method public void callSessionHeld(android.telephony.ims.ImsCallProfile);
  7721. method public void callSessionHoldFailed(android.telephony.ims.ImsReasonInfo);
  7722. method public void callSessionHoldReceived(android.telephony.ims.ImsCallProfile);
  7723. method public void callSessionInitiated(android.telephony.ims.ImsCallProfile);
  7724. method public void callSessionInitiatedFailed(android.telephony.ims.ImsReasonInfo);
  7725. method public void callSessionInviteParticipantsRequestDelivered();
  7726. method public void callSessionInviteParticipantsRequestFailed(android.telephony.ims.ImsReasonInfo);
  7727. method public void callSessionMayHandover(int, int);
  7728. method public void callSessionMergeComplete(android.telephony.ims.stub.ImsCallSessionImplBase);
  7729. method public void callSessionMergeFailed(android.telephony.ims.ImsReasonInfo);
  7730. method public void callSessionMergeStarted(android.telephony.ims.stub.ImsCallSessionImplBase, android.telephony.ims.ImsCallProfile);
  7731. method public void callSessionMultipartyStateChanged(boolean);
  7732. method public void callSessionProgressing(android.telephony.ims.ImsStreamMediaProfile);
  7733. method public void callSessionRemoveParticipantsRequestDelivered();
  7734. method public void callSessionRemoveParticipantsRequestFailed(android.telephony.ims.ImsReasonInfo);
  7735. method public void callSessionResumeFailed(android.telephony.ims.ImsReasonInfo);
  7736. method public void callSessionResumeReceived(android.telephony.ims.ImsCallProfile);
  7737. method public void callSessionResumed(android.telephony.ims.ImsCallProfile);
  7738. method public void callSessionRttAudioIndicatorChanged(@NonNull android.telephony.ims.ImsStreamMediaProfile);
  7739. method public void callSessionRttMessageReceived(String);
  7740. method public void callSessionRttModifyRequestReceived(android.telephony.ims.ImsCallProfile);
  7741. method public void callSessionRttModifyResponseReceived(int);
  7742. method public void callSessionSuppServiceReceived(android.telephony.ims.ImsSuppServiceNotification);
  7743. method public void callSessionTerminated(android.telephony.ims.ImsReasonInfo);
  7744. method public void callSessionTtyModeReceived(int);
  7745. method public void callSessionUpdateFailed(android.telephony.ims.ImsReasonInfo);
  7746. method public void callSessionUpdateReceived(android.telephony.ims.ImsCallProfile);
  7747. method public void callSessionUpdated(android.telephony.ims.ImsCallProfile);
  7748. method public void callSessionUssdMessageReceived(int, String);
  7749. }
  7750. public final class ImsConferenceState implements android.os.Parcelable {
  7751. method public int describeContents();
  7752. method public static int getConnectionStateForStatus(String);
  7753. method public void writeToParcel(android.os.Parcel, int);
  7754. field @NonNull public static final android.os.Parcelable.Creator<android.telephony.ims.ImsConferenceState> CREATOR;
  7755. field public static final String DISPLAY_TEXT = "display-text";
  7756. field public static final String ENDPOINT = "endpoint";
  7757. field public static final String SIP_STATUS_CODE = "sipstatuscode";
  7758. field public static final String STATUS = "status";
  7759. field public static final String STATUS_ALERTING = "alerting";
  7760. field public static final String STATUS_CONNECTED = "connected";
  7761. field public static final String STATUS_CONNECT_FAIL = "connect-fail";
  7762. field public static final String STATUS_DIALING_IN = "dialing-in";
  7763. field public static final String STATUS_DIALING_OUT = "dialing-out";
  7764. field public static final String STATUS_DISCONNECTED = "disconnected";
  7765. field public static final String STATUS_DISCONNECTING = "disconnecting";
  7766. field public static final String STATUS_MUTED_VIA_FOCUS = "muted-via-focus";
  7767. field public static final String STATUS_ON_HOLD = "on-hold";
  7768. field public static final String STATUS_PENDING = "pending";
  7769. field public static final String STATUS_SEND_ONLY = "sendonly";
  7770. field public static final String STATUS_SEND_RECV = "sendrecv";
  7771. field public static final String USER = "user";
  7772. field public final java.util.HashMap<java.lang.String,android.os.Bundle> mParticipants;
  7773. }
  7774. public final class ImsException extends java.lang.Exception {
  7775. ctor public ImsException(@Nullable String);
  7776. ctor public ImsException(@Nullable String, int);
  7777. ctor public ImsException(@Nullable String, int, @Nullable Throwable);
  7778. method public int getCode();
  7779. field public static final int CODE_ERROR_SERVICE_UNAVAILABLE = 1; // 0x1
  7780. field public static final int CODE_ERROR_UNSPECIFIED = 0; // 0x0
  7781. field public static final int CODE_ERROR_UNSUPPORTED_OPERATION = 2; // 0x2
  7782. }
  7783. public final class ImsExternalCallState implements android.os.Parcelable {
  7784. ctor public ImsExternalCallState(@NonNull String, @NonNull android.net.Uri, @Nullable android.net.Uri, boolean, int, int, boolean);
  7785. method public int describeContents();
  7786. method @NonNull public android.net.Uri getAddress();
  7787. method public int getCallId();
  7788. method public int getCallState();
  7789. method public int getCallType();
  7790. method @Nullable public android.net.Uri getLocalAddress();
  7791. method public boolean isCallHeld();
  7792. method public boolean isCallPullable();
  7793. method public void writeToParcel(android.os.Parcel, int);
  7794. field public static final int CALL_STATE_CONFIRMED = 1; // 0x1
  7795. field public static final int CALL_STATE_TERMINATED = 2; // 0x2
  7796. field @NonNull public static final android.os.Parcelable.Creator<android.telephony.ims.ImsExternalCallState> CREATOR;
  7797. }
  7798. public class ImsMmTelManager {
  7799. method @NonNull public static android.telephony.ims.ImsMmTelManager createForSubscriptionId(int);
  7800. method @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) public int getVoWiFiModeSetting();
  7801. method @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) public int getVoWiFiRoamingModeSetting();
  7802. method @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) public boolean isAdvancedCallingSettingEnabled();
  7803. method @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) public boolean isAvailable(@android.telephony.ims.feature.MmTelFeature.MmTelCapabilities.MmTelCapability int, int);
  7804. method @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) public boolean isCapable(@android.telephony.ims.feature.MmTelFeature.MmTelCapabilities.MmTelCapability int, int);
  7805. method @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) public boolean isVoWiFiRoamingSettingEnabled();
  7806. method @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) public boolean isVoWiFiSettingEnabled();
  7807. method @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) public boolean isVtSettingEnabled();
  7808. method @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) public void registerImsRegistrationCallback(@NonNull java.util.concurrent.Executor, @NonNull android.telephony.ims.ImsMmTelManager.RegistrationCallback) throws android.telephony.ims.ImsException;
  7809. method @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) public void registerMmTelCapabilityCallback(@NonNull java.util.concurrent.Executor, @NonNull android.telephony.ims.ImsMmTelManager.CapabilityCallback) throws android.telephony.ims.ImsException;
  7810. method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public void setAdvancedCallingSettingEnabled(boolean);
  7811. method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public void setRttCapabilitySetting(boolean);
  7812. method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public void setVoWiFiModeSetting(int);
  7813. method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public void setVoWiFiNonPersistent(boolean, int);
  7814. method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public void setVoWiFiRoamingModeSetting(int);
  7815. method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public void setVoWiFiRoamingSettingEnabled(boolean);
  7816. method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public void setVoWiFiSettingEnabled(boolean);
  7817. method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public void setVtSettingEnabled(boolean);
  7818. method @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) public void unregisterImsRegistrationCallback(@NonNull android.telephony.ims.ImsMmTelManager.RegistrationCallback);
  7819. method @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) public void unregisterMmTelCapabilityCallback(@NonNull android.telephony.ims.ImsMmTelManager.CapabilityCallback);
  7820. field public static final int WIFI_MODE_CELLULAR_PREFERRED = 1; // 0x1
  7821. field public static final int WIFI_MODE_WIFI_ONLY = 0; // 0x0
  7822. field public static final int WIFI_MODE_WIFI_PREFERRED = 2; // 0x2
  7823. }
  7824. public static class ImsMmTelManager.CapabilityCallback {
  7825. ctor public ImsMmTelManager.CapabilityCallback();
  7826. method public void onCapabilitiesStatusChanged(@NonNull android.telephony.ims.feature.MmTelFeature.MmTelCapabilities);
  7827. }
  7828. public static class ImsMmTelManager.RegistrationCallback {
  7829. ctor public ImsMmTelManager.RegistrationCallback();
  7830. method public void onRegistered(int);
  7831. method public void onRegistering(int);
  7832. method public void onTechnologyChangeFailed(int, @Nullable android.telephony.ims.ImsReasonInfo);
  7833. method public void onUnregistered(@Nullable android.telephony.ims.ImsReasonInfo);
  7834. }
  7835. public final class ImsReasonInfo implements android.os.Parcelable {
  7836. ctor public ImsReasonInfo(int, int, String);
  7837. method public int describeContents();
  7838. method public int getCode();
  7839. method public int getExtraCode();
  7840. method public String getExtraMessage();
  7841. method public void writeToParcel(android.os.Parcel, int);
  7842. field public static final int CODE_ACCESS_CLASS_BLOCKED = 1512; // 0x5e8
  7843. field public static final int CODE_ANSWERED_ELSEWHERE = 1014; // 0x3f6
  7844. field public static final int CODE_BLACKLISTED_CALL_ID = 506; // 0x1fa
  7845. field public static final int CODE_CALL_BARRED = 240; // 0xf0
  7846. field public static final int CODE_CALL_DROP_IWLAN_TO_LTE_UNAVAILABLE = 1100; // 0x44c
  7847. field public static final int CODE_CALL_END_CAUSE_CALL_PULL = 1016; // 0x3f8
  7848. field public static final int CODE_CALL_PULL_OUT_OF_SYNC = 1015; // 0x3f7
  7849. field public static final int CODE_DATA_DISABLED = 1406; // 0x57e
  7850. field public static final int CODE_DATA_LIMIT_REACHED = 1405; // 0x57d
  7851. field public static final int CODE_DIAL_MODIFIED_TO_DIAL = 246; // 0xf6
  7852. field public static final int CODE_DIAL_MODIFIED_TO_DIAL_VIDEO = 247; // 0xf7
  7853. field public static final int CODE_DIAL_MODIFIED_TO_SS = 245; // 0xf5
  7854. field public static final int CODE_DIAL_MODIFIED_TO_USSD = 244; // 0xf4
  7855. field public static final int CODE_DIAL_VIDEO_MODIFIED_TO_DIAL = 248; // 0xf8
  7856. field public static final int CODE_DIAL_VIDEO_MODIFIED_TO_DIAL_VIDEO = 249; // 0xf9
  7857. field public static final int CODE_DIAL_VIDEO_MODIFIED_TO_SS = 250; // 0xfa
  7858. field public static final int CODE_DIAL_VIDEO_MODIFIED_TO_USSD = 251; // 0xfb
  7859. field public static final int CODE_ECBM_NOT_SUPPORTED = 901; // 0x385
  7860. field public static final int CODE_EMERGENCY_PERM_FAILURE = 364; // 0x16c
  7861. field public static final int CODE_EMERGENCY_TEMP_FAILURE = 363; // 0x16b
  7862. field public static final int CODE_EPDG_TUNNEL_ESTABLISH_FAILURE = 1400; // 0x578
  7863. field public static final int CODE_EPDG_TUNNEL_LOST_CONNECTION = 1402; // 0x57a
  7864. field public static final int CODE_EPDG_TUNNEL_REKEY_FAILURE = 1401; // 0x579
  7865. field public static final int CODE_FDN_BLOCKED = 241; // 0xf1
  7866. field public static final int CODE_IKEV2_AUTH_FAILURE = 1408; // 0x580
  7867. field public static final int CODE_IMEI_NOT_ACCEPTED = 243; // 0xf3
  7868. field public static final int CODE_IWLAN_DPD_FAILURE = 1300; // 0x514
  7869. field public static final int CODE_LOCAL_CALL_BUSY = 142; // 0x8e
  7870. field public static final int CODE_LOCAL_CALL_CS_RETRY_REQUIRED = 146; // 0x92
  7871. field public static final int CODE_LOCAL_CALL_DECLINE = 143; // 0x8f
  7872. field public static final int CODE_LOCAL_CALL_EXCEEDED = 141; // 0x8d
  7873. field public static final int CODE_LOCAL_CALL_RESOURCE_RESERVATION_FAILED = 145; // 0x91
  7874. field public static final int CODE_LOCAL_CALL_TERMINATED = 148; // 0x94
  7875. field public static final int CODE_LOCAL_CALL_VCC_ON_PROGRESSING = 144; // 0x90
  7876. field public static final int CODE_LOCAL_CALL_VOLTE_RETRY_REQUIRED = 147; // 0x93
  7877. field public static final int CODE_LOCAL_ENDED_BY_CONFERENCE_MERGE = 108; // 0x6c
  7878. field public static final int CODE_LOCAL_HO_NOT_FEASIBLE = 149; // 0x95
  7879. field public static final int CODE_LOCAL_ILLEGAL_ARGUMENT = 101; // 0x65
  7880. field public static final int CODE_LOCAL_ILLEGAL_STATE = 102; // 0x66
  7881. field public static final int CODE_LOCAL_IMS_SERVICE_DOWN = 106; // 0x6a
  7882. field public static final int CODE_LOCAL_INTERNAL_ERROR = 103; // 0x67
  7883. field public static final int CODE_LOCAL_LOW_BATTERY = 112; // 0x70
  7884. field public static final int CODE_LOCAL_NETWORK_IP_CHANGED = 124; // 0x7c
  7885. field public static final int CODE_LOCAL_NETWORK_NO_LTE_COVERAGE = 122; // 0x7a
  7886. field public static final int CODE_LOCAL_NETWORK_NO_SERVICE = 121; // 0x79
  7887. field public static final int CODE_LOCAL_NETWORK_ROAMING = 123; // 0x7b
  7888. field public static final int CODE_LOCAL_NOT_REGISTERED = 132; // 0x84
  7889. field public static final int CODE_LOCAL_NO_PENDING_CALL = 107; // 0x6b
  7890. field public static final int CODE_LOCAL_POWER_OFF = 111; // 0x6f
  7891. field public static final int CODE_LOCAL_SERVICE_UNAVAILABLE = 131; // 0x83
  7892. field public static final int CODE_LOW_BATTERY = 505; // 0x1f9
  7893. field public static final int CODE_MAXIMUM_NUMBER_OF_CALLS_REACHED = 1403; // 0x57b
  7894. field public static final int CODE_MEDIA_INIT_FAILED = 401; // 0x191
  7895. field public static final int CODE_MEDIA_NOT_ACCEPTABLE = 403; // 0x193
  7896. field public static final int CODE_MEDIA_NO_DATA = 402; // 0x192
  7897. field public static final int CODE_MEDIA_UNSPECIFIED = 404; // 0x194
  7898. field public static final int CODE_MULTIENDPOINT_NOT_SUPPORTED = 902; // 0x386
  7899. field public static final int CODE_NETWORK_DETACH = 1513; // 0x5e9
  7900. field public static final int CODE_NETWORK_REJECT = 1504; // 0x5e0
  7901. field public static final int CODE_NETWORK_RESP_TIMEOUT = 1503; // 0x5df
  7902. field public static final int CODE_NO_CSFB_IN_CS_ROAM = 1516; // 0x5ec
  7903. field public static final int CODE_NO_VALID_SIM = 1501; // 0x5dd
  7904. field public static final int CODE_OEM_CAUSE_1 = 61441; // 0xf001
  7905. field public static final int CODE_OEM_CAUSE_10 = 61450; // 0xf00a
  7906. field public static final int CODE_OEM_CAUSE_11 = 61451; // 0xf00b
  7907. field public static final int CODE_OEM_CAUSE_12 = 61452; // 0xf00c
  7908. field public static final int CODE_OEM_CAUSE_13 = 61453; // 0xf00d
  7909. field public static final int CODE_OEM_CAUSE_14 = 61454; // 0xf00e
  7910. field public static final int CODE_OEM_CAUSE_15 = 61455; // 0xf00f
  7911. field public static final int CODE_OEM_CAUSE_2 = 61442; // 0xf002
  7912. field public static final int CODE_OEM_CAUSE_3 = 61443; // 0xf003
  7913. field public static final int CODE_OEM_CAUSE_4 = 61444; // 0xf004
  7914. field public static final int CODE_OEM_CAUSE_5 = 61445; // 0xf005
  7915. field public static final int CODE_OEM_CAUSE_6 = 61446; // 0xf006
  7916. field public static final int CODE_OEM_CAUSE_7 = 61447; // 0xf007
  7917. field public static final int CODE_OEM_CAUSE_8 = 61448; // 0xf008
  7918. field public static final int CODE_OEM_CAUSE_9 = 61449; // 0xf009
  7919. field public static final int CODE_RADIO_ACCESS_FAILURE = 1505; // 0x5e1
  7920. field public static final int CODE_RADIO_INTERNAL_ERROR = 1502; // 0x5de
  7921. field public static final int CODE_RADIO_LINK_FAILURE = 1506; // 0x5e2
  7922. field public static final int CODE_RADIO_LINK_LOST = 1507; // 0x5e3
  7923. field public static final int CODE_RADIO_OFF = 1500; // 0x5dc
  7924. field public static final int CODE_RADIO_RELEASE_ABNORMAL = 1511; // 0x5e7
  7925. field public static final int CODE_RADIO_RELEASE_NORMAL = 1510; // 0x5e6
  7926. field public static final int CODE_RADIO_SETUP_FAILURE = 1509; // 0x5e5
  7927. field public static final int CODE_RADIO_UPLINK_FAILURE = 1508; // 0x5e4
  7928. field public static final int CODE_REGISTRATION_ERROR = 1000; // 0x3e8
  7929. field public static final int CODE_REJECTED_ELSEWHERE = 1017; // 0x3f9
  7930. field public static final int CODE_REJECT_1X_COLLISION = 1603; // 0x643
  7931. field public static final int CODE_REJECT_CALL_ON_OTHER_SUB = 1602; // 0x642
  7932. field public static final int CODE_REJECT_CALL_TYPE_NOT_ALLOWED = 1605; // 0x645
  7933. field public static final int CODE_REJECT_CONFERENCE_TTY_NOT_ALLOWED = 1617; // 0x651
  7934. field public static final int CODE_REJECT_INTERNAL_ERROR = 1612; // 0x64c
  7935. field public static final int CODE_REJECT_MAX_CALL_LIMIT_REACHED = 1608; // 0x648
  7936. field public static final int CODE_REJECT_ONGOING_CALL_SETUP = 1607; // 0x647
  7937. field public static final int CODE_REJECT_ONGOING_CALL_TRANSFER = 1611; // 0x64b
  7938. field public static final int CODE_REJECT_ONGOING_CALL_UPGRADE = 1616; // 0x650
  7939. field public static final int CODE_REJECT_ONGOING_CALL_WAITING_DISABLED = 1601; // 0x641
  7940. field public static final int CODE_REJECT_ONGOING_CONFERENCE_CALL = 1618; // 0x652
  7941. field public static final int CODE_REJECT_ONGOING_CS_CALL = 1621; // 0x655
  7942. field public static final int CODE_REJECT_ONGOING_E911_CALL = 1606; // 0x646
  7943. field public static final int CODE_REJECT_ONGOING_ENCRYPTED_CALL = 1620; // 0x654
  7944. field public static final int CODE_REJECT_ONGOING_HANDOVER = 1614; // 0x64e
  7945. field public static final int CODE_REJECT_QOS_FAILURE = 1613; // 0x64d
  7946. field public static final int CODE_REJECT_SERVICE_NOT_REGISTERED = 1604; // 0x644
  7947. field public static final int CODE_REJECT_UNKNOWN = 1600; // 0x640
  7948. field public static final int CODE_REJECT_UNSUPPORTED_SDP_HEADERS = 1610; // 0x64a
  7949. field public static final int CODE_REJECT_UNSUPPORTED_SIP_HEADERS = 1609; // 0x649
  7950. field public static final int CODE_REJECT_VT_AVPF_NOT_ALLOWED = 1619; // 0x653
  7951. field public static final int CODE_REJECT_VT_TTY_NOT_ALLOWED = 1615; // 0x64f
  7952. field public static final int CODE_REMOTE_CALL_DECLINE = 1404; // 0x57c
  7953. field public static final int CODE_SESSION_MODIFICATION_FAILED = 1517; // 0x5ed
  7954. field public static final int CODE_SIP_ALTERNATE_EMERGENCY_CALL = 1514; // 0x5ea
  7955. field public static final int CODE_SIP_AMBIGUOUS = 376; // 0x178
  7956. field public static final int CODE_SIP_BAD_ADDRESS = 337; // 0x151
  7957. field public static final int CODE_SIP_BAD_REQUEST = 331; // 0x14b
  7958. field public static final int CODE_SIP_BUSY = 338; // 0x152
  7959. field public static final int CODE_SIP_CALL_OR_TRANS_DOES_NOT_EXIST = 372; // 0x174
  7960. field public static final int CODE_SIP_CLIENT_ERROR = 342; // 0x156
  7961. field public static final int CODE_SIP_EXTENSION_REQUIRED = 370; // 0x172
  7962. field public static final int CODE_SIP_FORBIDDEN = 332; // 0x14c
  7963. field public static final int CODE_SIP_GLOBAL_ERROR = 362; // 0x16a
  7964. field public static final int CODE_SIP_INTERVAL_TOO_BRIEF = 371; // 0x173
  7965. field public static final int CODE_SIP_LOOP_DETECTED = 373; // 0x175
  7966. field public static final int CODE_SIP_METHOD_NOT_ALLOWED = 366; // 0x16e
  7967. field public static final int CODE_SIP_NOT_ACCEPTABLE = 340; // 0x154
  7968. field public static final int CODE_SIP_NOT_FOUND = 333; // 0x14d
  7969. field public static final int CODE_SIP_NOT_REACHABLE = 341; // 0x155
  7970. field public static final int CODE_SIP_NOT_SUPPORTED = 334; // 0x14e
  7971. field public static final int CODE_SIP_PROXY_AUTHENTICATION_REQUIRED = 367; // 0x16f
  7972. field public static final int CODE_SIP_REDIRECTED = 321; // 0x141
  7973. field public static final int CODE_SIP_REQUEST_CANCELLED = 339; // 0x153
  7974. field public static final int CODE_SIP_REQUEST_ENTITY_TOO_LARGE = 368; // 0x170
  7975. field public static final int CODE_SIP_REQUEST_PENDING = 377; // 0x179
  7976. field public static final int CODE_SIP_REQUEST_TIMEOUT = 335; // 0x14f
  7977. field public static final int CODE_SIP_REQUEST_URI_TOO_LARGE = 369; // 0x171
  7978. field public static final int CODE_SIP_SERVER_ERROR = 354; // 0x162
  7979. field public static final int CODE_SIP_SERVER_INTERNAL_ERROR = 351; // 0x15f
  7980. field public static final int CODE_SIP_SERVER_TIMEOUT = 353; // 0x161
  7981. field public static final int CODE_SIP_SERVICE_UNAVAILABLE = 352; // 0x160
  7982. field public static final int CODE_SIP_TEMPRARILY_UNAVAILABLE = 336; // 0x150
  7983. field public static final int CODE_SIP_TOO_MANY_HOPS = 374; // 0x176
  7984. field public static final int CODE_SIP_TRANSACTION_DOES_NOT_EXIST = 343; // 0x157
  7985. field public static final int CODE_SIP_UNDECIPHERABLE = 378; // 0x17a
  7986. field public static final int CODE_SIP_USER_MARKED_UNWANTED = 365; // 0x16d
  7987. field public static final int CODE_SIP_USER_REJECTED = 361; // 0x169
  7988. field public static final int CODE_SUPP_SVC_CANCELLED = 1202; // 0x4b2
  7989. field public static final int CODE_SUPP_SVC_FAILED = 1201; // 0x4b1
  7990. field public static final int CODE_SUPP_SVC_REINVITE_COLLISION = 1203; // 0x4b3
  7991. field public static final int CODE_TIMEOUT_1XX_WAITING = 201; // 0xc9
  7992. field public static final int CODE_TIMEOUT_NO_ANSWER = 202; // 0xca
  7993. field public static final int CODE_TIMEOUT_NO_ANSWER_CALL_UPDATE = 203; // 0xcb
  7994. field public static final int CODE_UNSPECIFIED = 0; // 0x0
  7995. field public static final int CODE_USER_CANCELLED_SESSION_MODIFICATION = 512; // 0x200
  7996. field public static final int CODE_USER_DECLINE = 504; // 0x1f8
  7997. field public static final int CODE_USER_IGNORE = 503; // 0x1f7
  7998. field public static final int CODE_USER_NOANSWER = 502; // 0x1f6
  7999. field public static final int CODE_USER_REJECTED_SESSION_MODIFICATION = 511; // 0x1ff
  8000. field public static final int CODE_USER_TERMINATED = 501; // 0x1f5
  8001. field public static final int CODE_USER_TERMINATED_BY_REMOTE = 510; // 0x1fe
  8002. field public static final int CODE_UT_CB_PASSWORD_MISMATCH = 821; // 0x335
  8003. field public static final int CODE_UT_NETWORK_ERROR = 804; // 0x324
  8004. field public static final int CODE_UT_NOT_SUPPORTED = 801; // 0x321
  8005. field public static final int CODE_UT_OPERATION_NOT_ALLOWED = 803; // 0x323
  8006. field public static final int CODE_UT_SERVICE_UNAVAILABLE = 802; // 0x322
  8007. field public static final int CODE_UT_SS_MODIFIED_TO_DIAL = 822; // 0x336
  8008. field public static final int CODE_UT_SS_MODIFIED_TO_DIAL_VIDEO = 825; // 0x339
  8009. field public static final int CODE_UT_SS_MODIFIED_TO_SS = 824; // 0x338
  8010. field public static final int CODE_UT_SS_MODIFIED_TO_USSD = 823; // 0x337
  8011. field public static final int CODE_WIFI_LOST = 1407; // 0x57f
  8012. field @NonNull public static final android.os.Parcelable.Creator<android.telephony.ims.ImsReasonInfo> CREATOR;
  8013. field public static final int EXTRA_CODE_CALL_RETRY_BY_SETTINGS = 3; // 0x3
  8014. field public static final int EXTRA_CODE_CALL_RETRY_NORMAL = 1; // 0x1
  8015. field public static final int EXTRA_CODE_CALL_RETRY_SILENT_REDIAL = 2; // 0x2
  8016. field public static final String EXTRA_MSG_SERVICE_NOT_AUTHORIZED = "Forbidden. Not Authorized for Service";
  8017. }
  8018. public class ImsService extends android.app.Service {
  8019. ctor public ImsService();
  8020. method public android.telephony.ims.feature.MmTelFeature createMmTelFeature(int);
  8021. method public android.telephony.ims.feature.RcsFeature createRcsFeature(int);
  8022. method public void disableIms(int);
  8023. method public void enableIms(int);
  8024. method public android.telephony.ims.stub.ImsConfigImplBase getConfig(int);
  8025. method public android.telephony.ims.stub.ImsRegistrationImplBase getRegistration(int);
  8026. method public final void onUpdateSupportedImsFeatures(android.telephony.ims.stub.ImsFeatureConfiguration) throws android.os.RemoteException;
  8027. method public android.telephony.ims.stub.ImsFeatureConfiguration querySupportedImsFeatures();
  8028. method public void readyForFeatureCreation();
  8029. }
  8030. public final class ImsSsData implements android.os.Parcelable {
  8031. ctor public ImsSsData(int, int, int, int, int);
  8032. method public int describeContents();
  8033. method @Nullable public java.util.List<android.telephony.ims.ImsCallForwardInfo> getCallForwardInfo();
  8034. method public int getRequestType();
  8035. method public int getResult();
  8036. method public int getServiceClass();
  8037. method public int getServiceType();
  8038. method @NonNull public java.util.List<android.telephony.ims.ImsSsInfo> getSuppServiceInfo();
  8039. method public int getTeleserviceType();
  8040. method public boolean isTypeBarring();
  8041. method public boolean isTypeCf();
  8042. method public boolean isTypeClip();
  8043. method public boolean isTypeClir();
  8044. method public boolean isTypeColp();
  8045. method public boolean isTypeColr();
  8046. method public boolean isTypeCw();
  8047. method public boolean isTypeIcb();
  8048. method public boolean isTypeInterrogation();
  8049. method public boolean isTypeUnConditional();
  8050. method public void writeToParcel(android.os.Parcel, int);
  8051. field @NonNull public static final android.os.Parcelable.Creator<android.telephony.ims.ImsSsData> CREATOR;
  8052. field public static final int RESULT_SUCCESS = 0; // 0x0
  8053. field public static final int SERVICE_CLASS_DATA = 2; // 0x2
  8054. field public static final int SERVICE_CLASS_DATA_CIRCUIT_ASYNC = 32; // 0x20
  8055. field public static final int SERVICE_CLASS_DATA_CIRCUIT_SYNC = 16; // 0x10
  8056. field public static final int SERVICE_CLASS_DATA_PACKET_ACCESS = 64; // 0x40
  8057. field public static final int SERVICE_CLASS_DATA_PAD = 128; // 0x80
  8058. field public static final int SERVICE_CLASS_FAX = 4; // 0x4
  8059. field public static final int SERVICE_CLASS_NONE = 0; // 0x0
  8060. field public static final int SERVICE_CLASS_SMS = 8; // 0x8
  8061. field public static final int SERVICE_CLASS_VOICE = 1; // 0x1
  8062. field public static final int SS_ACTIVATION = 0; // 0x0
  8063. field public static final int SS_ALL_BARRING = 18; // 0x12
  8064. field public static final int SS_ALL_DATA_TELESERVICES = 3; // 0x3
  8065. field public static final int SS_ALL_TELESERVICES_EXCEPT_SMS = 5; // 0x5
  8066. field public static final int SS_ALL_TELESEVICES = 1; // 0x1
  8067. field public static final int SS_ALL_TELE_AND_BEARER_SERVICES = 0; // 0x0
  8068. field public static final int SS_BAIC = 16; // 0x10
  8069. field public static final int SS_BAIC_ROAMING = 17; // 0x11
  8070. field public static final int SS_BAOC = 13; // 0xd
  8071. field public static final int SS_BAOIC = 14; // 0xe
  8072. field public static final int SS_BAOIC_EXC_HOME = 15; // 0xf
  8073. field public static final int SS_CFU = 0; // 0x0
  8074. field public static final int SS_CFUT = 6; // 0x6
  8075. field public static final int SS_CF_ALL = 4; // 0x4
  8076. field public static final int SS_CF_ALL_CONDITIONAL = 5; // 0x5
  8077. field public static final int SS_CF_BUSY = 1; // 0x1
  8078. field public static final int SS_CF_NOT_REACHABLE = 3; // 0x3
  8079. field public static final int SS_CF_NO_REPLY = 2; // 0x2
  8080. field public static final int SS_CLIP = 7; // 0x7
  8081. field public static final int SS_CLIR = 8; // 0x8
  8082. field public static final int SS_CNAP = 11; // 0xb
  8083. field public static final int SS_COLP = 9; // 0x9
  8084. field public static final int SS_COLR = 10; // 0xa
  8085. field public static final int SS_DEACTIVATION = 1; // 0x1
  8086. field public static final int SS_ERASURE = 4; // 0x4
  8087. field public static final int SS_INCOMING_BARRING = 20; // 0x14
  8088. field public static final int SS_INCOMING_BARRING_ANONYMOUS = 22; // 0x16
  8089. field public static final int SS_INCOMING_BARRING_DN = 21; // 0x15
  8090. field public static final int SS_INTERROGATION = 2; // 0x2
  8091. field public static final int SS_OUTGOING_BARRING = 19; // 0x13
  8092. field public static final int SS_REGISTRATION = 3; // 0x3
  8093. field public static final int SS_SMS_SERVICES = 4; // 0x4
  8094. field public static final int SS_TELEPHONY = 2; // 0x2
  8095. field public static final int SS_WAIT = 12; // 0xc
  8096. }
  8097. public static final class ImsSsData.Builder {
  8098. ctor public ImsSsData.Builder(int, int, int, int, int);
  8099. method @NonNull public android.telephony.ims.ImsSsData build();
  8100. method @NonNull public android.telephony.ims.ImsSsData.Builder setCallForwardingInfo(@NonNull java.util.List<android.telephony.ims.ImsCallForwardInfo>);
  8101. method @NonNull public android.telephony.ims.ImsSsData.Builder setSuppServiceInfo(@NonNull java.util.List<android.telephony.ims.ImsSsInfo>);
  8102. }
  8103. public final class ImsSsInfo implements android.os.Parcelable {
  8104. ctor @Deprecated public ImsSsInfo(int, @Nullable String);
  8105. method public int describeContents();
  8106. method public int getClirInterrogationStatus();
  8107. method public int getClirOutgoingState();
  8108. method @Deprecated public String getIcbNum();
  8109. method @Nullable public String getIncomingCommunicationBarringNumber();
  8110. method public int getProvisionStatus();
  8111. method public int getStatus();
  8112. method public void writeToParcel(android.os.Parcel, int);
  8113. field public static final int CLIR_OUTGOING_DEFAULT = 0; // 0x0
  8114. field public static final int CLIR_OUTGOING_INVOCATION = 1; // 0x1
  8115. field public static final int CLIR_OUTGOING_SUPPRESSION = 2; // 0x2
  8116. field public static final int CLIR_STATUS_NOT_PROVISIONED = 0; // 0x0
  8117. field public static final int CLIR_STATUS_PROVISIONED_PERMANENT = 1; // 0x1
  8118. field public static final int CLIR_STATUS_TEMPORARILY_ALLOWED = 4; // 0x4
  8119. field public static final int CLIR_STATUS_TEMPORARILY_RESTRICTED = 3; // 0x3
  8120. field public static final int CLIR_STATUS_UNKNOWN = 2; // 0x2
  8121. field @NonNull public static final android.os.Parcelable.Creator<android.telephony.ims.ImsSsInfo> CREATOR;
  8122. field public static final int DISABLED = 0; // 0x0
  8123. field public static final int ENABLED = 1; // 0x1
  8124. field public static final int NOT_REGISTERED = -1; // 0xffffffff
  8125. field public static final int SERVICE_NOT_PROVISIONED = 0; // 0x0
  8126. field public static final int SERVICE_PROVISIONED = 1; // 0x1
  8127. field public static final int SERVICE_PROVISIONING_UNKNOWN = -1; // 0xffffffff
  8128. }
  8129. public static final class ImsSsInfo.Builder {
  8130. ctor public ImsSsInfo.Builder(int);
  8131. method @NonNull public android.telephony.ims.ImsSsInfo build();
  8132. method @NonNull public android.telephony.ims.ImsSsInfo.Builder setClirInterrogationStatus(int);
  8133. method @NonNull public android.telephony.ims.ImsSsInfo.Builder setClirOutgoingState(int);
  8134. method @NonNull public android.telephony.ims.ImsSsInfo.Builder setIncomingCommunicationBarringNumber(@NonNull String);
  8135. method @NonNull public android.telephony.ims.ImsSsInfo.Builder setProvisionStatus(int);
  8136. }
  8137. public final class ImsStreamMediaProfile implements android.os.Parcelable {
  8138. ctor public ImsStreamMediaProfile(int, int, int, int, int);
  8139. method public void copyFrom(android.telephony.ims.ImsStreamMediaProfile);
  8140. method public int describeContents();
  8141. method public int getAudioDirection();
  8142. method public int getAudioQuality();
  8143. method public int getRttMode();
  8144. method public int getVideoDirection();
  8145. method public int getVideoQuality();
  8146. method public boolean isReceivingRttAudio();
  8147. method public boolean isRttCall();
  8148. method public void setReceivingRttAudio(boolean);
  8149. method public void setRttMode(int);
  8150. method public void writeToParcel(android.os.Parcel, int);
  8151. field public static final int AUDIO_QUALITY_AMR = 1; // 0x1
  8152. field public static final int AUDIO_QUALITY_AMR_WB = 2; // 0x2
  8153. field public static final int AUDIO_QUALITY_EVRC = 4; // 0x4
  8154. field public static final int AUDIO_QUALITY_EVRC_B = 5; // 0x5
  8155. field public static final int AUDIO_QUALITY_EVRC_NW = 7; // 0x7
  8156. field public static final int AUDIO_QUALITY_EVRC_WB = 6; // 0x6
  8157. field public static final int AUDIO_QUALITY_EVS_FB = 20; // 0x14
  8158. field public static final int AUDIO_QUALITY_EVS_NB = 17; // 0x11
  8159. field public static final int AUDIO_QUALITY_EVS_SWB = 19; // 0x13
  8160. field public static final int AUDIO_QUALITY_EVS_WB = 18; // 0x12
  8161. field public static final int AUDIO_QUALITY_G711A = 13; // 0xd
  8162. field public static final int AUDIO_QUALITY_G711AB = 15; // 0xf
  8163. field public static final int AUDIO_QUALITY_G711U = 11; // 0xb
  8164. field public static final int AUDIO_QUALITY_G722 = 14; // 0xe
  8165. field public static final int AUDIO_QUALITY_G723 = 12; // 0xc
  8166. field public static final int AUDIO_QUALITY_G729 = 16; // 0x10
  8167. field public static final int AUDIO_QUALITY_GSM_EFR = 8; // 0x8
  8168. field public static final int AUDIO_QUALITY_GSM_FR = 9; // 0x9
  8169. field public static final int AUDIO_QUALITY_GSM_HR = 10; // 0xa
  8170. field public static final int AUDIO_QUALITY_NONE = 0; // 0x0
  8171. field public static final int AUDIO_QUALITY_QCELP13K = 3; // 0x3
  8172. field @NonNull public static final android.os.Parcelable.Creator<android.telephony.ims.ImsStreamMediaProfile> CREATOR;
  8173. field public static final int DIRECTION_INACTIVE = 0; // 0x0
  8174. field public static final int DIRECTION_INVALID = -1; // 0xffffffff
  8175. field public static final int DIRECTION_RECEIVE = 1; // 0x1
  8176. field public static final int DIRECTION_SEND = 2; // 0x2
  8177. field public static final int DIRECTION_SEND_RECEIVE = 3; // 0x3
  8178. field public static final int RTT_MODE_DISABLED = 0; // 0x0
  8179. field public static final int RTT_MODE_FULL = 1; // 0x1
  8180. field public static final int VIDEO_QUALITY_NONE = 0; // 0x0
  8181. field public static final int VIDEO_QUALITY_QCIF = 1; // 0x1
  8182. field public static final int VIDEO_QUALITY_QVGA_LANDSCAPE = 2; // 0x2
  8183. field public static final int VIDEO_QUALITY_QVGA_PORTRAIT = 4; // 0x4
  8184. field public static final int VIDEO_QUALITY_VGA_LANDSCAPE = 8; // 0x8
  8185. field public static final int VIDEO_QUALITY_VGA_PORTRAIT = 16; // 0x10
  8186. }
  8187. public final class ImsSuppServiceNotification implements android.os.Parcelable {
  8188. ctor public ImsSuppServiceNotification(int, int, int, int, String, String[]);
  8189. method public int describeContents();
  8190. method public void writeToParcel(android.os.Parcel, int);
  8191. field @NonNull public static final android.os.Parcelable.Creator<android.telephony.ims.ImsSuppServiceNotification> CREATOR;
  8192. field public final int code;
  8193. field public final String[] history;
  8194. field public final int index;
  8195. field public final int notificationType;
  8196. field public final String number;
  8197. field public final int type;
  8198. }
  8199. public class ImsUtListener {
  8200. method public void onSupplementaryServiceIndication(android.telephony.ims.ImsSsData);
  8201. method public void onUtConfigurationCallBarringQueried(int, android.telephony.ims.ImsSsInfo[]);
  8202. method public void onUtConfigurationCallForwardQueried(int, android.telephony.ims.ImsCallForwardInfo[]);
  8203. method public void onUtConfigurationCallWaitingQueried(int, android.telephony.ims.ImsSsInfo[]);
  8204. method public void onUtConfigurationQueried(int, android.os.Bundle);
  8205. method public void onUtConfigurationQueryFailed(int, android.telephony.ims.ImsReasonInfo);
  8206. method public void onUtConfigurationUpdateFailed(int, android.telephony.ims.ImsReasonInfo);
  8207. method public void onUtConfigurationUpdated(int);
  8208. }
  8209. public abstract class ImsVideoCallProvider {
  8210. ctor public ImsVideoCallProvider();
  8211. method public void changeCallDataUsage(long);
  8212. method public void changeCameraCapabilities(android.telecom.VideoProfile.CameraCapabilities);
  8213. method public void changePeerDimensions(int, int);
  8214. method public void changeVideoQuality(int);
  8215. method public void handleCallSessionEvent(int);
  8216. method public abstract void onRequestCallDataUsage();
  8217. method public abstract void onRequestCameraCapabilities();
  8218. method public abstract void onSendSessionModifyRequest(android.telecom.VideoProfile, android.telecom.VideoProfile);
  8219. method public abstract void onSendSessionModifyResponse(android.telecom.VideoProfile);
  8220. method public abstract void onSetCamera(String);
  8221. method public void onSetCamera(String, int);
  8222. method public abstract void onSetDeviceOrientation(int);
  8223. method public abstract void onSetDisplaySurface(android.view.Surface);
  8224. method public abstract void onSetPauseImage(android.net.Uri);
  8225. method public abstract void onSetPreviewSurface(android.view.Surface);
  8226. method public abstract void onSetZoom(float);
  8227. method public void receiveSessionModifyRequest(android.telecom.VideoProfile);
  8228. method public void receiveSessionModifyResponse(int, android.telecom.VideoProfile, android.telecom.VideoProfile);
  8229. }
  8230. public class ProvisioningManager {
  8231. method @NonNull public static android.telephony.ims.ProvisioningManager createForSubscriptionId(int);
  8232. method @WorkerThread @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) public int getProvisioningIntValue(int);
  8233. method @WorkerThread @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) public boolean getProvisioningStatusForCapability(@android.telephony.ims.feature.MmTelFeature.MmTelCapabilities.MmTelCapability int, int);
  8234. method @Nullable @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) @WorkerThread public String getProvisioningStringValue(int);
  8235. method @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) public void registerProvisioningChangedCallback(@NonNull java.util.concurrent.Executor, @NonNull android.telephony.ims.ProvisioningManager.Callback) throws android.telephony.ims.ImsException;
  8236. method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) @WorkerThread public int setProvisioningIntValue(int, int);
  8237. method @WorkerThread @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public void setProvisioningStatusForCapability(@android.telephony.ims.feature.MmTelFeature.MmTelCapabilities.MmTelCapability int, int, boolean);
  8238. method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) @WorkerThread public int setProvisioningStringValue(int, @NonNull String);
  8239. method @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) public void unregisterProvisioningChangedCallback(@NonNull android.telephony.ims.ProvisioningManager.Callback);
  8240. field public static final int KEY_VOICE_OVER_WIFI_MODE_OVERRIDE = 27; // 0x1b
  8241. field public static final int KEY_VOICE_OVER_WIFI_ROAMING_ENABLED_OVERRIDE = 26; // 0x1a
  8242. field public static final int PROVISIONING_VALUE_DISABLED = 0; // 0x0
  8243. field public static final int PROVISIONING_VALUE_ENABLED = 1; // 0x1
  8244. field public static final String STRING_QUERY_RESULT_ERROR_GENERIC = "STRING_QUERY_RESULT_ERROR_GENERIC";
  8245. field public static final String STRING_QUERY_RESULT_ERROR_NOT_READY = "STRING_QUERY_RESULT_ERROR_NOT_READY";
  8246. }
  8247. public static class ProvisioningManager.Callback {
  8248. ctor public ProvisioningManager.Callback();
  8249. method public void onProvisioningIntChanged(int, int);
  8250. method public void onProvisioningStringChanged(int, @NonNull String);
  8251. }
  8252. }
  8253. package android.telephony.ims.feature {
  8254. public final class CapabilityChangeRequest implements android.os.Parcelable {
  8255. method public void addCapabilitiesToDisableForTech(@android.telephony.ims.feature.MmTelFeature.MmTelCapabilities.MmTelCapability int, int);
  8256. method public void addCapabilitiesToEnableForTech(@android.telephony.ims.feature.MmTelFeature.MmTelCapabilities.MmTelCapability int, int);
  8257. method public int describeContents();
  8258. method public java.util.List<android.telephony.ims.feature.CapabilityChangeRequest.CapabilityPair> getCapabilitiesToDisable();
  8259. method public java.util.List<android.telephony.ims.feature.CapabilityChangeRequest.CapabilityPair> getCapabilitiesToEnable();
  8260. method public void writeToParcel(android.os.Parcel, int);
  8261. field @NonNull public static final android.os.Parcelable.Creator<android.telephony.ims.feature.CapabilityChangeRequest> CREATOR;
  8262. }
  8263. public static class CapabilityChangeRequest.CapabilityPair {
  8264. ctor public CapabilityChangeRequest.CapabilityPair(@android.telephony.ims.feature.MmTelFeature.MmTelCapabilities.MmTelCapability int, int);
  8265. method @android.telephony.ims.feature.MmTelFeature.MmTelCapabilities.MmTelCapability public int getCapability();
  8266. method public int getRadioTech();
  8267. }
  8268. public abstract class ImsFeature {
  8269. ctor public ImsFeature();
  8270. method public abstract void changeEnabledCapabilities(android.telephony.ims.feature.CapabilityChangeRequest, android.telephony.ims.feature.ImsFeature.CapabilityCallbackProxy);
  8271. method public abstract void onFeatureReady();
  8272. method public abstract void onFeatureRemoved();
  8273. method public final void setFeatureState(int);
  8274. field public static final int CAPABILITY_ERROR_GENERIC = -1; // 0xffffffff
  8275. field public static final int CAPABILITY_SUCCESS = 0; // 0x0
  8276. field public static final int FEATURE_EMERGENCY_MMTEL = 0; // 0x0
  8277. field public static final int FEATURE_MMTEL = 1; // 0x1
  8278. field public static final int FEATURE_RCS = 2; // 0x2
  8279. field public static final int STATE_INITIALIZING = 1; // 0x1
  8280. field public static final int STATE_READY = 2; // 0x2
  8281. field public static final int STATE_UNAVAILABLE = 0; // 0x0
  8282. }
  8283. @Deprecated public static class ImsFeature.Capabilities {
  8284. field @Deprecated protected int mCapabilities;
  8285. }
  8286. protected static class ImsFeature.CapabilityCallbackProxy {
  8287. method public void onChangeCapabilityConfigurationError(int, int, int);
  8288. }
  8289. public class MmTelFeature extends android.telephony.ims.feature.ImsFeature {
  8290. ctor public MmTelFeature();
  8291. method public void changeEnabledCapabilities(@NonNull android.telephony.ims.feature.CapabilityChangeRequest, @NonNull android.telephony.ims.feature.ImsFeature.CapabilityCallbackProxy);
  8292. method @Nullable public android.telephony.ims.ImsCallProfile createCallProfile(int, int);
  8293. method @Nullable public android.telephony.ims.stub.ImsCallSessionImplBase createCallSession(@NonNull android.telephony.ims.ImsCallProfile);
  8294. method @NonNull public android.telephony.ims.stub.ImsEcbmImplBase getEcbm();
  8295. method @NonNull public android.telephony.ims.stub.ImsMultiEndpointImplBase getMultiEndpoint();
  8296. method @NonNull public android.telephony.ims.stub.ImsSmsImplBase getSmsImplementation();
  8297. method @NonNull public android.telephony.ims.stub.ImsUtImplBase getUt();
  8298. method public final void notifyCapabilitiesStatusChanged(@NonNull android.telephony.ims.feature.MmTelFeature.MmTelCapabilities);
  8299. method public final void notifyIncomingCall(@NonNull android.telephony.ims.stub.ImsCallSessionImplBase, @NonNull android.os.Bundle);
  8300. method public final void notifyRejectedCall(@NonNull android.telephony.ims.ImsCallProfile, @NonNull android.telephony.ims.ImsReasonInfo);
  8301. method public final void notifyVoiceMessageCountUpdate(int);
  8302. method public void onFeatureReady();
  8303. method public void onFeatureRemoved();
  8304. method public boolean queryCapabilityConfiguration(@android.telephony.ims.feature.MmTelFeature.MmTelCapabilities.MmTelCapability int, int);
  8305. method public final android.telephony.ims.feature.MmTelFeature.MmTelCapabilities queryCapabilityStatus();
  8306. method public void setUiTtyMode(int, @Nullable android.os.Message);
  8307. method @android.telephony.ims.feature.MmTelFeature.ProcessCallResult public int shouldProcessCall(@NonNull String[]);
  8308. field public static final int PROCESS_CALL_CSFB = 1; // 0x1
  8309. field public static final int PROCESS_CALL_IMS = 0; // 0x0
  8310. }
  8311. public static class MmTelFeature.MmTelCapabilities extends android.telephony.ims.feature.ImsFeature.Capabilities {
  8312. ctor public MmTelFeature.MmTelCapabilities();
  8313. ctor @Deprecated public MmTelFeature.MmTelCapabilities(android.telephony.ims.feature.ImsFeature.Capabilities);
  8314. ctor public MmTelFeature.MmTelCapabilities(int);
  8315. method public final void addCapabilities(@android.telephony.ims.feature.MmTelFeature.MmTelCapabilities.MmTelCapability int);
  8316. method public final boolean isCapable(@android.telephony.ims.feature.MmTelFeature.MmTelCapabilities.MmTelCapability int);
  8317. method public final void removeCapabilities(@android.telephony.ims.feature.MmTelFeature.MmTelCapabilities.MmTelCapability int);
  8318. field public static final int CAPABILITY_TYPE_SMS = 8; // 0x8
  8319. field public static final int CAPABILITY_TYPE_UT = 4; // 0x4
  8320. field public static final int CAPABILITY_TYPE_VIDEO = 2; // 0x2
  8321. field public static final int CAPABILITY_TYPE_VOICE = 1; // 0x1
  8322. }
  8323. @IntDef(flag=true, value={android.telephony.ims.feature.MmTelFeature.MmTelCapabilities.CAPABILITY_TYPE_VOICE, android.telephony.ims.feature.MmTelFeature.MmTelCapabilities.CAPABILITY_TYPE_VIDEO, android.telephony.ims.feature.MmTelFeature.MmTelCapabilities.CAPABILITY_TYPE_UT, android.telephony.ims.feature.MmTelFeature.MmTelCapabilities.CAPABILITY_TYPE_SMS}) @java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.SOURCE) public static @interface MmTelFeature.MmTelCapabilities.MmTelCapability {
  8324. }
  8325. @IntDef(flag=true, value={android.telephony.ims.feature.MmTelFeature.PROCESS_CALL_IMS, android.telephony.ims.feature.MmTelFeature.PROCESS_CALL_CSFB}) @java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.SOURCE) public static @interface MmTelFeature.ProcessCallResult {
  8326. }
  8327. public class RcsFeature extends android.telephony.ims.feature.ImsFeature {
  8328. ctor public RcsFeature();
  8329. method public void changeEnabledCapabilities(android.telephony.ims.feature.CapabilityChangeRequest, android.telephony.ims.feature.ImsFeature.CapabilityCallbackProxy);
  8330. method public void onFeatureReady();
  8331. method public void onFeatureRemoved();
  8332. }
  8333. }
  8334. package android.telephony.ims.stub {
  8335. public class ImsCallSessionImplBase implements java.lang.AutoCloseable {
  8336. ctor public ImsCallSessionImplBase();
  8337. method public void accept(int, android.telephony.ims.ImsStreamMediaProfile);
  8338. method public void close();
  8339. method public void deflect(String);
  8340. method public void extendToConference(String[]);
  8341. method public String getCallId();
  8342. method public android.telephony.ims.ImsCallProfile getCallProfile();
  8343. method public android.telephony.ims.ImsVideoCallProvider getImsVideoCallProvider();
  8344. method public android.telephony.ims.ImsCallProfile getLocalCallProfile();
  8345. method public String getProperty(String);
  8346. method public android.telephony.ims.ImsCallProfile getRemoteCallProfile();
  8347. method public int getState();
  8348. method public void hold(android.telephony.ims.ImsStreamMediaProfile);
  8349. method public void inviteParticipants(String[]);
  8350. method public boolean isInCall();
  8351. method public boolean isMultiparty();
  8352. method public void merge();
  8353. method public void reject(int);
  8354. method public void removeParticipants(String[]);
  8355. method public void resume(android.telephony.ims.ImsStreamMediaProfile);
  8356. method public void sendDtmf(char, android.os.Message);
  8357. method public void sendRttMessage(String);
  8358. method public void sendRttModifyRequest(android.telephony.ims.ImsCallProfile);
  8359. method public void sendRttModifyResponse(boolean);
  8360. method public void sendUssd(String);
  8361. method public void setListener(android.telephony.ims.ImsCallSessionListener);
  8362. method public void setMute(boolean);
  8363. method public void start(String, android.telephony.ims.ImsCallProfile);
  8364. method public void startConference(String[], android.telephony.ims.ImsCallProfile);
  8365. method public void startDtmf(char);
  8366. method public void stopDtmf();
  8367. method public void terminate(int);
  8368. method public void update(int, android.telephony.ims.ImsStreamMediaProfile);
  8369. field public static final int USSD_MODE_NOTIFY = 0; // 0x0
  8370. field public static final int USSD_MODE_REQUEST = 1; // 0x1
  8371. }
  8372. public static class ImsCallSessionImplBase.State {
  8373. method public static String toString(int);
  8374. field public static final int ESTABLISHED = 4; // 0x4
  8375. field public static final int ESTABLISHING = 3; // 0x3
  8376. field public static final int IDLE = 0; // 0x0
  8377. field public static final int INITIATED = 1; // 0x1
  8378. field public static final int INVALID = -1; // 0xffffffff
  8379. field public static final int NEGOTIATING = 2; // 0x2
  8380. field public static final int REESTABLISHING = 6; // 0x6
  8381. field public static final int RENEGOTIATING = 5; // 0x5
  8382. field public static final int TERMINATED = 8; // 0x8
  8383. field public static final int TERMINATING = 7; // 0x7
  8384. }
  8385. public class ImsConfigImplBase {
  8386. ctor public ImsConfigImplBase();
  8387. method public int getConfigInt(int);
  8388. method public String getConfigString(int);
  8389. method public final void notifyProvisionedValueChanged(int, int);
  8390. method public final void notifyProvisionedValueChanged(int, String);
  8391. method public int setConfig(int, int);
  8392. method public int setConfig(int, String);
  8393. field public static final int CONFIG_RESULT_FAILED = 1; // 0x1
  8394. field public static final int CONFIG_RESULT_SUCCESS = 0; // 0x0
  8395. field public static final int CONFIG_RESULT_UNKNOWN = -1; // 0xffffffff
  8396. }
  8397. public class ImsEcbmImplBase {
  8398. ctor public ImsEcbmImplBase();
  8399. method public final void enteredEcbm();
  8400. method public void exitEmergencyCallbackMode();
  8401. method public final void exitedEcbm();
  8402. }
  8403. public final class ImsFeatureConfiguration implements android.os.Parcelable {
  8404. method public int describeContents();
  8405. method public java.util.Set<android.telephony.ims.stub.ImsFeatureConfiguration.FeatureSlotPair> getServiceFeatures();
  8406. method public void writeToParcel(android.os.Parcel, int);
  8407. field @NonNull public static final android.os.Parcelable.Creator<android.telephony.ims.stub.ImsFeatureConfiguration> CREATOR;
  8408. }
  8409. public static class ImsFeatureConfiguration.Builder {
  8410. ctor public ImsFeatureConfiguration.Builder();
  8411. method public android.telephony.ims.stub.ImsFeatureConfiguration.Builder addFeature(int, int);
  8412. method public android.telephony.ims.stub.ImsFeatureConfiguration build();
  8413. }
  8414. public static final class ImsFeatureConfiguration.FeatureSlotPair {
  8415. ctor public ImsFeatureConfiguration.FeatureSlotPair(int, int);
  8416. field public final int featureType;
  8417. field public final int slotId;
  8418. }
  8419. public class ImsMultiEndpointImplBase {
  8420. ctor public ImsMultiEndpointImplBase();
  8421. method public final void onImsExternalCallStateUpdate(java.util.List<android.telephony.ims.ImsExternalCallState>);
  8422. method public void requestImsExternalCallStateInfo();
  8423. }
  8424. public class ImsRegistrationImplBase {
  8425. ctor public ImsRegistrationImplBase();
  8426. method public final void onDeregistered(android.telephony.ims.ImsReasonInfo);
  8427. method public final void onRegistered(int);
  8428. method public final void onRegistering(int);
  8429. method public final void onSubscriberAssociatedUriChanged(android.net.Uri[]);
  8430. method public final void onTechnologyChangeFailed(int, android.telephony.ims.ImsReasonInfo);
  8431. field public static final int REGISTRATION_TECH_IWLAN = 1; // 0x1
  8432. field public static final int REGISTRATION_TECH_LTE = 0; // 0x0
  8433. field public static final int REGISTRATION_TECH_NONE = -1; // 0xffffffff
  8434. }
  8435. public class ImsSmsImplBase {
  8436. ctor public ImsSmsImplBase();
  8437. method public void acknowledgeSms(int, int, int);
  8438. method public void acknowledgeSmsReport(int, int, int);
  8439. method public String getSmsFormat();
  8440. method public void onReady();
  8441. method public final void onSendSmsResult(int, int, int, int) throws java.lang.RuntimeException;
  8442. method public final void onSmsReceived(int, String, byte[]) throws java.lang.RuntimeException;
  8443. method public final void onSmsStatusReportReceived(int, int, String, byte[]) throws java.lang.RuntimeException;
  8444. method public void sendSms(int, int, String, String, boolean, byte[]);
  8445. field public static final int DELIVER_STATUS_ERROR_GENERIC = 2; // 0x2
  8446. field public static final int DELIVER_STATUS_ERROR_NO_MEMORY = 3; // 0x3
  8447. field public static final int DELIVER_STATUS_ERROR_REQUEST_NOT_SUPPORTED = 4; // 0x4
  8448. field public static final int DELIVER_STATUS_OK = 1; // 0x1
  8449. field public static final int SEND_STATUS_ERROR = 2; // 0x2
  8450. field public static final int SEND_STATUS_ERROR_FALLBACK = 4; // 0x4
  8451. field public static final int SEND_STATUS_ERROR_RETRY = 3; // 0x3
  8452. field public static final int SEND_STATUS_OK = 1; // 0x1
  8453. field public static final int STATUS_REPORT_STATUS_ERROR = 2; // 0x2
  8454. field public static final int STATUS_REPORT_STATUS_OK = 1; // 0x1
  8455. }
  8456. public class ImsUtImplBase {
  8457. ctor public ImsUtImplBase();
  8458. method public void close();
  8459. method public int queryCallBarring(int);
  8460. method public int queryCallBarringForServiceClass(int, int);
  8461. method public int queryCallForward(int, String);
  8462. method public int queryCallWaiting();
  8463. method public int queryClip();
  8464. method public int queryClir();
  8465. method public int queryColp();
  8466. method public int queryColr();
  8467. method public void setListener(android.telephony.ims.ImsUtListener);
  8468. method public int transact(android.os.Bundle);
  8469. method public int updateCallBarring(int, int, String[]);
  8470. method public int updateCallBarringForServiceClass(int, int, String[], int);
  8471. method public int updateCallForward(int, int, String, int, int);
  8472. method public int updateCallWaiting(boolean, int);
  8473. method public int updateClip(boolean);
  8474. method public int updateClir(int);
  8475. method public int updateColp(boolean);
  8476. method public int updateColr(int);
  8477. }
  8478. }
  8479. package android.telephony.mbms {
  8480. public static class DownloadRequest.Builder {
  8481. method public android.telephony.mbms.DownloadRequest.Builder setServiceId(String);
  8482. }
  8483. public final class FileInfo implements android.os.Parcelable {
  8484. ctor public FileInfo(android.net.Uri, String);
  8485. }
  8486. public final class FileServiceInfo extends android.telephony.mbms.ServiceInfo implements android.os.Parcelable {
  8487. ctor public FileServiceInfo(java.util.Map<java.util.Locale,java.lang.String>, String, java.util.List<java.util.Locale>, String, java.util.Date, java.util.Date, java.util.List<android.telephony.mbms.FileInfo>);
  8488. }
  8489. public class MbmsDownloadReceiver extends android.content.BroadcastReceiver {
  8490. field public static final int RESULT_APP_NOTIFICATION_ERROR = 6; // 0x6
  8491. field public static final int RESULT_BAD_TEMP_FILE_ROOT = 3; // 0x3
  8492. field public static final int RESULT_DOWNLOAD_FINALIZATION_ERROR = 4; // 0x4
  8493. field public static final int RESULT_INVALID_ACTION = 1; // 0x1
  8494. field public static final int RESULT_MALFORMED_INTENT = 2; // 0x2
  8495. field public static final int RESULT_OK = 0; // 0x0
  8496. field public static final int RESULT_TEMP_FILE_GENERATION_ERROR = 5; // 0x5
  8497. }
  8498. public final class StreamingServiceInfo extends android.telephony.mbms.ServiceInfo implements android.os.Parcelable {
  8499. ctor public StreamingServiceInfo(java.util.Map<java.util.Locale,java.lang.String>, String, java.util.List<java.util.Locale>, String, java.util.Date, java.util.Date);
  8500. }
  8501. public final class UriPathPair implements android.os.Parcelable {
  8502. method public int describeContents();
  8503. method public android.net.Uri getContentUri();
  8504. method public android.net.Uri getFilePathUri();
  8505. method public void writeToParcel(android.os.Parcel, int);
  8506. field @NonNull public static final android.os.Parcelable.Creator<android.telephony.mbms.UriPathPair> CREATOR;
  8507. }
  8508. }
  8509. package android.telephony.mbms.vendor {
  8510. public class MbmsDownloadServiceBase extends android.os.Binder {
  8511. ctor public MbmsDownloadServiceBase();
  8512. method public int addProgressListener(android.telephony.mbms.DownloadRequest, android.telephony.mbms.DownloadProgressListener) throws android.os.RemoteException;
  8513. method public int addStatusListener(android.telephony.mbms.DownloadRequest, android.telephony.mbms.DownloadStatusListener) throws android.os.RemoteException;
  8514. method public android.os.IBinder asBinder();
  8515. method public int cancelDownload(android.telephony.mbms.DownloadRequest) throws android.os.RemoteException;
  8516. method public void dispose(int) throws android.os.RemoteException;
  8517. method public int download(android.telephony.mbms.DownloadRequest) throws android.os.RemoteException;
  8518. method public int initialize(int, android.telephony.mbms.MbmsDownloadSessionCallback) throws android.os.RemoteException;
  8519. method @NonNull public java.util.List<android.telephony.mbms.DownloadRequest> listPendingDownloads(int) throws android.os.RemoteException;
  8520. method public void onAppCallbackDied(int, int);
  8521. method public boolean onTransact(int, android.os.Parcel, android.os.Parcel, int) throws android.os.RemoteException;
  8522. method public int removeProgressListener(android.telephony.mbms.DownloadRequest, android.telephony.mbms.DownloadProgressListener) throws android.os.RemoteException;
  8523. method public int removeStatusListener(android.telephony.mbms.DownloadRequest, android.telephony.mbms.DownloadStatusListener) throws android.os.RemoteException;
  8524. method public int requestDownloadState(android.telephony.mbms.DownloadRequest, android.telephony.mbms.FileInfo) throws android.os.RemoteException;
  8525. method public int requestUpdateFileServices(int, java.util.List<java.lang.String>) throws android.os.RemoteException;
  8526. method public int resetDownloadKnowledge(android.telephony.mbms.DownloadRequest) throws android.os.RemoteException;
  8527. method public int setTempFileRootDirectory(int, String) throws android.os.RemoteException;
  8528. }
  8529. public class MbmsGroupCallServiceBase extends android.app.Service {
  8530. ctor public MbmsGroupCallServiceBase();
  8531. method public void dispose(int) throws android.os.RemoteException;
  8532. method public int initialize(@NonNull android.telephony.mbms.MbmsGroupCallSessionCallback, int) throws android.os.RemoteException;
  8533. method public void onAppCallbackDied(int, int);
  8534. method public android.os.IBinder onBind(android.content.Intent);
  8535. method public int startGroupCall(int, long, @NonNull java.util.List<java.lang.Integer>, @NonNull java.util.List<java.lang.Integer>, @NonNull android.telephony.mbms.GroupCallCallback);
  8536. method public void stopGroupCall(int, long);
  8537. method public void updateGroupCall(int, long, @NonNull java.util.List<java.lang.Integer>, @NonNull java.util.List<java.lang.Integer>);
  8538. }
  8539. public class MbmsStreamingServiceBase extends android.os.Binder {
  8540. ctor public MbmsStreamingServiceBase();
  8541. method public android.os.IBinder asBinder();
  8542. method public void dispose(int) throws android.os.RemoteException;
  8543. method @Nullable public android.net.Uri getPlaybackUri(int, String) throws android.os.RemoteException;
  8544. method public int initialize(android.telephony.mbms.MbmsStreamingSessionCallback, int) throws android.os.RemoteException;
  8545. method public void onAppCallbackDied(int, int);
  8546. method public boolean onTransact(int, android.os.Parcel, android.os.Parcel, int) throws android.os.RemoteException;
  8547. method public int requestUpdateStreamingServices(int, java.util.List<java.lang.String>) throws android.os.RemoteException;
  8548. method public int startStreaming(int, String, android.telephony.mbms.StreamingServiceCallback) throws android.os.RemoteException;
  8549. method public void stopStreaming(int, String) throws android.os.RemoteException;
  8550. }
  8551. public class VendorUtils {
  8552. ctor public VendorUtils();
  8553. method public static android.content.ComponentName getAppReceiverFromPackageName(android.content.Context, String);
  8554. field public static final String ACTION_CLEANUP = "android.telephony.mbms.action.CLEANUP";
  8555. field public static final String ACTION_DOWNLOAD_RESULT_INTERNAL = "android.telephony.mbms.action.DOWNLOAD_RESULT_INTERNAL";
  8556. field public static final String ACTION_FILE_DESCRIPTOR_REQUEST = "android.telephony.mbms.action.FILE_DESCRIPTOR_REQUEST";
  8557. field public static final String EXTRA_FD_COUNT = "android.telephony.mbms.extra.FD_COUNT";
  8558. field public static final String EXTRA_FINAL_URI = "android.telephony.mbms.extra.FINAL_URI";
  8559. field public static final String EXTRA_FREE_URI_LIST = "android.telephony.mbms.extra.FREE_URI_LIST";
  8560. field public static final String EXTRA_PAUSED_LIST = "android.telephony.mbms.extra.PAUSED_LIST";
  8561. field public static final String EXTRA_PAUSED_URI_LIST = "android.telephony.mbms.extra.PAUSED_URI_LIST";
  8562. field public static final String EXTRA_SERVICE_ID = "android.telephony.mbms.extra.SERVICE_ID";
  8563. field public static final String EXTRA_TEMP_FILES_IN_USE = "android.telephony.mbms.extra.TEMP_FILES_IN_USE";
  8564. field public static final String EXTRA_TEMP_FILE_ROOT = "android.telephony.mbms.extra.TEMP_FILE_ROOT";
  8565. field public static final String EXTRA_TEMP_LIST = "android.telephony.mbms.extra.TEMP_LIST";
  8566. }
  8567. }
  8568. package android.util {
  8569. public class EventLog {
  8570. method public static void readEventsOnWrapping(int[], long, java.util.Collection<android.util.EventLog.Event>) throws java.io.IOException;
  8571. }
  8572. public static final class EventLog.Event {
  8573. method public int getUid();
  8574. }
  8575. public final class StatsLog {
  8576. method public static void writeRaw(@NonNull byte[], int);
  8577. }
  8578. }
  8579. package android.view {
  8580. public abstract class Window {
  8581. method public void addSystemFlags(@android.view.WindowManager.LayoutParams.SystemFlags int);
  8582. }
  8583. public interface WindowManager extends android.view.ViewManager {
  8584. method @RequiresPermission(android.Manifest.permission.RESTRICTED_VR_ACCESS) public android.graphics.Region getCurrentImeTouchRegion();
  8585. }
  8586. public static class WindowManager.LayoutParams extends android.view.ViewGroup.LayoutParams implements android.os.Parcelable {
  8587. method public final long getUserActivityTimeout();
  8588. method public final void setUserActivityTimeout(long);
  8589. field @RequiresPermission(android.Manifest.permission.HIDE_NON_SYSTEM_OVERLAY_WINDOWS) public static final int SYSTEM_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS = 524288; // 0x80000
  8590. }
  8591. @IntDef(flag=true, prefix={"SYSTEM_FLAG_"}, value={android.view.WindowManager.LayoutParams.SYSTEM_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS}) @java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.SOURCE) public static @interface WindowManager.LayoutParams.SystemFlags {
  8592. }
  8593. }
  8594. package android.view.accessibility {
  8595. public final class AccessibilityManager {
  8596. method public int getAccessibilityWindowId(@Nullable android.os.IBinder);
  8597. method @RequiresPermission(android.Manifest.permission.MANAGE_ACCESSIBILITY) public void performAccessibilityShortcut();
  8598. }
  8599. }
  8600. package android.view.autofill {
  8601. public final class AutofillManager {
  8602. method public void setAugmentedAutofillWhitelist(@Nullable java.util.Set<java.lang.String>, @Nullable java.util.Set<android.content.ComponentName>);
  8603. }
  8604. }
  8605. package android.view.contentcapture {
  8606. public final class ContentCaptureContext implements android.os.Parcelable {
  8607. method @Nullable public android.content.ComponentName getActivityComponent();
  8608. method public int getDisplayId();
  8609. method public int getFlags();
  8610. method @Nullable public android.view.contentcapture.ContentCaptureSessionId getParentSessionId();
  8611. method public int getTaskId();
  8612. field public static final int FLAG_DISABLED_BY_APP = 1; // 0x1
  8613. field public static final int FLAG_DISABLED_BY_FLAG_SECURE = 2; // 0x2
  8614. field public static final int FLAG_RECONNECTED = 4; // 0x4
  8615. }
  8616. public final class ContentCaptureEvent implements android.os.Parcelable {
  8617. method public int describeContents();
  8618. method @Nullable public android.view.contentcapture.ContentCaptureContext getContentCaptureContext();
  8619. method public long getEventTime();
  8620. method @Nullable public android.view.autofill.AutofillId getId();
  8621. method @Nullable public java.util.List<android.view.autofill.AutofillId> getIds();
  8622. method @Nullable public CharSequence getText();
  8623. method public int getType();
  8624. method @Nullable public android.view.contentcapture.ViewNode getViewNode();
  8625. method public void writeToParcel(android.os.Parcel, int);
  8626. field @NonNull public static final android.os.Parcelable.Creator<android.view.contentcapture.ContentCaptureEvent> CREATOR;
  8627. field public static final int TYPE_CONTEXT_UPDATED = 6; // 0x6
  8628. field public static final int TYPE_SESSION_PAUSED = 8; // 0x8
  8629. field public static final int TYPE_SESSION_RESUMED = 7; // 0x7
  8630. field public static final int TYPE_VIEW_APPEARED = 1; // 0x1
  8631. field public static final int TYPE_VIEW_DISAPPEARED = 2; // 0x2
  8632. field public static final int TYPE_VIEW_TEXT_CHANGED = 3; // 0x3
  8633. field public static final int TYPE_VIEW_TREE_APPEARED = 5; // 0x5
  8634. field public static final int TYPE_VIEW_TREE_APPEARING = 4; // 0x4
  8635. }
  8636. public final class ContentCaptureManager {
  8637. method public boolean isContentCaptureFeatureEnabled();
  8638. }
  8639. public final class ViewNode extends android.app.assist.AssistStructure.ViewNode {
  8640. method @Nullable public android.view.autofill.AutofillId getParentAutofillId();
  8641. }
  8642. }
  8643. package android.webkit {
  8644. public abstract class CookieManager {
  8645. method protected abstract boolean allowFileSchemeCookiesImpl();
  8646. method public abstract String getCookie(String, boolean);
  8647. method public String getCookie(android.net.WebAddress);
  8648. method public abstract boolean hasCookies(boolean);
  8649. method protected abstract void setAcceptFileSchemeCookiesImpl(boolean);
  8650. }
  8651. public class FindActionModeCallback implements android.view.ActionMode.Callback android.text.TextWatcher android.view.View.OnClickListener android.webkit.WebView.FindListener {
  8652. ctor public FindActionModeCallback(android.content.Context);
  8653. method public void afterTextChanged(android.text.Editable);
  8654. method public void beforeTextChanged(CharSequence, int, int, int);
  8655. method public void findAll();
  8656. method public void finish();
  8657. method public int getActionModeGlobalBottom();
  8658. method public boolean onActionItemClicked(android.view.ActionMode, android.view.MenuItem);
  8659. method public void onClick(android.view.View);
  8660. method public boolean onCreateActionMode(android.view.ActionMode, android.view.Menu);
  8661. method public void onDestroyActionMode(android.view.ActionMode);
  8662. method public void onFindResultReceived(int, int, boolean);
  8663. method public boolean onPrepareActionMode(android.view.ActionMode, android.view.Menu);
  8664. method public void onTextChanged(CharSequence, int, int, int);
  8665. method public void setText(String);
  8666. method public void setWebView(@NonNull android.webkit.WebView);
  8667. method public void showSoftInput();
  8668. method public void updateMatchCount(int, int, boolean);
  8669. }
  8670. public static class FindActionModeCallback.NoAction implements android.view.ActionMode.Callback {
  8671. ctor public FindActionModeCallback.NoAction();
  8672. method public boolean onActionItemClicked(android.view.ActionMode, android.view.MenuItem);
  8673. method public boolean onCreateActionMode(android.view.ActionMode, android.view.Menu);
  8674. method public void onDestroyActionMode(android.view.ActionMode);
  8675. method public boolean onPrepareActionMode(android.view.ActionMode, android.view.Menu);
  8676. }
  8677. public class GeolocationPermissions {
  8678. ctor public GeolocationPermissions();
  8679. }
  8680. public class HttpAuthHandler extends android.os.Handler {
  8681. ctor public HttpAuthHandler();
  8682. }
  8683. public class JsDialogHelper {
  8684. ctor public JsDialogHelper(android.webkit.JsPromptResult, int, String, String, String);
  8685. ctor public JsDialogHelper(android.webkit.JsPromptResult, android.os.Message);
  8686. method public boolean invokeCallback(android.webkit.WebChromeClient, android.webkit.WebView);
  8687. method public void showDialog(android.content.Context);
  8688. field public static final int ALERT = 1; // 0x1
  8689. field public static final int CONFIRM = 2; // 0x2
  8690. field public static final int PROMPT = 3; // 0x3
  8691. field public static final int UNLOAD = 4; // 0x4
  8692. }
  8693. public class JsPromptResult extends android.webkit.JsResult {
  8694. ctor public JsPromptResult(android.webkit.JsResult.ResultReceiver);
  8695. method public String getStringResult();
  8696. }
  8697. public class JsResult {
  8698. ctor public JsResult(android.webkit.JsResult.ResultReceiver);
  8699. method public final boolean getResult();
  8700. }
  8701. public static interface JsResult.ResultReceiver {
  8702. method public void onJsResultComplete(android.webkit.JsResult);
  8703. }
  8704. public class SslErrorHandler extends android.os.Handler {
  8705. ctor public SslErrorHandler();
  8706. }
  8707. @Deprecated public abstract class TokenBindingService {
  8708. ctor @Deprecated public TokenBindingService();
  8709. }
  8710. public class WebChromeClient {
  8711. method @Deprecated public void openFileChooser(android.webkit.ValueCallback<android.net.Uri>, String, String);
  8712. }
  8713. public abstract class WebHistoryItem implements java.lang.Cloneable {
  8714. method @Deprecated public abstract int getId();
  8715. }
  8716. @Deprecated public abstract class WebIconDatabase {
  8717. method @Deprecated public abstract void bulkRequestIconForPageUrl(android.content.ContentResolver, String, android.webkit.WebIconDatabase.IconListener);
  8718. }
  8719. public abstract class WebMessagePort {
  8720. ctor public WebMessagePort();
  8721. }
  8722. public abstract class WebResourceError {
  8723. ctor public WebResourceError();
  8724. }
  8725. public class WebResourceResponse {
  8726. ctor public WebResourceResponse(boolean, String, String, int, String, java.util.Map<java.lang.String,java.lang.String>, java.io.InputStream);
  8727. }
  8728. public abstract class WebSettings {
  8729. method public abstract boolean getAcceptThirdPartyCookies();
  8730. method @Deprecated public abstract boolean getNavDump();
  8731. method @Deprecated public abstract boolean getPluginsEnabled();
  8732. method @Deprecated public abstract boolean getUseWebViewBackgroundForOverscrollBackground();
  8733. method @Deprecated public abstract int getUserAgent();
  8734. method public abstract boolean getVideoOverlayForEmbeddedEncryptedVideoEnabled();
  8735. method public abstract void setAcceptThirdPartyCookies(boolean);
  8736. method @Deprecated public abstract void setNavDump(boolean);
  8737. method @Deprecated public abstract void setPluginsEnabled(boolean);
  8738. method @Deprecated public abstract void setUseWebViewBackgroundForOverscrollBackground(boolean);
  8739. method @Deprecated public abstract void setUserAgent(int);
  8740. method public abstract void setVideoOverlayForEmbeddedEncryptedVideoEnabled(boolean);
  8741. }
  8742. public class WebStorage {
  8743. ctor public WebStorage();
  8744. }
  8745. public static class WebStorage.Origin {
  8746. ctor protected WebStorage.Origin(String, long, long);
  8747. }
  8748. public class WebView extends android.widget.AbsoluteLayout implements android.view.ViewGroup.OnHierarchyChangeListener android.view.ViewTreeObserver.OnGlobalFocusChangeListener {
  8749. method public android.webkit.WebViewProvider getWebViewProvider();
  8750. }
  8751. public static class WebView.HitTestResult {
  8752. ctor public WebView.HitTestResult();
  8753. method public void setExtra(String);
  8754. method public void setType(int);
  8755. }
  8756. public class WebView.PrivateAccess {
  8757. ctor public WebView.PrivateAccess();
  8758. method public void awakenScrollBars(int);
  8759. method public void awakenScrollBars(int, boolean);
  8760. method public float getHorizontalScrollFactor();
  8761. method public int getHorizontalScrollbarHeight();
  8762. method public float getVerticalScrollFactor();
  8763. method public void onScrollChanged(int, int, int, int);
  8764. method public void overScrollBy(int, int, int, int, int, int, int, int, boolean);
  8765. method public void setMeasuredDimension(int, int);
  8766. method public void setScrollXRaw(int);
  8767. method public void setScrollYRaw(int);
  8768. method public void super_computeScroll();
  8769. method public boolean super_dispatchKeyEvent(android.view.KeyEvent);
  8770. method public int super_getScrollBarStyle();
  8771. method public void super_onDrawVerticalScrollBar(android.graphics.Canvas, android.graphics.drawable.Drawable, int, int, int, int);
  8772. method public boolean super_onGenericMotionEvent(android.view.MotionEvent);
  8773. method public boolean super_onHoverEvent(android.view.MotionEvent);
  8774. method public boolean super_performAccessibilityAction(int, android.os.Bundle);
  8775. method public boolean super_performLongClick();
  8776. method public boolean super_requestFocus(int, android.graphics.Rect);
  8777. method public void super_scrollTo(int, int);
  8778. method public boolean super_setFrame(int, int, int, int);
  8779. method public void super_setLayoutParams(android.view.ViewGroup.LayoutParams);
  8780. method public void super_startActivityForResult(android.content.Intent, int);
  8781. }
  8782. public final class WebViewDelegate {
  8783. method public void addWebViewAssetPath(android.content.Context);
  8784. method @Deprecated public void callDrawGlFunction(android.graphics.Canvas, long);
  8785. method @Deprecated public void callDrawGlFunction(@NonNull android.graphics.Canvas, long, @Nullable Runnable);
  8786. method @Deprecated public boolean canInvokeDrawGlFunctor(android.view.View);
  8787. method @Deprecated public void detachDrawGlFunctor(android.view.View, long);
  8788. method public void drawWebViewFunctor(@NonNull android.graphics.Canvas, int);
  8789. method public android.app.Application getApplication();
  8790. method public String getDataDirectorySuffix();
  8791. method public String getErrorString(android.content.Context, int);
  8792. method public int getPackageId(android.content.res.Resources, String);
  8793. method @Deprecated public void invokeDrawGlFunctor(android.view.View, long, boolean);
  8794. method public boolean isMultiProcessEnabled();
  8795. method public boolean isTraceTagEnabled();
  8796. method public void setOnTraceEnabledChangeListener(android.webkit.WebViewDelegate.OnTraceEnabledChangeListener);
  8797. }
  8798. public static interface WebViewDelegate.OnTraceEnabledChangeListener {
  8799. method public void onTraceEnabledChange(boolean);
  8800. }
  8801. public final class WebViewFactory {
  8802. ctor public WebViewFactory();
  8803. method public static android.content.pm.PackageInfo getLoadedPackageInfo();
  8804. method public static int loadWebViewNativeLibraryFromPackage(String, ClassLoader);
  8805. method public static void prepareWebViewInZygote();
  8806. field public static final int LIBLOAD_ADDRESS_SPACE_NOT_RESERVED = 2; // 0x2
  8807. field public static final int LIBLOAD_FAILED_JNI_CALL = 7; // 0x7
  8808. field public static final int LIBLOAD_FAILED_LISTING_WEBVIEW_PACKAGES = 4; // 0x4
  8809. field public static final int LIBLOAD_FAILED_TO_FIND_NAMESPACE = 10; // 0xa
  8810. field public static final int LIBLOAD_FAILED_TO_LOAD_LIBRARY = 6; // 0x6
  8811. field public static final int LIBLOAD_FAILED_TO_OPEN_RELRO_FILE = 5; // 0x5
  8812. field public static final int LIBLOAD_FAILED_WAITING_FOR_RELRO = 3; // 0x3
  8813. field public static final int LIBLOAD_FAILED_WAITING_FOR_WEBVIEW_REASON_UNKNOWN = 8; // 0x8
  8814. field public static final int LIBLOAD_SUCCESS = 0; // 0x0
  8815. field public static final int LIBLOAD_WRONG_PACKAGE_NAME = 1; // 0x1
  8816. }
  8817. public interface WebViewFactoryProvider {
  8818. method public android.webkit.WebViewProvider createWebView(android.webkit.WebView, android.webkit.WebView.PrivateAccess);
  8819. method public android.webkit.CookieManager getCookieManager();
  8820. method public android.webkit.GeolocationPermissions getGeolocationPermissions();
  8821. method public android.webkit.ServiceWorkerController getServiceWorkerController();
  8822. method public android.webkit.WebViewFactoryProvider.Statics getStatics();
  8823. method @Deprecated public android.webkit.TokenBindingService getTokenBindingService();
  8824. method public android.webkit.TracingController getTracingController();
  8825. method public android.webkit.WebIconDatabase getWebIconDatabase();
  8826. method public android.webkit.WebStorage getWebStorage();
  8827. method public ClassLoader getWebViewClassLoader();
  8828. method public android.webkit.WebViewDatabase getWebViewDatabase(android.content.Context);
  8829. }
  8830. public static interface WebViewFactoryProvider.Statics {
  8831. method public void clearClientCertPreferences(Runnable);
  8832. method public void enableSlowWholeDocumentDraw();
  8833. method public String findAddress(String);
  8834. method public void freeMemoryForTests();
  8835. method public String getDefaultUserAgent(android.content.Context);
  8836. method @NonNull public android.net.Uri getSafeBrowsingPrivacyPolicyUrl();
  8837. method public void initSafeBrowsing(android.content.Context, android.webkit.ValueCallback<java.lang.Boolean>);
  8838. method public android.net.Uri[] parseFileChooserResult(int, android.content.Intent);
  8839. method public void setSafeBrowsingWhitelist(java.util.List<java.lang.String>, android.webkit.ValueCallback<java.lang.Boolean>);
  8840. method public void setWebContentsDebuggingEnabled(boolean);
  8841. }
  8842. public interface WebViewProvider {
  8843. method public void addJavascriptInterface(Object, String);
  8844. method public boolean canGoBack();
  8845. method public boolean canGoBackOrForward(int);
  8846. method public boolean canGoForward();
  8847. method public boolean canZoomIn();
  8848. method public boolean canZoomOut();
  8849. method public android.graphics.Picture capturePicture();
  8850. method public void clearCache(boolean);
  8851. method public void clearFormData();
  8852. method public void clearHistory();
  8853. method public void clearMatches();
  8854. method public void clearSslPreferences();
  8855. method public void clearView();
  8856. method public android.webkit.WebBackForwardList copyBackForwardList();
  8857. method public android.print.PrintDocumentAdapter createPrintDocumentAdapter(String);
  8858. method public android.webkit.WebMessagePort[] createWebMessageChannel();
  8859. method public void destroy();
  8860. method public void documentHasImages(android.os.Message);
  8861. method public void dumpViewHierarchyWithProperties(java.io.BufferedWriter, int);
  8862. method public void evaluateJavaScript(String, android.webkit.ValueCallback<java.lang.String>);
  8863. method public int findAll(String);
  8864. method public void findAllAsync(String);
  8865. method public android.view.View findHierarchyView(String, int);
  8866. method public void findNext(boolean);
  8867. method public void flingScroll(int, int);
  8868. method public void freeMemory();
  8869. method public android.net.http.SslCertificate getCertificate();
  8870. method public int getContentHeight();
  8871. method public int getContentWidth();
  8872. method public android.graphics.Bitmap getFavicon();
  8873. method public android.webkit.WebView.HitTestResult getHitTestResult();
  8874. method public String[] getHttpAuthUsernamePassword(String, String);
  8875. method public String getOriginalUrl();
  8876. method public int getProgress();
  8877. method public boolean getRendererPriorityWaivedWhenNotVisible();
  8878. method public int getRendererRequestedPriority();
  8879. method public float getScale();
  8880. method public android.webkit.WebViewProvider.ScrollDelegate getScrollDelegate();
  8881. method public android.webkit.WebSettings getSettings();
  8882. method @NonNull public default android.view.textclassifier.TextClassifier getTextClassifier();
  8883. method public String getTitle();
  8884. method public String getTouchIconUrl();
  8885. method public String getUrl();
  8886. method public android.webkit.WebViewProvider.ViewDelegate getViewDelegate();
  8887. method public int getVisibleTitleHeight();
  8888. method public android.webkit.WebChromeClient getWebChromeClient();
  8889. method public android.webkit.WebViewClient getWebViewClient();
  8890. method @Nullable public android.webkit.WebViewRenderProcess getWebViewRenderProcess();
  8891. method @Nullable public android.webkit.WebViewRenderProcessClient getWebViewRenderProcessClient();
  8892. method public android.view.View getZoomControls();
  8893. method public void goBack();
  8894. method public void goBackOrForward(int);
  8895. method public void goForward();
  8896. method public void init(java.util.Map<java.lang.String,java.lang.Object>, boolean);
  8897. method public void insertVisualStateCallback(long, android.webkit.WebView.VisualStateCallback);
  8898. method public void invokeZoomPicker();
  8899. method public boolean isPaused();
  8900. method public boolean isPrivateBrowsingEnabled();
  8901. method public void loadData(String, String, String);
  8902. method public void loadDataWithBaseURL(String, String, String, String, String);
  8903. method public void loadUrl(String, java.util.Map<java.lang.String,java.lang.String>);
  8904. method public void loadUrl(String);
  8905. method public void notifyFindDialogDismissed();
  8906. method public void onPause();
  8907. method public void onResume();
  8908. method public boolean overlayHorizontalScrollbar();
  8909. method public boolean overlayVerticalScrollbar();
  8910. method public boolean pageDown(boolean);
  8911. method public boolean pageUp(boolean);
  8912. method public void pauseTimers();
  8913. method public void postMessageToMainFrame(android.webkit.WebMessage, android.net.Uri);
  8914. method public void postUrl(String, byte[]);
  8915. method public void reload();
  8916. method public void removeJavascriptInterface(String);
  8917. method public void requestFocusNodeHref(android.os.Message);
  8918. method public void requestImageRef(android.os.Message);
  8919. method public boolean restorePicture(android.os.Bundle, java.io.File);
  8920. method public android.webkit.WebBackForwardList restoreState(android.os.Bundle);
  8921. method public void resumeTimers();
  8922. method public void savePassword(String, String, String);
  8923. method public boolean savePicture(android.os.Bundle, java.io.File);
  8924. method public android.webkit.WebBackForwardList saveState(android.os.Bundle);
  8925. method public void saveWebArchive(String);
  8926. method public void saveWebArchive(String, boolean, android.webkit.ValueCallback<java.lang.String>);
  8927. method public void setCertificate(android.net.http.SslCertificate);
  8928. method public void setDownloadListener(android.webkit.DownloadListener);
  8929. method public void setFindListener(android.webkit.WebView.FindListener);
  8930. method public void setHorizontalScrollbarOverlay(boolean);
  8931. method public void setHttpAuthUsernamePassword(String, String, String, String);
  8932. method public void setInitialScale(int);
  8933. method public void setMapTrackballToArrowKeys(boolean);
  8934. method public void setNetworkAvailable(boolean);
  8935. method public void setPictureListener(android.webkit.WebView.PictureListener);
  8936. method public void setRendererPriorityPolicy(int, boolean);
  8937. method public default void setTextClassifier(@Nullable android.view.textclassifier.TextClassifier);
  8938. method public void setVerticalScrollbarOverlay(boolean);
  8939. method public void setWebChromeClient(android.webkit.WebChromeClient);
  8940. method public void setWebViewClient(android.webkit.WebViewClient);
  8941. method public void setWebViewRenderProcessClient(@Nullable java.util.concurrent.Executor, @Nullable android.webkit.WebViewRenderProcessClient);
  8942. method public boolean showFindDialog(String, boolean);
  8943. method public void stopLoading();
  8944. method public boolean zoomBy(float);
  8945. method public boolean zoomIn();
  8946. method public boolean zoomOut();
  8947. }
  8948. public static interface WebViewProvider.ScrollDelegate {
  8949. method public int computeHorizontalScrollOffset();
  8950. method public int computeHorizontalScrollRange();
  8951. method public void computeScroll();
  8952. method public int computeVerticalScrollExtent();
  8953. method public int computeVerticalScrollOffset();
  8954. method public int computeVerticalScrollRange();
  8955. }
  8956. public static interface WebViewProvider.ViewDelegate {
  8957. method public default void autofill(android.util.SparseArray<android.view.autofill.AutofillValue>);
  8958. method public boolean dispatchKeyEvent(android.view.KeyEvent);
  8959. method public android.view.View findFocus(android.view.View);
  8960. method public android.view.accessibility.AccessibilityNodeProvider getAccessibilityNodeProvider();
  8961. method public android.os.Handler getHandler(android.os.Handler);
  8962. method public default boolean isVisibleToUserForAutofill(int);
  8963. method public void onActivityResult(int, int, android.content.Intent);
  8964. method public void onAttachedToWindow();
  8965. method public default boolean onCheckIsTextEditor();
  8966. method public void onConfigurationChanged(android.content.res.Configuration);
  8967. method public android.view.inputmethod.InputConnection onCreateInputConnection(android.view.inputmethod.EditorInfo);
  8968. method public void onDetachedFromWindow();
  8969. method public boolean onDragEvent(android.view.DragEvent);
  8970. method public void onDraw(android.graphics.Canvas);
  8971. method public void onDrawVerticalScrollBar(android.graphics.Canvas, android.graphics.drawable.Drawable, int, int, int, int);
  8972. method public void onFinishTemporaryDetach();
  8973. method public void onFocusChanged(boolean, int, android.graphics.Rect);
  8974. method public boolean onGenericMotionEvent(android.view.MotionEvent);
  8975. method public boolean onHoverEvent(android.view.MotionEvent);
  8976. method public void onInitializeAccessibilityEvent(android.view.accessibility.AccessibilityEvent);
  8977. method public void onInitializeAccessibilityNodeInfo(android.view.accessibility.AccessibilityNodeInfo);
  8978. method public boolean onKeyDown(int, android.view.KeyEvent);
  8979. method public boolean onKeyMultiple(int, int, android.view.KeyEvent);
  8980. method public boolean onKeyUp(int, android.view.KeyEvent);
  8981. method public void onMeasure(int, int);
  8982. method public default void onMovedToDisplay(int, android.content.res.Configuration);
  8983. method public void onOverScrolled(int, int, boolean, boolean);
  8984. method public default void onProvideAutofillVirtualStructure(android.view.ViewStructure, int);
  8985. method public default void onProvideContentCaptureStructure(@NonNull android.view.ViewStructure, int);
  8986. method public void onProvideVirtualStructure(android.view.ViewStructure);
  8987. method public void onScrollChanged(int, int, int, int);
  8988. method public void onSizeChanged(int, int, int, int);
  8989. method public void onStartTemporaryDetach();
  8990. method public boolean onTouchEvent(android.view.MotionEvent);
  8991. method public boolean onTrackballEvent(android.view.MotionEvent);
  8992. method public void onVisibilityChanged(android.view.View, int);
  8993. method public void onWindowFocusChanged(boolean);
  8994. method public void onWindowVisibilityChanged(int);
  8995. method public boolean performAccessibilityAction(int, android.os.Bundle);
  8996. method public boolean performLongClick();
  8997. method public void preDispatchDraw(android.graphics.Canvas);
  8998. method public boolean requestChildRectangleOnScreen(android.view.View, android.graphics.Rect, boolean);
  8999. method public boolean requestFocus(int, android.graphics.Rect);
  9000. method public void setBackgroundColor(int);
  9001. method public boolean setFrame(int, int, int, int);
  9002. method public void setLayerType(int, android.graphics.Paint);
  9003. method public void setLayoutParams(android.view.ViewGroup.LayoutParams);
  9004. method public void setOverScrollMode(int);
  9005. method public void setScrollBarStyle(int);
  9006. method public boolean shouldDelayChildPressedState();
  9007. }
  9008. public final class WebViewProviderInfo implements android.os.Parcelable {
  9009. ctor public WebViewProviderInfo(String, String, boolean, boolean, String[]);
  9010. method public int describeContents();
  9011. method public void writeToParcel(android.os.Parcel, int);
  9012. field @NonNull public static final android.os.Parcelable.Creator<android.webkit.WebViewProviderInfo> CREATOR;
  9013. field public final boolean availableByDefault;
  9014. field public final String description;
  9015. field public final boolean isFallback;
  9016. field public final String packageName;
  9017. field public final android.content.pm.Signature[] signatures;
  9018. }
  9019. public final class WebViewUpdateService {
  9020. method public static android.webkit.WebViewProviderInfo[] getAllWebViewPackages();
  9021. method public static String getCurrentWebViewPackageName();
  9022. method public static android.webkit.WebViewProviderInfo[] getValidWebViewPackages();
  9023. }
  9024. }