test-current.txt 203 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592
  1. // Signature format: 2.0
  2. package android {
  3. public static final class Manifest.permission {
  4. field public static final String ACCESS_NOTIFICATIONS = "android.permission.ACCESS_NOTIFICATIONS";
  5. field public static final String ACTIVITY_EMBEDDING = "android.permission.ACTIVITY_EMBEDDING";
  6. field public static final String APPROVE_INCIDENT_REPORTS = "android.permission.APPROVE_INCIDENT_REPORTS";
  7. field public static final String BRIGHTNESS_SLIDER_USAGE = "android.permission.BRIGHTNESS_SLIDER_USAGE";
  8. field public static final String CHANGE_APP_IDLE_STATE = "android.permission.CHANGE_APP_IDLE_STATE";
  9. field public static final String CLEAR_APP_USER_DATA = "android.permission.CLEAR_APP_USER_DATA";
  10. field public static final String CONFIGURE_DISPLAY_BRIGHTNESS = "android.permission.CONFIGURE_DISPLAY_BRIGHTNESS";
  11. field public static final String FORCE_STOP_PACKAGES = "android.permission.FORCE_STOP_PACKAGES";
  12. field public static final String MANAGE_ACTIVITY_STACKS = "android.permission.MANAGE_ACTIVITY_STACKS";
  13. field public static final String MANAGE_ROLLBACKS = "android.permission.MANAGE_ROLLBACKS";
  14. field public static final String READ_CELL_BROADCASTS = "android.permission.READ_CELL_BROADCASTS";
  15. field public static final String REMOVE_TASKS = "android.permission.REMOVE_TASKS";
  16. field public static final String SUSPEND_APPS = "android.permission.SUSPEND_APPS";
  17. field public static final String TEST_MANAGE_ROLLBACKS = "android.permission.TEST_MANAGE_ROLLBACKS";
  18. field public static final String WRITE_DEVICE_CONFIG = "android.permission.WRITE_DEVICE_CONFIG";
  19. field public static final String WRITE_MEDIA_STORAGE = "android.permission.WRITE_MEDIA_STORAGE";
  20. field public static final String WRITE_OBB = "android.permission.WRITE_OBB";
  21. }
  22. public static final class R.bool {
  23. field public static final int config_perDisplayFocusEnabled = 17891332; // 0x1110004
  24. }
  25. public static final class R.string {
  26. field public static final int config_defaultAssistant = 17039393; // 0x1040021
  27. field public static final int config_defaultDialer = 17039395; // 0x1040023
  28. }
  29. }
  30. package android.animation {
  31. public class ValueAnimator extends android.animation.Animator {
  32. method public static float getDurationScale();
  33. method public static void setDurationScale(float);
  34. }
  35. }
  36. package android.app {
  37. 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 {
  38. method public void onMovedToDisplay(int, android.content.res.Configuration);
  39. }
  40. public class ActivityManager {
  41. method @RequiresPermission(android.Manifest.permission.PACKAGE_USAGE_STATS) public void addOnUidImportanceListener(android.app.ActivityManager.OnUidImportanceListener, int);
  42. method public void alwaysShowUnsupportedCompileSdkWarning(android.content.ComponentName);
  43. method @RequiresPermission(android.Manifest.permission.FORCE_STOP_PACKAGES) public void forceStopPackage(String);
  44. method @RequiresPermission(android.Manifest.permission.PACKAGE_USAGE_STATS) public int getPackageImportance(String);
  45. method public long getTotalRam();
  46. method @RequiresPermission(android.Manifest.permission.PACKAGE_USAGE_STATS) public int getUidImportance(int);
  47. method public static boolean isHighEndGfx();
  48. method @RequiresPermission(android.Manifest.permission.PACKAGE_USAGE_STATS) public void removeOnUidImportanceListener(android.app.ActivityManager.OnUidImportanceListener);
  49. method public static void resumeAppSwitches() throws android.os.RemoteException;
  50. method @RequiresPermission(android.Manifest.permission.CHANGE_CONFIGURATION) public void scheduleApplicationInfoChanged(java.util.List<java.lang.String>, int);
  51. }
  52. public static interface ActivityManager.OnUidImportanceListener {
  53. method public void onUidImportance(int, int);
  54. }
  55. public static class ActivityManager.RunningAppProcessInfo implements android.os.Parcelable {
  56. field public static final int IMPORTANCE_CANT_SAVE_STATE_PRE_26 = 170; // 0xaa
  57. }
  58. public static class ActivityManager.TaskDescription implements android.os.Parcelable {
  59. method public String getIconFilename();
  60. method public int getIconResource();
  61. }
  62. public class ActivityOptions {
  63. method public void setLaunchActivityType(int);
  64. method public void setLaunchTaskId(int);
  65. method public void setLaunchWindowingMode(int);
  66. method public void setTaskOverlay(boolean, boolean);
  67. }
  68. public class ActivityTaskManager {
  69. method @RequiresPermission(android.Manifest.permission.MANAGE_ACTIVITY_STACKS) public void clearLaunchParamsForPackages(java.util.List<java.lang.String>);
  70. method @RequiresPermission(android.Manifest.permission.MANAGE_ACTIVITY_STACKS) public String listAllStacks();
  71. method @RequiresPermission(android.Manifest.permission.MANAGE_ACTIVITY_STACKS) public void moveTaskToStack(int, int, boolean);
  72. method @RequiresPermission(android.Manifest.permission.MANAGE_ACTIVITY_STACKS) public boolean moveTopActivityToPinnedStack(int, android.graphics.Rect);
  73. method @RequiresPermission(android.Manifest.permission.MANAGE_ACTIVITY_STACKS) public void removeStacksInWindowingModes(int[]) throws java.lang.SecurityException;
  74. method @RequiresPermission(android.Manifest.permission.MANAGE_ACTIVITY_STACKS) public void removeStacksWithActivityTypes(int[]) throws java.lang.SecurityException;
  75. method @RequiresPermission(android.Manifest.permission.MANAGE_ACTIVITY_STACKS) public void resizeDockedStack(android.graphics.Rect, android.graphics.Rect);
  76. method @RequiresPermission(android.Manifest.permission.MANAGE_ACTIVITY_STACKS) public void resizeStack(int, android.graphics.Rect) throws java.lang.SecurityException;
  77. method @RequiresPermission(android.Manifest.permission.MANAGE_ACTIVITY_STACKS) public void resizeStack(int, android.graphics.Rect, boolean);
  78. method @RequiresPermission(android.Manifest.permission.MANAGE_ACTIVITY_STACKS) public void resizeTask(int, android.graphics.Rect);
  79. method @RequiresPermission(android.Manifest.permission.MANAGE_ACTIVITY_STACKS) public void setDisplayToSingleTaskInstance(int);
  80. method @RequiresPermission(android.Manifest.permission.MANAGE_ACTIVITY_STACKS) public void setTaskWindowingMode(int, int, boolean) throws java.lang.SecurityException;
  81. method @RequiresPermission(android.Manifest.permission.MANAGE_ACTIVITY_STACKS) public void setTaskWindowingModeSplitScreenPrimary(int, int, boolean, boolean, android.graphics.Rect, boolean) throws java.lang.SecurityException;
  82. method @RequiresPermission(android.Manifest.permission.MANAGE_ACTIVITY_STACKS) public void startSystemLockTaskMode(int);
  83. method @RequiresPermission(android.Manifest.permission.MANAGE_ACTIVITY_STACKS) public void stopSystemLockTaskMode();
  84. method public static boolean supportsMultiWindow(android.content.Context);
  85. method public static boolean supportsSplitScreenMultiWindow(android.content.Context);
  86. field public static final int INVALID_STACK_ID = -1; // 0xffffffff
  87. field public static final int SPLIT_SCREEN_CREATE_MODE_BOTTOM_OR_RIGHT = 1; // 0x1
  88. field public static final int SPLIT_SCREEN_CREATE_MODE_TOP_OR_LEFT = 0; // 0x0
  89. }
  90. public class ActivityView extends android.view.ViewGroup {
  91. ctor public ActivityView(android.content.Context);
  92. ctor public ActivityView(android.content.Context, android.util.AttributeSet);
  93. ctor public ActivityView(android.content.Context, android.util.AttributeSet, int);
  94. ctor public ActivityView(android.content.Context, android.util.AttributeSet, int, boolean);
  95. method public int getVirtualDisplayId();
  96. method public void onLayout(boolean, int, int, int, int);
  97. method public void onLocationChanged();
  98. method public void performBackPress();
  99. method public void release();
  100. method public void setCallback(android.app.ActivityView.StateCallback);
  101. method public void setForwardedInsets(android.graphics.Insets);
  102. method public void startActivity(@NonNull android.content.Intent);
  103. method public void startActivity(@NonNull android.content.Intent, android.os.UserHandle);
  104. method public void startActivity(@NonNull android.app.PendingIntent);
  105. method public void startActivity(@NonNull android.app.PendingIntent, @NonNull android.app.ActivityOptions);
  106. }
  107. public abstract static class ActivityView.StateCallback {
  108. ctor public ActivityView.StateCallback();
  109. method public abstract void onActivityViewDestroyed(android.app.ActivityView);
  110. method public abstract void onActivityViewReady(android.app.ActivityView);
  111. method public void onTaskCreated(int, android.content.ComponentName);
  112. method public void onTaskMovedToFront(int);
  113. method public void onTaskRemovalStarted(int);
  114. }
  115. public class AppDetailsActivity extends android.app.Activity {
  116. ctor public AppDetailsActivity();
  117. }
  118. public class AppOpsManager {
  119. method @RequiresPermission("android.permission.MANAGE_APPOPS") public void addHistoricalOps(@NonNull android.app.AppOpsManager.HistoricalOps);
  120. method @RequiresPermission("android.permission.MANAGE_APPOPS") public void clearHistory();
  121. method @RequiresPermission("android.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>);
  122. method @RequiresPermission("android.permission.MANAGE_APPOPS") public void getHistoricalOpsFromDiskRaw(@NonNull android.app.AppOpsManager.HistoricalOpsRequest, @Nullable java.util.concurrent.Executor, @NonNull java.util.function.Consumer<android.app.AppOpsManager.HistoricalOps>);
  123. method public static int getNumOps();
  124. method public static String[] getOpStrs();
  125. method public boolean isOperationActive(int, int, String);
  126. method @RequiresPermission("android.permission.MANAGE_APPOPS") public void offsetHistory(long);
  127. method public static int opToDefaultMode(@NonNull String);
  128. method public static String opToPermission(int);
  129. method public static int permissionToOpCode(String);
  130. method @RequiresPermission("android.permission.MANAGE_APPOPS") public void reloadNonHistoricalState();
  131. method @RequiresPermission("android.permission.MANAGE_APPOPS") public void resetHistoryParameters();
  132. method @RequiresPermission("android.permission.MANAGE_APPOPS") public void setHistoryParameters(int, long, int);
  133. method @RequiresPermission("android.permission.MANAGE_APP_OPS_MODES") public void setMode(int, int, String, int);
  134. method @RequiresPermission("android.permission.MANAGE_APP_OPS_MODES") public void setMode(String, int, String, int);
  135. method @RequiresPermission("android.permission.MANAGE_APP_OPS_MODES") public void setUidMode(String, int, int);
  136. method public void startWatchingActive(@NonNull int[], @NonNull android.app.AppOpsManager.OnOpActiveChangedListener);
  137. method public void stopWatchingActive(@NonNull android.app.AppOpsManager.OnOpActiveChangedListener);
  138. method public static int strOpToOp(@NonNull String);
  139. field public static final int HISTORICAL_MODE_DISABLED = 0; // 0x0
  140. field public static final int HISTORICAL_MODE_ENABLED_ACTIVE = 1; // 0x1
  141. field public static final int HISTORICAL_MODE_ENABLED_PASSIVE = 2; // 0x2
  142. field public static final String OPSTR_ACCEPT_HANDOVER = "android:accept_handover";
  143. field public static final String OPSTR_ACCESS_NOTIFICATIONS = "android:access_notifications";
  144. field public static final String OPSTR_ACTIVATE_VPN = "android:activate_vpn";
  145. field public static final String OPSTR_ASSIST_SCREENSHOT = "android:assist_screenshot";
  146. field public static final String OPSTR_ASSIST_STRUCTURE = "android:assist_structure";
  147. field public static final String OPSTR_AUDIO_ACCESSIBILITY_VOLUME = "android:audio_accessibility_volume";
  148. field public static final String OPSTR_AUDIO_ALARM_VOLUME = "android:audio_alarm_volume";
  149. field public static final String OPSTR_AUDIO_BLUETOOTH_VOLUME = "android:audio_bluetooth_volume";
  150. field public static final String OPSTR_AUDIO_MASTER_VOLUME = "android:audio_master_volume";
  151. field public static final String OPSTR_AUDIO_MEDIA_VOLUME = "android:audio_media_volume";
  152. field public static final String OPSTR_AUDIO_NOTIFICATION_VOLUME = "android:audio_notification_volume";
  153. field public static final String OPSTR_AUDIO_RING_VOLUME = "android:audio_ring_volume";
  154. field public static final String OPSTR_AUDIO_VOICE_VOLUME = "android:audio_voice_volume";
  155. field public static final String OPSTR_BIND_ACCESSIBILITY_SERVICE = "android:bind_accessibility_service";
  156. field public static final String OPSTR_CHANGE_WIFI_STATE = "android:change_wifi_state";
  157. field public static final String OPSTR_GET_ACCOUNTS = "android:get_accounts";
  158. field public static final String OPSTR_GPS = "android:gps";
  159. field public static final String OPSTR_INSTANT_APP_START_FOREGROUND = "android:instant_app_start_foreground";
  160. field public static final String OPSTR_LEGACY_STORAGE = "android:legacy_storage";
  161. field public static final String OPSTR_MANAGE_IPSEC_TUNNELS = "android:manage_ipsec_tunnels";
  162. field public static final String OPSTR_MUTE_MICROPHONE = "android:mute_microphone";
  163. field public static final String OPSTR_NEIGHBORING_CELLS = "android:neighboring_cells";
  164. field public static final String OPSTR_PLAY_AUDIO = "android:play_audio";
  165. field public static final String OPSTR_POST_NOTIFICATION = "android:post_notification";
  166. field public static final String OPSTR_PROJECT_MEDIA = "android:project_media";
  167. field public static final String OPSTR_READ_CLIPBOARD = "android:read_clipboard";
  168. field public static final String OPSTR_READ_ICC_SMS = "android:read_icc_sms";
  169. field public static final String OPSTR_RECEIVE_EMERGENCY_BROADCAST = "android:receive_emergency_broadcast";
  170. field public static final String OPSTR_REQUEST_DELETE_PACKAGES = "android:request_delete_packages";
  171. field public static final String OPSTR_REQUEST_INSTALL_PACKAGES = "android:request_install_packages";
  172. field public static final String OPSTR_RUN_ANY_IN_BACKGROUND = "android:run_any_in_background";
  173. field public static final String OPSTR_RUN_IN_BACKGROUND = "android:run_in_background";
  174. field public static final String OPSTR_START_FOREGROUND = "android:start_foreground";
  175. field public static final String OPSTR_TAKE_AUDIO_FOCUS = "android:take_audio_focus";
  176. field public static final String OPSTR_TAKE_MEDIA_BUTTONS = "android:take_media_buttons";
  177. field public static final String OPSTR_TOAST_WINDOW = "android:toast_window";
  178. field public static final String OPSTR_TURN_SCREEN_ON = "android:turn_screen_on";
  179. field public static final String OPSTR_VIBRATE = "android:vibrate";
  180. field public static final String OPSTR_WAKE_LOCK = "android:wake_lock";
  181. field public static final String OPSTR_WIFI_SCAN = "android:wifi_scan";
  182. field public static final String OPSTR_WRITE_CLIPBOARD = "android:write_clipboard";
  183. field public static final String OPSTR_WRITE_ICC_SMS = "android:write_icc_sms";
  184. field public static final String OPSTR_WRITE_SMS = "android:write_sms";
  185. field public static final String OPSTR_WRITE_WALLPAPER = "android:write_wallpaper";
  186. field public static final int OP_COARSE_LOCATION = 0; // 0x0
  187. field public static final int OP_FLAGS_ALL = 31; // 0x1f
  188. field public static final int OP_FLAG_SELF = 1; // 0x1
  189. field public static final int OP_FLAG_TRUSTED_PROXIED = 8; // 0x8
  190. field public static final int OP_FLAG_TRUSTED_PROXY = 2; // 0x2
  191. field public static final int OP_FLAG_UNTRUSTED_PROXIED = 16; // 0x10
  192. field public static final int OP_FLAG_UNTRUSTED_PROXY = 4; // 0x4
  193. field public static final int OP_RECORD_AUDIO = 27; // 0x1b
  194. field public static final int OP_START_FOREGROUND = 76; // 0x4c
  195. field public static final int OP_SYSTEM_ALERT_WINDOW = 24; // 0x18
  196. field public static final int UID_STATE_BACKGROUND = 600; // 0x258
  197. field public static final int UID_STATE_CACHED = 700; // 0x2bc
  198. field public static final int UID_STATE_FOREGROUND = 500; // 0x1f4
  199. field public static final int UID_STATE_FOREGROUND_SERVICE = 400; // 0x190
  200. field public static final int UID_STATE_FOREGROUND_SERVICE_LOCATION = 300; // 0x12c
  201. field public static final int UID_STATE_PERSISTENT = 100; // 0x64
  202. field public static final int UID_STATE_TOP = 200; // 0xc8
  203. }
  204. public static final class AppOpsManager.HistoricalOp implements android.os.Parcelable {
  205. method public int describeContents();
  206. method public long getAccessCount(int, int, int);
  207. method public long getAccessDuration(int, int, int);
  208. method public long getBackgroundAccessCount(int);
  209. method public long getBackgroundAccessDuration(int);
  210. method public long getBackgroundRejectCount(int);
  211. method public long getForegroundAccessCount(int);
  212. method public long getForegroundAccessDuration(int);
  213. method public long getForegroundRejectCount(int);
  214. method @NonNull public String getOpName();
  215. method public long getRejectCount(int, int, int);
  216. method public void writeToParcel(android.os.Parcel, int);
  217. field @NonNull public static final android.os.Parcelable.Creator<android.app.AppOpsManager.HistoricalOp> CREATOR;
  218. }
  219. public static final class AppOpsManager.HistoricalOps implements android.os.Parcelable {
  220. ctor public AppOpsManager.HistoricalOps(long, long);
  221. method public int describeContents();
  222. method public long getBeginTimeMillis();
  223. method public long getEndTimeMillis();
  224. method @IntRange(from=0) public int getUidCount();
  225. method @Nullable public android.app.AppOpsManager.HistoricalUidOps getUidOps(int);
  226. method @NonNull public android.app.AppOpsManager.HistoricalUidOps getUidOpsAt(@IntRange(from=0) int);
  227. method public void increaseAccessCount(int, int, @NonNull String, int, int, long);
  228. method public void increaseAccessDuration(int, int, @NonNull String, int, int, long);
  229. method public void increaseRejectCount(int, int, @NonNull String, int, int, long);
  230. method public void offsetBeginAndEndTime(long);
  231. method public void writeToParcel(android.os.Parcel, int);
  232. field @NonNull public static final android.os.Parcelable.Creator<android.app.AppOpsManager.HistoricalOps> CREATOR;
  233. }
  234. public static final class AppOpsManager.HistoricalOpsRequest {
  235. }
  236. public static final class AppOpsManager.HistoricalOpsRequest.Builder {
  237. ctor public AppOpsManager.HistoricalOpsRequest.Builder(long, long);
  238. method @NonNull public android.app.AppOpsManager.HistoricalOpsRequest build();
  239. method @NonNull public android.app.AppOpsManager.HistoricalOpsRequest.Builder setFlags(int);
  240. method @NonNull public android.app.AppOpsManager.HistoricalOpsRequest.Builder setOpNames(@Nullable java.util.List<java.lang.String>);
  241. method @NonNull public android.app.AppOpsManager.HistoricalOpsRequest.Builder setPackageName(@Nullable String);
  242. method @NonNull public android.app.AppOpsManager.HistoricalOpsRequest.Builder setUid(int);
  243. }
  244. public static final class AppOpsManager.HistoricalPackageOps implements android.os.Parcelable {
  245. method public int describeContents();
  246. method @Nullable public android.app.AppOpsManager.HistoricalOp getOp(@NonNull String);
  247. method @NonNull public android.app.AppOpsManager.HistoricalOp getOpAt(@IntRange(from=0) int);
  248. method @IntRange(from=0) public int getOpCount();
  249. method @NonNull public String getPackageName();
  250. method public void writeToParcel(@NonNull android.os.Parcel, int);
  251. field @NonNull public static final android.os.Parcelable.Creator<android.app.AppOpsManager.HistoricalPackageOps> CREATOR;
  252. }
  253. public static final class AppOpsManager.HistoricalUidOps implements android.os.Parcelable {
  254. method public int describeContents();
  255. method @IntRange(from=0) public int getPackageCount();
  256. method @Nullable public android.app.AppOpsManager.HistoricalPackageOps getPackageOps(@NonNull String);
  257. method @NonNull public android.app.AppOpsManager.HistoricalPackageOps getPackageOpsAt(@IntRange(from=0) int);
  258. method public int getUid();
  259. method public void writeToParcel(android.os.Parcel, int);
  260. field @NonNull public static final android.os.Parcelable.Creator<android.app.AppOpsManager.HistoricalUidOps> CREATOR;
  261. }
  262. public static interface AppOpsManager.OnOpActiveChangedListener {
  263. method public void onOpActiveChanged(int, int, String, boolean);
  264. }
  265. public static final class AppOpsManager.OpEntry implements android.os.Parcelable {
  266. method public int describeContents();
  267. method public long getDuration();
  268. method public long getLastAccessBackgroundTime(int);
  269. method public long getLastAccessForegroundTime(int);
  270. method public long getLastAccessTime(int);
  271. method public long getLastAccessTime(int, int, int);
  272. method public long getLastBackgroundDuration(int);
  273. method public long getLastDuration(int, int, int);
  274. method public long getLastForegroundDuration(int);
  275. method public long getLastRejectBackgroundTime(int);
  276. method public long getLastRejectForegroundTime(int);
  277. method public long getLastRejectTime(int);
  278. method public long getLastRejectTime(int, int, int);
  279. method public int getMode();
  280. method @NonNull public String getOpStr();
  281. method @Nullable public String getProxyPackageName();
  282. method @Nullable public String getProxyPackageName(int, int);
  283. method public int getProxyUid();
  284. method public int getProxyUid(int, int);
  285. method public boolean isRunning();
  286. method public void writeToParcel(android.os.Parcel, int);
  287. field @NonNull public static final android.os.Parcelable.Creator<android.app.AppOpsManager.OpEntry> CREATOR;
  288. }
  289. public class DownloadManager {
  290. field public static final String COLUMN_MEDIASTORE_URI = "mediastore_uri";
  291. }
  292. public final class NotificationChannel implements android.os.Parcelable {
  293. method public boolean isImportanceLockedByCriticalDeviceFunction();
  294. method public boolean isImportanceLockedByOEM();
  295. method public void setImportanceLockedByCriticalDeviceFunction(boolean);
  296. method public void setImportanceLockedByOEM(boolean);
  297. }
  298. public final class NotificationChannelGroup implements android.os.Parcelable {
  299. method public int getUserLockedFields();
  300. method public void lockFields(int);
  301. method public void setBlocked(boolean);
  302. }
  303. public class NotificationManager {
  304. method public void allowAssistantAdjustment(String);
  305. method public void disallowAssistantAdjustment(String);
  306. method @NonNull public java.util.List<java.lang.String> getAllowedAssistantAdjustments();
  307. method @Nullable public android.content.ComponentName getAllowedNotificationAssistant();
  308. method public android.content.ComponentName getEffectsSuppressor();
  309. method public boolean isNotificationAssistantAccessGranted(@NonNull android.content.ComponentName);
  310. method public boolean matchesCallFilter(android.os.Bundle);
  311. method public void setNotificationAssistantAccessGranted(@Nullable android.content.ComponentName, boolean);
  312. }
  313. public final class PictureInPictureParams implements android.os.Parcelable {
  314. method public java.util.List<android.app.RemoteAction> getActions();
  315. method public float getAspectRatio();
  316. method public android.graphics.Rect getSourceRectHint();
  317. }
  318. public class StatusBarManager {
  319. method @NonNull @RequiresPermission(android.Manifest.permission.STATUS_BAR) public android.app.StatusBarManager.DisableInfo getDisableInfo();
  320. method @RequiresPermission(android.Manifest.permission.STATUS_BAR) public void setDisabledForSetup(boolean);
  321. }
  322. public static final class StatusBarManager.DisableInfo {
  323. method public boolean areAllComponentsEnabled();
  324. method public boolean isNavigateToHomeDisabled();
  325. method public boolean isNotificationPeekingDisabled();
  326. method public boolean isRecentsDisabled();
  327. method public boolean isSearchDisabled();
  328. method public boolean isStatusBarExpansionDisabled();
  329. }
  330. public class TimePickerDialog extends android.app.AlertDialog implements android.content.DialogInterface.OnClickListener android.widget.TimePicker.OnTimeChangedListener {
  331. method public android.widget.TimePicker getTimePicker();
  332. }
  333. public final class UiAutomation {
  334. method public void destroy();
  335. method public android.os.ParcelFileDescriptor[] executeShellCommandRw(String);
  336. method @Deprecated public boolean grantRuntimePermission(String, String, android.os.UserHandle);
  337. method @Deprecated public boolean revokeRuntimePermission(String, String, android.os.UserHandle);
  338. method public void syncInputTransactions();
  339. }
  340. public class UiModeManager {
  341. method public boolean isNightModeLocked();
  342. method public boolean isUiModeLocked();
  343. }
  344. public class WallpaperManager {
  345. method @RequiresPermission("android.permission.SET_WALLPAPER_COMPONENT") public boolean setWallpaperComponent(android.content.ComponentName);
  346. }
  347. public class WindowConfiguration implements java.lang.Comparable<android.app.WindowConfiguration> android.os.Parcelable {
  348. ctor public WindowConfiguration();
  349. method public int compareTo(android.app.WindowConfiguration);
  350. method public int describeContents();
  351. method public int getActivityType();
  352. method public android.graphics.Rect getAppBounds();
  353. method public android.graphics.Rect getBounds();
  354. method public int getRotation();
  355. method public int getWindowingMode();
  356. method public void setActivityType(int);
  357. method public void setAppBounds(android.graphics.Rect);
  358. method public void setBounds(android.graphics.Rect);
  359. method public void setRotation(int);
  360. method public void setTo(android.app.WindowConfiguration);
  361. method public void setWindowingMode(int);
  362. method public void writeToParcel(android.os.Parcel, int);
  363. field public static final int ACTIVITY_TYPE_ASSISTANT = 4; // 0x4
  364. field public static final int ACTIVITY_TYPE_HOME = 2; // 0x2
  365. field public static final int ACTIVITY_TYPE_RECENTS = 3; // 0x3
  366. field public static final int ACTIVITY_TYPE_STANDARD = 1; // 0x1
  367. field public static final int ACTIVITY_TYPE_UNDEFINED = 0; // 0x0
  368. field public static final int ROTATION_UNDEFINED = -1; // 0xffffffff
  369. field public static final int WINDOWING_MODE_FREEFORM = 5; // 0x5
  370. field public static final int WINDOWING_MODE_FULLSCREEN = 1; // 0x1
  371. field public static final int WINDOWING_MODE_FULLSCREEN_OR_SPLIT_SCREEN_SECONDARY = 4; // 0x4
  372. field public static final int WINDOWING_MODE_PINNED = 2; // 0x2
  373. field public static final int WINDOWING_MODE_SPLIT_SCREEN_PRIMARY = 3; // 0x3
  374. field public static final int WINDOWING_MODE_SPLIT_SCREEN_SECONDARY = 4; // 0x4
  375. field public static final int WINDOWING_MODE_UNDEFINED = 0; // 0x0
  376. }
  377. }
  378. package android.app.admin {
  379. public class DevicePolicyManager {
  380. method @Nullable public CharSequence getDeviceOwnerOrganizationName();
  381. method public long getLastBugReportRequestTime();
  382. method public long getLastNetworkLogRetrievalTime();
  383. method public long getLastSecurityLogRetrievalTime();
  384. method public java.util.List<java.lang.String> getOwnerInstalledCaCerts(@NonNull android.os.UserHandle);
  385. method public boolean isCurrentInputMethodSetByOwner();
  386. method public boolean isDeviceManaged();
  387. field public static final String ACCOUNT_FEATURE_DEVICE_OR_PROFILE_OWNER_ALLOWED = "android.account.DEVICE_OR_PROFILE_OWNER_ALLOWED";
  388. field public static final String ACCOUNT_FEATURE_DEVICE_OR_PROFILE_OWNER_DISALLOWED = "android.account.DEVICE_OR_PROFILE_OWNER_DISALLOWED";
  389. field public static final String ACTION_DATA_SHARING_RESTRICTION_APPLIED = "android.app.action.DATA_SHARING_RESTRICTION_APPLIED";
  390. field public static final String EXTRA_RESTRICTION = "android.app.extra.RESTRICTION";
  391. }
  392. public static final class SecurityLog.SecurityEvent implements android.os.Parcelable {
  393. ctor public SecurityLog.SecurityEvent(long, byte[]);
  394. }
  395. }
  396. package android.app.assist {
  397. public static class AssistStructure.ViewNode {
  398. ctor public AssistStructure.ViewNode();
  399. }
  400. }
  401. package android.app.backup {
  402. public class BackupManager {
  403. method @RequiresPermission("android.permission.BACKUP") public android.content.Intent getConfigurationIntent(String);
  404. method @RequiresPermission("android.permission.BACKUP") public android.content.Intent getDataManagementIntent(String);
  405. method @Nullable @RequiresPermission("android.permission.BACKUP") public CharSequence getDataManagementIntentLabel(@NonNull String);
  406. method @Deprecated @Nullable @RequiresPermission("android.permission.BACKUP") public String getDataManagementLabel(@NonNull String);
  407. method @RequiresPermission("android.permission.BACKUP") public String getDestinationString(String);
  408. }
  409. }
  410. package android.app.prediction {
  411. public final class AppPredictionContext implements android.os.Parcelable {
  412. method public int describeContents();
  413. method @Nullable public android.os.Bundle getExtras();
  414. method @NonNull public String getPackageName();
  415. method @IntRange(from=0) public int getPredictedTargetCount();
  416. method @NonNull public String getUiSurface();
  417. method public void writeToParcel(@NonNull android.os.Parcel, int);
  418. field @NonNull public static final android.os.Parcelable.Creator<android.app.prediction.AppPredictionContext> CREATOR;
  419. }
  420. public static final class AppPredictionContext.Builder {
  421. ctor public AppPredictionContext.Builder(@NonNull android.content.Context);
  422. method @NonNull public android.app.prediction.AppPredictionContext build();
  423. method @NonNull public android.app.prediction.AppPredictionContext.Builder setExtras(@Nullable android.os.Bundle);
  424. method @NonNull public android.app.prediction.AppPredictionContext.Builder setPredictedTargetCount(@IntRange(from=0) int);
  425. method @NonNull public android.app.prediction.AppPredictionContext.Builder setUiSurface(@NonNull String);
  426. }
  427. public final class AppPredictionManager {
  428. method @NonNull public android.app.prediction.AppPredictor createAppPredictionSession(@NonNull android.app.prediction.AppPredictionContext);
  429. }
  430. public final class AppPredictionSessionId implements android.os.Parcelable {
  431. method public int describeContents();
  432. method public void writeToParcel(android.os.Parcel, int);
  433. field @NonNull public static final android.os.Parcelable.Creator<android.app.prediction.AppPredictionSessionId> CREATOR;
  434. }
  435. public final class AppPredictor {
  436. method public void destroy();
  437. method public android.app.prediction.AppPredictionSessionId getSessionId();
  438. method public void notifyAppTargetEvent(@NonNull android.app.prediction.AppTargetEvent);
  439. method public void notifyLaunchLocationShown(@NonNull String, @NonNull java.util.List<android.app.prediction.AppTargetId>);
  440. method public void registerPredictionUpdates(@NonNull java.util.concurrent.Executor, @NonNull android.app.prediction.AppPredictor.Callback);
  441. method public void requestPredictionUpdate();
  442. 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>>);
  443. method public void unregisterPredictionUpdates(@NonNull android.app.prediction.AppPredictor.Callback);
  444. }
  445. public static interface AppPredictor.Callback {
  446. method public void onTargetsAvailable(@NonNull java.util.List<android.app.prediction.AppTarget>);
  447. }
  448. public final class AppTarget implements android.os.Parcelable {
  449. method public int describeContents();
  450. method @Nullable public String getClassName();
  451. method @NonNull public android.app.prediction.AppTargetId getId();
  452. method @NonNull public String getPackageName();
  453. method @IntRange(from=0) public int getRank();
  454. method @Nullable public android.content.pm.ShortcutInfo getShortcutInfo();
  455. method @NonNull public android.os.UserHandle getUser();
  456. method public void writeToParcel(android.os.Parcel, int);
  457. field @NonNull public static final android.os.Parcelable.Creator<android.app.prediction.AppTarget> CREATOR;
  458. }
  459. public static final class AppTarget.Builder {
  460. ctor public AppTarget.Builder(@NonNull android.app.prediction.AppTargetId, @NonNull String, @NonNull android.os.UserHandle);
  461. ctor public AppTarget.Builder(@NonNull android.app.prediction.AppTargetId, @NonNull android.content.pm.ShortcutInfo);
  462. method @NonNull public android.app.prediction.AppTarget build();
  463. method @NonNull public android.app.prediction.AppTarget.Builder setClassName(@NonNull String);
  464. method @NonNull public android.app.prediction.AppTarget.Builder setRank(@IntRange(from=0) int);
  465. }
  466. public final class AppTargetEvent implements android.os.Parcelable {
  467. method public int describeContents();
  468. method public int getAction();
  469. method @Nullable public String getLaunchLocation();
  470. method @Nullable public android.app.prediction.AppTarget getTarget();
  471. method public void writeToParcel(android.os.Parcel, int);
  472. field public static final int ACTION_DISMISS = 2; // 0x2
  473. field public static final int ACTION_LAUNCH = 1; // 0x1
  474. field public static final int ACTION_PIN = 3; // 0x3
  475. field @NonNull public static final android.os.Parcelable.Creator<android.app.prediction.AppTargetEvent> CREATOR;
  476. }
  477. public static final class AppTargetEvent.Builder {
  478. ctor public AppTargetEvent.Builder(@Nullable android.app.prediction.AppTarget, int);
  479. method @NonNull public android.app.prediction.AppTargetEvent build();
  480. method @NonNull public android.app.prediction.AppTargetEvent.Builder setLaunchLocation(@Nullable String);
  481. }
  482. public final class AppTargetId implements android.os.Parcelable {
  483. ctor public AppTargetId(@NonNull String);
  484. method public int describeContents();
  485. method public void writeToParcel(android.os.Parcel, int);
  486. field @NonNull public static final android.os.Parcelable.Creator<android.app.prediction.AppTargetId> CREATOR;
  487. }
  488. }
  489. package android.app.role {
  490. public interface OnRoleHoldersChangedListener {
  491. method public void onRoleHoldersChanged(@NonNull String, @NonNull android.os.UserHandle);
  492. }
  493. public final class RoleManager {
  494. method @RequiresPermission("android.permission.OBSERVE_ROLE_HOLDERS") public void addOnRoleHoldersChangedListenerAsUser(@NonNull java.util.concurrent.Executor, @NonNull android.app.role.OnRoleHoldersChangedListener, @NonNull android.os.UserHandle);
  495. method @RequiresPermission("android.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>);
  496. method @RequiresPermission("com.android.permissioncontroller.permission.MANAGE_ROLES_FROM_CONTROLLER") public boolean addRoleHolderFromController(@NonNull String, @NonNull String);
  497. method @RequiresPermission("android.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>);
  498. method @NonNull @RequiresPermission("com.android.permissioncontroller.permission.MANAGE_ROLES_FROM_CONTROLLER") public java.util.List<java.lang.String> getHeldRolesFromController(@NonNull String);
  499. method @NonNull @RequiresPermission("android.permission.MANAGE_ROLE_HOLDERS") public java.util.List<java.lang.String> getRoleHolders(@NonNull String);
  500. method @NonNull @RequiresPermission("android.permission.MANAGE_ROLE_HOLDERS") public java.util.List<java.lang.String> getRoleHoldersAsUser(@NonNull String, @NonNull android.os.UserHandle);
  501. method @RequiresPermission("android.permission.OBSERVE_ROLE_HOLDERS") public void removeOnRoleHoldersChangedListenerAsUser(@NonNull android.app.role.OnRoleHoldersChangedListener, @NonNull android.os.UserHandle);
  502. method @RequiresPermission("android.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>);
  503. method @RequiresPermission("com.android.permissioncontroller.permission.MANAGE_ROLES_FROM_CONTROLLER") public boolean removeRoleHolderFromController(@NonNull String, @NonNull String);
  504. method @RequiresPermission("com.android.permissioncontroller.permission.MANAGE_ROLES_FROM_CONTROLLER") public void setRoleNamesFromController(@NonNull java.util.List<java.lang.String>);
  505. field public static final int MANAGE_HOLDERS_FLAG_DONT_KILL_APP = 1; // 0x1
  506. }
  507. }
  508. package android.app.usage {
  509. public class NetworkStatsManager {
  510. method public void setPollForce(boolean);
  511. }
  512. public class StorageStatsManager {
  513. method public boolean isQuotaSupported(@NonNull java.util.UUID);
  514. method public boolean isReservedSupported(@NonNull java.util.UUID);
  515. }
  516. public final class UsageStatsManager {
  517. method public void forceUsageSourceSettingRead();
  518. }
  519. }
  520. package android.bluetooth {
  521. public final class BluetoothClass implements android.os.Parcelable {
  522. method public int getClassOfDevice();
  523. }
  524. }
  525. package android.content {
  526. public final class AutofillOptions implements android.os.Parcelable {
  527. ctor public AutofillOptions(int, boolean);
  528. method public int describeContents();
  529. method public static android.content.AutofillOptions forWhitelistingItself();
  530. method public boolean isAugmentedAutofillEnabled(@NonNull android.content.Context);
  531. method public void writeToParcel(android.os.Parcel, int);
  532. field @NonNull public static final android.os.Parcelable.Creator<android.content.AutofillOptions> CREATOR;
  533. field public boolean augmentedAutofillEnabled;
  534. field public final boolean compatModeEnabled;
  535. field public final int loggingLevel;
  536. field @Nullable public android.util.ArraySet<android.content.ComponentName> whitelistedActivitiesForAugmentedAutofill;
  537. }
  538. public final class ContentCaptureOptions implements android.os.Parcelable {
  539. ctor public ContentCaptureOptions(int);
  540. ctor public ContentCaptureOptions(int, int, int, int, int, @Nullable android.util.ArraySet<android.content.ComponentName>);
  541. method public int describeContents();
  542. method public static android.content.ContentCaptureOptions forWhitelistingItself();
  543. method public void writeToParcel(android.os.Parcel, int);
  544. field @NonNull public static final android.os.Parcelable.Creator<android.content.ContentCaptureOptions> CREATOR;
  545. field public final int idleFlushingFrequencyMs;
  546. field public final boolean lite;
  547. field public final int logHistorySize;
  548. field public final int loggingLevel;
  549. field public final int maxBufferSize;
  550. field public final int textChangeFlushingFrequencyMs;
  551. field @Nullable public final android.util.ArraySet<android.content.ComponentName> whitelistedComponents;
  552. }
  553. public class ContentProviderClient implements java.lang.AutoCloseable {
  554. method @RequiresPermission(android.Manifest.permission.REMOVE_TASKS) public void setDetectNotResponding(long);
  555. }
  556. public abstract class ContentResolver {
  557. method public static String[] getSyncAdapterPackagesForAuthorityAsUser(String, int);
  558. }
  559. public abstract class Context {
  560. method public android.content.Context createPackageContextAsUser(String, int, android.os.UserHandle) throws android.content.pm.PackageManager.NameNotFoundException;
  561. method public abstract android.view.Display getDisplay();
  562. method public abstract int getDisplayId();
  563. method public android.os.UserHandle getUser();
  564. method public int getUserId();
  565. method public void setAutofillOptions(@Nullable android.content.AutofillOptions);
  566. method public void setContentCaptureOptions(@Nullable android.content.ContentCaptureOptions);
  567. field public static final String BUGREPORT_SERVICE = "bugreport";
  568. field public static final String CONTENT_CAPTURE_MANAGER_SERVICE = "content_capture";
  569. field public static final String PERMISSION_SERVICE = "permission";
  570. field public static final String ROLLBACK_SERVICE = "rollback";
  571. field public static final String STATUS_BAR_SERVICE = "statusbar";
  572. field public static final String TEST_NETWORK_SERVICE = "test_network";
  573. }
  574. public class ContextWrapper extends android.content.Context {
  575. method public android.view.Display getDisplay();
  576. method public int getDisplayId();
  577. }
  578. public class Intent implements java.lang.Cloneable android.os.Parcelable {
  579. field public static final String ACTION_ROLLBACK_COMMITTED = "android.intent.action.ROLLBACK_COMMITTED";
  580. field public static final String EXTRA_ROLE_NAME = "android.intent.extra.ROLE_NAME";
  581. }
  582. }
  583. package android.content.pm {
  584. public class ActivityInfo extends android.content.pm.ComponentInfo implements android.os.Parcelable {
  585. method public static boolean isTranslucentOrFloating(android.content.res.TypedArray);
  586. field public static final int RESIZE_MODE_RESIZEABLE = 2; // 0x2
  587. }
  588. public class ApplicationInfo extends android.content.pm.PackageItemInfo implements android.os.Parcelable {
  589. method public boolean isPrivilegedApp();
  590. method public boolean isSystemApp();
  591. field public static final int PRIVATE_FLAG_PRIVILEGED = 8; // 0x8
  592. field public int privateFlags;
  593. }
  594. public class LauncherApps {
  595. ctor public LauncherApps(android.content.Context);
  596. }
  597. public static class PackageInstaller.SessionInfo implements android.os.Parcelable {
  598. method @NonNull public java.util.Set<java.lang.String> getWhitelistedRestrictedPermissions();
  599. }
  600. public static class PackageInstaller.SessionParams implements android.os.Parcelable {
  601. method public void setEnableRollback(boolean);
  602. method @RequiresPermission("android.permission.INSTALL_GRANT_RUNTIME_PERMISSIONS") public void setGrantedRuntimePermissions(String[]);
  603. method @RequiresPermission(android.Manifest.permission.INSTALL_PACKAGES) public void setInstallAsApex();
  604. method @RequiresPermission(android.Manifest.permission.INSTALL_PACKAGES) public void setStaged();
  605. }
  606. public abstract class PackageManager {
  607. method public abstract boolean arePermissionsIndividuallyControlled();
  608. method @Nullable @RequiresPermission("android.permission.INTERACT_ACROSS_USERS_FULL") public abstract String getDefaultBrowserPackageNameAsUser(int);
  609. method @Nullable public String getIncidentReportApproverPackageName();
  610. method public abstract int getInstallReason(@NonNull String, @NonNull android.os.UserHandle);
  611. method @NonNull public abstract java.util.List<android.content.pm.ApplicationInfo> getInstalledApplicationsAsUser(int, int);
  612. method @NonNull @RequiresPermission("android.permission.INTERACT_ACROSS_USERS_FULL") public abstract java.util.List<android.content.pm.PackageInfo> getInstalledPackagesAsUser(int, int);
  613. method @Nullable public abstract String[] getNamesForUids(int[]);
  614. method @NonNull public abstract String getPermissionControllerPackageName();
  615. method @RequiresPermission(anyOf={"android.permission.GRANT_RUNTIME_PERMISSIONS", "android.permission.REVOKE_RUNTIME_PERMISSIONS", "android.permission.GET_RUNTIME_PERMISSIONS"}) public abstract int getPermissionFlags(@NonNull String, @NonNull String, @NonNull android.os.UserHandle);
  616. method @NonNull public abstract String getServicesSystemSharedLibraryPackageName();
  617. method @NonNull public abstract String getSharedSystemSharedLibraryPackageName();
  618. method @Nullable public String getWellbeingPackageName();
  619. method @RequiresPermission("android.permission.GRANT_RUNTIME_PERMISSIONS") public abstract void grantRuntimePermission(@NonNull String, @NonNull String, @NonNull android.os.UserHandle);
  620. method @RequiresPermission("android.permission.REVOKE_RUNTIME_PERMISSIONS") public abstract void revokeRuntimePermission(@NonNull String, @NonNull String, @NonNull android.os.UserHandle);
  621. method @RequiresPermission(anyOf={"android.permission.GRANT_RUNTIME_PERMISSIONS", "android.permission.REVOKE_RUNTIME_PERMISSIONS"}) public abstract void updatePermissionFlags(@NonNull String, @NonNull String, int, int, @NonNull android.os.UserHandle);
  622. field public static final String FEATURE_ADOPTABLE_STORAGE = "android.software.adoptable_storage";
  623. field public static final String FEATURE_FILE_BASED_ENCRYPTION = "android.software.file_based_encryption";
  624. field public static final int FLAG_PERMISSION_APPLY_RESTRICTION = 16384; // 0x4000
  625. field public static final int FLAG_PERMISSION_GRANTED_BY_ROLE = 32768; // 0x8000
  626. field public static final int FLAG_PERMISSION_POLICY_FIXED = 4; // 0x4
  627. field public static final int FLAG_PERMISSION_RESTRICTION_INSTALLER_EXEMPT = 2048; // 0x800
  628. field public static final int FLAG_PERMISSION_RESTRICTION_SYSTEM_EXEMPT = 4096; // 0x1000
  629. field public static final int FLAG_PERMISSION_RESTRICTION_UPGRADE_EXEMPT = 8192; // 0x2000
  630. field public static final int FLAG_PERMISSION_REVIEW_REQUIRED = 64; // 0x40
  631. field public static final int FLAG_PERMISSION_REVOKE_ON_UPGRADE = 8; // 0x8
  632. field public static final int FLAG_PERMISSION_REVOKE_WHEN_REQUESTED = 128; // 0x80
  633. field public static final int FLAG_PERMISSION_SYSTEM_FIXED = 16; // 0x10
  634. field public static final int FLAG_PERMISSION_USER_FIXED = 2; // 0x2
  635. field public static final int FLAG_PERMISSION_USER_SET = 1; // 0x1
  636. field public static final int MATCH_FACTORY_ONLY = 2097152; // 0x200000
  637. field public static final int MATCH_KNOWN_PACKAGES = 4202496; // 0x402000
  638. field public static final String SYSTEM_SHARED_LIBRARY_SERVICES = "android.ext.services";
  639. field public static final String SYSTEM_SHARED_LIBRARY_SHARED = "android.ext.shared";
  640. }
  641. public class PermissionInfo extends android.content.pm.PackageItemInfo implements android.os.Parcelable {
  642. field public static final int FLAG_REMOVED = 2; // 0x2
  643. field public static final int PROTECTION_FLAG_APP_PREDICTOR = 2097152; // 0x200000
  644. field public static final int PROTECTION_FLAG_CONFIGURATOR = 524288; // 0x80000
  645. field public static final int PROTECTION_FLAG_DOCUMENTER = 262144; // 0x40000
  646. field public static final int PROTECTION_FLAG_INCIDENT_REPORT_APPROVER = 1048576; // 0x100000
  647. field public static final int PROTECTION_FLAG_OEM = 16384; // 0x4000
  648. field public static final int PROTECTION_FLAG_SYSTEM_TEXT_CLASSIFIER = 65536; // 0x10000
  649. field public static final int PROTECTION_FLAG_VENDOR_PRIVILEGED = 32768; // 0x8000
  650. field public static final int PROTECTION_FLAG_WELLBEING = 131072; // 0x20000
  651. field @Nullable public final String backgroundPermission;
  652. }
  653. public final class ShortcutInfo implements android.os.Parcelable {
  654. method public boolean isVisibleToPublisher();
  655. }
  656. public class ShortcutManager {
  657. ctor public ShortcutManager(android.content.Context);
  658. }
  659. }
  660. package android.content.res {
  661. public final class AssetManager implements java.lang.AutoCloseable {
  662. method @NonNull public String[] getApkPaths();
  663. method @Nullable public java.util.Map<java.lang.String,java.lang.String> getOverlayableMap(String);
  664. }
  665. public final class Configuration implements java.lang.Comparable<android.content.res.Configuration> android.os.Parcelable {
  666. field public int assetsSeq;
  667. field public final android.app.WindowConfiguration windowConfiguration;
  668. }
  669. }
  670. package android.content.rollback {
  671. public final class PackageRollbackInfo implements android.os.Parcelable {
  672. method public int describeContents();
  673. method @NonNull public String getPackageName();
  674. method @NonNull public android.content.pm.VersionedPackage getVersionRolledBackFrom();
  675. method @NonNull public android.content.pm.VersionedPackage getVersionRolledBackTo();
  676. method public void writeToParcel(android.os.Parcel, int);
  677. field @NonNull public static final android.os.Parcelable.Creator<android.content.rollback.PackageRollbackInfo> CREATOR;
  678. }
  679. public final class RollbackInfo implements android.os.Parcelable {
  680. method public int describeContents();
  681. method @NonNull public java.util.List<android.content.pm.VersionedPackage> getCausePackages();
  682. method public int getCommittedSessionId();
  683. method @NonNull public java.util.List<android.content.rollback.PackageRollbackInfo> getPackages();
  684. method public int getRollbackId();
  685. method public boolean isStaged();
  686. method public void writeToParcel(android.os.Parcel, int);
  687. field @NonNull public static final android.os.Parcelable.Creator<android.content.rollback.RollbackInfo> CREATOR;
  688. }
  689. public final class RollbackManager {
  690. method @RequiresPermission(anyOf={android.Manifest.permission.MANAGE_ROLLBACKS, android.Manifest.permission.TEST_MANAGE_ROLLBACKS}) public void commitRollback(int, @NonNull java.util.List<android.content.pm.VersionedPackage>, @NonNull android.content.IntentSender);
  691. method @RequiresPermission(android.Manifest.permission.TEST_MANAGE_ROLLBACKS) public void expireRollbackForPackage(@NonNull String);
  692. method @RequiresPermission(anyOf={android.Manifest.permission.MANAGE_ROLLBACKS, android.Manifest.permission.TEST_MANAGE_ROLLBACKS}) @NonNull public java.util.List<android.content.rollback.RollbackInfo> getAvailableRollbacks();
  693. method @RequiresPermission(anyOf={android.Manifest.permission.MANAGE_ROLLBACKS, android.Manifest.permission.TEST_MANAGE_ROLLBACKS}) @NonNull public java.util.List<android.content.rollback.RollbackInfo> getRecentlyCommittedRollbacks();
  694. method @RequiresPermission(android.Manifest.permission.TEST_MANAGE_ROLLBACKS) public void reloadPersistedData();
  695. field public static final String EXTRA_STATUS = "android.content.rollback.extra.STATUS";
  696. field public static final String EXTRA_STATUS_MESSAGE = "android.content.rollback.extra.STATUS_MESSAGE";
  697. field public static final String PROPERTY_ROLLBACK_LIFETIME_MILLIS = "rollback_lifetime_in_millis";
  698. field public static final int STATUS_FAILURE = 1; // 0x1
  699. field public static final int STATUS_FAILURE_INSTALL = 3; // 0x3
  700. field public static final int STATUS_FAILURE_ROLLBACK_UNAVAILABLE = 2; // 0x2
  701. field public static final int STATUS_SUCCESS = 0; // 0x0
  702. }
  703. }
  704. package android.database.sqlite {
  705. public class SQLiteCompatibilityWalFlags {
  706. method public static void reset();
  707. }
  708. public final class SQLiteDebug {
  709. method public static void dump(android.util.Printer, String[]);
  710. method public static android.database.sqlite.SQLiteDebug.PagerStats getDatabaseInfo();
  711. }
  712. public static class SQLiteDebug.DbStats {
  713. ctor public SQLiteDebug.DbStats(String, long, long, int, int, int, int);
  714. field public String cache;
  715. field public String dbName;
  716. field public long dbSize;
  717. field public int lookaside;
  718. field public long pageSize;
  719. }
  720. public static class SQLiteDebug.PagerStats {
  721. ctor public SQLiteDebug.PagerStats();
  722. field public java.util.ArrayList<android.database.sqlite.SQLiteDebug.DbStats> dbStats;
  723. field public int largestMemAlloc;
  724. field public int memoryUsed;
  725. field public int pageCacheOverflow;
  726. }
  727. public final class SQLiteDirectCursorDriver implements android.database.sqlite.SQLiteCursorDriver {
  728. ctor public SQLiteDirectCursorDriver(android.database.sqlite.SQLiteDatabase, String, String, android.os.CancellationSignal);
  729. method public void cursorClosed();
  730. method public void cursorDeactivated();
  731. method public void cursorRequeried(android.database.Cursor);
  732. method public android.database.Cursor query(android.database.sqlite.SQLiteDatabase.CursorFactory, String[]);
  733. method public void setBindArguments(String[]);
  734. }
  735. public final class SQLiteGlobal {
  736. method public static String getDefaultJournalMode();
  737. method public static int getDefaultPageSize();
  738. method public static String getDefaultSyncMode();
  739. method public static int getIdleConnectionTimeout();
  740. method public static int getJournalSizeLimit();
  741. method public static int getWALAutoCheckpoint();
  742. method public static int getWALConnectionPoolSize();
  743. method public static String getWALSyncMode();
  744. method public static int releaseMemory();
  745. }
  746. }
  747. package android.graphics {
  748. public final class ImageDecoder implements java.lang.AutoCloseable {
  749. method @AnyThread @NonNull public static android.graphics.ImageDecoder.Source createSource(android.content.res.Resources, java.io.InputStream, int);
  750. }
  751. }
  752. package android.graphics.drawable {
  753. public class AdaptiveIconDrawable extends android.graphics.drawable.Drawable implements android.graphics.drawable.Drawable.Callback {
  754. method public android.graphics.Region getSafeZone();
  755. field public static final float MASK_SIZE = 100.0f;
  756. }
  757. public class ColorDrawable extends android.graphics.drawable.Drawable {
  758. method public android.graphics.Xfermode getXfermode();
  759. }
  760. public abstract class Drawable {
  761. method public boolean hasFocusStateSpecified();
  762. }
  763. public class ShapeDrawable extends android.graphics.drawable.Drawable {
  764. method public void setXfermode(@Nullable android.graphics.Xfermode);
  765. }
  766. }
  767. package android.hardware.camera2 {
  768. public abstract class CameraDevice implements java.lang.AutoCloseable {
  769. 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;
  770. field public static final int SESSION_OPERATION_MODE_CONSTRAINED_HIGH_SPEED = 1; // 0x1
  771. field public static final int SESSION_OPERATION_MODE_NORMAL = 0; // 0x0
  772. field public static final int SESSION_OPERATION_MODE_VENDOR_START = 32768; // 0x8000
  773. }
  774. }
  775. package android.hardware.display {
  776. public final class AmbientBrightnessDayStats implements android.os.Parcelable {
  777. method public int describeContents();
  778. method public float[] getBucketBoundaries();
  779. method public java.time.LocalDate getLocalDate();
  780. method public float[] getStats();
  781. method public void writeToParcel(android.os.Parcel, int);
  782. field @NonNull public static final android.os.Parcelable.Creator<android.hardware.display.AmbientBrightnessDayStats> CREATOR;
  783. }
  784. public class AmbientDisplayConfiguration {
  785. ctor public AmbientDisplayConfiguration(android.content.Context);
  786. method public boolean alwaysOnAvailable();
  787. method public boolean alwaysOnAvailableForUser(int);
  788. method public boolean alwaysOnEnabled(int);
  789. }
  790. public final class BrightnessChangeEvent implements android.os.Parcelable {
  791. method public int describeContents();
  792. method public void writeToParcel(android.os.Parcel, int);
  793. field @NonNull public static final android.os.Parcelable.Creator<android.hardware.display.BrightnessChangeEvent> CREATOR;
  794. field public final float batteryLevel;
  795. field public final float brightness;
  796. field public final long colorSampleDuration;
  797. field public final int colorTemperature;
  798. field @Nullable public final long[] colorValueBuckets;
  799. field public final boolean isDefaultBrightnessConfig;
  800. field public final boolean isUserSetBrightness;
  801. field public final float lastBrightness;
  802. field public final long[] luxTimestamps;
  803. field public final float[] luxValues;
  804. field public final boolean nightMode;
  805. field public final String packageName;
  806. field public final float powerBrightnessFactor;
  807. field public final long timeStamp;
  808. }
  809. public final class BrightnessConfiguration implements android.os.Parcelable {
  810. method public int describeContents();
  811. method @Nullable public android.hardware.display.BrightnessCorrection getCorrectionByCategory(int);
  812. method @Nullable public android.hardware.display.BrightnessCorrection getCorrectionByPackageName(@NonNull String);
  813. method public android.util.Pair<float[],float[]> getCurve();
  814. method public void writeToParcel(android.os.Parcel, int);
  815. field @NonNull public static final android.os.Parcelable.Creator<android.hardware.display.BrightnessConfiguration> CREATOR;
  816. }
  817. public static class BrightnessConfiguration.Builder {
  818. ctor public BrightnessConfiguration.Builder(float[], float[]);
  819. method @NonNull public android.hardware.display.BrightnessConfiguration.Builder addCorrectionByCategory(int, @NonNull android.hardware.display.BrightnessCorrection);
  820. method @NonNull public android.hardware.display.BrightnessConfiguration.Builder addCorrectionByPackageName(@NonNull String, @NonNull android.hardware.display.BrightnessCorrection);
  821. method @NonNull public android.hardware.display.BrightnessConfiguration build();
  822. method public int getMaxCorrectionsByCategory();
  823. method public int getMaxCorrectionsByPackageName();
  824. method @NonNull public android.hardware.display.BrightnessConfiguration.Builder setDescription(@Nullable String);
  825. }
  826. public final class BrightnessCorrection implements android.os.Parcelable {
  827. method @FloatRange(from=0.0) public float apply(@FloatRange(from=0.0) float);
  828. method @NonNull public static android.hardware.display.BrightnessCorrection createScaleAndTranslateLog(float, float);
  829. method public int describeContents();
  830. method public void writeToParcel(android.os.Parcel, int);
  831. field @NonNull public static final android.os.Parcelable.Creator<android.hardware.display.BrightnessCorrection> CREATOR;
  832. }
  833. public final class DisplayManager {
  834. method @RequiresPermission("android.permission.ACCESS_AMBIENT_LIGHT_STATS") public java.util.List<android.hardware.display.AmbientBrightnessDayStats> getAmbientBrightnessStats();
  835. method @RequiresPermission(android.Manifest.permission.CONFIGURE_DISPLAY_BRIGHTNESS) public android.hardware.display.BrightnessConfiguration getBrightnessConfiguration();
  836. method @RequiresPermission(android.Manifest.permission.BRIGHTNESS_SLIDER_USAGE) public java.util.List<android.hardware.display.BrightnessChangeEvent> getBrightnessEvents();
  837. method @Nullable @RequiresPermission(android.Manifest.permission.CONFIGURE_DISPLAY_BRIGHTNESS) public android.hardware.display.BrightnessConfiguration getDefaultBrightnessConfiguration();
  838. method public android.graphics.Point getStableDisplaySize();
  839. method @RequiresPermission(android.Manifest.permission.CONFIGURE_DISPLAY_BRIGHTNESS) public void setBrightnessConfiguration(android.hardware.display.BrightnessConfiguration);
  840. }
  841. }
  842. package android.location {
  843. public final class GnssClock implements android.os.Parcelable {
  844. ctor public GnssClock();
  845. method public void reset();
  846. method public void resetBiasNanos();
  847. method public void resetBiasUncertaintyNanos();
  848. method public void resetDriftNanosPerSecond();
  849. method public void resetDriftUncertaintyNanosPerSecond();
  850. method public void resetElapsedRealtimeNanos();
  851. method public void resetElapsedRealtimeUncertaintyNanos();
  852. method public void resetFullBiasNanos();
  853. method public void resetLeapSecond();
  854. method public void resetTimeUncertaintyNanos();
  855. method public void set(android.location.GnssClock);
  856. method public void setBiasNanos(double);
  857. method public void setBiasUncertaintyNanos(@FloatRange(from=0.0f) double);
  858. method public void setDriftNanosPerSecond(double);
  859. method public void setDriftUncertaintyNanosPerSecond(@FloatRange(from=0.0f) double);
  860. method public void setElapsedRealtimeNanos(long);
  861. method public void setElapsedRealtimeUncertaintyNanos(@FloatRange(from=0.0f) double);
  862. method public void setFullBiasNanos(long);
  863. method public void setHardwareClockDiscontinuityCount(int);
  864. method public void setLeapSecond(int);
  865. method public void setTimeNanos(long);
  866. method public void setTimeUncertaintyNanos(@FloatRange(from=0.0f) double);
  867. }
  868. public final class GnssMeasurement implements android.os.Parcelable {
  869. ctor public GnssMeasurement();
  870. method public void reset();
  871. method public void resetAutomaticGainControlLevel();
  872. method @Deprecated public void resetCarrierCycles();
  873. method public void resetCarrierFrequencyHz();
  874. method @Deprecated public void resetCarrierPhase();
  875. method @Deprecated public void resetCarrierPhaseUncertainty();
  876. method public void resetCodeType();
  877. method public void resetSnrInDb();
  878. method public void set(android.location.GnssMeasurement);
  879. method public void setAccumulatedDeltaRangeMeters(double);
  880. method public void setAccumulatedDeltaRangeState(int);
  881. method public void setAccumulatedDeltaRangeUncertaintyMeters(double);
  882. method public void setAutomaticGainControlLevelInDb(double);
  883. method @Deprecated public void setCarrierCycles(long);
  884. method public void setCarrierFrequencyHz(float);
  885. method @Deprecated public void setCarrierPhase(double);
  886. method @Deprecated public void setCarrierPhaseUncertainty(double);
  887. method public void setCn0DbHz(double);
  888. method public void setCodeType(@NonNull String);
  889. method public void setConstellationType(int);
  890. method public void setMultipathIndicator(int);
  891. method public void setPseudorangeRateMetersPerSecond(double);
  892. method public void setPseudorangeRateUncertaintyMetersPerSecond(double);
  893. method public void setReceivedSvTimeNanos(long);
  894. method public void setReceivedSvTimeUncertaintyNanos(long);
  895. method public void setSnrInDb(double);
  896. method public void setState(int);
  897. method public void setSvid(int);
  898. method public void setTimeOffsetNanos(double);
  899. field public static final int ADR_STATE_ALL = 31; // 0x1f
  900. }
  901. public final class GnssMeasurementsEvent implements android.os.Parcelable {
  902. ctor public GnssMeasurementsEvent(android.location.GnssClock, android.location.GnssMeasurement[]);
  903. }
  904. public final class GnssNavigationMessage implements android.os.Parcelable {
  905. ctor public GnssNavigationMessage();
  906. method public void reset();
  907. method public void set(android.location.GnssNavigationMessage);
  908. method public void setData(byte[]);
  909. method public void setMessageId(int);
  910. method public void setStatus(int);
  911. method public void setSubmessageId(int);
  912. method public void setSvid(int);
  913. method public void setType(int);
  914. }
  915. public class Location implements android.os.Parcelable {
  916. method public void makeComplete();
  917. }
  918. public class LocationManager {
  919. method @NonNull public String[] getBackgroundThrottlingWhitelist();
  920. method @NonNull public String[] getIgnoreSettingsWhitelist();
  921. method @NonNull public java.util.List<android.location.LocationRequest> getTestProviderCurrentRequests(String);
  922. 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);
  923. 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);
  924. method @RequiresPermission(android.Manifest.permission.WRITE_SECURE_SETTINGS) public void setLocationEnabledForUser(boolean, @NonNull android.os.UserHandle);
  925. }
  926. public final class LocationRequest implements android.os.Parcelable {
  927. method @NonNull public static android.location.LocationRequest create();
  928. method public int describeContents();
  929. method public long getExpireAt();
  930. method public long getFastestInterval();
  931. method public long getInterval();
  932. method public int getNumUpdates();
  933. method public int getQuality();
  934. method public boolean isLocationSettingsIgnored();
  935. method @NonNull public android.location.LocationRequest setExpireAt(long);
  936. method @NonNull public android.location.LocationRequest setExpireIn(long);
  937. method @NonNull public android.location.LocationRequest setFastestInterval(long);
  938. method @NonNull public android.location.LocationRequest setInterval(long);
  939. method @RequiresPermission(android.Manifest.permission.WRITE_SECURE_SETTINGS) @NonNull public android.location.LocationRequest setLocationSettingsIgnored(boolean);
  940. method @NonNull public android.location.LocationRequest setNumUpdates(int);
  941. method @NonNull public android.location.LocationRequest setProvider(@NonNull String);
  942. method @NonNull public android.location.LocationRequest setQuality(int);
  943. method public void writeToParcel(android.os.Parcel, int);
  944. field public static final int ACCURACY_BLOCK = 102; // 0x66
  945. field public static final int ACCURACY_CITY = 104; // 0x68
  946. field public static final int ACCURACY_FINE = 100; // 0x64
  947. field @NonNull public static final android.os.Parcelable.Creator<android.location.LocationRequest> CREATOR;
  948. field public static final int POWER_HIGH = 203; // 0xcb
  949. field public static final int POWER_LOW = 201; // 0xc9
  950. field public static final int POWER_NONE = 200; // 0xc8
  951. }
  952. }
  953. package android.media {
  954. public final class AudioFocusInfo implements android.os.Parcelable {
  955. method public int describeContents();
  956. method @NonNull public android.media.AudioAttributes getAttributes();
  957. method @NonNull public String getClientId();
  958. method public int getClientUid();
  959. method public int getFlags();
  960. method public int getGainRequest();
  961. method public int getLossReceived();
  962. method @NonNull public String getPackageName();
  963. method public void writeToParcel(android.os.Parcel, int);
  964. field @NonNull public static final android.os.Parcelable.Creator<android.media.AudioFocusInfo> CREATOR;
  965. }
  966. public final class AudioFocusRequest {
  967. method @Nullable public android.media.AudioManager.OnAudioFocusChangeListener getOnAudioFocusChangeListener();
  968. }
  969. public final class AudioFormat implements android.os.Parcelable {
  970. method public static int channelCountFromInChannelMask(int);
  971. method public static int channelCountFromOutChannelMask(int);
  972. method public static int getBytesPerSample(int);
  973. method public static boolean isEncodingLinearPcm(int);
  974. }
  975. public class AudioManager {
  976. method @RequiresPermission("android.permission.MODIFY_AUDIO_ROUTING") public int dispatchAudioFocusChange(@NonNull android.media.AudioFocusInfo, int, @NonNull android.media.audiopolicy.AudioPolicy);
  977. method public boolean hasRegisteredDynamicPolicy();
  978. method @RequiresPermission("android.permission.MODIFY_AUDIO_ROUTING") public int registerAudioPolicy(@NonNull android.media.audiopolicy.AudioPolicy);
  979. method @RequiresPermission("android.permission.MODIFY_AUDIO_ROUTING") public void setFocusRequestResult(@NonNull android.media.AudioFocusInfo, int, @NonNull android.media.audiopolicy.AudioPolicy);
  980. method @RequiresPermission("android.permission.MODIFY_AUDIO_ROUTING") public void unregisterAudioPolicy(@NonNull android.media.audiopolicy.AudioPolicy);
  981. method @RequiresPermission("android.permission.MODIFY_AUDIO_ROUTING") public void unregisterAudioPolicyAsync(@NonNull android.media.audiopolicy.AudioPolicy);
  982. field public static final int SUCCESS = 0; // 0x0
  983. }
  984. public static final class AudioRecord.MetricsConstants {
  985. field public static final String ATTRIBUTES = "android.media.audiorecord.attributes";
  986. field public static final String CHANNEL_MASK = "android.media.audiorecord.channelMask";
  987. field public static final String DURATION_MS = "android.media.audiorecord.durationMs";
  988. field public static final String FRAME_COUNT = "android.media.audiorecord.frameCount";
  989. field public static final String PORT_ID = "android.media.audiorecord.portId";
  990. field public static final String START_COUNT = "android.media.audiorecord.startCount";
  991. }
  992. public final class AudioRecordingConfiguration implements android.os.Parcelable {
  993. ctor public AudioRecordingConfiguration(int, int, int, android.media.AudioFormat, android.media.AudioFormat, int, String, int, boolean, int, android.media.audiofx.AudioEffect.Descriptor[], android.media.audiofx.AudioEffect.Descriptor[]);
  994. ctor public AudioRecordingConfiguration(int, int, int, android.media.AudioFormat, android.media.AudioFormat, int, String);
  995. }
  996. public static final class AudioTrack.MetricsConstants {
  997. field public static final String ATTRIBUTES = "android.media.audiotrack.attributes";
  998. field public static final String CHANNEL_MASK = "android.media.audiotrack.channelMask";
  999. field public static final String ENCODING = "android.media.audiotrack.encoding";
  1000. field public static final String FRAME_COUNT = "android.media.audiotrack.frameCount";
  1001. field public static final String PORT_ID = "android.media.audiotrack.portId";
  1002. field public static final String SAMPLE_RATE = "android.media.audiotrack.sampleRate";
  1003. }
  1004. public static final class MediaCodecInfo.VideoCapabilities.PerformancePoint {
  1005. ctor public MediaCodecInfo.VideoCapabilities.PerformancePoint(int, int, int, int, @NonNull android.util.Size);
  1006. ctor public MediaCodecInfo.VideoCapabilities.PerformancePoint(@NonNull android.media.MediaCodecInfo.VideoCapabilities.PerformancePoint, @NonNull android.util.Size);
  1007. method public int getMaxFrameRate();
  1008. method public long getMaxMacroBlockRate();
  1009. method public int getMaxMacroBlocks();
  1010. }
  1011. public final class PlaybackParams implements android.os.Parcelable {
  1012. method public int getAudioStretchMode();
  1013. method public android.media.PlaybackParams setAudioStretchMode(int);
  1014. }
  1015. public static final class VolumeShaper.Configuration.Builder {
  1016. method @NonNull public android.media.VolumeShaper.Configuration.Builder setOptionFlags(int);
  1017. }
  1018. }
  1019. package android.media.audiofx {
  1020. public class AudioEffect {
  1021. method public static int byteArrayToInt(byte[]);
  1022. method public static short byteArrayToShort(byte[]);
  1023. method public int getParameter(byte[], byte[]) throws java.lang.IllegalStateException;
  1024. method public int getParameter(int, byte[]) throws java.lang.IllegalStateException;
  1025. method public int getParameter(int, int[]) throws java.lang.IllegalStateException;
  1026. method public int getParameter(int, short[]) throws java.lang.IllegalStateException;
  1027. method public int getParameter(int[], short[]) throws java.lang.IllegalStateException;
  1028. method public static byte[] intToByteArray(int);
  1029. method public static boolean isEffectTypeAvailable(java.util.UUID);
  1030. method public static boolean isError(int);
  1031. method public int setParameter(byte[], byte[]) throws java.lang.IllegalStateException;
  1032. method public int setParameter(int, int) throws java.lang.IllegalStateException;
  1033. method public int setParameter(int, short) throws java.lang.IllegalStateException;
  1034. method public int setParameter(int, byte[]) throws java.lang.IllegalStateException;
  1035. method public int setParameter(int[], int[]) throws java.lang.IllegalStateException;
  1036. method public int setParameter(int[], byte[]) throws java.lang.IllegalStateException;
  1037. method public void setParameterListener(android.media.audiofx.AudioEffect.OnParameterChangeListener);
  1038. method public static byte[] shortToByteArray(short);
  1039. field public static final java.util.UUID EFFECT_TYPE_NULL;
  1040. }
  1041. public static class AudioEffect.Descriptor {
  1042. ctor public AudioEffect.Descriptor(android.os.Parcel);
  1043. method public void writeToParcel(android.os.Parcel);
  1044. }
  1045. public static interface AudioEffect.OnParameterChangeListener {
  1046. method public void onParameterChange(android.media.audiofx.AudioEffect, int, byte[], byte[]);
  1047. }
  1048. }
  1049. package android.media.audiopolicy {
  1050. public class AudioMix {
  1051. method public int getMixState();
  1052. field public static final int MIX_STATE_DISABLED = -1; // 0xffffffff
  1053. field public static final int MIX_STATE_IDLE = 0; // 0x0
  1054. field public static final int MIX_STATE_MIXING = 1; // 0x1
  1055. field public static final int ROUTE_FLAG_LOOP_BACK = 2; // 0x2
  1056. field public static final int ROUTE_FLAG_RENDER = 1; // 0x1
  1057. }
  1058. public static class AudioMix.Builder {
  1059. ctor public AudioMix.Builder(android.media.audiopolicy.AudioMixingRule) throws java.lang.IllegalArgumentException;
  1060. method public android.media.audiopolicy.AudioMix build() throws java.lang.IllegalArgumentException;
  1061. method public android.media.audiopolicy.AudioMix.Builder setDevice(@NonNull android.media.AudioDeviceInfo) throws java.lang.IllegalArgumentException;
  1062. method public android.media.audiopolicy.AudioMix.Builder setFormat(android.media.AudioFormat) throws java.lang.IllegalArgumentException;
  1063. method public android.media.audiopolicy.AudioMix.Builder setRouteFlags(int) throws java.lang.IllegalArgumentException;
  1064. }
  1065. public class AudioMixingRule {
  1066. field public static final int RULE_MATCH_ATTRIBUTE_CAPTURE_PRESET = 2; // 0x2
  1067. field public static final int RULE_MATCH_ATTRIBUTE_USAGE = 1; // 0x1
  1068. field public static final int RULE_MATCH_UID = 4; // 0x4
  1069. }
  1070. public static class AudioMixingRule.Builder {
  1071. ctor public AudioMixingRule.Builder();
  1072. method public android.media.audiopolicy.AudioMixingRule.Builder addMixRule(int, Object) throws java.lang.IllegalArgumentException;
  1073. method public android.media.audiopolicy.AudioMixingRule.Builder addRule(android.media.AudioAttributes, int) throws java.lang.IllegalArgumentException;
  1074. method @NonNull public android.media.audiopolicy.AudioMixingRule.Builder allowPrivilegedPlaybackCapture(boolean);
  1075. method public android.media.audiopolicy.AudioMixingRule build();
  1076. method public android.media.audiopolicy.AudioMixingRule.Builder excludeMixRule(int, Object) throws java.lang.IllegalArgumentException;
  1077. method public android.media.audiopolicy.AudioMixingRule.Builder excludeRule(android.media.AudioAttributes, int) throws java.lang.IllegalArgumentException;
  1078. }
  1079. public class AudioPolicy {
  1080. method public int attachMixes(@NonNull java.util.List<android.media.audiopolicy.AudioMix>);
  1081. method public android.media.AudioRecord createAudioRecordSink(android.media.audiopolicy.AudioMix) throws java.lang.IllegalArgumentException;
  1082. method public android.media.AudioTrack createAudioTrackSource(android.media.audiopolicy.AudioMix) throws java.lang.IllegalArgumentException;
  1083. method public int detachMixes(@NonNull java.util.List<android.media.audiopolicy.AudioMix>);
  1084. method public int getFocusDuckingBehavior();
  1085. method public int getStatus();
  1086. method public boolean removeUidDeviceAffinity(int);
  1087. method public int setFocusDuckingBehavior(int) throws java.lang.IllegalArgumentException, java.lang.IllegalStateException;
  1088. method public void setRegistration(String);
  1089. method public boolean setUidDeviceAffinity(int, @NonNull java.util.List<android.media.AudioDeviceInfo>);
  1090. method public String toLogFriendlyString();
  1091. field public static final int FOCUS_POLICY_DUCKING_DEFAULT = 0; // 0x0
  1092. field public static final int FOCUS_POLICY_DUCKING_IN_APP = 0; // 0x0
  1093. field public static final int FOCUS_POLICY_DUCKING_IN_POLICY = 1; // 0x1
  1094. field public static final int POLICY_STATUS_REGISTERED = 2; // 0x2
  1095. field public static final int POLICY_STATUS_UNREGISTERED = 1; // 0x1
  1096. }
  1097. public abstract static class AudioPolicy.AudioPolicyFocusListener {
  1098. ctor public AudioPolicy.AudioPolicyFocusListener();
  1099. method public void onAudioFocusAbandon(android.media.AudioFocusInfo);
  1100. method public void onAudioFocusGrant(android.media.AudioFocusInfo, int);
  1101. method public void onAudioFocusLoss(android.media.AudioFocusInfo, boolean);
  1102. method public void onAudioFocusRequest(android.media.AudioFocusInfo, int);
  1103. }
  1104. public abstract static class AudioPolicy.AudioPolicyStatusListener {
  1105. ctor public AudioPolicy.AudioPolicyStatusListener();
  1106. method public void onMixStateUpdate(android.media.audiopolicy.AudioMix);
  1107. method public void onStatusChange();
  1108. }
  1109. public abstract static class AudioPolicy.AudioPolicyVolumeCallback {
  1110. ctor public AudioPolicy.AudioPolicyVolumeCallback();
  1111. method public void onVolumeAdjustment(int);
  1112. }
  1113. public static class AudioPolicy.Builder {
  1114. ctor public AudioPolicy.Builder(android.content.Context);
  1115. method @NonNull public android.media.audiopolicy.AudioPolicy.Builder addMix(@NonNull android.media.audiopolicy.AudioMix) throws java.lang.IllegalArgumentException;
  1116. method @NonNull public android.media.audiopolicy.AudioPolicy build();
  1117. method public void setAudioPolicyFocusListener(android.media.audiopolicy.AudioPolicy.AudioPolicyFocusListener);
  1118. method public void setAudioPolicyStatusListener(android.media.audiopolicy.AudioPolicy.AudioPolicyStatusListener);
  1119. method @NonNull public android.media.audiopolicy.AudioPolicy.Builder setAudioPolicyVolumeCallback(@NonNull android.media.audiopolicy.AudioPolicy.AudioPolicyVolumeCallback);
  1120. method @NonNull public android.media.audiopolicy.AudioPolicy.Builder setIsAudioFocusPolicy(boolean);
  1121. method @NonNull public android.media.audiopolicy.AudioPolicy.Builder setIsTestFocusPolicy(boolean);
  1122. method @NonNull public android.media.audiopolicy.AudioPolicy.Builder setLooper(@NonNull android.os.Looper) throws java.lang.IllegalArgumentException;
  1123. }
  1124. }
  1125. package android.metrics {
  1126. public class LogMaker {
  1127. ctor public LogMaker(int);
  1128. ctor public LogMaker(Object[]);
  1129. method public android.metrics.LogMaker addTaggedData(int, Object);
  1130. method public android.metrics.LogMaker clearCategory();
  1131. method public android.metrics.LogMaker clearPackageName();
  1132. method public android.metrics.LogMaker clearSubtype();
  1133. method public android.metrics.LogMaker clearTaggedData(int);
  1134. method public android.metrics.LogMaker clearType();
  1135. method public void deserialize(Object[]);
  1136. method public int getCategory();
  1137. method public long getCounterBucket();
  1138. method public String getCounterName();
  1139. method public int getCounterValue();
  1140. method public String getPackageName();
  1141. method public int getProcessId();
  1142. method public int getSubtype();
  1143. method public Object getTaggedData(int);
  1144. method public long getTimestamp();
  1145. method public int getType();
  1146. method public int getUid();
  1147. method public boolean isLongCounterBucket();
  1148. method public boolean isSubsetOf(android.metrics.LogMaker);
  1149. method public boolean isValidValue(Object);
  1150. method public Object[] serialize();
  1151. method public android.metrics.LogMaker setCategory(int);
  1152. method public android.metrics.LogMaker setPackageName(String);
  1153. method public android.metrics.LogMaker setSubtype(int);
  1154. method public android.metrics.LogMaker setType(int);
  1155. }
  1156. public class MetricsReader {
  1157. ctor public MetricsReader();
  1158. method public void checkpoint();
  1159. method public boolean hasNext();
  1160. method public android.metrics.LogMaker next();
  1161. method public void read(long);
  1162. method public void reset();
  1163. }
  1164. }
  1165. package android.net {
  1166. public class CaptivePortal implements android.os.Parcelable {
  1167. method public void logEvent(int, @NonNull String);
  1168. method public void useNetwork();
  1169. field public static final int APP_RETURN_DISMISSED = 0; // 0x0
  1170. field public static final int APP_RETURN_UNWANTED = 1; // 0x1
  1171. field public static final int APP_RETURN_WANTED_AS_IS = 2; // 0x2
  1172. }
  1173. public class ConnectivityManager {
  1174. method @RequiresPermission(android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK) public void startCaptivePortalApp(@NonNull android.net.Network, @NonNull android.os.Bundle);
  1175. field public static final String EXTRA_CAPTIVE_PORTAL_PROBE_SPEC = "android.net.extra.CAPTIVE_PORTAL_PROBE_SPEC";
  1176. field public static final String EXTRA_CAPTIVE_PORTAL_USER_AGENT = "android.net.extra.CAPTIVE_PORTAL_USER_AGENT";
  1177. }
  1178. public final class IpPrefix implements android.os.Parcelable {
  1179. ctor public IpPrefix(@NonNull java.net.InetAddress, @IntRange(from=0, to=128) int);
  1180. ctor public IpPrefix(@NonNull String);
  1181. }
  1182. public final class IpSecManager {
  1183. field public static final int INVALID_SECURITY_PARAMETER_INDEX = 0; // 0x0
  1184. }
  1185. public class LinkAddress implements android.os.Parcelable {
  1186. ctor public LinkAddress(@NonNull java.net.InetAddress, @IntRange(from=0, to=128) int, int, int);
  1187. ctor public LinkAddress(@NonNull java.net.InetAddress, @IntRange(from=0, to=128) int);
  1188. ctor public LinkAddress(@NonNull String);
  1189. ctor public LinkAddress(@NonNull String, int, int);
  1190. method public boolean isGlobalPreferred();
  1191. method public boolean isIpv4();
  1192. method public boolean isIpv6();
  1193. method public boolean isSameAddressAs(@Nullable android.net.LinkAddress);
  1194. }
  1195. public final class LinkProperties implements android.os.Parcelable {
  1196. ctor public LinkProperties(@Nullable android.net.LinkProperties);
  1197. method public boolean addDnsServer(@NonNull java.net.InetAddress);
  1198. method public boolean addLinkAddress(@NonNull android.net.LinkAddress);
  1199. method @Nullable public android.net.IpPrefix getNat64Prefix();
  1200. method @NonNull public java.util.List<java.net.InetAddress> getPcscfServers();
  1201. method @Nullable public String getTcpBufferSizes();
  1202. method @NonNull public java.util.List<java.net.InetAddress> getValidatedPrivateDnsServers();
  1203. method public boolean hasGlobalIpv6Address();
  1204. method public boolean hasIpv4Address();
  1205. method public boolean hasIpv6DefaultRoute();
  1206. method public boolean isIpv4Provisioned();
  1207. method public boolean isIpv6Provisioned();
  1208. method public boolean isProvisioned();
  1209. method public boolean isReachable(@NonNull java.net.InetAddress);
  1210. method public boolean removeDnsServer(@NonNull java.net.InetAddress);
  1211. method public boolean removeLinkAddress(@NonNull android.net.LinkAddress);
  1212. method public boolean removeRoute(@NonNull android.net.RouteInfo);
  1213. method public void setNat64Prefix(@Nullable android.net.IpPrefix);
  1214. method public void setPcscfServers(@NonNull java.util.Collection<java.net.InetAddress>);
  1215. method public void setPrivateDnsServerName(@Nullable String);
  1216. method public void setTcpBufferSizes(@Nullable String);
  1217. method public void setUsePrivateDns(boolean);
  1218. method public void setValidatedPrivateDnsServers(@NonNull java.util.Collection<java.net.InetAddress>);
  1219. }
  1220. public class Network implements android.os.Parcelable {
  1221. ctor public Network(@NonNull android.net.Network);
  1222. method @NonNull public android.net.Network getPrivateDnsBypassingCopy();
  1223. }
  1224. public final class NetworkCapabilities implements android.os.Parcelable {
  1225. method public int[] getCapabilities();
  1226. method @NonNull public int[] getTransportTypes();
  1227. method public boolean satisfiedByNetworkCapabilities(@Nullable android.net.NetworkCapabilities);
  1228. field public static final int TRANSPORT_TEST = 7; // 0x7
  1229. }
  1230. public class NetworkStack {
  1231. field public static final String PERMISSION_MAINLINE_NETWORK_STACK = "android.permission.MAINLINE_NETWORK_STACK";
  1232. }
  1233. public final class RouteInfo implements android.os.Parcelable {
  1234. ctor public RouteInfo(@Nullable android.net.IpPrefix, @Nullable java.net.InetAddress, @Nullable String, int);
  1235. method public int getType();
  1236. field public static final int RTN_THROW = 9; // 0x9
  1237. field public static final int RTN_UNICAST = 1; // 0x1
  1238. field public static final int RTN_UNREACHABLE = 7; // 0x7
  1239. }
  1240. public final class StaticIpConfiguration implements android.os.Parcelable {
  1241. ctor public StaticIpConfiguration();
  1242. ctor public StaticIpConfiguration(@Nullable android.net.StaticIpConfiguration);
  1243. method public void addDnsServer(@NonNull java.net.InetAddress);
  1244. method public void clear();
  1245. method public int describeContents();
  1246. method @NonNull public java.util.List<java.net.InetAddress> getDnsServers();
  1247. method @Nullable public String getDomains();
  1248. method @Nullable public java.net.InetAddress getGateway();
  1249. method @Nullable public android.net.LinkAddress getIpAddress();
  1250. method @NonNull public java.util.List<android.net.RouteInfo> getRoutes(@Nullable String);
  1251. method public void writeToParcel(android.os.Parcel, int);
  1252. field @NonNull public static final android.os.Parcelable.Creator<android.net.StaticIpConfiguration> CREATOR;
  1253. }
  1254. public static final class StaticIpConfiguration.Builder {
  1255. ctor public StaticIpConfiguration.Builder();
  1256. method @NonNull public android.net.StaticIpConfiguration build();
  1257. method @NonNull public android.net.StaticIpConfiguration.Builder setDnsServers(@NonNull Iterable<java.net.InetAddress>);
  1258. method @NonNull public android.net.StaticIpConfiguration.Builder setDomains(@Nullable String);
  1259. method @NonNull public android.net.StaticIpConfiguration.Builder setGateway(@Nullable java.net.InetAddress);
  1260. method @NonNull public android.net.StaticIpConfiguration.Builder setIpAddress(@Nullable android.net.LinkAddress);
  1261. }
  1262. public final class TestNetworkInterface implements android.os.Parcelable {
  1263. ctor public TestNetworkInterface(android.os.ParcelFileDescriptor, String);
  1264. method public int describeContents();
  1265. method public android.os.ParcelFileDescriptor getFileDescriptor();
  1266. method public String getInterfaceName();
  1267. method public void writeToParcel(android.os.Parcel, int);
  1268. field public static final android.os.Parcelable.Creator<android.net.TestNetworkInterface> CREATOR;
  1269. }
  1270. public class TestNetworkManager {
  1271. method public android.net.TestNetworkInterface createTapInterface();
  1272. method public android.net.TestNetworkInterface createTunInterface(@NonNull android.net.LinkAddress[]);
  1273. method public void setupTestNetwork(@NonNull String, @NonNull android.os.IBinder);
  1274. method public void teardownTestNetwork(@NonNull android.net.Network);
  1275. }
  1276. public class TrafficStats {
  1277. method public static long getLoopbackRxBytes();
  1278. method public static long getLoopbackRxPackets();
  1279. method public static long getLoopbackTxBytes();
  1280. method public static long getLoopbackTxPackets();
  1281. }
  1282. }
  1283. package android.net.apf {
  1284. public final class ApfCapabilities implements android.os.Parcelable {
  1285. ctor public ApfCapabilities(int, int, int);
  1286. method public int describeContents();
  1287. method public static boolean getApfDrop8023Frames();
  1288. method @NonNull public static int[] getApfEtherTypeBlackList();
  1289. method public boolean hasDataAccess();
  1290. method public void writeToParcel(android.os.Parcel, int);
  1291. field public static final android.os.Parcelable.Creator<android.net.apf.ApfCapabilities> CREATOR;
  1292. field public final int apfPacketFormat;
  1293. field public final int apfVersionSupported;
  1294. field public final int maximumApfProgramSize;
  1295. }
  1296. }
  1297. package android.net.metrics {
  1298. public final class ApfProgramEvent implements android.net.metrics.IpConnectivityLog.Event {
  1299. }
  1300. public static final class ApfProgramEvent.Builder {
  1301. ctor public ApfProgramEvent.Builder();
  1302. method @NonNull public android.net.metrics.ApfProgramEvent build();
  1303. method @NonNull public android.net.metrics.ApfProgramEvent.Builder setActualLifetime(long);
  1304. method @NonNull public android.net.metrics.ApfProgramEvent.Builder setCurrentRas(int);
  1305. method @NonNull public android.net.metrics.ApfProgramEvent.Builder setFilteredRas(int);
  1306. method @NonNull public android.net.metrics.ApfProgramEvent.Builder setFlags(boolean, boolean);
  1307. method @NonNull public android.net.metrics.ApfProgramEvent.Builder setLifetime(long);
  1308. method @NonNull public android.net.metrics.ApfProgramEvent.Builder setProgramLength(int);
  1309. }
  1310. public final class ApfStats implements android.net.metrics.IpConnectivityLog.Event {
  1311. }
  1312. public static final class ApfStats.Builder {
  1313. ctor public ApfStats.Builder();
  1314. method @NonNull public android.net.metrics.ApfStats build();
  1315. method @NonNull public android.net.metrics.ApfStats.Builder setDroppedRas(int);
  1316. method @NonNull public android.net.metrics.ApfStats.Builder setDurationMs(long);
  1317. method @NonNull public android.net.metrics.ApfStats.Builder setMatchingRas(int);
  1318. method @NonNull public android.net.metrics.ApfStats.Builder setMaxProgramSize(int);
  1319. method @NonNull public android.net.metrics.ApfStats.Builder setParseErrors(int);
  1320. method @NonNull public android.net.metrics.ApfStats.Builder setProgramUpdates(int);
  1321. method @NonNull public android.net.metrics.ApfStats.Builder setProgramUpdatesAll(int);
  1322. method @NonNull public android.net.metrics.ApfStats.Builder setProgramUpdatesAllowingMulticast(int);
  1323. method @NonNull public android.net.metrics.ApfStats.Builder setReceivedRas(int);
  1324. method @NonNull public android.net.metrics.ApfStats.Builder setZeroLifetimeRas(int);
  1325. }
  1326. public final class DhcpClientEvent implements android.net.metrics.IpConnectivityLog.Event {
  1327. }
  1328. public static final class DhcpClientEvent.Builder {
  1329. ctor public DhcpClientEvent.Builder();
  1330. method @NonNull public android.net.metrics.DhcpClientEvent build();
  1331. method @NonNull public android.net.metrics.DhcpClientEvent.Builder setDurationMs(int);
  1332. method @NonNull public android.net.metrics.DhcpClientEvent.Builder setMsg(String);
  1333. }
  1334. public final class DhcpErrorEvent implements android.net.metrics.IpConnectivityLog.Event {
  1335. ctor public DhcpErrorEvent(int);
  1336. method public static int errorCodeWithOption(int, int);
  1337. field public static final int BOOTP_TOO_SHORT = 67174400; // 0x4010000
  1338. field public static final int BUFFER_UNDERFLOW = 83951616; // 0x5010000
  1339. field public static final int DHCP_BAD_MAGIC_COOKIE = 67239936; // 0x4020000
  1340. field public static final int DHCP_ERROR = 4; // 0x4
  1341. field public static final int DHCP_INVALID_OPTION_LENGTH = 67305472; // 0x4030000
  1342. field public static final int DHCP_NO_COOKIE = 67502080; // 0x4060000
  1343. field public static final int DHCP_NO_MSG_TYPE = 67371008; // 0x4040000
  1344. field public static final int DHCP_UNKNOWN_MSG_TYPE = 67436544; // 0x4050000
  1345. field public static final int L2_ERROR = 1; // 0x1
  1346. field public static final int L2_TOO_SHORT = 16842752; // 0x1010000
  1347. field public static final int L2_WRONG_ETH_TYPE = 16908288; // 0x1020000
  1348. field public static final int L3_ERROR = 2; // 0x2
  1349. field public static final int L3_INVALID_IP = 33751040; // 0x2030000
  1350. field public static final int L3_NOT_IPV4 = 33685504; // 0x2020000
  1351. field public static final int L3_TOO_SHORT = 33619968; // 0x2010000
  1352. field public static final int L4_ERROR = 3; // 0x3
  1353. field public static final int L4_NOT_UDP = 50397184; // 0x3010000
  1354. field public static final int L4_WRONG_PORT = 50462720; // 0x3020000
  1355. field public static final int MISC_ERROR = 5; // 0x5
  1356. field public static final int PARSING_ERROR = 84082688; // 0x5030000
  1357. field public static final int RECEIVE_ERROR = 84017152; // 0x5020000
  1358. }
  1359. public class IpConnectivityLog {
  1360. ctor public IpConnectivityLog();
  1361. method public boolean log(long, @NonNull android.net.metrics.IpConnectivityLog.Event);
  1362. method public boolean log(@NonNull String, @NonNull android.net.metrics.IpConnectivityLog.Event);
  1363. method public boolean log(@NonNull android.net.Network, @NonNull int[], @NonNull android.net.metrics.IpConnectivityLog.Event);
  1364. method public boolean log(int, @NonNull int[], @NonNull android.net.metrics.IpConnectivityLog.Event);
  1365. method public boolean log(@NonNull android.net.metrics.IpConnectivityLog.Event);
  1366. }
  1367. public static interface IpConnectivityLog.Event extends android.os.Parcelable {
  1368. }
  1369. public final class IpManagerEvent implements android.net.metrics.IpConnectivityLog.Event {
  1370. ctor public IpManagerEvent(int, long);
  1371. field public static final int COMPLETE_LIFECYCLE = 3; // 0x3
  1372. field public static final int ERROR_INTERFACE_NOT_FOUND = 8; // 0x8
  1373. field public static final int ERROR_INVALID_PROVISIONING = 7; // 0x7
  1374. field public static final int ERROR_STARTING_IPREACHABILITYMONITOR = 6; // 0x6
  1375. field public static final int ERROR_STARTING_IPV4 = 4; // 0x4
  1376. field public static final int ERROR_STARTING_IPV6 = 5; // 0x5
  1377. field public static final int PROVISIONING_FAIL = 2; // 0x2
  1378. field public static final int PROVISIONING_OK = 1; // 0x1
  1379. }
  1380. public final class IpReachabilityEvent implements android.net.metrics.IpConnectivityLog.Event {
  1381. ctor public IpReachabilityEvent(int);
  1382. field public static final int NUD_FAILED = 512; // 0x200
  1383. field public static final int NUD_FAILED_ORGANIC = 1024; // 0x400
  1384. field public static final int PROBE = 256; // 0x100
  1385. field public static final int PROVISIONING_LOST = 768; // 0x300
  1386. field public static final int PROVISIONING_LOST_ORGANIC = 1280; // 0x500
  1387. }
  1388. public final class NetworkEvent implements android.net.metrics.IpConnectivityLog.Event {
  1389. ctor public NetworkEvent(int, long);
  1390. ctor public NetworkEvent(int);
  1391. field public static final int NETWORK_CAPTIVE_PORTAL_FOUND = 4; // 0x4
  1392. field public static final int NETWORK_CONNECTED = 1; // 0x1
  1393. field public static final int NETWORK_CONSECUTIVE_DNS_TIMEOUT_FOUND = 12; // 0xc
  1394. field public static final int NETWORK_DISCONNECTED = 7; // 0x7
  1395. field public static final int NETWORK_FIRST_VALIDATION_PORTAL_FOUND = 10; // 0xa
  1396. field public static final int NETWORK_FIRST_VALIDATION_SUCCESS = 8; // 0x8
  1397. field public static final int NETWORK_LINGER = 5; // 0x5
  1398. field public static final int NETWORK_PARTIAL_CONNECTIVITY = 13; // 0xd
  1399. field public static final int NETWORK_REVALIDATION_PORTAL_FOUND = 11; // 0xb
  1400. field public static final int NETWORK_REVALIDATION_SUCCESS = 9; // 0x9
  1401. field public static final int NETWORK_UNLINGER = 6; // 0x6
  1402. field public static final int NETWORK_VALIDATED = 2; // 0x2
  1403. field public static final int NETWORK_VALIDATION_FAILED = 3; // 0x3
  1404. }
  1405. public final class RaEvent implements android.net.metrics.IpConnectivityLog.Event {
  1406. }
  1407. public static final class RaEvent.Builder {
  1408. ctor public RaEvent.Builder();
  1409. method @NonNull public android.net.metrics.RaEvent build();
  1410. method @NonNull public android.net.metrics.RaEvent.Builder updateDnsslLifetime(long);
  1411. method @NonNull public android.net.metrics.RaEvent.Builder updatePrefixPreferredLifetime(long);
  1412. method @NonNull public android.net.metrics.RaEvent.Builder updatePrefixValidLifetime(long);
  1413. method @NonNull public android.net.metrics.RaEvent.Builder updateRdnssLifetime(long);
  1414. method @NonNull public android.net.metrics.RaEvent.Builder updateRouteInfoLifetime(long);
  1415. method @NonNull public android.net.metrics.RaEvent.Builder updateRouterLifetime(long);
  1416. }
  1417. public final class ValidationProbeEvent implements android.net.metrics.IpConnectivityLog.Event {
  1418. method @NonNull public static String getProbeName(int);
  1419. field public static final int DNS_FAILURE = 0; // 0x0
  1420. field public static final int DNS_SUCCESS = 1; // 0x1
  1421. field public static final int PROBE_DNS = 0; // 0x0
  1422. field public static final int PROBE_FALLBACK = 4; // 0x4
  1423. field public static final int PROBE_HTTP = 1; // 0x1
  1424. field public static final int PROBE_HTTPS = 2; // 0x2
  1425. field public static final int PROBE_PAC = 3; // 0x3
  1426. field public static final int PROBE_PRIVDNS = 5; // 0x5
  1427. }
  1428. public static final class ValidationProbeEvent.Builder {
  1429. ctor public ValidationProbeEvent.Builder();
  1430. method @NonNull public android.net.metrics.ValidationProbeEvent build();
  1431. method @NonNull public android.net.metrics.ValidationProbeEvent.Builder setDurationMs(long);
  1432. method @NonNull public android.net.metrics.ValidationProbeEvent.Builder setProbeType(int, boolean);
  1433. method @NonNull public android.net.metrics.ValidationProbeEvent.Builder setReturnCode(int);
  1434. }
  1435. }
  1436. package android.net.util {
  1437. public final class SocketUtils {
  1438. method public static void bindSocketToInterface(@NonNull java.io.FileDescriptor, @NonNull String) throws android.system.ErrnoException;
  1439. method public static void closeSocket(@Nullable java.io.FileDescriptor) throws java.io.IOException;
  1440. method @NonNull public static java.net.SocketAddress makeNetlinkSocketAddress(int, int);
  1441. method @NonNull public static java.net.SocketAddress makePacketSocketAddress(int, int);
  1442. method @NonNull public static java.net.SocketAddress makePacketSocketAddress(int, @NonNull byte[]);
  1443. }
  1444. }
  1445. package android.os {
  1446. public class BatteryManager {
  1447. method @RequiresPermission("android.permission.POWER_SAVER") public boolean setChargingStateUpdateDelayMillis(int);
  1448. }
  1449. public final class BugreportManager {
  1450. method @RequiresPermission(android.Manifest.permission.DUMP) public void cancelBugreport();
  1451. 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);
  1452. }
  1453. public abstract static class BugreportManager.BugreportCallback {
  1454. ctor public BugreportManager.BugreportCallback();
  1455. method public void onError(int);
  1456. method public void onFinished();
  1457. method public void onProgress(@FloatRange(from=0.0f, to=100.0f) float);
  1458. field public static final int BUGREPORT_ERROR_ANOTHER_REPORT_IN_PROGRESS = 5; // 0x5
  1459. field public static final int BUGREPORT_ERROR_INVALID_INPUT = 1; // 0x1
  1460. field public static final int BUGREPORT_ERROR_RUNTIME = 2; // 0x2
  1461. field public static final int BUGREPORT_ERROR_USER_CONSENT_TIMED_OUT = 4; // 0x4
  1462. field public static final int BUGREPORT_ERROR_USER_DENIED_CONSENT = 3; // 0x3
  1463. }
  1464. public final class BugreportParams {
  1465. ctor public BugreportParams(int);
  1466. method public int getMode();
  1467. field public static final int BUGREPORT_MODE_FULL = 0; // 0x0
  1468. field public static final int BUGREPORT_MODE_INTERACTIVE = 1; // 0x1
  1469. field public static final int BUGREPORT_MODE_REMOTE = 2; // 0x2
  1470. field public static final int BUGREPORT_MODE_TELEPHONY = 4; // 0x4
  1471. field public static final int BUGREPORT_MODE_WEAR = 3; // 0x3
  1472. field public static final int BUGREPORT_MODE_WIFI = 5; // 0x5
  1473. }
  1474. public class Build {
  1475. method public static boolean is64BitAbi(String);
  1476. field public static final boolean IS_EMULATOR;
  1477. }
  1478. public static class Build.VERSION {
  1479. field public static final int FIRST_SDK_INT;
  1480. field public static final int RESOURCES_SDK_INT;
  1481. }
  1482. public class DeviceIdleManager {
  1483. method @NonNull public String[] getSystemPowerWhitelist();
  1484. method @NonNull public String[] getSystemPowerWhitelistExceptIdle();
  1485. }
  1486. public class Environment {
  1487. method public static java.io.File buildPath(java.io.File, java.lang.String...);
  1488. method @NonNull public static java.io.File getProductDirectory();
  1489. method @NonNull public static java.io.File getStorageDirectory();
  1490. }
  1491. public final class FileUtils {
  1492. method public static boolean contains(java.io.File, java.io.File);
  1493. }
  1494. public abstract class HwBinder implements android.os.IHwBinder {
  1495. ctor public HwBinder();
  1496. method public static final void configureRpcThreadpool(long, boolean);
  1497. method public static void enableInstrumentation();
  1498. method public static final android.os.IHwBinder getService(String, String) throws java.util.NoSuchElementException, android.os.RemoteException;
  1499. method public static final android.os.IHwBinder getService(String, String, boolean) throws java.util.NoSuchElementException, android.os.RemoteException;
  1500. method public static final void joinRpcThreadpool();
  1501. method public abstract void onTransact(int, android.os.HwParcel, android.os.HwParcel, int) throws android.os.RemoteException;
  1502. method public final void registerService(String) throws android.os.RemoteException;
  1503. method public final void transact(int, android.os.HwParcel, android.os.HwParcel, int) throws android.os.RemoteException;
  1504. }
  1505. public class HwBlob {
  1506. ctor public HwBlob(int);
  1507. method public final void copyToBoolArray(long, boolean[], int);
  1508. method public final void copyToDoubleArray(long, double[], int);
  1509. method public final void copyToFloatArray(long, float[], int);
  1510. method public final void copyToInt16Array(long, short[], int);
  1511. method public final void copyToInt32Array(long, int[], int);
  1512. method public final void copyToInt64Array(long, long[], int);
  1513. method public final void copyToInt8Array(long, byte[], int);
  1514. method public final boolean getBool(long);
  1515. method public final double getDouble(long);
  1516. method public final float getFloat(long);
  1517. method public final short getInt16(long);
  1518. method public final int getInt32(long);
  1519. method public final long getInt64(long);
  1520. method public final byte getInt8(long);
  1521. method public final String getString(long);
  1522. method public final long handle();
  1523. method public final void putBlob(long, android.os.HwBlob);
  1524. method public final void putBool(long, boolean);
  1525. method public final void putBoolArray(long, boolean[]);
  1526. method public final void putDouble(long, double);
  1527. method public final void putDoubleArray(long, double[]);
  1528. method public final void putFloat(long, float);
  1529. method public final void putFloatArray(long, float[]);
  1530. method public final void putInt16(long, short);
  1531. method public final void putInt16Array(long, short[]);
  1532. method public final void putInt32(long, int);
  1533. method public final void putInt32Array(long, int[]);
  1534. method public final void putInt64(long, long);
  1535. method public final void putInt64Array(long, long[]);
  1536. method public final void putInt8(long, byte);
  1537. method public final void putInt8Array(long, byte[]);
  1538. method public final void putNativeHandle(long, @Nullable android.os.NativeHandle);
  1539. method public final void putString(long, String);
  1540. method public static Boolean[] wrapArray(@NonNull boolean[]);
  1541. method public static Long[] wrapArray(@NonNull long[]);
  1542. method public static Byte[] wrapArray(@NonNull byte[]);
  1543. method public static Short[] wrapArray(@NonNull short[]);
  1544. method public static Integer[] wrapArray(@NonNull int[]);
  1545. method public static Float[] wrapArray(@NonNull float[]);
  1546. method public static Double[] wrapArray(@NonNull double[]);
  1547. }
  1548. public class HwParcel {
  1549. ctor public HwParcel();
  1550. method public final void enforceInterface(String);
  1551. method public final boolean readBool();
  1552. method public final java.util.ArrayList<java.lang.Boolean> readBoolVector();
  1553. method public final android.os.HwBlob readBuffer(long);
  1554. method public final double readDouble();
  1555. method public final java.util.ArrayList<java.lang.Double> readDoubleVector();
  1556. method public final android.os.HwBlob readEmbeddedBuffer(long, long, long, boolean);
  1557. method @Nullable public final android.os.NativeHandle readEmbeddedNativeHandle(long, long);
  1558. method public final float readFloat();
  1559. method public final java.util.ArrayList<java.lang.Float> readFloatVector();
  1560. method public final short readInt16();
  1561. method public final java.util.ArrayList<java.lang.Short> readInt16Vector();
  1562. method public final int readInt32();
  1563. method public final java.util.ArrayList<java.lang.Integer> readInt32Vector();
  1564. method public final long readInt64();
  1565. method public final java.util.ArrayList<java.lang.Long> readInt64Vector();
  1566. method public final byte readInt8();
  1567. method public final java.util.ArrayList<java.lang.Byte> readInt8Vector();
  1568. method @Nullable public final android.os.NativeHandle readNativeHandle();
  1569. method @NonNull public final java.util.ArrayList<android.os.NativeHandle> readNativeHandleVector();
  1570. method public final String readString();
  1571. method public final java.util.ArrayList<java.lang.String> readStringVector();
  1572. method public final android.os.IHwBinder readStrongBinder();
  1573. method public final void release();
  1574. method public final void releaseTemporaryStorage();
  1575. method public final void send();
  1576. method public final void verifySuccess();
  1577. method public final void writeBool(boolean);
  1578. method public final void writeBoolVector(java.util.ArrayList<java.lang.Boolean>);
  1579. method public final void writeBuffer(android.os.HwBlob);
  1580. method public final void writeDouble(double);
  1581. method public final void writeDoubleVector(java.util.ArrayList<java.lang.Double>);
  1582. method public final void writeFloat(float);
  1583. method public final void writeFloatVector(java.util.ArrayList<java.lang.Float>);
  1584. method public final void writeInt16(short);
  1585. method public final void writeInt16Vector(java.util.ArrayList<java.lang.Short>);
  1586. method public final void writeInt32(int);
  1587. method public final void writeInt32Vector(java.util.ArrayList<java.lang.Integer>);
  1588. method public final void writeInt64(long);
  1589. method public final void writeInt64Vector(java.util.ArrayList<java.lang.Long>);
  1590. method public final void writeInt8(byte);
  1591. method public final void writeInt8Vector(java.util.ArrayList<java.lang.Byte>);
  1592. method public final void writeInterfaceToken(String);
  1593. method public final void writeNativeHandle(@Nullable android.os.NativeHandle);
  1594. method public final void writeNativeHandleVector(@NonNull java.util.ArrayList<android.os.NativeHandle>);
  1595. method public final void writeStatus(int);
  1596. method public final void writeString(String);
  1597. method public final void writeStringVector(java.util.ArrayList<java.lang.String>);
  1598. method public final void writeStrongBinder(android.os.IHwBinder);
  1599. field public static final int STATUS_SUCCESS = 0; // 0x0
  1600. }
  1601. @IntDef(prefix={"STATUS_"}, value={android.os.HwParcel.STATUS_SUCCESS}) @java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.SOURCE) public static @interface HwParcel.Status {
  1602. }
  1603. public interface IHwBinder {
  1604. method public boolean linkToDeath(android.os.IHwBinder.DeathRecipient, long);
  1605. method public android.os.IHwInterface queryLocalInterface(String);
  1606. method public void transact(int, android.os.HwParcel, android.os.HwParcel, int) throws android.os.RemoteException;
  1607. method public boolean unlinkToDeath(android.os.IHwBinder.DeathRecipient);
  1608. }
  1609. public static interface IHwBinder.DeathRecipient {
  1610. method public void serviceDied(long);
  1611. }
  1612. public interface IHwInterface {
  1613. method public android.os.IHwBinder asBinder();
  1614. }
  1615. public class IncidentManager {
  1616. method @RequiresPermission(android.Manifest.permission.APPROVE_INCIDENT_REPORTS) public void approveReport(android.net.Uri);
  1617. method @RequiresPermission("android.permission.REQUEST_INCIDENT_REPORT_APPROVAL") public void cancelAuthorization(android.os.IncidentManager.AuthListener);
  1618. method @RequiresPermission(allOf={android.Manifest.permission.DUMP, android.Manifest.permission.PACKAGE_USAGE_STATS}) public void deleteIncidentReports(android.net.Uri);
  1619. method @RequiresPermission(android.Manifest.permission.APPROVE_INCIDENT_REPORTS) public void denyReport(android.net.Uri);
  1620. method @RequiresPermission(allOf={android.Manifest.permission.DUMP, android.Manifest.permission.PACKAGE_USAGE_STATS}) @Nullable public android.os.IncidentManager.IncidentReport getIncidentReport(android.net.Uri);
  1621. method @RequiresPermission(allOf={android.Manifest.permission.DUMP, android.Manifest.permission.PACKAGE_USAGE_STATS}) @NonNull public java.util.List<android.net.Uri> getIncidentReportList(String);
  1622. method @RequiresPermission(android.Manifest.permission.APPROVE_INCIDENT_REPORTS) public java.util.List<android.os.IncidentManager.PendingReport> getPendingReports();
  1623. method @RequiresPermission(allOf={android.Manifest.permission.DUMP, android.Manifest.permission.PACKAGE_USAGE_STATS}) public void reportIncident(android.os.IncidentReportArgs);
  1624. method @RequiresPermission("android.permission.REQUEST_INCIDENT_REPORT_APPROVAL") public void requestAuthorization(int, String, int, android.os.IncidentManager.AuthListener);
  1625. field public static final int FLAG_CONFIRMATION_DIALOG = 1; // 0x1
  1626. field public static final int PRIVACY_POLICY_AUTO = 200; // 0xc8
  1627. field public static final int PRIVACY_POLICY_EXPLICIT = 100; // 0x64
  1628. field public static final int PRIVACY_POLICY_LOCAL = 0; // 0x0
  1629. }
  1630. public static class IncidentManager.AuthListener {
  1631. ctor public IncidentManager.AuthListener();
  1632. method public void onReportApproved();
  1633. method public void onReportDenied();
  1634. }
  1635. public static class IncidentManager.IncidentReport implements java.io.Closeable android.os.Parcelable {
  1636. ctor public IncidentManager.IncidentReport(android.os.Parcel);
  1637. method public void close();
  1638. method public int describeContents();
  1639. method public java.io.InputStream getInputStream() throws java.io.IOException;
  1640. method public long getPrivacyPolicy();
  1641. method public long getTimestamp();
  1642. method public void writeToParcel(android.os.Parcel, int);
  1643. field @NonNull public static final android.os.Parcelable.Creator<android.os.IncidentManager.IncidentReport> CREATOR;
  1644. }
  1645. public static class IncidentManager.PendingReport {
  1646. ctor public IncidentManager.PendingReport(@NonNull android.net.Uri);
  1647. method public int getFlags();
  1648. method @NonNull public String getRequestingPackage();
  1649. method public long getTimestamp();
  1650. method @NonNull public android.net.Uri getUri();
  1651. }
  1652. public final class IncidentReportArgs implements android.os.Parcelable {
  1653. ctor public IncidentReportArgs();
  1654. ctor public IncidentReportArgs(android.os.Parcel);
  1655. method public void addHeader(byte[]);
  1656. method public void addSection(int);
  1657. method public boolean containsSection(int);
  1658. method public int describeContents();
  1659. method public boolean isAll();
  1660. method public void readFromParcel(android.os.Parcel);
  1661. method public int sectionCount();
  1662. method public void setAll(boolean);
  1663. method public void setPrivacyPolicy(int);
  1664. method public void writeToParcel(android.os.Parcel, int);
  1665. field @NonNull public static final android.os.Parcelable.Creator<android.os.IncidentReportArgs> CREATOR;
  1666. }
  1667. public final class MessageQueue {
  1668. method public int postSyncBarrier();
  1669. method public void removeSyncBarrier(int);
  1670. }
  1671. public final class NativeHandle implements java.io.Closeable {
  1672. ctor public NativeHandle();
  1673. ctor public NativeHandle(@NonNull java.io.FileDescriptor, boolean);
  1674. ctor public NativeHandle(@NonNull java.io.FileDescriptor[], @NonNull int[], boolean);
  1675. method public void close() throws java.io.IOException;
  1676. method @NonNull public android.os.NativeHandle dup() throws java.io.IOException;
  1677. method @NonNull public java.io.FileDescriptor getFileDescriptor();
  1678. method @NonNull public java.io.FileDescriptor[] getFileDescriptors();
  1679. method @NonNull public int[] getInts();
  1680. method public boolean hasSingleFileDescriptor();
  1681. }
  1682. public final class Parcel {
  1683. method public int readExceptionCode();
  1684. }
  1685. public class ParcelFileDescriptor implements java.io.Closeable android.os.Parcelable {
  1686. method public static java.io.File getFile(java.io.FileDescriptor) throws java.io.IOException;
  1687. }
  1688. public final class PowerManager {
  1689. method @RequiresPermission("android.permission.POWER_SAVER") public int getPowerSaveModeTrigger();
  1690. method @RequiresPermission("android.permission.POWER_SAVER") public boolean setDynamicPowerSaveHint(boolean, int);
  1691. method @RequiresPermission(anyOf={"android.permission.DEVICE_POWER", "android.permission.POWER_SAVER"}) public boolean setPowerSaveModeEnabled(boolean);
  1692. field public static final int POWER_SAVE_MODE_TRIGGER_DYNAMIC = 1; // 0x1
  1693. field public static final int POWER_SAVE_MODE_TRIGGER_PERCENTAGE = 0; // 0x0
  1694. }
  1695. public class Process {
  1696. method public static final int getThreadScheduler(int) throws java.lang.IllegalArgumentException;
  1697. field public static final int FIRST_APP_ZYGOTE_ISOLATED_UID = 90000; // 0x15f90
  1698. field public static final int FIRST_ISOLATED_UID = 99000; // 0x182b8
  1699. field public static final int LAST_APP_ZYGOTE_ISOLATED_UID = 98999; // 0x182b7
  1700. field public static final int LAST_ISOLATED_UID = 99999; // 0x1869f
  1701. field public static final int NUM_UIDS_PER_APP_ZYGOTE = 100; // 0x64
  1702. }
  1703. public final class RemoteCallback implements android.os.Parcelable {
  1704. ctor public RemoteCallback(android.os.RemoteCallback.OnResultListener);
  1705. ctor public RemoteCallback(@NonNull android.os.RemoteCallback.OnResultListener, @Nullable android.os.Handler);
  1706. method public int describeContents();
  1707. method public void sendResult(@Nullable android.os.Bundle);
  1708. method public void writeToParcel(android.os.Parcel, int);
  1709. field @NonNull public static final android.os.Parcelable.Creator<android.os.RemoteCallback> CREATOR;
  1710. }
  1711. public static interface RemoteCallback.OnResultListener {
  1712. method public void onResult(@Nullable android.os.Bundle);
  1713. }
  1714. public final class StrictMode {
  1715. method public static void conditionallyCheckInstanceCounts();
  1716. method public static void setViolationLogger(android.os.StrictMode.ViolationLogger);
  1717. }
  1718. public static final class StrictMode.ThreadPolicy.Builder {
  1719. method @NonNull public android.os.StrictMode.ThreadPolicy.Builder detectExplicitGc();
  1720. }
  1721. public static final class StrictMode.ViolationInfo implements android.os.Parcelable {
  1722. ctor public StrictMode.ViolationInfo(android.os.Parcel);
  1723. ctor public StrictMode.ViolationInfo(android.os.Parcel, boolean);
  1724. method public int describeContents();
  1725. method public void dump(android.util.Printer, String);
  1726. method public String getStackTrace();
  1727. method public Class<? extends android.os.strictmode.Violation> getViolationClass();
  1728. method public String getViolationDetails();
  1729. method public void writeToParcel(android.os.Parcel, int);
  1730. field @NonNull public static final android.os.Parcelable.Creator<android.os.StrictMode.ViolationInfo> CREATOR;
  1731. field public String broadcastIntentAction;
  1732. field public int durationMillis;
  1733. field public int numAnimationsRunning;
  1734. field public long numInstances;
  1735. field public String[] tags;
  1736. field public int violationNumThisLoop;
  1737. field public long violationUptimeMillis;
  1738. }
  1739. public static interface StrictMode.ViolationLogger {
  1740. method public void log(android.os.StrictMode.ViolationInfo);
  1741. }
  1742. public class SystemProperties {
  1743. method @NonNull public static String get(@NonNull String);
  1744. method @NonNull public static String get(@NonNull String, @Nullable String);
  1745. method public static boolean getBoolean(@NonNull String, boolean);
  1746. }
  1747. public final class UserHandle implements android.os.Parcelable {
  1748. method public static int getAppId(int);
  1749. method public int getIdentifier();
  1750. method public static boolean isApp(int);
  1751. field @NonNull public static final android.os.UserHandle ALL;
  1752. field @NonNull public static final android.os.UserHandle CURRENT;
  1753. field @NonNull public static final android.os.UserHandle SYSTEM;
  1754. }
  1755. public class UserManager {
  1756. method public static boolean isSplitSystemUser();
  1757. field public static final String ACTION_USER_RESTRICTIONS_CHANGED = "android.os.action.USER_RESTRICTIONS_CHANGED";
  1758. }
  1759. public abstract class VibrationEffect implements android.os.Parcelable {
  1760. method public static android.os.VibrationEffect get(int);
  1761. method public static android.os.VibrationEffect get(int, boolean);
  1762. method @Nullable public static android.os.VibrationEffect get(android.net.Uri, android.content.Context);
  1763. method public abstract long getDuration();
  1764. method protected static int scale(int, float, int);
  1765. field public static final int EFFECT_POP = 4; // 0x4
  1766. field public static final int EFFECT_STRENGTH_LIGHT = 0; // 0x0
  1767. field public static final int EFFECT_STRENGTH_MEDIUM = 1; // 0x1
  1768. field public static final int EFFECT_STRENGTH_STRONG = 2; // 0x2
  1769. field public static final int EFFECT_TEXTURE_TICK = 21; // 0x15
  1770. field public static final int EFFECT_THUD = 3; // 0x3
  1771. field public static final int[] RINGTONES;
  1772. }
  1773. public static class VibrationEffect.OneShot extends android.os.VibrationEffect implements android.os.Parcelable {
  1774. ctor public VibrationEffect.OneShot(android.os.Parcel);
  1775. ctor public VibrationEffect.OneShot(long, int);
  1776. method public int getAmplitude();
  1777. method public long getDuration();
  1778. method public android.os.VibrationEffect.OneShot scale(float, int);
  1779. method public void validate();
  1780. method public void writeToParcel(android.os.Parcel, int);
  1781. field @NonNull public static final android.os.Parcelable.Creator<android.os.VibrationEffect.OneShot> CREATOR;
  1782. }
  1783. public static class VibrationEffect.Prebaked extends android.os.VibrationEffect implements android.os.Parcelable {
  1784. ctor public VibrationEffect.Prebaked(android.os.Parcel);
  1785. ctor public VibrationEffect.Prebaked(int, boolean);
  1786. method public long getDuration();
  1787. method public int getEffectStrength();
  1788. method public int getId();
  1789. method public void setEffectStrength(int);
  1790. method public boolean shouldFallback();
  1791. method public void validate();
  1792. method public void writeToParcel(android.os.Parcel, int);
  1793. field @NonNull public static final android.os.Parcelable.Creator<android.os.VibrationEffect.Prebaked> CREATOR;
  1794. }
  1795. public static class VibrationEffect.Waveform extends android.os.VibrationEffect implements android.os.Parcelable {
  1796. ctor public VibrationEffect.Waveform(android.os.Parcel);
  1797. ctor public VibrationEffect.Waveform(long[], int[], int);
  1798. method public int[] getAmplitudes();
  1799. method public long getDuration();
  1800. method public int getRepeatIndex();
  1801. method public long[] getTimings();
  1802. method public android.os.VibrationEffect.Waveform scale(float, int);
  1803. method public void validate();
  1804. method public void writeToParcel(android.os.Parcel, int);
  1805. field @NonNull public static final android.os.Parcelable.Creator<android.os.VibrationEffect.Waveform> CREATOR;
  1806. }
  1807. public class VintfObject {
  1808. method public static String[] getHalNamesAndVersions();
  1809. method public static String getSepolicyVersion();
  1810. method public static Long getTargetFrameworkCompatibilityMatrixVersion();
  1811. method public static java.util.Map<java.lang.String,java.lang.String[]> getVndkSnapshots();
  1812. method public static String[] report();
  1813. }
  1814. public class VintfRuntimeInfo {
  1815. method public static String getCpuInfo();
  1816. method public static String getHardwareId();
  1817. method public static String getKernelVersion();
  1818. method public static String getNodeName();
  1819. method public static String getOsName();
  1820. method public static String getOsRelease();
  1821. method public static String getOsVersion();
  1822. }
  1823. public class WorkSource implements android.os.Parcelable {
  1824. ctor public WorkSource(int);
  1825. method public boolean add(int);
  1826. method public boolean add(int, String);
  1827. method @Deprecated public android.os.WorkSource addReturningNewbs(android.os.WorkSource);
  1828. method public int get(int);
  1829. method public String getName(int);
  1830. method @Deprecated public android.os.WorkSource[] setReturningDiffs(android.os.WorkSource);
  1831. method public int size();
  1832. }
  1833. }
  1834. package android.os.health {
  1835. public class HealthKeys {
  1836. ctor public HealthKeys();
  1837. field public static final int BASE_PACKAGE = 40000; // 0x9c40
  1838. field public static final int BASE_PID = 20000; // 0x4e20
  1839. field public static final int BASE_PROCESS = 30000; // 0x7530
  1840. field public static final int BASE_SERVICE = 50000; // 0xc350
  1841. field public static final int BASE_UID = 10000; // 0x2710
  1842. field public static final int TYPE_COUNT = 5; // 0x5
  1843. field public static final int TYPE_MEASUREMENT = 1; // 0x1
  1844. field public static final int TYPE_MEASUREMENTS = 4; // 0x4
  1845. field public static final int TYPE_STATS = 2; // 0x2
  1846. field public static final int TYPE_TIMER = 0; // 0x0
  1847. field public static final int TYPE_TIMERS = 3; // 0x3
  1848. field public static final int UNKNOWN_KEY = 0; // 0x0
  1849. }
  1850. @java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.RUNTIME) @java.lang.annotation.Target({java.lang.annotation.ElementType.FIELD}) public static @interface HealthKeys.Constant {
  1851. method public abstract int type();
  1852. }
  1853. public static class HealthKeys.Constants {
  1854. ctor public HealthKeys.Constants(Class);
  1855. method public String getDataType();
  1856. method public int getIndex(int, int);
  1857. method public int[] getKeys(int);
  1858. method public int getSize(int);
  1859. }
  1860. public class HealthStats {
  1861. ctor public HealthStats(android.os.Parcel);
  1862. }
  1863. public class HealthStatsParceler implements android.os.Parcelable {
  1864. ctor public HealthStatsParceler(android.os.health.HealthStatsWriter);
  1865. ctor public HealthStatsParceler(android.os.Parcel);
  1866. method public int describeContents();
  1867. method public android.os.health.HealthStats getHealthStats();
  1868. method public void writeToParcel(android.os.Parcel, int);
  1869. field @NonNull public static final android.os.Parcelable.Creator<android.os.health.HealthStatsParceler> CREATOR;
  1870. }
  1871. public class HealthStatsWriter {
  1872. ctor public HealthStatsWriter(android.os.health.HealthKeys.Constants);
  1873. method public void addMeasurement(int, long);
  1874. method public void addMeasurements(int, String, long);
  1875. method public void addStats(int, String, android.os.health.HealthStatsWriter);
  1876. method public void addTimer(int, int, long);
  1877. method public void addTimers(int, String, android.os.health.TimerStat);
  1878. method public void flattenToParcel(android.os.Parcel);
  1879. }
  1880. }
  1881. package android.os.image {
  1882. public class DynamicSystemClient {
  1883. ctor public DynamicSystemClient(@NonNull android.content.Context);
  1884. method @RequiresPermission("android.permission.INSTALL_DYNAMIC_SYSTEM") public void bind();
  1885. method public void setOnStatusChangedListener(@NonNull java.util.concurrent.Executor, @NonNull android.os.image.DynamicSystemClient.OnStatusChangedListener);
  1886. method public void setOnStatusChangedListener(@NonNull android.os.image.DynamicSystemClient.OnStatusChangedListener);
  1887. method @RequiresPermission("android.permission.INSTALL_DYNAMIC_SYSTEM") public void start(@NonNull android.net.Uri, long);
  1888. method @RequiresPermission("android.permission.INSTALL_DYNAMIC_SYSTEM") public void start(@NonNull android.net.Uri, long, long);
  1889. method @RequiresPermission("android.permission.INSTALL_DYNAMIC_SYSTEM") public void unbind();
  1890. field public static final int CAUSE_ERROR_EXCEPTION = 6; // 0x6
  1891. field public static final int CAUSE_ERROR_INVALID_URL = 4; // 0x4
  1892. field public static final int CAUSE_ERROR_IO = 3; // 0x3
  1893. field public static final int CAUSE_ERROR_IPC = 5; // 0x5
  1894. field public static final int CAUSE_INSTALL_CANCELLED = 2; // 0x2
  1895. field public static final int CAUSE_INSTALL_COMPLETED = 1; // 0x1
  1896. field public static final int CAUSE_NOT_SPECIFIED = 0; // 0x0
  1897. field public static final int STATUS_IN_PROGRESS = 2; // 0x2
  1898. field public static final int STATUS_IN_USE = 4; // 0x4
  1899. field public static final int STATUS_NOT_STARTED = 1; // 0x1
  1900. field public static final int STATUS_READY = 3; // 0x3
  1901. field public static final int STATUS_UNKNOWN = 0; // 0x0
  1902. }
  1903. public static interface DynamicSystemClient.OnStatusChangedListener {
  1904. method public void onStatusChanged(int, int, long, @Nullable Throwable);
  1905. }
  1906. }
  1907. package android.os.storage {
  1908. public class StorageManager {
  1909. method public static boolean hasIsolatedStorage();
  1910. }
  1911. public final class StorageVolume implements android.os.Parcelable {
  1912. method public String getPath();
  1913. }
  1914. }
  1915. package android.os.strictmode {
  1916. public final class ExplicitGcViolation extends android.os.strictmode.Violation {
  1917. }
  1918. }
  1919. package android.permission {
  1920. public final class PermissionControllerManager {
  1921. method @RequiresPermission("android.permission.GET_RUNTIME_PERMISSIONS") public void getAppPermissions(@NonNull String, @NonNull android.permission.PermissionControllerManager.OnGetAppPermissionResultCallback, @Nullable android.os.Handler);
  1922. method @RequiresPermission("android.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);
  1923. field public static final int COUNT_ONLY_WHEN_GRANTED = 1; // 0x1
  1924. field public static final int COUNT_WHEN_SYSTEM = 2; // 0x2
  1925. field public static final int REASON_INSTALLER_POLICY_VIOLATION = 2; // 0x2
  1926. field public static final int REASON_MALWARE = 1; // 0x1
  1927. }
  1928. public static interface PermissionControllerManager.OnGetAppPermissionResultCallback {
  1929. method public void onGetAppPermissions(@NonNull java.util.List<android.permission.RuntimePermissionPresentationInfo>);
  1930. }
  1931. public abstract static class PermissionControllerManager.OnRevokeRuntimePermissionsCallback {
  1932. ctor public PermissionControllerManager.OnRevokeRuntimePermissionsCallback();
  1933. method public abstract void onRevokeRuntimePermissions(@NonNull java.util.Map<java.lang.String,java.util.List<java.lang.String>>);
  1934. }
  1935. public final class PermissionManager {
  1936. method @IntRange(from=0) @RequiresPermission("android.permission.ADJUST_RUNTIME_PERMISSIONS_POLICY") public int getRuntimePermissionsVersion();
  1937. method @NonNull public java.util.List<android.permission.PermissionManager.SplitPermissionInfo> getSplitPermissions();
  1938. method @RequiresPermission("android.permission.ADJUST_RUNTIME_PERMISSIONS_POLICY") public void setRuntimePermissionsVersion(@IntRange(from=0) int);
  1939. }
  1940. public static final class PermissionManager.SplitPermissionInfo {
  1941. method @NonNull public java.util.List<java.lang.String> getNewPermissions();
  1942. method @NonNull public String getSplitPermission();
  1943. method public int getTargetSdk();
  1944. }
  1945. public final class RuntimePermissionPresentationInfo implements android.os.Parcelable {
  1946. ctor public RuntimePermissionPresentationInfo(@NonNull CharSequence, boolean, boolean);
  1947. method public int describeContents();
  1948. method @NonNull public CharSequence getLabel();
  1949. method public boolean isGranted();
  1950. method public boolean isStandard();
  1951. method public void writeToParcel(android.os.Parcel, int);
  1952. field @NonNull public static final android.os.Parcelable.Creator<android.permission.RuntimePermissionPresentationInfo> CREATOR;
  1953. }
  1954. }
  1955. package android.print {
  1956. public final class PrintJobInfo implements android.os.Parcelable {
  1957. method public float getProgress();
  1958. method @Nullable public CharSequence getStatus(@NonNull android.content.pm.PackageManager);
  1959. }
  1960. public final class PrinterInfo implements android.os.Parcelable {
  1961. method @Nullable public android.graphics.drawable.Drawable loadIcon(@NonNull android.content.Context);
  1962. }
  1963. }
  1964. package android.provider {
  1965. public static final class CalendarContract.Calendars implements android.provider.BaseColumns android.provider.CalendarContract.CalendarColumns android.provider.CalendarContract.SyncColumns {
  1966. field public static final String[] SYNC_WRITABLE_COLUMNS;
  1967. }
  1968. public static final class CalendarContract.Events implements android.provider.BaseColumns android.provider.CalendarContract.CalendarColumns android.provider.CalendarContract.EventsColumns android.provider.CalendarContract.SyncColumns {
  1969. field public static final String[] SYNC_WRITABLE_COLUMNS;
  1970. }
  1971. public final class ContactsContract {
  1972. field public static final String HIDDEN_COLUMN_PREFIX = "x_";
  1973. }
  1974. public static final class ContactsContract.CommonDataKinds.Phone implements android.provider.ContactsContract.CommonDataKinds.CommonColumns android.provider.ContactsContract.DataColumnsWithJoins {
  1975. field public static final android.net.Uri ENTERPRISE_CONTENT_URI;
  1976. }
  1977. public static final class ContactsContract.PinnedPositions {
  1978. field public static final String UNDEMOTE_METHOD = "undemote";
  1979. }
  1980. public static final class ContactsContract.RawContactsEntity implements android.provider.BaseColumns android.provider.ContactsContract.DataColumns android.provider.ContactsContract.RawContactsColumns {
  1981. field public static final android.net.Uri CORP_CONTENT_URI;
  1982. }
  1983. public final class DeviceConfig {
  1984. method @RequiresPermission("android.permission.READ_DEVICE_CONFIG") public static void addOnPropertiesChangedListener(@NonNull String, @NonNull java.util.concurrent.Executor, @NonNull android.provider.DeviceConfig.OnPropertiesChangedListener);
  1985. method @RequiresPermission("android.permission.READ_DEVICE_CONFIG") public static boolean getBoolean(@NonNull String, @NonNull String, boolean);
  1986. method @RequiresPermission("android.permission.READ_DEVICE_CONFIG") public static float getFloat(@NonNull String, @NonNull String, float);
  1987. method @RequiresPermission("android.permission.READ_DEVICE_CONFIG") public static int getInt(@NonNull String, @NonNull String, int);
  1988. method @RequiresPermission("android.permission.READ_DEVICE_CONFIG") public static long getLong(@NonNull String, @NonNull String, long);
  1989. method @RequiresPermission("android.permission.READ_DEVICE_CONFIG") public static String getProperty(@NonNull String, @NonNull String);
  1990. method @RequiresPermission("android.permission.READ_DEVICE_CONFIG") public static String getString(@NonNull String, @NonNull String, @Nullable String);
  1991. method public static void removeOnPropertiesChangedListener(@NonNull android.provider.DeviceConfig.OnPropertiesChangedListener);
  1992. method @RequiresPermission(android.Manifest.permission.WRITE_DEVICE_CONFIG) public static void resetToDefaults(int, @Nullable String);
  1993. method @RequiresPermission(android.Manifest.permission.WRITE_DEVICE_CONFIG) public static boolean setProperty(@NonNull String, @NonNull String, @Nullable String, boolean);
  1994. field public static final String NAMESPACE_AUTOFILL = "autofill";
  1995. field public static final String NAMESPACE_CONTENT_CAPTURE = "content_capture";
  1996. field public static final String NAMESPACE_PRIVACY = "privacy";
  1997. field public static final String NAMESPACE_ROLLBACK = "rollback";
  1998. field public static final String NAMESPACE_ROLLBACK_BOOT = "rollback_boot";
  1999. field public static final String NAMESPACE_WINDOW_MANAGER = "android:window_manager";
  2000. }
  2001. public static interface DeviceConfig.OnPropertiesChangedListener {
  2002. method public void onPropertiesChanged(@NonNull android.provider.DeviceConfig.Properties);
  2003. }
  2004. public static class DeviceConfig.Properties {
  2005. method public boolean getBoolean(@NonNull String, boolean);
  2006. method public float getFloat(@NonNull String, float);
  2007. method public int getInt(@NonNull String, int);
  2008. method @NonNull public java.util.Set<java.lang.String> getKeyset();
  2009. method public long getLong(@NonNull String, long);
  2010. method @NonNull public String getNamespace();
  2011. method @Nullable public String getString(@NonNull String, @Nullable String);
  2012. }
  2013. public static interface DeviceConfig.WindowManager {
  2014. field public static final String KEY_SYSTEM_GESTURES_EXCLUDED_BY_PRE_Q_STICKY_IMMERSIVE = "system_gestures_excluded_by_pre_q_sticky_immersive";
  2015. field public static final String KEY_SYSTEM_GESTURE_EXCLUSION_LIMIT_DP = "system_gesture_exclusion_limit_dp";
  2016. }
  2017. public final class MediaStore {
  2018. method @RequiresPermission(android.Manifest.permission.CLEAR_APP_USER_DATA) public static void deleteContributedMedia(android.content.Context, String, android.os.UserHandle) throws java.io.IOException;
  2019. method @RequiresPermission(android.Manifest.permission.CLEAR_APP_USER_DATA) public static long getContributedMediaSize(android.content.Context, String, android.os.UserHandle) throws java.io.IOException;
  2020. method @NonNull public static java.io.File getVolumePath(@NonNull String) throws java.io.FileNotFoundException;
  2021. method @NonNull public static java.util.Collection<java.io.File> getVolumeScanPaths(@NonNull String) throws java.io.FileNotFoundException;
  2022. method public static android.net.Uri scanFile(android.content.Context, java.io.File);
  2023. method public static android.net.Uri scanFileFromShell(android.content.Context, java.io.File);
  2024. method public static void scanVolume(android.content.Context, java.io.File);
  2025. }
  2026. public final class Settings {
  2027. field public static final String ACTION_ENTERPRISE_PRIVACY_SETTINGS = "android.settings.ENTERPRISE_PRIVACY_SETTINGS";
  2028. field public static final String ACTION_REQUEST_ENABLE_CONTENT_CAPTURE = "android.settings.REQUEST_ENABLE_CONTENT_CAPTURE";
  2029. field public static final int RESET_MODE_PACKAGE_DEFAULTS = 1; // 0x1
  2030. }
  2031. public static final class Settings.Global extends android.provider.Settings.NameValueTable {
  2032. field public static final String AUTOFILL_COMPAT_MODE_ALLOWED_PACKAGES = "autofill_compat_mode_allowed_packages";
  2033. field public static final String AUTOMATIC_POWER_SAVE_MODE = "automatic_power_save_mode";
  2034. field public static final String BATTERY_SAVER_CONSTANTS = "battery_saver_constants";
  2035. field public static final String DYNAMIC_POWER_SAVINGS_DISABLE_THRESHOLD = "dynamic_power_savings_disable_threshold";
  2036. field public static final String DYNAMIC_POWER_SAVINGS_ENABLED = "dynamic_power_savings_enabled";
  2037. field public static final String HIDDEN_API_BLACKLIST_EXEMPTIONS = "hidden_api_blacklist_exemptions";
  2038. field public static final String LOCATION_GLOBAL_KILL_SWITCH = "location_global_kill_switch";
  2039. field public static final String LOCATION_IGNORE_SETTINGS_PACKAGE_WHITELIST = "location_ignore_settings_package_whitelist";
  2040. field public static final String LOW_POWER_MODE = "low_power";
  2041. field public static final String LOW_POWER_MODE_STICKY = "low_power_sticky";
  2042. field public static final String NOTIFICATION_BUBBLES = "notification_bubbles";
  2043. field public static final String OVERLAY_DISPLAY_DEVICES = "overlay_display_devices";
  2044. field public static final String USE_OPEN_WIFI_PACKAGE = "use_open_wifi_package";
  2045. }
  2046. public static final class Settings.Secure extends android.provider.Settings.NameValueTable {
  2047. method @RequiresPermission(android.Manifest.permission.WRITE_SECURE_SETTINGS) public static void resetToDefaults(@NonNull android.content.ContentResolver, @Nullable String);
  2048. field public static final String ACCESSIBILITY_DISPLAY_MAGNIFICATION_ENABLED = "accessibility_display_magnification_enabled";
  2049. field public static final String ACCESSIBILITY_SHORTCUT_TARGET_SERVICE = "accessibility_shortcut_target_service";
  2050. field public static final String AUTOFILL_FEATURE_FIELD_CLASSIFICATION = "autofill_field_classification";
  2051. field public static final String AUTOFILL_SERVICE = "autofill_service";
  2052. field public static final String AUTOFILL_USER_DATA_MAX_CATEGORY_COUNT = "autofill_user_data_max_category_count";
  2053. field public static final String AUTOFILL_USER_DATA_MAX_FIELD_CLASSIFICATION_IDS_SIZE = "autofill_user_data_max_field_classification_size";
  2054. field public static final String AUTOFILL_USER_DATA_MAX_USER_DATA_SIZE = "autofill_user_data_max_user_data_size";
  2055. field public static final String AUTOFILL_USER_DATA_MAX_VALUE_LENGTH = "autofill_user_data_max_value_length";
  2056. field public static final String AUTOFILL_USER_DATA_MIN_VALUE_LENGTH = "autofill_user_data_min_value_length";
  2057. field public static final String CONTENT_CAPTURE_ENABLED = "content_capture_enabled";
  2058. field public static final String DISABLED_PRINT_SERVICES = "disabled_print_services";
  2059. field public static final String DOZE_ALWAYS_ON = "doze_always_on";
  2060. field @Deprecated public static final String ENABLED_NOTIFICATION_POLICY_ACCESS_PACKAGES = "enabled_notification_policy_access_packages";
  2061. field public static final String ENABLED_VR_LISTENERS = "enabled_vr_listeners";
  2062. field public static final String LOCATION_ACCESS_CHECK_DELAY_MILLIS = "location_access_check_delay_millis";
  2063. field public static final String LOCATION_ACCESS_CHECK_INTERVAL_MILLIS = "location_access_check_interval_millis";
  2064. field public static final String NOTIFICATION_BADGING = "notification_badging";
  2065. field @Deprecated public static final String NOTIFICATION_BUBBLES = "notification_bubbles";
  2066. field @RequiresPermission(android.Manifest.permission.WRITE_SECURE_SETTINGS) public static final String SYNC_PARENT_SOUNDS = "sync_parent_sounds";
  2067. field public static final String USER_SETUP_COMPLETE = "user_setup_complete";
  2068. field public static final String VOICE_INTERACTION_SERVICE = "voice_interaction_service";
  2069. }
  2070. public static final class Telephony.Sms.Intents {
  2071. field public static final String SMS_CARRIER_PROVISION_ACTION = "android.provider.Telephony.SMS_CARRIER_PROVISION";
  2072. }
  2073. public static final class VoicemailContract.Voicemails implements android.provider.BaseColumns android.provider.OpenableColumns {
  2074. field public static final String _DATA = "_data";
  2075. }
  2076. }
  2077. package android.security {
  2078. public class KeyStoreException extends java.lang.Exception {
  2079. ctor public KeyStoreException(int, String);
  2080. method public int getErrorCode();
  2081. }
  2082. }
  2083. package android.security.keystore {
  2084. public abstract class AttestationUtils {
  2085. method @RequiresPermission("android.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;
  2086. field public static final int ID_TYPE_IMEI = 2; // 0x2
  2087. field public static final int ID_TYPE_MEID = 3; // 0x3
  2088. field public static final int ID_TYPE_SERIAL = 1; // 0x1
  2089. }
  2090. public class DeviceIdAttestationException extends java.lang.Exception {
  2091. ctor public DeviceIdAttestationException(@Nullable String);
  2092. ctor public DeviceIdAttestationException(@Nullable String, @Nullable Throwable);
  2093. }
  2094. public static final class KeyGenParameterSpec.Builder {
  2095. method @NonNull public android.security.keystore.KeyGenParameterSpec.Builder setUniqueIdIncluded(boolean);
  2096. }
  2097. public final class KeyProtection implements java.security.KeyStore.ProtectionParameter {
  2098. method public long getBoundToSpecificSecureUserId();
  2099. }
  2100. public static final class KeyProtection.Builder {
  2101. method public android.security.keystore.KeyProtection.Builder setBoundToSpecificSecureUserId(long);
  2102. }
  2103. }
  2104. package android.service.appprediction {
  2105. public abstract class AppPredictionService extends android.app.Service {
  2106. ctor public AppPredictionService();
  2107. method @MainThread public abstract void onAppTargetEvent(@NonNull android.app.prediction.AppPredictionSessionId, @NonNull android.app.prediction.AppTargetEvent);
  2108. method @NonNull public final android.os.IBinder onBind(@NonNull android.content.Intent);
  2109. method public void onCreatePredictionSession(@NonNull android.app.prediction.AppPredictionContext, @NonNull android.app.prediction.AppPredictionSessionId);
  2110. method @MainThread public void onDestroyPredictionSession(@NonNull android.app.prediction.AppPredictionSessionId);
  2111. method @MainThread public abstract void onLaunchLocationShown(@NonNull android.app.prediction.AppPredictionSessionId, @NonNull String, @NonNull java.util.List<android.app.prediction.AppTargetId>);
  2112. method @MainThread public abstract void onRequestPredictionUpdate(@NonNull android.app.prediction.AppPredictionSessionId);
  2113. 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>>);
  2114. method @MainThread public void onStartPredictionUpdates();
  2115. method @MainThread public void onStopPredictionUpdates();
  2116. method public final void updatePredictions(@NonNull android.app.prediction.AppPredictionSessionId, @NonNull java.util.List<android.app.prediction.AppTarget>);
  2117. }
  2118. }
  2119. package android.service.autofill {
  2120. public abstract class AutofillFieldClassificationService extends android.app.Service {
  2121. method public android.os.IBinder onBind(android.content.Intent);
  2122. field public static final String REQUIRED_ALGORITHM_EDIT_DISTANCE = "EDIT_DISTANCE";
  2123. field public static final String REQUIRED_ALGORITHM_EXACT_MATCH = "EXACT_MATCH";
  2124. field public static final String SERVICE_INTERFACE = "android.service.autofill.AutofillFieldClassificationService";
  2125. field public static final String SERVICE_META_DATA_KEY_AVAILABLE_ALGORITHMS = "android.autofill.field_classification.available_algorithms";
  2126. field public static final String SERVICE_META_DATA_KEY_DEFAULT_ALGORITHM = "android.autofill.field_classification.default_algorithm";
  2127. }
  2128. public final class CharSequenceTransformation extends android.service.autofill.InternalTransformation implements android.os.Parcelable android.service.autofill.Transformation {
  2129. method public void apply(@NonNull android.service.autofill.ValueFinder, @NonNull android.widget.RemoteViews, int) throws java.lang.Exception;
  2130. }
  2131. public final class CompositeUserData implements android.os.Parcelable {
  2132. ctor public CompositeUserData(@Nullable android.service.autofill.UserData, @NonNull android.service.autofill.UserData);
  2133. method public int describeContents();
  2134. method public String[] getCategoryIds();
  2135. method public android.os.Bundle getDefaultFieldClassificationArgs();
  2136. method @Nullable public String getFieldClassificationAlgorithm();
  2137. method @Nullable public String getFieldClassificationAlgorithmForCategory(@NonNull String);
  2138. method public android.util.ArrayMap<java.lang.String,java.lang.String> getFieldClassificationAlgorithms();
  2139. method public android.util.ArrayMap<java.lang.String,android.os.Bundle> getFieldClassificationArgs();
  2140. method public String[] getValues();
  2141. method public void writeToParcel(android.os.Parcel, int);
  2142. field @NonNull public static final android.os.Parcelable.Creator<android.service.autofill.CompositeUserData> CREATOR;
  2143. }
  2144. public final class CustomDescription implements android.os.Parcelable {
  2145. method @Nullable public android.util.SparseArray<android.service.autofill.InternalOnClickAction> getActions();
  2146. }
  2147. public final class DateTransformation extends android.service.autofill.InternalTransformation implements android.os.Parcelable android.service.autofill.Transformation {
  2148. method public void apply(@NonNull android.service.autofill.ValueFinder, @NonNull android.widget.RemoteViews, int) throws java.lang.Exception;
  2149. }
  2150. public final class DateValueSanitizer extends android.service.autofill.InternalSanitizer implements android.os.Parcelable android.service.autofill.Sanitizer {
  2151. method @Nullable public android.view.autofill.AutofillValue sanitize(@NonNull android.view.autofill.AutofillValue);
  2152. }
  2153. public final class FillResponse implements android.os.Parcelable {
  2154. method public int getFlags();
  2155. }
  2156. public final class ImageTransformation extends android.service.autofill.InternalTransformation implements android.os.Parcelable android.service.autofill.Transformation {
  2157. method public void apply(@NonNull android.service.autofill.ValueFinder, @NonNull android.widget.RemoteViews, int) throws java.lang.Exception;
  2158. }
  2159. public abstract class InternalOnClickAction implements android.service.autofill.OnClickAction android.os.Parcelable {
  2160. ctor public InternalOnClickAction();
  2161. method public abstract void onClick(@NonNull android.view.ViewGroup);
  2162. }
  2163. public abstract class InternalSanitizer implements android.os.Parcelable android.service.autofill.Sanitizer {
  2164. ctor public InternalSanitizer();
  2165. method @Nullable public abstract android.view.autofill.AutofillValue sanitize(@NonNull android.view.autofill.AutofillValue);
  2166. }
  2167. public abstract class InternalTransformation implements android.os.Parcelable android.service.autofill.Transformation {
  2168. ctor public InternalTransformation();
  2169. method public static boolean batchApply(@NonNull android.service.autofill.ValueFinder, @NonNull android.widget.RemoteViews, @NonNull java.util.ArrayList<android.util.Pair<java.lang.Integer,android.service.autofill.InternalTransformation>>);
  2170. }
  2171. public abstract class InternalValidator implements android.os.Parcelable android.service.autofill.Validator {
  2172. ctor public InternalValidator();
  2173. method public abstract boolean isValid(@NonNull android.service.autofill.ValueFinder);
  2174. }
  2175. public final class LuhnChecksumValidator extends android.service.autofill.InternalValidator implements android.os.Parcelable android.service.autofill.Validator {
  2176. method public boolean isValid(@NonNull android.service.autofill.ValueFinder);
  2177. }
  2178. public final class RegexValidator extends android.service.autofill.InternalValidator implements android.os.Parcelable android.service.autofill.Validator {
  2179. method public boolean isValid(@NonNull android.service.autofill.ValueFinder);
  2180. }
  2181. public final class TextValueSanitizer extends android.service.autofill.InternalSanitizer implements android.os.Parcelable android.service.autofill.Sanitizer {
  2182. method @Nullable public android.view.autofill.AutofillValue sanitize(@NonNull android.view.autofill.AutofillValue);
  2183. }
  2184. public final class UserData implements android.os.Parcelable {
  2185. method public android.util.ArrayMap<java.lang.String,java.lang.String> getFieldClassificationAlgorithms();
  2186. }
  2187. public interface ValueFinder {
  2188. method @Nullable public default String findByAutofillId(@NonNull android.view.autofill.AutofillId);
  2189. method @Nullable public android.view.autofill.AutofillValue findRawValueByAutofillId(@NonNull android.view.autofill.AutofillId);
  2190. }
  2191. public final class VisibilitySetterAction extends android.service.autofill.InternalOnClickAction implements android.service.autofill.OnClickAction android.os.Parcelable {
  2192. method public void onClick(@NonNull android.view.ViewGroup);
  2193. }
  2194. }
  2195. package android.service.autofill.augmented {
  2196. public abstract class AugmentedAutofillService extends android.app.Service {
  2197. ctor public AugmentedAutofillService();
  2198. method protected final void dump(java.io.FileDescriptor, java.io.PrintWriter, String[]);
  2199. method protected void dump(@NonNull java.io.PrintWriter, @NonNull String[]);
  2200. method public void onConnected();
  2201. method public void onDisconnected();
  2202. 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);
  2203. field public static final String SERVICE_INTERFACE = "android.service.autofill.augmented.AugmentedAutofillService";
  2204. }
  2205. public final class FillCallback {
  2206. method public void onSuccess(@Nullable android.service.autofill.augmented.FillResponse);
  2207. }
  2208. public final class FillController {
  2209. method public void autofill(@NonNull java.util.List<android.util.Pair<android.view.autofill.AutofillId,android.view.autofill.AutofillValue>>);
  2210. }
  2211. public final class FillRequest {
  2212. method @NonNull public android.content.ComponentName getActivityComponent();
  2213. method @NonNull public android.view.autofill.AutofillId getFocusedId();
  2214. method @NonNull public android.view.autofill.AutofillValue getFocusedValue();
  2215. method @Nullable public android.service.autofill.augmented.PresentationParams getPresentationParams();
  2216. method public int getTaskId();
  2217. }
  2218. public final class FillResponse {
  2219. }
  2220. public static final class FillResponse.Builder {
  2221. ctor public FillResponse.Builder();
  2222. method @NonNull public android.service.autofill.augmented.FillResponse build();
  2223. method @NonNull public android.service.autofill.augmented.FillResponse.Builder setFillWindow(@NonNull android.service.autofill.augmented.FillWindow);
  2224. }
  2225. public final class FillWindow implements java.lang.AutoCloseable {
  2226. ctor public FillWindow();
  2227. method public void destroy();
  2228. method public boolean update(@NonNull android.service.autofill.augmented.PresentationParams.Area, @NonNull android.view.View, long);
  2229. }
  2230. public abstract class PresentationParams {
  2231. method @Nullable public android.service.autofill.augmented.PresentationParams.Area getSuggestionArea();
  2232. }
  2233. public abstract static class PresentationParams.Area {
  2234. method @NonNull public android.graphics.Rect getBounds();
  2235. }
  2236. }
  2237. package android.service.contentcapture {
  2238. public final class ActivityEvent implements android.os.Parcelable {
  2239. method public int describeContents();
  2240. method @NonNull public android.content.ComponentName getComponentName();
  2241. method public int getEventType();
  2242. method public void writeToParcel(@NonNull android.os.Parcel, int);
  2243. field @NonNull public static final android.os.Parcelable.Creator<android.service.contentcapture.ActivityEvent> CREATOR;
  2244. field public static final int TYPE_ACTIVITY_DESTROYED = 24; // 0x18
  2245. field public static final int TYPE_ACTIVITY_PAUSED = 2; // 0x2
  2246. field public static final int TYPE_ACTIVITY_RESUMED = 1; // 0x1
  2247. field public static final int TYPE_ACTIVITY_STOPPED = 23; // 0x17
  2248. }
  2249. public abstract class ContentCaptureService extends android.app.Service {
  2250. ctor public ContentCaptureService();
  2251. method public final void disableSelf();
  2252. method public void onActivityEvent(@NonNull android.service.contentcapture.ActivityEvent);
  2253. method public void onActivitySnapshot(@NonNull android.view.contentcapture.ContentCaptureSessionId, @NonNull android.service.contentcapture.SnapshotData);
  2254. method public void onConnected();
  2255. method public void onContentCaptureEvent(@NonNull android.view.contentcapture.ContentCaptureSessionId, @NonNull android.view.contentcapture.ContentCaptureEvent);
  2256. method public void onCreateContentCaptureSession(@NonNull android.view.contentcapture.ContentCaptureContext, @NonNull android.view.contentcapture.ContentCaptureSessionId);
  2257. method public void onDataRemovalRequest(@NonNull android.view.contentcapture.DataRemovalRequest);
  2258. method public void onDestroyContentCaptureSession(@NonNull android.view.contentcapture.ContentCaptureSessionId);
  2259. method public void onDisconnected();
  2260. method public final void setContentCaptureConditions(@NonNull String, @Nullable java.util.Set<android.view.contentcapture.ContentCaptureCondition>);
  2261. method public final void setContentCaptureWhitelist(@Nullable java.util.Set<java.lang.String>, @Nullable java.util.Set<android.content.ComponentName>);
  2262. field public static final String SERVICE_INTERFACE = "android.service.contentcapture.ContentCaptureService";
  2263. field public static final String SERVICE_META_DATA = "android.content_capture";
  2264. }
  2265. public final class SnapshotData implements android.os.Parcelable {
  2266. method public int describeContents();
  2267. method @Nullable public android.app.assist.AssistContent getAssistContent();
  2268. method @NonNull public android.os.Bundle getAssistData();
  2269. method @NonNull public android.app.assist.AssistStructure getAssistStructure();
  2270. method public void writeToParcel(@NonNull android.os.Parcel, int);
  2271. field @NonNull public static final android.os.Parcelable.Creator<android.service.contentcapture.SnapshotData> CREATOR;
  2272. }
  2273. }
  2274. package android.service.notification {
  2275. public final class Adjustment implements android.os.Parcelable {
  2276. ctor public Adjustment(String, String, android.os.Bundle, CharSequence, int);
  2277. ctor public Adjustment(@NonNull String, @NonNull String, @NonNull android.os.Bundle, @NonNull CharSequence, @NonNull android.os.UserHandle);
  2278. method public int describeContents();
  2279. method @NonNull public CharSequence getExplanation();
  2280. method @NonNull public String getKey();
  2281. method @NonNull public String getPackage();
  2282. method @NonNull public android.os.Bundle getSignals();
  2283. method public int getUser();
  2284. method @NonNull public android.os.UserHandle getUserHandle();
  2285. method public void writeToParcel(android.os.Parcel, int);
  2286. field @NonNull public static final android.os.Parcelable.Creator<android.service.notification.Adjustment> CREATOR;
  2287. field public static final String KEY_CONTEXTUAL_ACTIONS = "key_contextual_actions";
  2288. field public static final String KEY_IMPORTANCE = "key_importance";
  2289. field public static final String KEY_SNOOZE_CRITERIA = "key_snooze_criteria";
  2290. field public static final String KEY_TEXT_REPLIES = "key_text_replies";
  2291. field public static final String KEY_USER_SENTIMENT = "key_user_sentiment";
  2292. }
  2293. @Deprecated public abstract class ConditionProviderService extends android.app.Service {
  2294. method @Deprecated public boolean isBound();
  2295. }
  2296. public abstract class NotificationAssistantService extends android.service.notification.NotificationListenerService {
  2297. ctor public NotificationAssistantService();
  2298. method public final void adjustNotification(@NonNull android.service.notification.Adjustment);
  2299. method public final void adjustNotifications(@NonNull java.util.List<android.service.notification.Adjustment>);
  2300. method public void onActionInvoked(@NonNull String, @NonNull android.app.Notification.Action, int);
  2301. method public void onAllowedAdjustmentsChanged();
  2302. method @NonNull public final android.os.IBinder onBind(@Nullable android.content.Intent);
  2303. method public void onNotificationDirectReplied(@NonNull String);
  2304. method @Nullable public abstract android.service.notification.Adjustment onNotificationEnqueued(@NonNull android.service.notification.StatusBarNotification);
  2305. method @Nullable public android.service.notification.Adjustment onNotificationEnqueued(@NonNull android.service.notification.StatusBarNotification, @NonNull android.app.NotificationChannel);
  2306. method public void onNotificationExpansionChanged(@NonNull String, boolean, boolean);
  2307. method public abstract void onNotificationSnoozedUntilContext(@NonNull android.service.notification.StatusBarNotification, @NonNull String);
  2308. method public void onNotificationsSeen(@NonNull java.util.List<java.lang.String>);
  2309. method public void onSuggestedReplySent(@NonNull String, @NonNull CharSequence, int);
  2310. method public final void unsnoozeNotification(@NonNull String);
  2311. field public static final String SERVICE_INTERFACE = "android.service.notification.NotificationAssistantService";
  2312. field public static final int SOURCE_FROM_APP = 0; // 0x0
  2313. field public static final int SOURCE_FROM_ASSISTANT = 1; // 0x1
  2314. }
  2315. public abstract class NotificationListenerService extends android.app.Service {
  2316. method public void onNotificationRemoved(@NonNull android.service.notification.StatusBarNotification, @NonNull android.service.notification.NotificationListenerService.RankingMap, @NonNull android.service.notification.NotificationStats, int);
  2317. }
  2318. public final class NotificationStats implements android.os.Parcelable {
  2319. ctor public NotificationStats();
  2320. method public int describeContents();
  2321. method public int getDismissalSentiment();
  2322. method public int getDismissalSurface();
  2323. method public boolean hasDirectReplied();
  2324. method public boolean hasExpanded();
  2325. method public boolean hasInteracted();
  2326. method public boolean hasSeen();
  2327. method public boolean hasSnoozed();
  2328. method public boolean hasViewedSettings();
  2329. method public void setDirectReplied();
  2330. method public void setDismissalSentiment(int);
  2331. method public void setDismissalSurface(int);
  2332. method public void setExpanded();
  2333. method public void setSeen();
  2334. method public void setSnoozed();
  2335. method public void setViewedSettings();
  2336. method public void writeToParcel(android.os.Parcel, int);
  2337. field @NonNull public static final android.os.Parcelable.Creator<android.service.notification.NotificationStats> CREATOR;
  2338. field public static final int DISMISSAL_AOD = 2; // 0x2
  2339. field public static final int DISMISSAL_NOT_DISMISSED = -1; // 0xffffffff
  2340. field public static final int DISMISSAL_OTHER = 0; // 0x0
  2341. field public static final int DISMISSAL_PEEK = 1; // 0x1
  2342. field public static final int DISMISSAL_SHADE = 3; // 0x3
  2343. field public static final int DISMISS_SENTIMENT_NEGATIVE = 0; // 0x0
  2344. field public static final int DISMISS_SENTIMENT_NEUTRAL = 1; // 0x1
  2345. field public static final int DISMISS_SENTIMENT_POSITIVE = 2; // 0x2
  2346. field public static final int DISMISS_SENTIMENT_UNKNOWN = -1000; // 0xfffffc18
  2347. }
  2348. public final class SnoozeCriterion implements android.os.Parcelable {
  2349. ctor public SnoozeCriterion(String, CharSequence, CharSequence);
  2350. ctor protected SnoozeCriterion(android.os.Parcel);
  2351. method public int describeContents();
  2352. method public CharSequence getConfirmation();
  2353. method public CharSequence getExplanation();
  2354. method public String getId();
  2355. method public void writeToParcel(android.os.Parcel, int);
  2356. field @NonNull public static final android.os.Parcelable.Creator<android.service.notification.SnoozeCriterion> CREATOR;
  2357. }
  2358. }
  2359. package android.service.quicksettings {
  2360. public class TileService extends android.app.Service {
  2361. method public static boolean isQuickSettingsSupported();
  2362. }
  2363. }
  2364. package android.telecom {
  2365. public final class CallAudioState implements android.os.Parcelable {
  2366. ctor public CallAudioState(boolean, int, int, @Nullable android.bluetooth.BluetoothDevice, @NonNull java.util.Collection<android.bluetooth.BluetoothDevice>);
  2367. }
  2368. public abstract class Conference extends android.telecom.Conferenceable {
  2369. method public android.telecom.Connection getPrimaryConnection();
  2370. }
  2371. public class PhoneAccountSuggestionService extends android.app.Service {
  2372. ctor public PhoneAccountSuggestionService();
  2373. method public void onAccountSuggestionRequest(@NonNull String);
  2374. method public android.os.IBinder onBind(android.content.Intent);
  2375. method public final void suggestPhoneAccounts(@NonNull String, @NonNull java.util.List<android.telecom.PhoneAccountSuggestion>);
  2376. field public static final String SERVICE_INTERFACE = "android.telecom.PhoneAccountSuggestionService";
  2377. }
  2378. public class TelecomManager {
  2379. method @RequiresPermission("android.permission.READ_PRIVILEGED_PHONE_STATE") public int getCurrentTtyMode();
  2380. method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public boolean isInEmergencyCall();
  2381. method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public void setUserSelectedOutgoingPhoneAccount(@Nullable android.telecom.PhoneAccountHandle);
  2382. field public static final int TTY_MODE_FULL = 1; // 0x1
  2383. field public static final int TTY_MODE_HCO = 2; // 0x2
  2384. field public static final int TTY_MODE_OFF = 0; // 0x0
  2385. field public static final int TTY_MODE_VCO = 3; // 0x3
  2386. }
  2387. }
  2388. package android.telephony {
  2389. public final class AccessNetworkConstants {
  2390. field public static final int TRANSPORT_TYPE_WLAN = 2; // 0x2
  2391. field public static final int TRANSPORT_TYPE_WWAN = 1; // 0x1
  2392. }
  2393. public class CarrierConfigManager {
  2394. method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public void overrideConfig(int, @Nullable android.os.PersistableBundle);
  2395. }
  2396. public final class DataSpecificRegistrationInfo implements android.os.Parcelable {
  2397. method public int describeContents();
  2398. method @NonNull public android.telephony.LteVopsSupportInfo getLteVopsSupportInfo();
  2399. method public void writeToParcel(android.os.Parcel, int);
  2400. field @NonNull public static final android.os.Parcelable.Creator<android.telephony.DataSpecificRegistrationInfo> CREATOR;
  2401. }
  2402. public final class LteVopsSupportInfo implements android.os.Parcelable {
  2403. ctor public LteVopsSupportInfo(int, int);
  2404. method public int describeContents();
  2405. method public int getEmcBearerSupport();
  2406. method public int getVopsSupport();
  2407. method public void writeToParcel(android.os.Parcel, int);
  2408. field @NonNull public static final android.os.Parcelable.Creator<android.telephony.LteVopsSupportInfo> CREATOR;
  2409. field public static final int LTE_STATUS_NOT_AVAILABLE = 1; // 0x1
  2410. field public static final int LTE_STATUS_NOT_SUPPORTED = 3; // 0x3
  2411. field public static final int LTE_STATUS_SUPPORTED = 2; // 0x2
  2412. }
  2413. public class MbmsDownloadSession implements java.lang.AutoCloseable {
  2414. field public static final String MBMS_DOWNLOAD_SERVICE_OVERRIDE_METADATA = "mbms-download-service-override";
  2415. }
  2416. public class MbmsGroupCallSession implements java.lang.AutoCloseable {
  2417. field public static final String MBMS_GROUP_CALL_SERVICE_OVERRIDE_METADATA = "mbms-group-call-service-override";
  2418. }
  2419. public class MbmsStreamingSession implements java.lang.AutoCloseable {
  2420. field public static final String MBMS_STREAMING_SERVICE_OVERRIDE_METADATA = "mbms-streaming-service-override";
  2421. }
  2422. public final class NetworkRegistrationInfo implements android.os.Parcelable {
  2423. method public int describeContents();
  2424. method public int getAccessNetworkTechnology();
  2425. method @NonNull public java.util.List<java.lang.Integer> getAvailableServices();
  2426. method @Nullable public android.telephony.CellIdentity getCellIdentity();
  2427. method @Nullable public android.telephony.DataSpecificRegistrationInfo getDataSpecificInfo();
  2428. method public int getDomain();
  2429. method public int getRegistrationState();
  2430. method public int getRejectCause();
  2431. method public int getRoamingType();
  2432. method public int getTransportType();
  2433. method public boolean isEmergencyEnabled();
  2434. method public boolean isRoaming();
  2435. method public void writeToParcel(android.os.Parcel, int);
  2436. field @NonNull public static final android.os.Parcelable.Creator<android.telephony.NetworkRegistrationInfo> CREATOR;
  2437. field public static final int DOMAIN_CS = 1; // 0x1
  2438. field public static final int DOMAIN_PS = 2; // 0x2
  2439. field public static final int REGISTRATION_STATE_DENIED = 3; // 0x3
  2440. field public static final int REGISTRATION_STATE_HOME = 1; // 0x1
  2441. field public static final int REGISTRATION_STATE_NOT_REGISTERED_OR_SEARCHING = 0; // 0x0
  2442. field public static final int REGISTRATION_STATE_NOT_REGISTERED_SEARCHING = 2; // 0x2
  2443. field public static final int REGISTRATION_STATE_ROAMING = 5; // 0x5
  2444. field public static final int REGISTRATION_STATE_UNKNOWN = 4; // 0x4
  2445. field public static final int SERVICE_TYPE_DATA = 2; // 0x2
  2446. field public static final int SERVICE_TYPE_EMERGENCY = 5; // 0x5
  2447. field public static final int SERVICE_TYPE_SMS = 3; // 0x3
  2448. field public static final int SERVICE_TYPE_UNKNOWN = 0; // 0x0
  2449. field public static final int SERVICE_TYPE_VIDEO = 4; // 0x4
  2450. field public static final int SERVICE_TYPE_VOICE = 1; // 0x1
  2451. }
  2452. public static final class NetworkRegistrationInfo.Builder {
  2453. ctor public NetworkRegistrationInfo.Builder();
  2454. method @NonNull public android.telephony.NetworkRegistrationInfo build();
  2455. method @NonNull public android.telephony.NetworkRegistrationInfo.Builder setAccessNetworkTechnology(int);
  2456. method @NonNull public android.telephony.NetworkRegistrationInfo.Builder setAvailableServices(@NonNull java.util.List<java.lang.Integer>);
  2457. method @NonNull public android.telephony.NetworkRegistrationInfo.Builder setCellIdentity(@Nullable android.telephony.CellIdentity);
  2458. method @NonNull public android.telephony.NetworkRegistrationInfo.Builder setDomain(int);
  2459. method @NonNull public android.telephony.NetworkRegistrationInfo.Builder setEmergencyOnly(boolean);
  2460. method @NonNull public android.telephony.NetworkRegistrationInfo.Builder setRegistrationState(int);
  2461. method @NonNull public android.telephony.NetworkRegistrationInfo.Builder setRejectCause(int);
  2462. method @NonNull public android.telephony.NetworkRegistrationInfo.Builder setTransportType(int);
  2463. }
  2464. public class ServiceState implements android.os.Parcelable {
  2465. method public void addNetworkRegistrationInfo(android.telephony.NetworkRegistrationInfo);
  2466. method public void setCdmaSystemAndNetworkId(int, int);
  2467. method public void setCellBandwidths(int[]);
  2468. method public void setChannelNumber(int);
  2469. method public void setDataRoamingType(int);
  2470. method public void setRilDataRadioTechnology(int);
  2471. method public void setRilVoiceRadioTechnology(int);
  2472. method public void setVoiceRoamingType(int);
  2473. }
  2474. public final class SmsManager {
  2475. method @RequiresPermission(android.Manifest.permission.READ_PHONE_STATE) public int checkSmsShortCodeDestination(String, String);
  2476. field public static final int SMS_CATEGORY_FREE_SHORT_CODE = 1; // 0x1
  2477. field public static final int SMS_CATEGORY_NOT_SHORT_CODE = 0; // 0x0
  2478. field public static final int SMS_CATEGORY_POSSIBLE_PREMIUM_SHORT_CODE = 3; // 0x3
  2479. field public static final int SMS_CATEGORY_PREMIUM_SHORT_CODE = 4; // 0x4
  2480. field public static final int SMS_CATEGORY_STANDARD_SHORT_CODE = 2; // 0x2
  2481. }
  2482. public class TelephonyManager {
  2483. method public int checkCarrierPrivilegesForPackage(String);
  2484. method public int getCarrierIdListVersion();
  2485. method @RequiresPermission(android.Manifest.permission.READ_PHONE_STATE) public String getLine1AlphaTag();
  2486. method public android.util.Pair<java.lang.Integer,java.lang.Integer> getRadioHalVersion();
  2487. method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public void refreshUiccProfile();
  2488. method @Deprecated public void setCarrierTestOverride(String, String, String, String, String, String, String);
  2489. method public void setCarrierTestOverride(String, String, String, String, String, String, String, String, String);
  2490. field public static final int CARRIER_PRIVILEGE_STATUS_ERROR_LOADING_RULES = -2; // 0xfffffffe
  2491. field public static final int CARRIER_PRIVILEGE_STATUS_HAS_ACCESS = 1; // 0x1
  2492. field public static final int CARRIER_PRIVILEGE_STATUS_NO_ACCESS = 0; // 0x0
  2493. field public static final int CARRIER_PRIVILEGE_STATUS_RULES_NOT_LOADED = -1; // 0xffffffff
  2494. field public static final int UNKNOWN_CARRIER_ID_LIST_VERSION = -1; // 0xffffffff
  2495. }
  2496. }
  2497. package android.telephony.mbms {
  2498. public static class DownloadRequest.Builder {
  2499. method public android.telephony.mbms.DownloadRequest.Builder setServiceId(String);
  2500. }
  2501. public final class FileInfo implements android.os.Parcelable {
  2502. ctor public FileInfo(android.net.Uri, String);
  2503. }
  2504. public final class FileServiceInfo extends android.telephony.mbms.ServiceInfo implements android.os.Parcelable {
  2505. 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>);
  2506. }
  2507. public final class StreamingServiceInfo extends android.telephony.mbms.ServiceInfo implements android.os.Parcelable {
  2508. 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);
  2509. }
  2510. public final class UriPathPair implements android.os.Parcelable {
  2511. method public int describeContents();
  2512. method public android.net.Uri getContentUri();
  2513. method public android.net.Uri getFilePathUri();
  2514. method public void writeToParcel(android.os.Parcel, int);
  2515. field @NonNull public static final android.os.Parcelable.Creator<android.telephony.mbms.UriPathPair> CREATOR;
  2516. }
  2517. }
  2518. package android.telephony.mbms.vendor {
  2519. public class MbmsDownloadServiceBase extends android.os.Binder {
  2520. ctor public MbmsDownloadServiceBase();
  2521. method public int addProgressListener(android.telephony.mbms.DownloadRequest, android.telephony.mbms.DownloadProgressListener) throws android.os.RemoteException;
  2522. method public int addStatusListener(android.telephony.mbms.DownloadRequest, android.telephony.mbms.DownloadStatusListener) throws android.os.RemoteException;
  2523. method public android.os.IBinder asBinder();
  2524. method public int cancelDownload(android.telephony.mbms.DownloadRequest) throws android.os.RemoteException;
  2525. method public void dispose(int) throws android.os.RemoteException;
  2526. method public int download(android.telephony.mbms.DownloadRequest) throws android.os.RemoteException;
  2527. method public int initialize(int, android.telephony.mbms.MbmsDownloadSessionCallback) throws android.os.RemoteException;
  2528. method @NonNull public java.util.List<android.telephony.mbms.DownloadRequest> listPendingDownloads(int) throws android.os.RemoteException;
  2529. method public void onAppCallbackDied(int, int);
  2530. method public boolean onTransact(int, android.os.Parcel, android.os.Parcel, int) throws android.os.RemoteException;
  2531. method public int removeProgressListener(android.telephony.mbms.DownloadRequest, android.telephony.mbms.DownloadProgressListener) throws android.os.RemoteException;
  2532. method public int removeStatusListener(android.telephony.mbms.DownloadRequest, android.telephony.mbms.DownloadStatusListener) throws android.os.RemoteException;
  2533. method public int requestDownloadState(android.telephony.mbms.DownloadRequest, android.telephony.mbms.FileInfo) throws android.os.RemoteException;
  2534. method public int requestUpdateFileServices(int, java.util.List<java.lang.String>) throws android.os.RemoteException;
  2535. method public int resetDownloadKnowledge(android.telephony.mbms.DownloadRequest) throws android.os.RemoteException;
  2536. method public int setTempFileRootDirectory(int, String) throws android.os.RemoteException;
  2537. }
  2538. public class MbmsGroupCallServiceBase extends android.app.Service {
  2539. ctor public MbmsGroupCallServiceBase();
  2540. method public void dispose(int) throws android.os.RemoteException;
  2541. method public int initialize(@NonNull android.telephony.mbms.MbmsGroupCallSessionCallback, int) throws android.os.RemoteException;
  2542. method public void onAppCallbackDied(int, int);
  2543. method public android.os.IBinder onBind(android.content.Intent);
  2544. 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);
  2545. method public void stopGroupCall(int, long);
  2546. method public void updateGroupCall(int, long, @NonNull java.util.List<java.lang.Integer>, @NonNull java.util.List<java.lang.Integer>);
  2547. }
  2548. public class MbmsStreamingServiceBase extends android.os.Binder {
  2549. ctor public MbmsStreamingServiceBase();
  2550. method public android.os.IBinder asBinder();
  2551. method public void dispose(int) throws android.os.RemoteException;
  2552. method @Nullable public android.net.Uri getPlaybackUri(int, String) throws android.os.RemoteException;
  2553. method public int initialize(android.telephony.mbms.MbmsStreamingSessionCallback, int) throws android.os.RemoteException;
  2554. method public void onAppCallbackDied(int, int);
  2555. method public boolean onTransact(int, android.os.Parcel, android.os.Parcel, int) throws android.os.RemoteException;
  2556. method public int requestUpdateStreamingServices(int, java.util.List<java.lang.String>) throws android.os.RemoteException;
  2557. method public int startStreaming(int, String, android.telephony.mbms.StreamingServiceCallback) throws android.os.RemoteException;
  2558. method public void stopStreaming(int, String) throws android.os.RemoteException;
  2559. }
  2560. public class VendorUtils {
  2561. ctor public VendorUtils();
  2562. method public static android.content.ComponentName getAppReceiverFromPackageName(android.content.Context, String);
  2563. field public static final String ACTION_CLEANUP = "android.telephony.mbms.action.CLEANUP";
  2564. field public static final String ACTION_DOWNLOAD_RESULT_INTERNAL = "android.telephony.mbms.action.DOWNLOAD_RESULT_INTERNAL";
  2565. field public static final String ACTION_FILE_DESCRIPTOR_REQUEST = "android.telephony.mbms.action.FILE_DESCRIPTOR_REQUEST";
  2566. field public static final String EXTRA_FD_COUNT = "android.telephony.mbms.extra.FD_COUNT";
  2567. field public static final String EXTRA_FINAL_URI = "android.telephony.mbms.extra.FINAL_URI";
  2568. field public static final String EXTRA_FREE_URI_LIST = "android.telephony.mbms.extra.FREE_URI_LIST";
  2569. field public static final String EXTRA_PAUSED_LIST = "android.telephony.mbms.extra.PAUSED_LIST";
  2570. field public static final String EXTRA_PAUSED_URI_LIST = "android.telephony.mbms.extra.PAUSED_URI_LIST";
  2571. field public static final String EXTRA_SERVICE_ID = "android.telephony.mbms.extra.SERVICE_ID";
  2572. field public static final String EXTRA_TEMP_FILES_IN_USE = "android.telephony.mbms.extra.TEMP_FILES_IN_USE";
  2573. field public static final String EXTRA_TEMP_FILE_ROOT = "android.telephony.mbms.extra.TEMP_FILE_ROOT";
  2574. field public static final String EXTRA_TEMP_LIST = "android.telephony.mbms.extra.TEMP_LIST";
  2575. }
  2576. }
  2577. package android.text {
  2578. public static final class Selection.MemoryTextWatcher implements android.text.TextWatcher {
  2579. ctor public Selection.MemoryTextWatcher();
  2580. method public void afterTextChanged(android.text.Editable);
  2581. method public void beforeTextChanged(CharSequence, int, int, int);
  2582. method public void onTextChanged(CharSequence, int, int, int);
  2583. }
  2584. }
  2585. package android.transition {
  2586. public class TransitionManager {
  2587. method public android.transition.Transition getTransition(android.transition.Scene);
  2588. }
  2589. }
  2590. package android.util {
  2591. public final class ArraySet<E> implements java.util.Collection<E> java.util.Set<E> {
  2592. method public E valueAtUnchecked(int);
  2593. }
  2594. public class FeatureFlagUtils {
  2595. ctor public FeatureFlagUtils();
  2596. method public static java.util.Map<java.lang.String,java.lang.String> getAllFeatureFlags();
  2597. method public static boolean isEnabled(android.content.Context, String);
  2598. method public static void setEnabled(android.content.Context, String, boolean);
  2599. field public static final String DYNAMIC_SYSTEM = "settings_dynamic_system";
  2600. field public static final String FFLAG_OVERRIDE_PREFIX = "sys.fflag.override.";
  2601. field public static final String FFLAG_PREFIX = "sys.fflag.";
  2602. field public static final String HEARING_AID_SETTINGS = "settings_bluetooth_hearing_aid";
  2603. field public static final String PERSIST_PREFIX = "persist.sys.fflag.override.";
  2604. field public static final String PIXEL_WALLPAPER_CATEGORY_SWITCH = "settings_pixel_wallpaper_category_switch";
  2605. field public static final String SCREENRECORD_LONG_PRESS = "settings_screenrecord_long_press";
  2606. field public static final String SEAMLESS_TRANSFER = "settings_seamless_transfer";
  2607. }
  2608. public class TimeUtils {
  2609. method public static String formatDuration(long);
  2610. }
  2611. }
  2612. package android.util.proto {
  2613. public final class EncodedBuffer {
  2614. ctor public EncodedBuffer();
  2615. ctor public EncodedBuffer(int);
  2616. method public void dumpBuffers(String);
  2617. method public static void dumpByteString(String, String, byte[]);
  2618. method public void editRawFixed32(int, int);
  2619. method public byte[] getBytes(int);
  2620. method public int getChunkCount();
  2621. method public String getDebugString();
  2622. method public int getRawFixed32At(int);
  2623. method public static int getRawVarint32Size(int);
  2624. method public static int getRawVarint64Size(long);
  2625. method public static int getRawZigZag32Size(int);
  2626. method public static int getRawZigZag64Size(long);
  2627. method public int getReadPos();
  2628. method public int getReadableSize();
  2629. method public int getSize();
  2630. method public int getWriteBufIndex();
  2631. method public int getWriteIndex();
  2632. method public int getWritePos();
  2633. method public byte readRawByte();
  2634. method public int readRawFixed32();
  2635. method public long readRawUnsigned();
  2636. method public void rewindRead();
  2637. method public void rewindWriteTo(int);
  2638. method public void skipRead(int);
  2639. method public void startEditing();
  2640. method public void writeFromThisBuffer(int, int);
  2641. method public void writeRawBuffer(byte[]);
  2642. method public void writeRawBuffer(byte[], int, int);
  2643. method public void writeRawByte(byte);
  2644. method public void writeRawFixed32(int);
  2645. method public void writeRawFixed64(long);
  2646. method public void writeRawVarint32(int);
  2647. method public void writeRawVarint64(long);
  2648. method public void writeRawZigZag32(int);
  2649. method public void writeRawZigZag64(long);
  2650. }
  2651. public final class ProtoOutputStream extends android.util.proto.ProtoStream {
  2652. ctor public ProtoOutputStream();
  2653. ctor public ProtoOutputStream(int);
  2654. ctor public ProtoOutputStream(java.io.OutputStream);
  2655. ctor public ProtoOutputStream(java.io.FileDescriptor);
  2656. method public static int checkFieldId(long, long);
  2657. method public void dump(String);
  2658. method public void end(long);
  2659. method @Deprecated public void endObject(long);
  2660. method @Deprecated public void endRepeatedObject(long);
  2661. method public void flush();
  2662. method public byte[] getBytes();
  2663. method public int getRawSize();
  2664. method public static long makeFieldId(int, long);
  2665. method public long start(long);
  2666. method @Deprecated public long startObject(long);
  2667. method @Deprecated public long startRepeatedObject(long);
  2668. method public void write(long, double);
  2669. method public void write(long, float);
  2670. method public void write(long, int);
  2671. method public void write(long, long);
  2672. method public void write(long, boolean);
  2673. method public void write(long, String);
  2674. method public void write(long, byte[]);
  2675. method @Deprecated public void writeBool(long, boolean);
  2676. method @Deprecated public void writeBytes(long, byte[]);
  2677. method @Deprecated public void writeDouble(long, double);
  2678. method @Deprecated public void writeEnum(long, int);
  2679. method @Deprecated public void writeFixed32(long, int);
  2680. method @Deprecated public void writeFixed64(long, long);
  2681. method @Deprecated public void writeFloat(long, float);
  2682. method @Deprecated public void writeInt32(long, int);
  2683. method @Deprecated public void writeInt64(long, long);
  2684. method @Deprecated public void writeObject(long, byte[]);
  2685. method @Deprecated public void writePackedBool(long, boolean[]);
  2686. method @Deprecated public void writePackedDouble(long, double[]);
  2687. method @Deprecated public void writePackedEnum(long, int[]);
  2688. method @Deprecated public void writePackedFixed32(long, int[]);
  2689. method @Deprecated public void writePackedFixed64(long, long[]);
  2690. method @Deprecated public void writePackedFloat(long, float[]);
  2691. method @Deprecated public void writePackedInt32(long, int[]);
  2692. method @Deprecated public void writePackedInt64(long, long[]);
  2693. method @Deprecated public void writePackedSFixed32(long, int[]);
  2694. method @Deprecated public void writePackedSFixed64(long, long[]);
  2695. method @Deprecated public void writePackedSInt32(long, int[]);
  2696. method @Deprecated public void writePackedSInt64(long, long[]);
  2697. method @Deprecated public void writePackedUInt32(long, int[]);
  2698. method @Deprecated public void writePackedUInt64(long, long[]);
  2699. method @Deprecated public void writeRepeatedBool(long, boolean);
  2700. method @Deprecated public void writeRepeatedBytes(long, byte[]);
  2701. method @Deprecated public void writeRepeatedDouble(long, double);
  2702. method @Deprecated public void writeRepeatedEnum(long, int);
  2703. method @Deprecated public void writeRepeatedFixed32(long, int);
  2704. method @Deprecated public void writeRepeatedFixed64(long, long);
  2705. method @Deprecated public void writeRepeatedFloat(long, float);
  2706. method @Deprecated public void writeRepeatedInt32(long, int);
  2707. method @Deprecated public void writeRepeatedInt64(long, long);
  2708. method @Deprecated public void writeRepeatedObject(long, byte[]);
  2709. method @Deprecated public void writeRepeatedSFixed32(long, int);
  2710. method @Deprecated public void writeRepeatedSFixed64(long, long);
  2711. method @Deprecated public void writeRepeatedSInt32(long, int);
  2712. method @Deprecated public void writeRepeatedSInt64(long, long);
  2713. method @Deprecated public void writeRepeatedString(long, String);
  2714. method @Deprecated public void writeRepeatedUInt32(long, int);
  2715. method @Deprecated public void writeRepeatedUInt64(long, long);
  2716. method @Deprecated public void writeSFixed32(long, int);
  2717. method @Deprecated public void writeSFixed64(long, long);
  2718. method @Deprecated public void writeSInt32(long, int);
  2719. method @Deprecated public void writeSInt64(long, long);
  2720. method @Deprecated public void writeString(long, String);
  2721. method public void writeTag(int, int);
  2722. method @Deprecated public void writeUInt32(long, int);
  2723. method @Deprecated public void writeUInt64(long, long);
  2724. }
  2725. public class ProtoParseException extends java.lang.RuntimeException {
  2726. ctor public ProtoParseException(String);
  2727. }
  2728. public abstract class ProtoStream {
  2729. ctor public ProtoStream();
  2730. method public static int convertObjectIdToOrdinal(int);
  2731. method public static int getDepthFromToken(long);
  2732. method public static String getFieldCountString(long);
  2733. method public static String getFieldIdString(long);
  2734. method public static String getFieldTypeString(long);
  2735. method public static int getObjectIdFromToken(long);
  2736. method public static int getOffsetFromToken(long);
  2737. method public static boolean getRepeatedFromToken(long);
  2738. method public static int getTagSizeFromToken(long);
  2739. method public static String getWireTypeString(int);
  2740. method public static long makeFieldId(int, long);
  2741. method public static long makeToken(int, boolean, int, int, int);
  2742. method public static String token2String(long);
  2743. field public static final long FIELD_COUNT_MASK = 16492674416640L; // 0xf0000000000L
  2744. field public static final long FIELD_COUNT_PACKED = 5497558138880L; // 0x50000000000L
  2745. field public static final long FIELD_COUNT_REPEATED = 2199023255552L; // 0x20000000000L
  2746. field public static final int FIELD_COUNT_SHIFT = 40; // 0x28
  2747. field public static final long FIELD_COUNT_SINGLE = 1099511627776L; // 0x10000000000L
  2748. field public static final long FIELD_COUNT_UNKNOWN = 0L; // 0x0L
  2749. field public static final int FIELD_ID_MASK = -8; // 0xfffffff8
  2750. field public static final int FIELD_ID_SHIFT = 3; // 0x3
  2751. field public static final long FIELD_TYPE_BOOL = 34359738368L; // 0x800000000L
  2752. field public static final long FIELD_TYPE_BYTES = 51539607552L; // 0xc00000000L
  2753. field public static final long FIELD_TYPE_DOUBLE = 4294967296L; // 0x100000000L
  2754. field public static final long FIELD_TYPE_ENUM = 60129542144L; // 0xe00000000L
  2755. field public static final long FIELD_TYPE_FIXED32 = 30064771072L; // 0x700000000L
  2756. field public static final long FIELD_TYPE_FIXED64 = 25769803776L; // 0x600000000L
  2757. field public static final long FIELD_TYPE_FLOAT = 8589934592L; // 0x200000000L
  2758. field public static final long FIELD_TYPE_INT32 = 21474836480L; // 0x500000000L
  2759. field public static final long FIELD_TYPE_INT64 = 12884901888L; // 0x300000000L
  2760. field public static final long FIELD_TYPE_MASK = 1095216660480L; // 0xff00000000L
  2761. field public static final long FIELD_TYPE_MESSAGE = 47244640256L; // 0xb00000000L
  2762. field protected static final String[] FIELD_TYPE_NAMES;
  2763. field public static final long FIELD_TYPE_SFIXED32 = 64424509440L; // 0xf00000000L
  2764. field public static final long FIELD_TYPE_SFIXED64 = 68719476736L; // 0x1000000000L
  2765. field public static final int FIELD_TYPE_SHIFT = 32; // 0x20
  2766. field public static final long FIELD_TYPE_SINT32 = 73014444032L; // 0x1100000000L
  2767. field public static final long FIELD_TYPE_SINT64 = 77309411328L; // 0x1200000000L
  2768. field public static final long FIELD_TYPE_STRING = 38654705664L; // 0x900000000L
  2769. field public static final long FIELD_TYPE_UINT32 = 55834574848L; // 0xd00000000L
  2770. field public static final long FIELD_TYPE_UINT64 = 17179869184L; // 0x400000000L
  2771. field public static final long FIELD_TYPE_UNKNOWN = 0L; // 0x0L
  2772. field public static final int WIRE_TYPE_END_GROUP = 4; // 0x4
  2773. field public static final int WIRE_TYPE_FIXED32 = 5; // 0x5
  2774. field public static final int WIRE_TYPE_FIXED64 = 1; // 0x1
  2775. field public static final int WIRE_TYPE_LENGTH_DELIMITED = 2; // 0x2
  2776. field public static final int WIRE_TYPE_MASK = 7; // 0x7
  2777. field public static final int WIRE_TYPE_START_GROUP = 3; // 0x3
  2778. field public static final int WIRE_TYPE_VARINT = 0; // 0x0
  2779. }
  2780. public class WireTypeMismatchException extends android.util.proto.ProtoParseException {
  2781. ctor public WireTypeMismatchException(String);
  2782. }
  2783. }
  2784. package android.view {
  2785. public abstract class ActionMode {
  2786. method public boolean isUiFocusable();
  2787. }
  2788. public final class Choreographer {
  2789. method public static long getFrameDelay();
  2790. method public void postCallback(int, Runnable, Object);
  2791. method public void postCallbackDelayed(int, Runnable, Object, long);
  2792. method public void removeCallbacks(int, Runnable, Object);
  2793. method public static void setFrameDelay(long);
  2794. field public static final int CALLBACK_ANIMATION = 1; // 0x1
  2795. }
  2796. public final class Display {
  2797. method public boolean hasAccess(int);
  2798. }
  2799. public class FocusFinder {
  2800. method public static void sort(android.view.View[], int, int, android.view.ViewGroup, boolean);
  2801. }
  2802. public final class InputDevice implements android.os.Parcelable {
  2803. method @RequiresPermission("android.permission.DISABLE_INPUT_DEVICE") public void disable();
  2804. method @RequiresPermission("android.permission.DISABLE_INPUT_DEVICE") public void enable();
  2805. }
  2806. public class KeyEvent extends android.view.InputEvent implements android.os.Parcelable {
  2807. method public static String actionToString(int);
  2808. method public final void setDisplayId(int);
  2809. field public static final int LAST_KEYCODE = 288; // 0x120
  2810. }
  2811. public final class KeyboardShortcutGroup implements android.os.Parcelable {
  2812. ctor public KeyboardShortcutGroup(@Nullable CharSequence, @NonNull java.util.List<android.view.KeyboardShortcutInfo>, boolean);
  2813. ctor public KeyboardShortcutGroup(@Nullable CharSequence, boolean);
  2814. method public boolean isSystemGroup();
  2815. }
  2816. public abstract class LayoutInflater {
  2817. method public void setPrecompiledLayoutsEnabledForTesting(boolean);
  2818. }
  2819. public final class MotionEvent extends android.view.InputEvent implements android.os.Parcelable {
  2820. method public void setActionButton(int);
  2821. method public void setButtonState(int);
  2822. method public void setDisplayId(int);
  2823. }
  2824. @java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.RUNTIME) @java.lang.annotation.Target({java.lang.annotation.ElementType.METHOD}) public @interface RemotableViewMethod {
  2825. method public abstract String asyncImpl() default "";
  2826. }
  2827. @UiThread public class View implements android.view.accessibility.AccessibilityEventSource android.graphics.drawable.Drawable.Callback android.view.KeyEvent.Callback {
  2828. method @android.view.ViewDebug.ExportedProperty(mapping={@android.view.ViewDebug.IntToString(from=android.view.View.IMPORTANT_FOR_CONTENT_CAPTURE_AUTO, to="auto"), @android.view.ViewDebug.IntToString(from=android.view.View.IMPORTANT_FOR_CONTENT_CAPTURE_YES, to="yes"), @android.view.ViewDebug.IntToString(from=android.view.View.IMPORTANT_FOR_CONTENT_CAPTURE_NO, to="no"), @android.view.ViewDebug.IntToString(from=android.view.View.IMPORTANT_FOR_CONTENT_CAPTURE_YES_EXCLUDE_DESCENDANTS, to="yesExcludeDescendants"), @android.view.ViewDebug.IntToString(from=android.view.View.IMPORTANT_FOR_CONTENT_CAPTURE_NO_EXCLUDE_DESCENDANTS, to="noExcludeDescendants")}) public int getImportantForContentCapture();
  2829. method public android.view.View getTooltipView();
  2830. method public boolean isAutofilled();
  2831. method public static boolean isDefaultFocusHighlightEnabled();
  2832. method public boolean isDefaultFocusHighlightNeeded(android.graphics.drawable.Drawable, android.graphics.drawable.Drawable);
  2833. method public final boolean isImportantForContentCapture();
  2834. method public void onProvideContentCaptureStructure(@NonNull android.view.ViewStructure, int);
  2835. method protected void resetResolvedDrawables();
  2836. method public void resetResolvedLayoutDirection();
  2837. method public void resetResolvedPadding();
  2838. method public void resetResolvedTextAlignment();
  2839. method public void resetResolvedTextDirection();
  2840. method public void resetRtlProperties();
  2841. method public boolean restoreFocusInCluster(int);
  2842. method public boolean restoreFocusNotInCluster();
  2843. method public void setAutofilled(boolean);
  2844. method public final void setFocusedInCluster();
  2845. method public void setImportantForContentCapture(int);
  2846. method public void setIsRootNamespace(boolean);
  2847. field public static final int IMPORTANT_FOR_CONTENT_CAPTURE_AUTO = 0; // 0x0
  2848. field public static final int IMPORTANT_FOR_CONTENT_CAPTURE_NO = 2; // 0x2
  2849. field public static final int IMPORTANT_FOR_CONTENT_CAPTURE_NO_EXCLUDE_DESCENDANTS = 8; // 0x8
  2850. field public static final int IMPORTANT_FOR_CONTENT_CAPTURE_YES = 1; // 0x1
  2851. field public static final int IMPORTANT_FOR_CONTENT_CAPTURE_YES_EXCLUDE_DESCENDANTS = 4; // 0x4
  2852. }
  2853. public class ViewConfiguration {
  2854. method public long getDeviceGlobalActionKeyTimeout();
  2855. method public static int getHoverTooltipHideShortTimeout();
  2856. method public static int getHoverTooltipHideTimeout();
  2857. method public static int getHoverTooltipShowTimeout();
  2858. method public static int getLongPressTooltipHideTimeout();
  2859. }
  2860. public class ViewDebug {
  2861. method @Deprecated @Nullable public static AutoCloseable startRenderingCommandsCapture(android.view.View, java.util.concurrent.Executor, java.util.function.Function<android.graphics.Picture,java.lang.Boolean>);
  2862. method @Nullable public static AutoCloseable startRenderingCommandsCapture(android.view.View, java.util.concurrent.Executor, java.util.concurrent.Callable<java.io.OutputStream>);
  2863. }
  2864. public interface WindowManager extends android.view.ViewManager {
  2865. method public default void setShouldShowIme(int, boolean);
  2866. method public default void setShouldShowSystemDecors(int, boolean);
  2867. method public default void setShouldShowWithInsecureKeyguard(int, boolean);
  2868. method public default boolean shouldShowIme(int);
  2869. method public default boolean shouldShowSystemDecors(int);
  2870. }
  2871. public static class WindowManager.LayoutParams extends android.view.ViewGroup.LayoutParams implements android.os.Parcelable {
  2872. field public static final int ACCESSIBILITY_TITLE_CHANGED = 33554432; // 0x2000000
  2873. field public static final int PRIVATE_FLAG_NO_MOVE_ANIMATION = 64; // 0x40
  2874. field public CharSequence accessibilityTitle;
  2875. field @android.view.ViewDebug.ExportedProperty(flagMapping={@android.view.ViewDebug.FlagToString(mask=0x1, equals=0x1, name="FAKE_HARDWARE_ACCELERATED"), @android.view.ViewDebug.FlagToString(mask=0x2, equals=0x2, name="FORCE_HARDWARE_ACCELERATED"), @android.view.ViewDebug.FlagToString(mask=0x4, equals=0x4, name="WANTS_OFFSET_NOTIFICATIONS"), @android.view.ViewDebug.FlagToString(mask=0x10, equals=0x10, name="SHOW_FOR_ALL_USERS"), @android.view.ViewDebug.FlagToString(mask=android.view.WindowManager.LayoutParams.PRIVATE_FLAG_NO_MOVE_ANIMATION, equals=android.view.WindowManager.LayoutParams.PRIVATE_FLAG_NO_MOVE_ANIMATION, name="NO_MOVE_ANIMATION"), @android.view.ViewDebug.FlagToString(mask=0x80, equals=0x80, name="COMPATIBLE_WINDOW"), @android.view.ViewDebug.FlagToString(mask=0x100, equals=0x100, name="SYSTEM_ERROR"), @android.view.ViewDebug.FlagToString(mask=0x200, equals=0x200, name="INHERIT_TRANSLUCENT_DECOR"), @android.view.ViewDebug.FlagToString(mask=0x400, equals=0x400, name="KEYGUARD"), @android.view.ViewDebug.FlagToString(mask=0x800, equals=0x800, name="DISABLE_WALLPAPER_TOUCH_EVENTS"), @android.view.ViewDebug.FlagToString(mask=0x1000, equals=0x1000, name="FORCE_STATUS_BAR_VISIBLE_TRANSPARENT"), @android.view.ViewDebug.FlagToString(mask=0x2000, equals=0x2000, name="PRESERVE_GEOMETRY"), @android.view.ViewDebug.FlagToString(mask=0x4000, equals=0x4000, name="FORCE_DECOR_VIEW_VISIBILITY"), @android.view.ViewDebug.FlagToString(mask=0x8000, equals=0x8000, name="WILL_NOT_REPLACE_ON_RELAUNCH"), @android.view.ViewDebug.FlagToString(mask=0x10000, equals=0x10000, name="LAYOUT_CHILD_WINDOW_IN_PARENT_FRAME"), @android.view.ViewDebug.FlagToString(mask=0x20000, equals=0x20000, name="FORCE_DRAW_STATUS_BAR_BACKGROUND"), @android.view.ViewDebug.FlagToString(mask=0x40000, equals=0x40000, name="SUSTAINED_PERFORMANCE_MODE"), @android.view.ViewDebug.FlagToString(mask=0x80000, equals=0x80000, name="HIDE_NON_SYSTEM_OVERLAY_WINDOWS"), @android.view.ViewDebug.FlagToString(mask=0x100000, equals=0x100000, name="IS_ROUNDED_CORNERS_OVERLAY"), @android.view.ViewDebug.FlagToString(mask=0x400000, equals=0x400000, name="IS_SCREEN_DECOR"), @android.view.ViewDebug.FlagToString(mask=0x800000, equals=0x800000, name="STATUS_FORCE_SHOW_NAVIGATION"), @android.view.ViewDebug.FlagToString(mask=0x1000000, equals=0x1000000, name="COLOR_SPACE_AGNOSTIC")}) public int privateFlags;
  2876. }
  2877. }
  2878. package android.view.accessibility {
  2879. public final class AccessibilityManager {
  2880. method public void addAccessibilityServicesStateChangeListener(@NonNull android.view.accessibility.AccessibilityManager.AccessibilityServicesStateChangeListener, @Nullable android.os.Handler);
  2881. method @Nullable @RequiresPermission("android.permission.MANAGE_ACCESSIBILITY") public String getAccessibilityShortcutService();
  2882. method @RequiresPermission("android.permission.MANAGE_ACCESSIBILITY") public void performAccessibilityShortcut();
  2883. method public void removeAccessibilityServicesStateChangeListener(@NonNull android.view.accessibility.AccessibilityManager.AccessibilityServicesStateChangeListener);
  2884. }
  2885. public static interface AccessibilityManager.AccessibilityServicesStateChangeListener {
  2886. method public void onAccessibilityServicesStateChanged(android.view.accessibility.AccessibilityManager);
  2887. }
  2888. public class AccessibilityNodeInfo implements android.os.Parcelable {
  2889. method public static void setNumInstancesInUseCounter(java.util.concurrent.atomic.AtomicInteger);
  2890. method public void writeToParcelNoRecycle(android.os.Parcel, int);
  2891. }
  2892. public static final class AccessibilityNodeInfo.TouchDelegateInfo implements android.os.Parcelable {
  2893. method public long getAccessibilityIdForRegion(@NonNull android.graphics.Region);
  2894. }
  2895. public final class AccessibilityWindowInfo implements android.os.Parcelable {
  2896. method public static void setNumInstancesInUseCounter(java.util.concurrent.atomic.AtomicInteger);
  2897. }
  2898. }
  2899. package android.view.animation {
  2900. public class AnimationUtils {
  2901. method public static void lockAnimationClock(long);
  2902. method public static void unlockAnimationClock();
  2903. }
  2904. }
  2905. package android.view.autofill {
  2906. public final class AutofillId implements android.os.Parcelable {
  2907. ctor public AutofillId(int);
  2908. ctor public AutofillId(@NonNull android.view.autofill.AutofillId, int);
  2909. ctor public AutofillId(int, int);
  2910. ctor public AutofillId(@NonNull android.view.autofill.AutofillId, long, int);
  2911. method public boolean equalsIgnoreSession(@Nullable android.view.autofill.AutofillId);
  2912. }
  2913. public final class AutofillManager {
  2914. method public void setAugmentedAutofillWhitelist(@Nullable java.util.Set<java.lang.String>, @Nullable java.util.Set<android.content.ComponentName>);
  2915. field public static final String DEVICE_CONFIG_AUTOFILL_SMART_SUGGESTION_SUPPORTED_MODES = "smart_suggestion_supported_modes";
  2916. field public static final int FLAG_SMART_SUGGESTION_OFF = 0; // 0x0
  2917. field public static final int FLAG_SMART_SUGGESTION_SYSTEM = 1; // 0x1
  2918. field public static final int MAX_TEMP_AUGMENTED_SERVICE_DURATION_MS = 120000; // 0x1d4c0
  2919. }
  2920. }
  2921. package android.view.contentcapture {
  2922. public final class ContentCaptureContext implements android.os.Parcelable {
  2923. method @Nullable public android.content.ComponentName getActivityComponent();
  2924. method public int getDisplayId();
  2925. method public int getFlags();
  2926. method @Nullable public android.view.contentcapture.ContentCaptureSessionId getParentSessionId();
  2927. method public int getTaskId();
  2928. field public static final int FLAG_DISABLED_BY_APP = 1; // 0x1
  2929. field public static final int FLAG_DISABLED_BY_FLAG_SECURE = 2; // 0x2
  2930. field public static final int FLAG_RECONNECTED = 4; // 0x4
  2931. }
  2932. public final class ContentCaptureEvent implements android.os.Parcelable {
  2933. method public int describeContents();
  2934. method @Nullable public android.view.contentcapture.ContentCaptureContext getContentCaptureContext();
  2935. method public long getEventTime();
  2936. method @Nullable public android.view.autofill.AutofillId getId();
  2937. method @Nullable public java.util.List<android.view.autofill.AutofillId> getIds();
  2938. method @Nullable public CharSequence getText();
  2939. method public int getType();
  2940. method @Nullable public android.view.contentcapture.ViewNode getViewNode();
  2941. method public void writeToParcel(android.os.Parcel, int);
  2942. field @NonNull public static final android.os.Parcelable.Creator<android.view.contentcapture.ContentCaptureEvent> CREATOR;
  2943. field public static final int TYPE_CONTEXT_UPDATED = 6; // 0x6
  2944. field public static final int TYPE_SESSION_PAUSED = 8; // 0x8
  2945. field public static final int TYPE_SESSION_RESUMED = 7; // 0x7
  2946. field public static final int TYPE_VIEW_APPEARED = 1; // 0x1
  2947. field public static final int TYPE_VIEW_DISAPPEARED = 2; // 0x2
  2948. field public static final int TYPE_VIEW_TEXT_CHANGED = 3; // 0x3
  2949. field public static final int TYPE_VIEW_TREE_APPEARED = 5; // 0x5
  2950. field public static final int TYPE_VIEW_TREE_APPEARING = 4; // 0x4
  2951. }
  2952. public final class ContentCaptureManager {
  2953. method public boolean isContentCaptureFeatureEnabled();
  2954. field public static final String DEVICE_CONFIG_PROPERTY_IDLE_FLUSH_FREQUENCY = "idle_flush_frequency";
  2955. field public static final String DEVICE_CONFIG_PROPERTY_LOGGING_LEVEL = "logging_level";
  2956. field public static final String DEVICE_CONFIG_PROPERTY_LOG_HISTORY_SIZE = "log_history_size";
  2957. field public static final String DEVICE_CONFIG_PROPERTY_MAX_BUFFER_SIZE = "max_buffer_size";
  2958. field public static final String DEVICE_CONFIG_PROPERTY_SERVICE_EXPLICITLY_ENABLED = "service_explicitly_enabled";
  2959. field public static final String DEVICE_CONFIG_PROPERTY_TEXT_CHANGE_FLUSH_FREQUENCY = "text_change_flush_frequency";
  2960. field public static final int LOGGING_LEVEL_DEBUG = 1; // 0x1
  2961. field public static final int LOGGING_LEVEL_OFF = 0; // 0x0
  2962. field public static final int LOGGING_LEVEL_VERBOSE = 2; // 0x2
  2963. }
  2964. public final class ViewNode extends android.app.assist.AssistStructure.ViewNode {
  2965. method @Nullable public android.view.autofill.AutofillId getParentAutofillId();
  2966. method @Nullable public static android.view.contentcapture.ViewNode readFromParcel(@NonNull android.os.Parcel);
  2967. method public static void writeToParcel(@NonNull android.os.Parcel, @Nullable android.view.contentcapture.ViewNode, int);
  2968. }
  2969. public static final class ViewNode.ViewStructureImpl extends android.view.ViewStructure {
  2970. ctor public ViewNode.ViewStructureImpl(@NonNull android.view.View);
  2971. ctor public ViewNode.ViewStructureImpl(@NonNull android.view.autofill.AutofillId, long, int);
  2972. method public int addChildCount(int);
  2973. method public void asyncCommit();
  2974. method public android.view.ViewStructure asyncNewChild(int);
  2975. method public android.view.autofill.AutofillId getAutofillId();
  2976. method public int getChildCount();
  2977. method public android.os.Bundle getExtras();
  2978. method public CharSequence getHint();
  2979. method public android.view.contentcapture.ViewNode getNode();
  2980. method public android.graphics.Rect getTempRect();
  2981. method public CharSequence getText();
  2982. method public int getTextSelectionEnd();
  2983. method public int getTextSelectionStart();
  2984. method public boolean hasExtras();
  2985. method public android.view.ViewStructure newChild(int);
  2986. method public android.view.ViewStructure.HtmlInfo.Builder newHtmlInfoBuilder(String);
  2987. method public void setAccessibilityFocused(boolean);
  2988. method public void setActivated(boolean);
  2989. method public void setAlpha(float);
  2990. method public void setAssistBlocked(boolean);
  2991. method public void setAutofillHints(String[]);
  2992. method public void setAutofillId(android.view.autofill.AutofillId);
  2993. method public void setAutofillId(android.view.autofill.AutofillId, int);
  2994. method public void setAutofillOptions(CharSequence[]);
  2995. method public void setAutofillType(int);
  2996. method public void setAutofillValue(android.view.autofill.AutofillValue);
  2997. method public void setCheckable(boolean);
  2998. method public void setChecked(boolean);
  2999. method public void setChildCount(int);
  3000. method public void setClassName(String);
  3001. method public void setClickable(boolean);
  3002. method public void setContentDescription(CharSequence);
  3003. method public void setContextClickable(boolean);
  3004. method public void setDataIsSensitive(boolean);
  3005. method public void setDimens(int, int, int, int, int, int);
  3006. method public void setElevation(float);
  3007. method public void setEnabled(boolean);
  3008. method public void setFocusable(boolean);
  3009. method public void setFocused(boolean);
  3010. method public void setHint(CharSequence);
  3011. method public void setHtmlInfo(android.view.ViewStructure.HtmlInfo);
  3012. method public void setId(int, String, String, String);
  3013. method public void setInputType(int);
  3014. method public void setLocaleList(android.os.LocaleList);
  3015. method public void setLongClickable(boolean);
  3016. method public void setOpaque(boolean);
  3017. method public void setSelected(boolean);
  3018. method public void setText(CharSequence);
  3019. method public void setText(CharSequence, int, int);
  3020. method public void setTextLines(int[], int[]);
  3021. method public void setTextStyle(float, int, int, int);
  3022. method public void setTransformation(android.graphics.Matrix);
  3023. method public void setVisibility(int);
  3024. method public void setWebDomain(String);
  3025. }
  3026. }
  3027. package android.view.inputmethod {
  3028. public final class InputMethodManager {
  3029. method public int getDisplayId();
  3030. method public boolean isInputMethodPickerShown();
  3031. }
  3032. public class InputMethodSystemProperty {
  3033. ctor public InputMethodSystemProperty();
  3034. field public static final boolean MULTI_CLIENT_IME_ENABLED;
  3035. }
  3036. }
  3037. package android.view.inspector {
  3038. @java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.SOURCE) @java.lang.annotation.Target({java.lang.annotation.ElementType.METHOD, java.lang.annotation.ElementType.FIELD}) public @interface InspectableProperty {
  3039. method public abstract int attributeId() default android.content.res.Resources.ID_NULL;
  3040. method public abstract android.view.inspector.InspectableProperty.EnumEntry[] enumMapping() default {};
  3041. method public abstract android.view.inspector.InspectableProperty.FlagEntry[] flagMapping() default {};
  3042. method public abstract boolean hasAttributeId() default true;
  3043. method public abstract String name() default "";
  3044. method public abstract android.view.inspector.InspectableProperty.ValueType valueType() default android.view.inspector.InspectableProperty.ValueType.INFERRED;
  3045. }
  3046. @java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.SOURCE) @java.lang.annotation.Target({java.lang.annotation.ElementType.TYPE}) public static @interface InspectableProperty.EnumEntry {
  3047. method public abstract String name();
  3048. method public abstract int value();
  3049. }
  3050. @java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.SOURCE) @java.lang.annotation.Target({java.lang.annotation.ElementType.TYPE}) public static @interface InspectableProperty.FlagEntry {
  3051. method public abstract int mask() default 0;
  3052. method public abstract String name();
  3053. method public abstract int target();
  3054. }
  3055. public enum InspectableProperty.ValueType {
  3056. enum_constant public static final android.view.inspector.InspectableProperty.ValueType COLOR;
  3057. enum_constant public static final android.view.inspector.InspectableProperty.ValueType GRAVITY;
  3058. enum_constant public static final android.view.inspector.InspectableProperty.ValueType INFERRED;
  3059. enum_constant public static final android.view.inspector.InspectableProperty.ValueType INT_ENUM;
  3060. enum_constant public static final android.view.inspector.InspectableProperty.ValueType INT_FLAG;
  3061. enum_constant public static final android.view.inspector.InspectableProperty.ValueType NONE;
  3062. enum_constant public static final android.view.inspector.InspectableProperty.ValueType RESOURCE_ID;
  3063. }
  3064. }
  3065. package android.widget {
  3066. public abstract class AbsListView extends android.widget.AdapterView<android.widget.ListAdapter> implements android.widget.Filter.FilterListener android.text.TextWatcher android.view.ViewTreeObserver.OnGlobalLayoutListener android.view.ViewTreeObserver.OnTouchModeChangeListener {
  3067. method public final boolean shouldDrawSelector();
  3068. }
  3069. public class CalendarView extends android.widget.FrameLayout {
  3070. method public boolean getBoundsForDate(long, android.graphics.Rect);
  3071. }
  3072. public class DatePicker extends android.widget.FrameLayout {
  3073. method @android.view.inspector.InspectableProperty(name="datePickerMode", enumMapping={@android.view.inspector.InspectableProperty.EnumEntry(value=android.widget.DatePicker.MODE_SPINNER, name="spinner"), @android.view.inspector.InspectableProperty.EnumEntry(value=android.widget.DatePicker.MODE_CALENDAR, name="calendar")}) public int getMode();
  3074. field public static final int MODE_CALENDAR = 2; // 0x2
  3075. field public static final int MODE_SPINNER = 1; // 0x1
  3076. }
  3077. @UiThread public final class Magnifier {
  3078. method @Nullable public android.graphics.Bitmap getContent();
  3079. method public static android.graphics.PointF getMagnifierDefaultSize();
  3080. method @Nullable public android.graphics.Bitmap getOriginalContent();
  3081. method public void setOnOperationCompleteCallback(android.widget.Magnifier.Callback);
  3082. }
  3083. public static interface Magnifier.Callback {
  3084. method public void onOperationComplete();
  3085. }
  3086. public class NumberPicker extends android.widget.LinearLayout {
  3087. method public CharSequence getDisplayedValueForCurrentSelection();
  3088. }
  3089. public class PopupMenu {
  3090. method public android.widget.ListView getMenuListView();
  3091. }
  3092. public class Spinner extends android.widget.AbsSpinner implements android.content.DialogInterface.OnClickListener {
  3093. method public boolean isPopupShowing();
  3094. }
  3095. @android.widget.RemoteViews.RemoteView public class TextClock extends android.widget.TextView {
  3096. method public void disableClockTick();
  3097. }
  3098. public class TimePicker extends android.widget.FrameLayout {
  3099. method public android.view.View getAmView();
  3100. method public android.view.View getHourView();
  3101. method public android.view.View getMinuteView();
  3102. method @android.view.inspector.InspectableProperty(name="timePickerMode", enumMapping={@android.view.inspector.InspectableProperty.EnumEntry(name="clock", value=android.widget.TimePicker.MODE_CLOCK), @android.view.inspector.InspectableProperty.EnumEntry(name="spinner", value=android.widget.TimePicker.MODE_SPINNER)}) public int getMode();
  3103. method public android.view.View getPmView();
  3104. field public static final int MODE_CLOCK = 2; // 0x2
  3105. field public static final int MODE_SPINNER = 1; // 0x1
  3106. }
  3107. public class Toolbar extends android.view.ViewGroup {
  3108. method @Nullable public android.view.View getNavigationView();
  3109. }
  3110. }