/frameworks/base/core/java/android/util/apk/ |
H A D | ApkSignatureSchemeV2Verifier.java | 417 // Central Directory must be considered to point to the offset of the APK Signing Block. 562 * Returns the ZIP End of Central Directory (EoCD) and its offset in the file. 580 // Look up the offset of ZIP Central Directory. 584 "ZIP Central Directory offset out of range: " + centralDirOffset 585 + ". ZIP End of Central Directory offset: " + eocdOffset); 845 private static void setUnsignedInt32LittleEndian(int value, byte[] result, int offset) { argument 846 result[offset] = (byte) (value & 0xff); 847 result[offset + 1] = (byte) ((value >>> 8) & 0xff); 848 result[offset + 2] = (byte) ((value >>> 16) & 0xff); 849 result[offset 988 feedIntoMessageDigests(MessageDigest[] mds, long offset, int size) argument 1022 feedIntoMessageDigests( MessageDigest[] mds, long offset, int size) argument 1097 feedIntoMessageDigests( MessageDigest[] mds, long offset, int size) argument [all...] |
/frameworks/base/core/java/android/widget/ |
H A D | AutoCompleteTextView.java | 474 * <p>Sets the vertical offset used for the auto-complete drop-down list.</p> 476 * @param offset the vertical offset 480 public void setDropDownVerticalOffset(int offset) { argument 481 mPopup.setVerticalOffset(offset); 485 * <p>Gets the vertical offset used for the auto-complete drop-down list.</p> 487 * @return the vertical offset 496 * <p>Sets the horizontal offset used for the auto-complete drop-down list.</p> 498 * @param offset the horizontal offset 502 setDropDownHorizontalOffset(int offset) argument [all...] |
H A D | Gallery.java | 464 * @param offset the number of pixels to offset 466 private void offsetChildrenLeftAndRight(int offset) { argument 468 getChildAt(i).offsetLeftAndRight(offset); 673 * on. The 0 for x will be offset in a couple lines down. 846 * @param offset Offset from the selected position 854 private View makeAndAddView(int position, int offset, int x, boolean fromLeft) { argument 869 setUpChild(child, offset, x, fromLeft); 879 setUpChild(child, offset, x, fromLeft); 889 * @param offset Offse 896 setUpChild(View child, int offset, int x, boolean fromLeft) argument [all...] |
H A D | GridView.java | 488 final int offset = bottomSelectionPixel - referenceView.getBottom(); 489 offsetChildrenTopAndBottom(offset); 502 final int offset = childrenTop - top; 503 if (offset < 0) { 504 offsetChildrenTopAndBottom(offset); 513 final int offset = childrenBottom - bottom; 514 if (offset > 0) { 515 offsetChildrenTopAndBottom(offset); 545 * the mMotionPosition view at the offset specified by mMotionViewTop, and 812 int offset 862 smoothScrollByOffset(int offset) argument [all...] |
H A D | ListPopupWindow.java | 426 * @return The horizontal offset of the popup from its anchor in pixels. 433 * Set the horizontal offset of this popup from its anchor view in pixels. 435 * @param offset The horizontal offset of the popup from its anchor. 437 public void setHorizontalOffset(int offset) { argument 438 mDropDownHorizontalOffset = offset; 442 * @return The vertical offset of the popup from its anchor in pixels. 452 * Set the vertical offset of this popup from its anchor view in pixels. 454 * @param offset The vertical offset o 456 setVerticalOffset(int offset) argument [all...] |
/frameworks/base/core/java/com/android/internal/widget/ |
H A D | ActionBarOverlayLayout.java | 610 public void setActionBarHideOffset(int offset) { argument 613 offset = Math.max(0, Math.min(offset, topHeight)); 614 mActionBarTop.setTranslationY(-offset); 616 // Match the hide offset proportionally for a split bar 617 final float fOffset = (float) offset / topHeight;
|
/frameworks/base/core/jni/android/graphics/ |
H A D | BitmapFactory.cpp | 571 // Restore the descriptor's offset on exiting this function. Even though 573 // file description and changes to the file offset in one impact the other. 593 // If there is no offset for the file descriptor, we use SkFILEStream directly. 619 jint offset, jint length, jobject options) { 622 std::unique_ptr<SkMemoryStream> stream(new SkMemoryStream(ar.ptr() + offset, length, false)); 618 nativeDecodeByteArray(JNIEnv* env, jobject, jbyteArray byteArray, jint offset, jint length, jobject options) argument
|
/frameworks/base/core/jni/ |
H A D | android_hardware_Camera.cpp | 253 ssize_t offset; local 255 sp<IMemoryHeap> heap = dataPtr->getMemory(&offset, &size); 256 ALOGV("copyAndPost: off=%zd, size=%zu", offset, size); 260 const jbyte* data = reinterpret_cast<const jbyte*>(heapBase + offset);
|
H A D | android_opengl_EGL14.cpp | 465 (JNIEnv *_env, jobject _this, jobject dpy, jobject config, jint attribute, jintArray value_ref, jint offset) { 482 if (offset < 0) { 485 _exceptionMessage = "offset < 0"; 488 _remaining = _env->GetArrayLength(value_ref) - offset; 492 _exceptionMessage = "length - offset < 1 < needed"; 497 value = value_base + offset; 520 (JNIEnv *_env, jobject _this, jobject dpy, jobject config, jobject win, jintArray attrib_list_ref, jint offset) { 534 if (offset < 0) { 537 _exceptionMessage = "offset < 0"; 540 _remaining = _env->GetArrayLength(attrib_list_ref) - offset; 464 android_eglGetConfigAttrib(JNIEnv *_env, jobject _this, jobject dpy, jobject config, jint attribute, jintArray value_ref, jint offset) argument 519 android_eglCreateWindowSurface(JNIEnv *_env, jobject _this, jobject dpy, jobject config, jobject win, jintArray attrib_list_ref, jint offset) argument 592 android_eglCreateWindowSurfaceTexture(JNIEnv *_env, jobject _this, jobject dpy, jobject config, jobject win, jintArray attrib_list_ref, jint offset) argument 673 android_eglCreatePbufferSurface(JNIEnv *_env, jobject _this, jobject dpy, jobject config, jintArray attrib_list_ref, jint offset) argument 731 android_eglCreatePixmapSurface(JNIEnv *_env, jobject _this, jobject dpy, jobject config, jint pixmap, jintArray attrib_list_ref, jint offset) argument 755 android_eglQuerySurface(JNIEnv *_env, jobject _this, jobject dpy, jobject surface, jint attribute, jintArray value_ref, jint offset) argument 848 android_eglCreatePbufferFromClientBuffer(JNIEnv *_env, jobject _this, jobject dpy, jint buftype, jlong buffer, jobject config, jintArray attrib_list_ref, jint offset) argument 907 android_eglCreatePbufferFromClientBufferInt(JNIEnv *_env, jobject _this, jobject dpy, jint buftype, jint buffer, jobject config, jintArray attrib_list_ref, jint offset) argument 980 android_eglCreateContext(JNIEnv *_env, jobject _this, jobject dpy, jobject config, jobject share_context, jintArray attrib_list_ref, jint offset) argument 1107 android_eglQueryContext(JNIEnv *_env, jobject _this, jobject dpy, jobject ctx, jint attribute, jintArray value_ref, jint offset) argument [all...] |
H A D | android_view_RenderNode.cpp | 365 jobject clazz, jlong renderNodePtr, jint offset) { 366 return SET_AND_DIRTY(offsetLeftRight, offset, RenderNode::X); 370 jobject clazz, jlong renderNodePtr, jint offset) { 371 return SET_AND_DIRTY(offsetTopBottom, offset, RenderNode::Y); 364 android_view_RenderNode_offsetLeftAndRight(JNIEnv* env, jobject clazz, jlong renderNodePtr, jint offset) argument 369 android_view_RenderNode_offsetTopAndBottom(JNIEnv* env, jobject clazz, jlong renderNodePtr, jint offset) argument
|
/frameworks/base/graphics/java/android/graphics/ |
H A D | Path.java | 665 * Add a copy of src to the path, offset by (dx,dy) 698 * @param dx The amount in the X direction to offset the entire path 699 * @param dy The amount in the Y direction to offset the entire path 703 public void offset(float dx, float dy, @Nullable Path dst) { method in class:Path 709 dst.offset(dx, dy); 715 * @param dx The amount in the X direction to offset the entire path 716 * @param dy The amount in the Y direction to offset the entire path 718 public void offset(float dx, float dy) { method in class:Path 720 // nothing to offset
|
/frameworks/base/libs/common_time/ |
H A D | common_time_server.cpp | 588 size_t offset = 0; local 591 for (i = 0; (i < src_len) && (offset < dst_len); ++i) { 594 res = snprintf(dst + offset, dst_len - offset, "\n%04zx :", i); 597 offset += res; 598 if (offset >= dst_len) 602 res = snprintf(dst + offset, dst_len - offset, " %02x", src[i]); 605 offset += res;
|
/frameworks/base/media/java/android/media/audiofx/ |
H A D | AudioEffect.java | 1170 // arg1 contains offset of parameter value from start of 1299 public static int byteArrayToInt(byte[] valueBuf, int offset) { argument 1302 return converter.getInt(offset); 1326 public static short byteArrayToShort(byte[] valueBuf, int offset) { argument 1329 return converter.getShort(offset);
|
/frameworks/base/media/jni/ |
H A D | android_media_MediaPlayer.cpp | 246 android_media_MediaPlayer_setDataSourceFD(JNIEnv *env, jobject thiz, jobject fileDescriptor, jlong offset, jlong length) argument 260 process_media_player_call( env, thiz, mp->setDataSource(fd, offset, length), "java/io/IOException", "setDataSourceFD failed." );
|
H A D | android_media_Utils.cpp | 41 const size_t offset, const size_t length, std::uint8_t* data) { 43 if (mPosition != offset) { 44 if (!mStream->seek(offset)) { 51 mPosition = offset + size; 64 const size_t offset, const size_t length, std::uint8_t* data) { 66 if (offset + length > mStreamBuffer.bytesWritten()) { 67 size_t sizeToRead = offset + length - mStreamBuffer.bytesWritten(); 87 if (mStreamBuffer.read((void*)data, offset, length)) { 118 const size_t offset, const size_t length, std::uint8_t* data) { 124 if (mPosition != offset) { 40 GetData( const size_t offset, const size_t length, std::uint8_t* data) argument 63 GetData( const size_t offset, const size_t length, std::uint8_t* data) argument 117 GetData( const size_t offset, const size_t length, std::uint8_t* data) argument [all...] |
H A D | android_mtp_MtpDevice.cpp | 114 bool write(void* data, uint32_t offset, uint32_t length) { argument 115 if (static_cast<uint32_t>(mSize) < offset + length) { 118 mEnv->SetByteArrayRegion(mArray, offset, length, static_cast<jbyte*>(data)); 121 static bool writeTo(void* data, uint32_t offset, uint32_t length, void* clientData) { argument 122 return static_cast<JavaArrayWriter*>(clientData)->write(data, offset, length); 429 uint32_t offset; local 431 if (!check_uint32_arg(env, "offset", offsetLong, &offset) || 445 objectID, offset, size, &written_size, JavaArrayWriter::writeTo, &writer); 457 jlong offset, 454 android_mtp_MtpDevice_get_partial_object_64(JNIEnv *env, jobject thiz, jint objectID, jlong offset, jlong size, jbyteArray array) argument [all...] |
/frameworks/base/media/jni/soundpool/ |
H A D | SoundPool.cpp | 221 int SoundPool::load(int fd, int64_t offset, int64_t length, int priority __unused) argument 223 ALOGV("load: fd=%d, offset=%" PRId64 ", length=%" PRId64 ", priority=%d", 224 fd, offset, length, priority); 229 sp<Sample> sample = new Sample(sampleID, fd, offset, length); 472 Sample::Sample(int sampleID, int fd, int64_t offset, int64_t length) argument 477 mOffset = offset; 479 ALOGV("create sampleID=%d, fd=%d, offset=%" PRId64 " length=%" PRId64, 503 static status_t decode(int fd, int64_t offset, int64_t length, argument 507 ALOGV("fd %d, offset %" PRId64 ", size %" PRId64, fd, offset, lengt [all...] |
/frameworks/base/media/mca/filterfw/native/core/ |
H A D | shader_program.cpp | 62 offset(0), 949 int offset, 963 attrib.offset = offset; 975 int offset, 988 attrib.values = data + offset; 1083 reinterpret_cast<const void*>(attrib.offset)); 944 SetAttributeValues(ProgramVar var, const VertexFrame* vbo, GLenum type, int components, int stride, int offset, bool normalize) argument 970 SetAttributeValues(ProgramVar var, const uint8_t* data, GLenum type, int components, int stride, int offset, bool normalize) argument
|
/frameworks/base/services/net/java/android/net/apf/ |
H A D | ApfFilter.java | 253 // Pairs consist of offset and length. 312 private void prefixOptionToString(StringBuffer sb, int offset) { argument 313 String prefix = IPv6AddresstoString(offset + 16); 314 int length = uint8(mPacket.get(offset + 2)); 315 long valid = mPacket.getInt(offset + 4); 316 long preferred = mPacket.getInt(offset + 8); 320 private void rdnssOptionToString(StringBuffer sb, int offset) { argument 321 int optLen = uint8(mPacket.get(offset + 1)) * 8; 323 long lifetime = uint32(mPacket.getInt(offset + 4)); 327 sb.append(" ").append(IPv6AddresstoString(offset [all...] |
H A D | ApfGenerator.java | 41 LDB(1), // Load 1 byte from immediate offset, e.g. "ldb R0, [5]" 42 LDH(2), // Load 2 bytes from immediate offset, e.g. "ldh R0, [5]" 43 LDW(3), // Load 4 bytes from immediate offset, e.g. "ldw R0, [5]" 44 LDBX(4), // Load 1 byte from immediate offset plus register, e.g. "ldbx R0, [5]R0" 45 LDHX(5), // Load 2 byte from immediate offset plus register, e.g. "ldhx R0, [5]R0" 46 LDWX(6), // Load 4 byte from immediate offset plus register, e.g. "ldwx R0, [5]R0" 110 int offset; field in class:ApfGenerator.Instruction 181 * contain the offset of the jump destination. 215 * Write {@code value} at offset {@code writingOffset} into {@code bytecode}. 231 * Generate bytecode for this instruction at offset { 416 addLoad8(Register register, int offset) argument 427 addLoad16(Register register, int offset) argument 438 addLoad32(Register register, int offset) argument 450 addLoad8Indexed(Register register, int offset) argument 462 addLoad16Indexed(Register register, int offset) argument 474 addLoad32Indexed(Register register, int offset) argument [all...] |
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
H A D | ImageShader.java | 110 public void set(boolean normalize, int offset, int stride, int components, int type, argument 114 mOffset = offset; 406 int stride, int offset, boolean normalize) { 408 attr.set(normalize, offset, stride, components, type, vbo); 405 setAttributeValues(String attributeName, int vbo, int type, int components, int stride, int offset, boolean normalize) argument
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
H A D | Path_Delegate.java | 356 // because x/y is the center of the circle, need to offset this by the radius 369 // because x/y is the center of the circle, need to offset this by the radius 432 pathDelegate.offset(dx, dy); 853 * @param dx The amount in the X direction to offset the entire path 854 * @param dy The amount in the Y direction to offset the entire path 856 public void offset(float dx, float dy) { method in class:Path_Delegate
|
/frameworks/compile/mclinker/lib/Target/ARM/ |
H A D | ARMLDBackend.cpp | 523 uint64_t offset = m_pEXIDX->size(); local 535 frag->setOffset(offset); 536 offset += frag->size(); 542 m_pEXIDX->setSize(offset); 621 uint32_t offset = pInput.fileOffset() + pSD.getSection().offset(); local 624 llvm::StringRef region = pInput.memArea()->request(offset, size); 792 uint64_t offset = 0; local 795 it->setOffset(offset); 796 offset [all...] |
/frameworks/compile/mclinker/lib/Target/Hexagon/ |
H A D | HexagonLDBackend.cpp | 600 // find the first fragment w/ invalid offset due to stub insertion 621 if (((*island).offset() + (*island).size()) > exit->getOffset()) { 631 // reset the offset of invalid fragments 723 uint32_t offset = 0; local 725 fragTo->setOffset(offset); 726 offset += fragTo->size(); 730 pTo->getSection().setSize(offset); 948 uint32_t offset = pInput.fileOffset() + pSD.getSection().offset(); local 954 llvm::StringRef region = pInput.memArea()->request(offset, siz 1010 uint32_t offset = 0; local [all...] |
/frameworks/ex/widget/java/com/android/ex/widget/ |
H A D | StaggeredGridView.java | 672 final int offset = top + Math.min(mRestoreOffset, 0); 673 Arrays.fill(mItemTops, offset); 674 Arrays.fill(mItemBottoms, offset); 725 final void offsetChildren(int offset) { argument 729 child.layout(child.getLeft(), child.getTop() + offset, 730 child.getRight(), child.getBottom() + offset); 735 mItemTops[i] += offset; 736 mItemBottoms[i] += offset;
|