/frameworks/base/tools/aapt2/configuration/ |
H A D | ConfigurationParser.cpp | 26 #include "android-base/file.h" 27 #include "android-base/logging.h" 78 using ::android::base::ReadFileToString; 350 * Returns the common artifact base name from a template string. 387 Maybe<std::string> base = ToBaseName(format.to_string(), apk_name, diag); local 388 if (!base) { 391 std::string result = std::move(base.value());
|
/frameworks/base/tools/incident_section_gen/ |
H A D | main.cpp | 17 #include <frameworks/base/core/proto/android/os/incident.pb.h> 140 size_t base = 0; local 143 found = args.find_first_of(" ", base); 144 if (found != base) { 145 string arg = args.substr(base, found - base); 149 base = found + 1;
|
/frameworks/layoutlib/bridge/src/android/content/res/ |
H A D | BridgeTypedArray.java | 384 * truncating the base value to an integer. 406 * rounding the base value, and ensuring that a non-zero base value 506 * @param base The base value of this fraction. In other words, a 508 * @param pbase The parent base value of this fraction. In other 515 * base value, or defValue if not defined. 518 public float getFraction(int index, int base, int pbase, float defValue) { argument 525 return mValue.getFraction(base, pbase); 994 int base [all...] |
/frameworks/native/libs/binder/ |
H A D | IMemory.cpp | 146 void* const base = realHeap->base(); local 147 if (base == MAP_FAILED) 149 return static_cast<char*>(base) + offset; 155 void* const base = heap!=0 ? heap->base() : MAP_FAILED; local 156 if (base == MAP_FAILED) 158 return static_cast<char*>(base) + offset; 494 ALOGD("hey=%p, heap=%p, count=%d, (fd=%d, base=%p, size=%zu)",
|
/frameworks/native/opengl/libagl/ |
H A D | state.cpp | 68 void* const base = malloc(extra + sizeof(ogles_context_t) + 32); local 69 if (!base) return 0; 72 (ogles_context_t *)((ptrdiff_t(base) + extra + 31) & ~0x1FL); 91 c->rasterizer.base = base; 114 free(c->rasterizer.base);
|
/frameworks/native/services/sensorservice/ |
H A D | vec.h | 303 typedef vbase<TYPE, SIZE> base; typedef in class:android::vec 314 iterator begin() { return base::v; } 315 iterator end() { return base::v + SIZE; } 316 const_iterator begin() const { return base::v; } 317 const_iterator end() const { return base::v + SIZE; } 324 vec(const vec& rhs) : base(rhs) { } 325 vec(const base& rhs) : base(rhs) { } // NOLINT(implicit) 332 base::operator[](i) = rhs; 342 base [all...] |
/frameworks/rs/cpp/ |
H A D | ScriptIntrinsics.cpp | 550 void ScriptIntrinsicLUT::setTable(unsigned int offset, unsigned char base, unsigned int length, unsigned char* lutValues) { argument 551 if ((base + length) > 256 || length == 0) { 557 mCache[offset + base + i] = lutValues[i]; 561 void ScriptIntrinsicLUT::setRed(unsigned char base, unsigned int length, unsigned char* lutValues) { argument 562 setTable(0, base, length, lutValues); 565 void ScriptIntrinsicLUT::setGreen(unsigned char base, unsigned int length, unsigned char* lutValues) { argument 566 setTable(256, base, length, lutValues); 569 void ScriptIntrinsicLUT::setBlue(unsigned char base, unsigned int length, unsigned char* lutValues) { argument 570 setTable(512, base, length, lutValues); 573 void ScriptIntrinsicLUT::setAlpha(unsigned char base, unsigne argument [all...] |
/frameworks/rs/tests/java_api/ImageProcessing_jb/src/com/android/rs/image/ |
H A D | IPTestListJB.java | 88 private TestName(String s, int g, float base) { argument 91 baseline = base;
|
/frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/widget/ |
H A D | ResourcesWrapper.java | 124 public float getFraction(int id, int base, int pbase) { argument 125 return mResources.getFraction(id, base, pbase);
|
/frameworks/support/v7/recyclerview/src/androidTest/java/androidx/recyclerview/widget/ |
H A D | BaseGridLayoutManagerTest.java | 74 protected static List<Config> addConfigVariation(List<Config> base, String fieldName, argument 79 for (Config config : base) {
|
H A D | BaseLinearLayoutManagerTest.java | 73 protected static List<Config> addConfigVariation(List<Config> base, String fieldName, argument 78 for (Config config : base) {
|
H A D | BaseWrapContentTest.java | 412 for (BaseRecyclerViewAnimationsTest.AnimateLogBase base : list) { 413 long id = getItemId(base.viewHolder); 415 target.put(id, log(base)); 419 private String log(BaseRecyclerViewAnimationsTest.AnimateLogBase base) { argument 420 return base.getClass().getSimpleName() + 421 ((TextView) base.viewHolder.itemView).getText() + ": " + 422 "[pre:" + log(base.postInfo) + 423 ", post:" + log(base.postInfo) + "]";
|
/frameworks/av/media/libmedia/ |
H A D | IOMX.cpp | 455 HpOMXNode(const sp<IBinder>& base) : PBase(base) {} argument
|
/frameworks/base/cmds/incident_helper/src/ |
H A D | ih_util.cpp | 61 // This is similiar to Split in android-base/file.h, but it won't add empty string 66 size_t base = 0; local 69 found = line.find_first_of(delimiters, base); 70 if (found != base) { 71 std::string word = (*func) (line.substr(base, found - base)); 77 base = found + 1;
|
/frameworks/base/core/jni/ |
H A D | com_google_android_gles_jni_EGLImpl.cpp | 131 jint* base = (jint *)_env->GetPrimitiveArrayCritical(major_minor, (jboolean *)0); local 132 if (len >= 1) base[0] = 1; 133 if (len >= 2) base[1] = 0; 134 _env->ReleasePrimitiveArrayCritical(major_minor, base, 0); 152 jint* base = _env->GetIntArrayElements(value, (jboolean *)0); local 153 success = eglQueryContext(dpy, ctx, attribute, base); 154 _env->ReleaseIntArrayElements(value, base, 0); 172 jint* base = _env->GetIntArrayElements(value, (jboolean *)0); local 173 success = eglQuerySurface(dpy, sur, attribute, base); 174 _env->ReleaseIntArrayElements(value, base, 233 jint* base = beginNativeAttribList(_env, attrib_list); local 248 jint* base = beginNativeAttribList(_env, attrib_list); local [all...] |
/frameworks/native/libs/vr/libpdx/ |
H A D | service.cpp | 38 auto base = reinterpret_cast<std::uint8_t*>(&info_); local 39 std::fill(&base[0], &base[sizeof(info_)], 0);
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/ |
H A D | NetworkDetail.java | 323 private NetworkDetail(NetworkDetail base, Map<Constants.ANQPElementType, ANQPElement> anqpElements) { argument 324 mSSID = base.mSSID; 325 mIsHiddenSsid = base.mIsHiddenSsid; 326 mBSSID = base.mBSSID; 327 mHESSID = base.mHESSID; 328 mStationCount = base.mStationCount; 329 mChannelUtilization = base.mChannelUtilization; 330 mCapacity = base.mCapacity; 331 mAnt = base.mAnt; 332 mInternet = base [all...] |
/frameworks/base/core/java/android/content/res/ |
H A D | Resources.java | 673 * truncating the base value to an integer. 708 * rounding the base value, and ensuring that a non-zero base value 744 * @param base The base value of this fraction. In other words, a 746 * @param pbase The parent base value of this fraction. In other 751 * base value. 755 public float getFraction(@FractionRes int id, int base, int pbase) { argument 760 return TypedValue.complexToFraction(value.data, base, pbase); 1491 * that style will be applied on top of the base attribute [all...] |
/frameworks/base/core/java/android/inputmethodservice/ |
H A D | Keyboard.java | 896 static int getDimensionOrFraction(TypedArray a, int index, int base, int defValue) { argument 903 return Math.round(a.getFraction(index, base, base, defValue));
|
/frameworks/base/core/java/android/os/ |
H A D | Environment.java | 258 * Returns the base directory for per-user system directory, device encrypted. 266 * Returns the base directory for per-user system directory, credential encrypted. 1020 * Append path segments to each given base path, returning result. 1024 public static File[] buildPaths(File[] base, String... segments) { argument 1025 File[] result = new File[base.length]; 1026 for (int i = 0; i < base.length; i++) { 1027 result[i] = buildPath(base[i], segments); 1033 * Append path segments to given base path, returning result. 1038 public static File buildPath(File base, String... segments) { argument 1039 File cur = base; [all...] |
/frameworks/base/core/java/android/text/ |
H A D | DynamicLayout.java | 53 * arguments (base, paint, and width), then call setters for optional parameters, and finally 65 public static Builder obtain(@NonNull CharSequence base, @NonNull TextPaint paint, argument 73 b.mBase = base; 74 b.mDisplay = base; 104 * transformation) that will be updated as the base text is changed. The default is the 105 * 'base' text passed to the builder's constructor. 308 public DynamicLayout(@NonNull CharSequence base, argument 313 this(base, base, paint, width, align, spacingmult, spacingadd, 321 public DynamicLayout(@NonNull CharSequence base, argument 334 DynamicLayout(@onNull CharSequence base, @NonNull CharSequence display, @NonNull TextPaint paint, @IntRange(from = 0) int width, @NonNull Alignment align, @FloatRange(from = 0.0) float spacingmult, float spacingadd, boolean includepad, @Nullable TextUtils.TruncateAt ellipsize, @IntRange(from = 0) int ellipsizedWidth) argument 356 DynamicLayout(@onNull CharSequence base, @NonNull CharSequence display, @NonNull TextPaint paint, @IntRange(from = 0) int width, @NonNull Alignment align, @NonNull TextDirectionHeuristic textDir, @FloatRange(from = 0.0) float spacingmult, float spacingadd, boolean includepad, @BreakStrategy int breakStrategy, @HyphenationFrequency int hyphenationFrequency, @JustificationMode int justificationMode, @Nullable TextUtils.TruncateAt ellipsize, @IntRange(from = 0) int ellipsizedWidth) argument [all...] |
/frameworks/base/graphics/java/android/graphics/ |
H A D | Typeface.java | 562 Typeface base = sSystemFontMap.get(mFallbackFamilyName); 563 if (base == null) { 564 base = sDefaultTypeface; 568 return base; 571 final int weight = (mWeight == RESOLVE_BY_FONT_TABLE) ? base.mWeight : mWeight; 573 (mItalic == RESOLVE_BY_FONT_TABLE) ? (base.mStyle & ITALIC) != 0 : mItalic == 1; 574 return createWeightStyle(base, weight, italic); 782 private static @NonNull Typeface createWeightStyle(@NonNull Typeface base, argument 788 SparseArray<Typeface> innerCache = sWeightTypefaceCache.get(base.native_instance); 791 sWeightTypefaceCache.put(base [all...] |
/frameworks/base/media/jni/ |
H A D | android_media_ImageReader.cpp | 716 int32_t writerFormat, uint8_t **base, uint32_t *size, int *pixelStride, int *rowStride) { 719 status_t res = getLockedImageInfo(buffer, idx, writerFormat, base, size, 715 Image_getLockedImageInfo(JNIEnv* env, LockedImage* buffer, int idx, int32_t writerFormat, uint8_t **base, uint32_t *size, int *pixelStride, int *rowStride) argument
|
H A D | android_media_ImageWriter.cpp | 763 int32_t writerFormat, uint8_t **base, uint32_t *size, int *pixelStride, int *rowStride) { 766 status_t res = getLockedImageInfo(buffer, idx, writerFormat, base, size, 762 Image_getLockedImageInfo(JNIEnv* env, LockedImage* buffer, int idx, int32_t writerFormat, uint8_t **base, uint32_t *size, int *pixelStride, int *rowStride) argument
|
H A D | android_media_Utils.cpp | 648 int32_t containerFormat, uint8_t **base, uint32_t *size, int *pixelStride, int *rowStride) { 651 LOG_ALWAYS_FATAL_IF(base == NULL, "base is NULL!!!"); 848 *base = pData; 647 getLockedImageInfo(LockedImage* buffer, int idx, int32_t containerFormat, uint8_t **base, uint32_t *size, int *pixelStride, int *rowStride) argument
|