Home
last modified time | relevance | path

Searched refs:NonNull (Results 1 – 25 of 1861) sorted by relevance

12345678910>>...75

/frameworks/support/slices/builders/src/main/java/androidx/slice/builders/
DListBuilder.java29 import androidx.annotation.NonNull;
162 public ListBuilder(@NonNull Context context, @NonNull Uri uri) { in ListBuilder()
176 public ListBuilder(@NonNull Context context, @NonNull Uri uri, long ttl) { in ListBuilder()
189 @NonNull
190 public ListBuilder addRow(@NonNull RowBuilder builder) { in addRow()
198 @NonNull
199 public ListBuilder addRow(@NonNull Consumer<RowBuilder> c) { in addRow()
210 @NonNull
212 public ListBuilder addGrid(@NonNull GridBuilder builder) { in addGrid()
222 @NonNull
[all …]
DGridRowBuilder.java24 import androidx.annotation.NonNull;
78 public GridRowBuilder(@NonNull ListBuilder parent) { in GridRowBuilder()
90 @NonNull
91 public GridRowBuilder addCell(@NonNull CellBuilder builder) { in addCell()
99 @NonNull
100 public GridRowBuilder addCell(@NonNull Consumer<CellBuilder> c) { in addCell()
121 @NonNull
122 public GridRowBuilder setSeeMoreCell(@NonNull CellBuilder builder) { in setSeeMoreCell()
147 @NonNull
148 public GridRowBuilder setSeeMoreCell(@NonNull Consumer<CellBuilder> c) { in setSeeMoreCell()
[all …]
DGridBuilder.java25 import androidx.annotation.NonNull;
74 public GridBuilder(@NonNull ListBuilder parent) { in GridBuilder()
86 @NonNull
87 public GridBuilder addCell(@NonNull CellBuilder builder) { in addCell()
95 @NonNull
96 public GridBuilder addCell(@NonNull Consumer<CellBuilder> c) { in addCell()
117 @NonNull
118 public GridBuilder addSeeMoreCell(@NonNull CellBuilder builder) { in addSeeMoreCell()
143 @NonNull
144 public GridBuilder addSeeMoreCell(@NonNull Consumer<CellBuilder> c) { in addSeeMoreCell()
[all …]
DSliceAction.java26 import androidx.annotation.NonNull;
46 public SliceAction(@NonNull PendingIntent action, @NonNull Icon actionIcon, in SliceAction()
47 @NonNull CharSequence actionTitle) { in SliceAction()
56 public SliceAction(@NonNull PendingIntent action, @NonNull Icon actionIcon, in SliceAction()
57 @ListBuilder.ImageMode int imageMode, @NonNull CharSequence actionTitle) { in SliceAction()
66 public SliceAction(@NonNull PendingIntent action, @NonNull Icon actionIcon, in SliceAction()
67 @NonNull CharSequence actionTitle, boolean isChecked) { in SliceAction()
79 public SliceAction(@NonNull PendingIntent action, @NonNull IconCompat actionIcon, in SliceAction()
80 @NonNull CharSequence actionTitle) { in SliceAction()
101 public SliceAction(@NonNull PendingIntent action, @NonNull IconCompat actionIcon, in SliceAction()
[all …]
/frameworks/base/media/java/android/media/
DMediaSession2.java23 import android.annotation.NonNull;
182 @Nullable DataSourceDesc onDataSourceMissing(@NonNull MediaSession2 session, in onDataSourceMissing()
183 @NonNull MediaItem2 item); in onDataSourceMissing()
206 public @Nullable SessionCommandGroup2 onConnect(@NonNull MediaSession2 session, in onConnect()
207 @NonNull ControllerInfo controller) { in onConnect()
219 public void onDisconnected(@NonNull MediaSession2 session, in onDisconnected()
220 @NonNull ControllerInfo controller) { } in onDisconnected()
245 public boolean onCommandRequest(@NonNull MediaSession2 session, in onCommandRequest()
246 @NonNull ControllerInfo controller, @NonNull SessionCommand2 command) { in onCommandRequest()
264 public void onSetRating(@NonNull MediaSession2 session, @NonNull ControllerInfo controller, in onSetRating()
[all …]
DMediaDrm.java20 import android.annotation.NonNull;
169 public static final boolean isCryptoSchemeSupported(@NonNull UUID uuid) { in isCryptoSchemeSupported()
182 @NonNull UUID uuid, @NonNull String mimeType) { in isCryptoSchemeSupported()
186 private static final byte[] getByteArrayFromUUID(@NonNull UUID uuid) { in getByteArrayFromUUID()
200 @NonNull byte[] uuid, @Nullable String mimeType); in isCryptoSchemeSupportedNative()
210 public MediaDrm(@NonNull UUID uuid) throws UnsupportedSchemeException { in MediaDrm()
267 @NonNull
312 @NonNull MediaDrm md, @NonNull byte[] sessionId, long expirationTime);
356 @NonNull MediaDrm md, @NonNull byte[] sessionId,
357 @NonNull List<KeyStatus> keyInformation,
[all …]
DMediaLibraryService2.java20 import android.annotation.NonNull;
99 public @Nullable LibraryRoot onGetLibraryRoot(@NonNull MediaLibrarySession session, in onGetLibraryRoot()
100 @NonNull ControllerInfo controllerInfo, @Nullable Bundle rootHints) { in onGetLibraryRoot()
113 public @Nullable MediaItem2 onGetItem(@NonNull MediaLibrarySession session, in onGetItem()
114 @NonNull ControllerInfo controllerInfo, @NonNull String mediaId) { in onGetItem()
130 public @Nullable List<MediaItem2> onGetChildren(@NonNull MediaLibrarySession session, in onGetChildren()
131 @NonNull ControllerInfo controller, @NonNull String parentId, int page, in onGetChildren()
148 public void onSubscribe(@NonNull MediaLibrarySession session, in onSubscribe()
149 @NonNull ControllerInfo controller, @NonNull String parentId, in onSubscribe()
160 public void onUnsubscribe(@NonNull MediaLibrarySession session, in onUnsubscribe()
[all …]
DMediaController2.java22 import android.annotation.NonNull;
83 public void onConnected(@NonNull MediaController2 controller, in onConnected()
84 @NonNull SessionCommandGroup2 allowedCommands) { } in onConnected()
97 public void onDisconnected(@NonNull MediaController2 controller) { } in onDisconnected()
109 public void onCustomLayoutChanged(@NonNull MediaController2 controller, in onCustomLayoutChanged()
110 @NonNull List<CommandButton> layout) { } in onCustomLayoutChanged()
118 public void onPlaybackInfoChanged(@NonNull MediaController2 controller, in onPlaybackInfoChanged()
119 @NonNull PlaybackInfo info) { } in onPlaybackInfoChanged()
127 public void onAllowedCommandsChanged(@NonNull MediaController2 controller, in onAllowedCommandsChanged()
128 @NonNull SessionCommandGroup2 commands) { } in onAllowedCommandsChanged()
[all …]
/frameworks/base/core/java/android/hardware/camera2/
DCameraCaptureSession.java20 import android.annotation.NonNull;
80 @NonNull
146 public abstract void prepare(@NonNull Surface surface) throws CameraAccessException; in prepare()
188 public abstract void prepare(int maxCount, @NonNull Surface surface) in prepare()
227 public abstract void tearDown(@NonNull Surface surface) throws CameraAccessException; in tearDown()
353 public abstract int capture(@NonNull CaptureRequest request, in capture()
395 public int captureSingleRequest(@NonNull CaptureRequest request, in captureSingleRequest()
396 @NonNull @CallbackExecutor Executor executor, @NonNull CaptureCallback listener) in captureSingleRequest()
459 public abstract int captureBurst(@NonNull List<CaptureRequest> requests, in captureBurst()
504 public int captureBurstRequests(@NonNull List<CaptureRequest> requests, in captureBurstRequests()
[all …]
/frameworks/support/media/src/main/java/androidx/media/
DMediaSession2.java36 import androidx.annotation.NonNull;
192 public void updatePlayer(@NonNull MediaPlayerInterface player, in updatePlayer()
210 public @NonNull MediaPlayerInterface getPlayer() { in getPlayer()
217 public @NonNull MediaPlaylistAgent getPlaylistAgent() { in getPlaylistAgent()
231 public @NonNull SessionToken2 getToken() { in getToken()
235 @NonNull Context getContext() { in getContext()
239 @NonNull Executor getCallbackExecutor() { in getCallbackExecutor()
243 @NonNull SessionCallback getCallback() { in getCallback()
252 public @NonNull List<ControllerInfo> getConnectedControllers() { in getConnectedControllers()
285 public void setCustomLayout(@NonNull ControllerInfo controller, in setCustomLayout()
[all …]
DMediaController2.java32 import androidx.annotation.NonNull;
103 public MediaController2(@NonNull Context context, @NonNull SessionToken2 token, in MediaController2()
104 @NonNull Executor executor, @NonNull ControllerCallback callback) { in MediaController2()
125 public @NonNull SessionToken2 getSessionToken() { in getSessionToken()
218 public void playFromMediaId(@NonNull String mediaId, @Nullable Bundle extras) { in playFromMediaId()
228 public void playFromSearch(@NonNull String query, @Nullable Bundle extras) { in playFromSearch()
239 public void playFromUri(@NonNull Uri uri, @Nullable Bundle extras) { in playFromUri()
255 public void prepareFromMediaId(@NonNull String mediaId, @Nullable Bundle extras) { in prepareFromMediaId()
271 public void prepareFromSearch(@NonNull String query, @Nullable Bundle extras) { in prepareFromSearch()
287 public void prepareFromUri(@NonNull Uri uri, @Nullable Bundle extras) { in prepareFromUri()
[all …]
/frameworks/support/fragment/src/main/java/androidx/fragment/app/
DFragmentTransaction.java28 import androidx.annotation.NonNull;
48 @NonNull
49 public abstract FragmentTransaction add(@NonNull Fragment fragment, @Nullable String tag); in add()
54 @NonNull
55 public abstract FragmentTransaction add(@IdRes int containerViewId, @NonNull Fragment fragment); in add()
72 @NonNull
73 public abstract FragmentTransaction add(@IdRes int containerViewId, @NonNull Fragment fragment, in add()
79 @NonNull
81 @NonNull Fragment fragment); in replace()
99 @NonNull
[all …]
/frameworks/support/slices/view/src/main/java/androidx/slice/
DSliceManager.java24 import androidx.annotation.NonNull;
46 public static @NonNull SliceManager getInstance(@NonNull Context context) { in getInstance()
73 public abstract void registerSliceCallback(@NonNull Uri uri, @NonNull SliceCallback callback); in registerSliceCallback()
87 public abstract void registerSliceCallback(@NonNull Uri uri, @NonNull Executor executor, in registerSliceCallback()
88 @NonNull SliceCallback callback); in registerSliceCallback()
100 public abstract void unregisterSliceCallback(@NonNull Uri uri, @NonNull SliceCallback callback); in unregisterSliceCallback()
111 public abstract void pinSlice(@NonNull Uri uri); in pinSlice()
122 public abstract void unpinSlice(@NonNull Uri uri); in unpinSlice()
131 public abstract @NonNull Set<SliceSpec> getPinnedSpecs(@NonNull Uri uri); in getPinnedSpecs()
140 public abstract @Nullable Slice bindSlice(@NonNull Uri uri); in bindSlice()
[all …]
/frameworks/base/services/core/java/com/android/server/pm/permission/
DPermissionManagerInternal.java19 import android.annotation.NonNull;
75 @NonNull String permName, @NonNull String packageName, boolean overridePolicy, in grantRuntimePermission()
78 @NonNull PackageParser.Package pkg, int callingUid, in grantRuntimePermissionsGrantedToDisabledPackage()
81 @NonNull PackageParser.Package pkg, @NonNull int[] userIds, in grantRequestedRuntimePermissions()
82 @NonNull String[] grantedPermissions, int callingUid, in grantRequestedRuntimePermissions()
84 public abstract void revokeRuntimePermission(@NonNull String permName, in revokeRuntimePermission()
85 @NonNull String packageName, boolean overridePolicy, int callingUid, int userId, in revokeRuntimePermission()
90 @NonNull Collection<PackageParser.Package> allPacakges, PermissionCallback callback); in updatePermissions()
92 @NonNull Collection<PackageParser.Package> allPacakges, PermissionCallback callback); in updateAllPermissions()
105 @NonNull PackageParser.Package newPackage, in revokeRuntimePermissionsIfGroupChanged()
[all …]
/frameworks/base/core/java/android/content/pm/
DShortcutServiceInternal.java19 import android.annotation.NonNull;
41 void onShortcutChanged(@NonNull String packageName, @UserIdInt int userId); in onShortcutChanged()
46 @NonNull String callingPackage, long changedSince, in getShortcuts()
52 isPinnedByCaller(int launcherUserId, @NonNull String callingPackage, in isPinnedByCaller()
53 @NonNull String packageName, @NonNull String id, int userId); in isPinnedByCaller()
56 @NonNull String callingPackage, @NonNull String packageName, in pinShortcuts()
57 @NonNull List<String> shortcutIds, int userId); in pinShortcuts()
60 int launcherUserId, @NonNull String callingPackage, in createShortcutIntents()
61 @NonNull String packageName, @NonNull String shortcutId, int userId, in createShortcutIntents()
64 public abstract void addListener(@NonNull ShortcutChangeListener listener); in addListener()
[all …]
/frameworks/base/core/java/android/text/
DFontConfig.java22 import android.annotation.NonNull;
35 private final @NonNull Family[] mFamilies;
36 private final @NonNull Alias[] mAliases;
38 public FontConfig(@NonNull Family[] families, @NonNull Alias[] aliases) { in FontConfig()
46 public @NonNull Family[] getFamilies() { in getFamilies()
53 public @NonNull Alias[] getAliases() { in getAliases()
61 private final @NonNull String mFontName;
63 private final @NonNull FontVariationAxis[] mAxes;
72 public Font(@NonNull String fontName, int ttcIndex, @NonNull FontVariationAxis[] axes, in Font()
85 public @NonNull String getFontName() { in getFontName()
[all …]
/frameworks/support/work/workmanager/src/main/java/androidx/work/
DWorkManager.java21 import android.support.annotation.NonNull;
139 public static void initialize(@NonNull Context context, @NonNull Configuration configuration) { in initialize()
148 public final void enqueue(@NonNull WorkRequest... workRequests) { in enqueue()
157 public abstract void enqueue(@NonNull List<? extends WorkRequest> workRequests); in enqueue()
167 public final WorkContinuation beginWith(@NonNull OneTimeWorkRequest...work) { in beginWith()
179 public abstract WorkContinuation beginWith(@NonNull List<OneTimeWorkRequest> work); in beginWith()
205 @NonNull String uniqueWorkName, in beginUniqueWork()
206 @NonNull ExistingWorkPolicy existingWorkPolicy, in beginUniqueWork()
207 @NonNull OneTimeWorkRequest... work) { in beginUniqueWork()
235 @NonNull String uniqueWorkName, in beginUniqueWork()
[all …]
/frameworks/support/viewpager/src/main/java/androidx/viewpager/widget/
DPagerAdapter.java25 import androidx.annotation.NonNull;
98 public void startUpdate(@NonNull ViewGroup container) { in startUpdate()
113 @NonNull
114 public Object instantiateItem(@NonNull ViewGroup container, int position) { in instantiateItem()
128 public void destroyItem(@NonNull ViewGroup container, int position, @NonNull Object object) { in destroyItem()
142 public void setPrimaryItem(@NonNull ViewGroup container, int position, @NonNull Object object) { in setPrimaryItem()
153 public void finishUpdate(@NonNull ViewGroup container) { in finishUpdate()
165 public void startUpdate(@NonNull View container) { in startUpdate()
182 @NonNull
183 public Object instantiateItem(@NonNull View container, int position) { in instantiateItem()
[all …]
/frameworks/support/compat/src/main/java/androidx/core/content/res/
DTypedArrayUtils.java29 import androidx.annotation.NonNull;
56 public static boolean hasAttribute(@NonNull XmlPullParser parser, @NonNull String attrName) { in hasAttribute()
67 public static float getNamedFloat(@NonNull TypedArray a, @NonNull XmlPullParser parser, in getNamedFloat()
68 @NonNull String attrName, @StyleableRes int resId, float defaultValue) { in getNamedFloat()
84 public static boolean getNamedBoolean(@NonNull TypedArray a, @NonNull XmlPullParser parser, in getNamedBoolean()
85 @NonNull String attrName, @StyleableRes int resId, boolean defaultValue) { in getNamedBoolean()
101 public static int getNamedInt(@NonNull TypedArray a, @NonNull XmlPullParser parser, in getNamedInt()
102 @NonNull String attrName, @StyleableRes int resId, int defaultValue) { in getNamedInt()
119 public static int getNamedColor(@NonNull TypedArray a, @NonNull XmlPullParser parser, in getNamedColor()
120 @NonNull String attrName, @StyleableRes int resId, @ColorInt int defaultValue) { in getNamedColor()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiLog.java19 import android.annotation.NonNull;
84 @NonNull
85 LogMessage err(@CompileTimeConstant @NonNull String format); in err()
96 @NonNull
97 LogMessage warn(@CompileTimeConstant @NonNull String format); in warn()
108 @NonNull
109 LogMessage info(@CompileTimeConstant @NonNull String format); in info()
121 @NonNull
122 LogMessage trace(@CompileTimeConstant @NonNull String format); in trace()
135 @NonNull
[all …]
/frameworks/base/core/java/android/content/res/
DApkAssets.java18 import android.annotation.NonNull;
47 public static @NonNull ApkAssets loadFromPath(@NonNull String path) throws IOException { in loadFromPath()
59 public static @NonNull ApkAssets loadFromPath(@NonNull String path, boolean system) in loadFromPath()
74 public static @NonNull ApkAssets loadFromPath(@NonNull String path, boolean system, in loadFromPath()
93 public static @NonNull ApkAssets loadFromFd(@NonNull FileDescriptor fd, in loadFromFd()
94 @NonNull String friendlyName, boolean system, boolean forceSharedLibrary) in loadFromFd()
108 public static @NonNull ApkAssets loadOverlayFromPath(@NonNull String idmapPath, boolean system) in loadOverlayFromPath()
113 private ApkAssets(@NonNull String path, boolean system, boolean forceSharedLib, boolean overlay) in ApkAssets()
120 private ApkAssets(@NonNull FileDescriptor fd, @NonNull String friendlyName, boolean system, in ApkAssets()
128 public @NonNull String getAssetPath() { in getAssetPath()
[all …]
/frameworks/layoutlib/bridge/src/android/graphics/
DImageDecoder.java19 import android.annotation.NonNull;
71 @NonNull
76 ByteArraySource(@NonNull byte[] data, int offset, int length) { in ByteArraySource()
92 ByteBufferSource(@NonNull ByteBuffer buffer) { in ByteBufferSource()
104 ContentResolverSource(@NonNull ContentResolver resolver, @NonNull Uri uri) { in ContentResolverSource()
153 public AssetInputStreamSource(@NonNull AssetInputStream ais, in AssetInputStreamSource()
154 @NonNull Resources res, @NonNull TypedValue value) { in AssetInputStreamSource()
186 ResourceSource(@NonNull Resources res, int resId) { in ResourceSource()
209 FileSource(@NonNull File file) { in FileSource()
227 private ImageInfo(@NonNull ImageDecoder decoder) { in ImageInfo()
[all …]
/frameworks/support/paging/common/src/main/java/androidx/paging/
DItemKeyedDataSource.java19 import androidx.annotation.NonNull;
152 public abstract void onResult(@NonNull List<Value> data, int position, int totalCount); in onResult()
184 public abstract void onResult(@NonNull List<Value> data); in onResult()
190 LoadInitialCallbackImpl(@NonNull ItemKeyedDataSource dataSource, boolean countingEnabled, in LoadInitialCallbackImpl()
191 @NonNull PageResult.Receiver<Value> receiver) { in LoadInitialCallbackImpl()
197 public void onResult(@NonNull List<Value> data, int position, int totalCount) { in onResult()
212 public void onResult(@NonNull List<Value> data) { in onResult()
222 LoadCallbackImpl(@NonNull ItemKeyedDataSource dataSource, @PageResult.ResultType int type, in LoadCallbackImpl()
224 @NonNull PageResult.Receiver<Value> receiver) { in LoadCallbackImpl()
230 public void onResult(@NonNull List<Value> data) { in onResult()
[all …]
/frameworks/support/webkit/src/main/java/androidx/webkit/
DWebViewClientCompat.java28 import androidx.annotation.NonNull;
112 public void onPageCommitVisible(@NonNull WebView view, @NonNull String url) { in onPageCommitVisible()
125 public final void onReceivedError(@NonNull WebView view, @NonNull WebResourceRequest request, in onReceivedError()
126 /* WebResourceError */ @NonNull InvocationHandler handler) { in onReceivedError()
141 public final void onReceivedError(@NonNull WebView view, @NonNull WebResourceRequest request, in onReceivedError()
142 @NonNull WebResourceError error) { in onReceivedError()
163 public void onReceivedError(@NonNull WebView view, @NonNull WebResourceRequest request, in onReceivedError()
164 @NonNull WebResourceErrorCompat error) { in onReceivedError()
195 public void onReceivedHttpError(@NonNull WebView view, @NonNull WebResourceRequest request, in onReceivedHttpError()
196 @NonNull WebResourceResponse errorResponse) { in onReceivedHttpError()
[all …]
/frameworks/base/graphics/java/android/view/
DPixelCopy.java20 import android.annotation.NonNull;
105 public static void request(@NonNull SurfaceView source, @NonNull Bitmap dest, in request()
106 @NonNull OnPixelCopyFinishedListener listener, @NonNull Handler listenerThread) { in request()
129 public static void request(@NonNull SurfaceView source, @Nullable Rect srcRect, in request()
130 @NonNull Bitmap dest, @NonNull OnPixelCopyFinishedListener listener, in request()
131 @NonNull Handler listenerThread) { in request()
152 public static void request(@NonNull Surface source, @NonNull Bitmap dest, in request()
153 @NonNull OnPixelCopyFinishedListener listener, @NonNull Handler listenerThread) { in request()
176 public static void request(@NonNull Surface source, @Nullable Rect srcRect, in request()
177 @NonNull Bitmap dest, @NonNull OnPixelCopyFinishedListener listener, in request()
[all …]

12345678910>>...75