/frameworks/support/recyclerview-selection/src/main/java/androidx/recyclerview/selection/ |
H A D | GridModel.java | 45 * @param <K> Selection key type. @see {@link StorageStrategy} for supported types. 392 throw new RuntimeException("Invalid corner type."); 493 * The type of this coordinate, which is one of AFTER_LAST_ITEM, BEFORE_FIRST_ITEM, 496 public final int type; field in class:GridModel.RelativeCoordinate 499 * The limits before the coordinate; only populated when type == WITHIN_LIMITS or type == 505 * The limits after the coordinate; only populated when type == BETWEEN_TWO_ITEMS. 509 // Limits of the first known item; only populated when type == BEFORE_FIRST_ITEM. 511 // Limits of the last known item; only populated when type == AFTER_LAST_ITEM. 515 * @param limitsList The sorted limits list for the coordinate type [all...] |
H A D | Range.java | 82 void extendRange(int position, @RangeType int type) { argument 88 establishRange(position, type); 90 reviseRange(position, type); 94 private void establishRange(int position, @RangeType int type) { argument 100 if (DEBUG) log(type, "Establishing initial range at @ " + position); 101 updateRange(mBegin + 1, position, true, type); 103 if (DEBUG) log(type, "Establishing initial range at @ " + position); 104 updateRange(position, mBegin - 1, true, type); 108 private void reviseRange(int position, @RangeType int type) { argument 113 if (DEBUG) log(type, "Ignorin 129 reviseAscending(int position, @RangeType int type) argument 144 reviseDescending(int position, @RangeType int type) argument 168 updateRange( int begin, int end, boolean selected, @RangeType int type) argument 178 log(@angeType int type, String message) argument 187 updateForRange( int begin, int end, boolean selected, @RangeType int type) argument [all...] |
H A D | StorageStrategy.java | 39 * for more detailed advice on which key type to use for your selection keys. 41 * @param <K> Selection key type. Built in support is provided for String, Long, and Parcelable 43 * appropriate to the desired type. 54 static final String SELECTION_KEY_TYPE = "androidx.recyclerview.selection.type"; 61 * @param type the key type class that is being used. 63 public StorageStrategy(@NonNull Class<K> type) { argument 64 checkArgument(type != null); 65 mType = type; 92 public static <K extends Parcelable> StorageStrategy<K> createParcelableStorage(Class<K> type) { argument 194 ParcelableStorageStrategy(Class<K> type) argument [all...] |
/frameworks/support/room/runtime/src/main/java/androidx/room/util/ |
H A D | TableInfo.java | 218 int typeIndex = cursor.getColumnIndex("type"); 224 final String type = cursor.getString(typeIndex); 227 columns.put(name, new Column(name, type, notNull, primaryKeyPosition)); 316 * The column type affinity. 318 public final String type; field in class:TableInfo.Column 320 * The column type after it is normalized to one of the basic types according to 347 public Column(String name, String type, boolean notNull, int primaryKeyPosition) { argument 349 this.type = type; 352 this.affinity = findAffinity(type); 362 findAffinity(@ullable String type) argument [all...] |
/frameworks/support/browser/src/main/java/androidx/browser/browseractions/ |
H A D | BrowserActionsIntent.java | 84 * Extra that specifies the type of url for the Browser Actions menu. 191 * Sets the type of Browser Actions context menu. 192 * @param type The type of url. 194 public Builder setUrlType(@BrowserActionsUrlType int type) { argument 195 mType = type; 288 * @param type The type of the url for context menu to be opened. 293 public static void openBrowserAction(Context context, Uri uri, int type, argument 296 .setUrlType(type) 379 openFallbackBrowserActionsMenu( Context context, Uri uri, int type, List<BrowserActionItem> menuItems) argument [all...] |
/frameworks/support/car/car-stubs/ |
H A D | android.car.jar | META-INF/ META-INF/MANIFEST.MF android/car/Car.class Car.java package android ... |
/frameworks/support/car/src/main/java/androidx/car/widget/ |
H A D | SubheaderListItem.java | 100 public void setTextStartMarginType(@TextStartMarginType int type) { argument 101 mTextStartMarginType = type; 163 throw new IllegalStateException("Unknown text start margin type.");
|
/frameworks/support/compat/src/androidTest/java/androidx/core/text/util/ |
H A D | LinkifyCompatTest.java | 830 private static void verifyAddLinksSucceeds(String msg, String string, int type) { argument 834 boolean linksAdded = LinkifyCompat.addLinks(spannable, type); 844 private static void verifyAddLinksFails(String msg, String string, int type) { argument 846 boolean linksAdded = LinkifyCompat.addLinks(spannable, type); 851 String string, int type) { 853 boolean linksAdded = LinkifyCompat.addLinks(spannable, type); 850 verifyAddLinksPartiallyMatches(String msg, String expected, String string, int type) argument
|
/frameworks/support/compat/src/androidTest/java/androidx/core/view/ |
H A D | PointerIconCompatTest.java | 58 private void compareSystemIcon(int type, int compatType) { argument 60 assertEquals(PointerIcon.getSystemIcon(mActivity, type), mView.getPointerIcon());
|
/frameworks/support/compat/src/androidTest/java/androidx/core/widget/ |
H A D | NestedScrollViewNestedScrollingParentTest.java | 257 // TODO(shepshapard), test with interactions where scroll type changes. 648 int type) { 654 int type) { 659 public void onStopNestedScroll(@NonNull View target, int type) { argument 665 int dxUnconsumed, int dyUnconsumed, int type) { 671 int type) { 676 public boolean startNestedScroll(int axes, int type) { argument 681 public void stopNestedScroll(int type) { argument 686 public boolean hasNestedScrollingParent(int type) { argument 692 int dyUnconsumed, @Nullable int[] offsetInWindow, int type) { 647 onStartNestedScroll(@onNull View child, @NonNull View target, int axes, int type) argument 653 onNestedScrollAccepted(@onNull View child, @NonNull View target, int axes, int type) argument 664 onNestedScroll(@onNull View target, int dxConsumed, int dyConsumed, int dxUnconsumed, int dyUnconsumed, int type) argument 670 onNestedPreScroll(@onNull View target, int dx, int dy, @NonNull int[] consumed, int type) argument 691 dispatchNestedScroll(int dxConsumed, int dyConsumed, int dxUnconsumed, int dyUnconsumed, @Nullable int[] offsetInWindow, int type) argument 697 dispatchNestedPreScroll(int dx, int dy, @Nullable int[] consumed, @Nullable int[] offsetInWindow, int type) argument [all...] |
/frameworks/support/compat/src/main/java/androidx/core/app/ |
H A D | AlarmManagerCompat.java | 70 * execute even when the system is in low-power idle modes. This type of alarm must <b>only</b> 86 * <p>Unlike other alarms, the system is free to reschedule this type of alarm to happen 95 * @param type One of {@link AlarmManager#ELAPSED_REALTIME}, 99 * off, using the appropriate clock (depending on the alarm type). 115 public static void setAndAllowWhileIdle(@NonNull AlarmManager alarmManager, int type, argument 118 alarmManager.setAndAllowWhileIdle(type, triggerAtMillis, operation); 120 alarmManager.set(type, triggerAtMillis, operation); 139 * @param type One of {@link AlarmManager#ELAPSED_REALTIME}, 143 * off, using the appropriate clock (depending on the alarm type). 160 public static void setExact(@NonNull AlarmManager alarmManager, int type, lon argument 220 setExactAndAllowWhileIdle(@onNull AlarmManager alarmManager, int type, long triggerAtMillis, @NonNull PendingIntent operation) argument [all...] |
/frameworks/support/compat/src/main/java/androidx/core/content/ |
H A D | ContextCompat.java | 376 public static File[] getExternalFilesDirs(@NonNull Context context, @Nullable String type) { argument 378 return context.getExternalFilesDirs(type); 380 return new File[] { context.getExternalFilesDir(type) }; 456 * This integer encodes the package, type, and resource entry. 490 * tool. This integer encodes the package, type, and resource 514 * tool. This integer encodes the package, type, and resource
|
/frameworks/rs/tests/java_api/RsNbody/src/com/example/android/rs/nbody_gl/ |
H A D | BasicGLRenderer.java | 70 public static int loadShader(int type, String shaderCode) { argument 71 int shader = GLES20.glCreateShader(type);
|
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/ |
H A D | UT_fp16.java | 29 private Type type; field in class:UT_fp16 49 type = typeBuilder.create(); 50 alloc = Allocation.createTyped(RS, type); 67 type.destroy(); 76 type.destroy(); 88 type.destroy(); 97 type.destroy(); 109 type.destroy(); 118 type.destroy(); 130 type [all...] |
/frameworks/rs/cpp/ |
H A D | Allocation.cpp | 81 ALOGE("64 bit integer source does not match allocation type %i", dt); 89 ALOGE("32 bit integer source does not match allocation type %i", dt); 97 ALOGE("16 bit integer source does not match allocation type %i", dt); 105 ALOGE("8 bit integer source does not match allocation type %i", dt); 113 ALOGE("32 bit float source does not match allocation type %i", dt); 121 ALOGE("64 bit float source does not match allocation type %i", dt); 138 ALOGE("Object source does not match allocation type %i", dt); 162 mRS->throwError(RS_ERROR_INVALID_PARAMETER, "Source must be exactly one usage type."); 424 sp<Allocation> Allocation::createTyped(const sp<RS>& rs, const sp<const Type>& type, argument 428 id = RS::dispatch->AllocationCreateTyped(rs->getContext(), type 437 createTyped(const sp<RS>& rs, const sp<const Type>& type, RsAllocationMipmapControl mipmaps, uint32_t usage, void *pointer) argument 452 createTyped(const sp<RS>& rs, const sp<const Type>& type, uint32_t usage) argument [all...] |
/frameworks/rs/driver/ |
H A D | rsdAllocation.cpp | 130 for (uint32_t lod = 0; lod < alloc->mHal.state.type->getLODCount(); lod++) { 140 alloc->mHal.state.type->getLODDimX(lod), 141 alloc->mHal.state.type->getLODDimY(lod), 145 alloc->mHal.state.type->getLODDimX(lod), 146 alloc->mHal.state.type->getLODDimY(lod), 226 rsAssert(!alloc->mHal.state.type->getDimY()); 227 rsAssert(!alloc->mHal.state.type->getDimZ()); 241 alloc->mHal.state.type->getPackedSizeBytes(), 299 const Type *type, uint8_t *ptr, size_t requiredAlignment) { 300 alloc->mHal.drvState.lod[0].dimX = type 298 AllocationBuildPointerTable(const Context *rsc, const Allocation *alloc, const Type *type, uint8_t *ptr, size_t requiredAlignment) argument 354 AllocationBuildPointerTable(const Context *rsc, const Allocation *alloc, const Type *type, uint8_t *ptr) argument 503 const Type *type = alloc->mHal.state.type; local [all...] |
H A D | rsdRuntimeStubs.cpp | 322 Type *type = (Type *) rsrTypeCreate(rsc, element, dimX, dimY, dimZ, mipmaps, local 324 if (type == nullptr) 326 type->callUpdateCacheObject(rsc, &obj); 330 type->incSysRef(); 331 type->decUserRef(); 337 RsType type, RsAllocationMipmapControl mipmaps, uint32_t usages, 343 if (type == nullptr) { 344 ALOGE("rs_allocation creation error: Invalid type"); 355 Allocation *alloc = (Allocation *) rsrAllocationCreateTyped(rsc, type, 398 Allocation *rsCreateAllocation(::rs_type type, argument 336 CreateAllocation( RsType type, RsAllocationMipmapControl mipmaps, uint32_t usages, void *ptr) argument 425 rsCreateAllocation( ::rs_type type, rs_allocation_mipmap_control mipmaps, uint32_t usages, void *ptr) argument [all...] |
H A D | rsdShader.cpp | 36 RsdShader::RsdShader(const Program *p, uint32_t type, argument 42 mType = type; 243 ALOGV("Loading shader type %x, ID %i", mType, mCurrentState->mShaderID); 411 // This tells us the correct texture type
|
H A D | rsdShaderCache.h | 76 uint32_t type; member in struct:RsdShaderCache::UniformQueryData
|
H A D | rsdVertexArray.cpp | 45 type = 0; 53 void RsdVertexArray::Attrib::set(uint32_t type, uint32_t size, uint32_t stride, argument 57 this->type = type; 69 ALOGV("va %i: slot=%i name=%s buf=%i ptr=%p size=%i type=0x%x stride=0x%x norm=%i offset=0x%p", 75 mAttribs[idx].type, 111 mAttribs[ct].type,
|
H A D | rsdVertexArray.h | 40 uint32_t type; member in class:RsdVertexArray::Attrib 48 void set(uint32_t type, uint32_t size, uint32_t stride, bool normalized, size_t offset, const char *name);
|
/frameworks/rs/driver/runtime/ |
H A D | rs_allocation.c | 4 // Opaque Allocation type operations 43 Type_t *type = (Type_t *)alloc->mHal.state.type; local 45 type->mHal.state.element 421 rs_type type, rs_allocation_mipmap_control mipmaps, uint32_t usages, 562 rs_allocation __attribute__((overloadable)) rsCreateAllocation(rs_type type, argument 564 return rsCreateAllocation(type, RS_ALLOCATION_MIPMAP_NONE, usage, NULL); 567 rs_allocation __attribute__((overloadable)) rsCreateAllocation(rs_type type) { argument 568 return rsCreateAllocation(type, RS_ALLOCATION_MIPMAP_NONE,
|
H A D | rs_sample.c | 534 const Type_t *type = (Type_t *)alloc->mHal.state.type; local 535 const Element_t *elem = type->mHal.state.element; 554 uint32_t maxLOD = type->mHal.state.lodCount - 1; 563 uint32_t maxLOD = type->mHal.state.lodCount - 1; 586 const Type_t *type = (Type_t *)alloc->mHal.state.type; local 587 const Element_t *elem = type->mHal.state.element; 607 uint32_t maxLOD = type->mHal.state.lodCount - 1; 616 uint32_t maxLOD = type 633 const Type_t *type = (Type_t *)alloc->mHal.state.type; local [all...] |
H A D | rs_structs.h | 39 const void *type; member in struct:Allocation::__anon1990::__anon1991
|
/frameworks/rs/ |
H A D | rsAllocation.cpp | 28 Allocation::Allocation(Context *rsc, const Type *type, uint32_t usages, argument 38 setType(type); 42 Allocation::Allocation(Context *rsc, const Allocation *alloc, const Type *type) argument 50 setType(type); 61 Allocation * Allocation::createAllocationStrided(Context *rsc, const Type *type, uint32_t usages, argument 76 a = new (allocMem) Allocation(rsc, type, usages, mc, nullptr); 77 success = rsc->mHal.funcs.allocation.initOem(rsc, a, type->getElement()->getHasReferences(), ptr); 84 a = new (allocMem) Allocation(rsc, type, usages, mc, ptr); 85 success = rsc->mHal.funcs.allocation.initStrided(rsc, a, type->getElement()->getHasReferences(), requiredAlignment); 88 a = new (allocMem) Allocation(rsc, type, usage 101 createAllocation(Context *rsc, const Type *type, uint32_t usages, RsAllocationMipmapControl mc, void * ptr) argument 106 createAdapter(Context *rsc, const Allocation *alloc, const Type *type) argument 145 const Type *type = mHal.state.type; local 371 writePackedData(Context *rsc, const Type *type, uint8_t *dst, const uint8_t *src, bool dstPadded) argument 477 Type *type = Type::createFromStream(rsc, stream); local [all...] |