Searched defs:length (Results 276 - 300 of 418) sorted by relevance

<<11121314151617

/frameworks/base/telephony/java/com/android/internal/telephony/
H A DGsmAlphabet.java54 * User data header requires one octet for length. Count as one septet, because
62 * requires a user data header of 3 octets, or 4 septets, plus UDH length.
68 * requires a user data header of 6 octets, or 7 septets, plus UDH length.
74 * plus UDH length.
263 * @param header Optional header (including length byte) that precedes
288 * @param header Optional header (including length byte) that precedes
299 if (header == null || header.length == 0) {
303 int headerBits = (header.length + 1) * 8;
310 ret[1] = (byte)header.length;
311 System.arraycopy(header, 0, ret, 2, header.length);
559 gsm8BitUnpackedToString(byte[] data, int offset, int length) argument
574 gsm8BitUnpackedToString(byte[] data, int offset, int length, String characterset) argument
677 stringToGsm8BitUnpackedField(String s, byte dest[], int offset, int length) argument
[all...]
/frameworks/base/tests/CoreTests/android/core/
H A DTestWebServer.java470 * @param length Amount of data to read
473 private int readData(InputStream is, int length) { argument
477 byte[] buf = new byte[length];
481 count = is.read(buf, read, length-read);
630 int length = new Integer(lengthString).intValue();
633 length = readData(is, length);
634 return length;
698 if ((testNum < 0) || (testNum > TestWebData.tests.length - 1)) {
709 if ((testNum > 0) || (testNum < TestWebData.tests.length
[all...]
/frameworks/ml/bordeaux/learning/stochastic_linear_ranker/jni/
H A Djni_stochastic_linear_ranker.cpp31 const int length, SparseWeightVector<string> * sample) {
33 for (int i = 0; i < length; ++i) {
30 CreateSparseWeightVector(JNIEnv* env, const jobjectArray keys, const float* values, const int length, SparseWeightVector<string> * sample) argument
/frameworks/native/libs/ui/
H A DGralloc1.cpp110 uint32_t length = 0; local
111 mFunctions.dump(mDevice, &length, nullptr);
114 output.resize(length);
115 mFunctions.dump(mDevice, &length, output.data());
/frameworks/native/services/sensorservice/
H A Dvec.h206 TYPE PURE length(const V<TYPE, SIZE>& v) { function in namespace:android
225 return v * (1/length(v));
/frameworks/rs/cpp/
H A DScriptIntrinsics.cpp540 void ScriptIntrinsicLUT::setTable(unsigned int offset, unsigned char base, unsigned int length, unsigned char* lutValues) { argument
541 if ((base + length) > 256 || length == 0) {
546 for (unsigned int i = 0; i < length; i++) {
551 void ScriptIntrinsicLUT::setRed(unsigned char base, unsigned int length, unsigned char* lutValues) { argument
552 setTable(0, base, length, lutValues);
555 void ScriptIntrinsicLUT::setGreen(unsigned char base, unsigned int length, unsigned char* lutValues) { argument
556 setTable(256, base, length, lutValues);
559 void ScriptIntrinsicLUT::setBlue(unsigned char base, unsigned int length, unsigned char* lutValues) { argument
560 setTable(512, base, length, lutValue
563 setAlpha(unsigned char base, unsigned int length, unsigned char* lutValues) argument
[all...]
/frameworks/rs/
H A DrsScript.cpp176 void rsi_ScriptSetTimeZone(Context * rsc, RsScript vs, const char * timeZone, size_t length) { argument
180 char *tz = (char *) malloc(length + 1);
185 strncpy(tz, timeZone, length);
186 tz[length] = '\0';
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
H A DGrid.java60 * @return length of the item.
68 * @param length The size of the object
72 public abstract void addItem(Object item, int index, int length, int rowIndex, int edge); argument
/frameworks/support/v7/appcompat/src/android/support/v7/graphics/drawable/
H A DDrawerArrowDrawable.java100 // The length of top and bottom bars when they merge into an arrow
102 // The length of middle bar
104 // The length of the middle bar when arrow is shaped
154 * Sets the length of the arrow head (from tip to edge, perpendicular to the shaft).
156 * @param length the length in pixels
158 public void setArrowHeadLength(float length) { argument
159 if (mArrowHeadLength != length) {
160 mArrowHeadLength = length;
166 * Returns the length o
178 setArrowShaftLength(float length) argument
204 setBarLength(float length) argument
[all...]
/frameworks/wilhelm/src/android/
H A Dandroid_GenericPlayer.cpp101 void GenericPlayer::setDataSource(int fd, int64_t offset, int64_t length, bool closeAfterUse) { argument
102 SL_LOGV("GenericPlayer::setDataSource(fd=%d, offset=%lld, length=%lld, closeAfterUse=%s)", fd,
103 offset, length, closeAfterUse ? "true" : "false");
121 if (PLAYER_FD_FIND_FILE_SIZE == length) {
122 mDataLocator.fdi.length = sb.st_size;
123 } else if (offset + length > sb.st_size) {
124 mDataLocator.fdi.length = sb.st_size - offset;
126 mDataLocator.fdi.length = length;
H A Dandroid_defs.h195 int64_t length; member in struct:android::FdInfo
/frameworks/av/cmds/stagefright/
H A Dsf2.cpp353 size_t length = U16_AT(ptr); local
358 CHECK(size >= length);
361 memcpy(buffer->data() + buffer->size() + 4, ptr, length);
362 buffer->setRange(0, buffer->size() + 4 + length);
364 ptr += length;
365 size -= length;
381 size_t length = U16_AT(ptr); local
386 CHECK(size >= length);
389 memcpy(buffer->data() + buffer->size() + 4, ptr, length);
390 buffer->setRange(0, buffer->size() + 4 + length);
[all...]
/frameworks/av/drm/common/
H A DIDrmManagerService.cpp245 const int dataBufferSize = dataBuffer.length;
351 data.writeInt32(dataBuffer.length);
352 data.write(dataBuffer.data, dataBuffer.length);
511 data.writeInt32(inputData->length);
512 data.write(inputData->data, inputData->length);
571 int uniqueId, int* length, DrmSupportInfo** drmSupportInfoArray) {
602 *length = arraySize;
607 int uniqueId, int fd, off64_t offset, off64_t length, const char* mime) {
615 data.writeInt64(length);
666 if (buf.data != NULL && buf.length >
570 getAllSupportInfo( int uniqueId, int* length, DrmSupportInfo** drmSupportInfoArray) argument
606 openDecryptSession( int uniqueId, int fd, off64_t offset, off64_t length, const char* mime) argument
1292 int length = 0; local
1329 const off64_t length = data.readInt64(); local
[all...]
/frameworks/av/drm/drmserver/
H A DDrmManager.cpp183 if (0 < path.length()) {
373 int /* uniqueId */, int* length, DrmSupportInfo** drmSupportInfoArray) {
400 *length = validPlugins;
405 int uniqueId, int fd, off64_t offset, off64_t length, const char* mime) {
418 result = rDrmEngine.openDecryptSession(uniqueId, handle, fd, offset, length, mime);
372 getAllSupportInfo( int , int* length, DrmSupportInfo** drmSupportInfoArray) argument
404 openDecryptSession( int uniqueId, int fd, off64_t offset, off64_t length, const char* mime) argument
H A DDrmManagerService.cpp260 int uniqueId, int* length, DrmSupportInfo** drmSupportInfoArray) {
262 return mDrmManager->getAllSupportInfo(uniqueId, length, drmSupportInfoArray);
266 int uniqueId, int fd, off64_t offset, off64_t length, const char* mime) {
269 return mDrmManager->openDecryptSession(uniqueId, fd, offset, length, mime);
259 getAllSupportInfo( int uniqueId, int* length, DrmSupportInfo** drmSupportInfoArray) argument
265 openDecryptSession( int uniqueId, int fd, off64_t offset, off64_t length, const char* mime) argument
/frameworks/av/drm/libdrmframework/
H A DDrmManagerClientImpl.cpp250 int uniqueId, int* length, DrmSupportInfo** drmSupportInfoArray) {
252 if ((NULL != drmSupportInfoArray) && (NULL != length)) {
254 uniqueId, length, drmSupportInfoArray);
261 off64_t length, const char* mime) {
264 uniqueId, fd, offset, length, mime);
249 getAllSupportInfo( int uniqueId, int* length, DrmSupportInfo** drmSupportInfoArray) argument
259 openDecryptSession( int uniqueId, int fd, off64_t offset, off64_t length, const char* mime) argument
/frameworks/av/media/libmedia/
H A DIMediaPlayer.cpp114 status_t setDataSource(int fd, int64_t offset, int64_t length) { argument
119 data.writeInt64(length);
466 int64_t length = data.readInt64(); local
467 reply->writeInt32(setDataSource(fd, offset, length));
H A Dmediaplayer.cpp168 status_t MediaPlayer::setDataSource(int fd, int64_t offset, int64_t length) argument
170 ALOGV("setDataSource(%d, %" PRId64 ", %" PRId64 ")", fd, offset, length);
176 (NO_ERROR != player->setDataSource(fd, offset, length))) {
/frameworks/av/media/libmediaplayerservice/nuplayer/
H A DNuPlayerDriver.cpp100 status_t NuPlayerDriver::setDataSource(int fd, int64_t offset, int64_t length) { argument
110 mPlayer->setDataSourceAsync(fd, offset, length);
/frameworks/av/media/libstagefright/
H A DMPEG2TSWriter.cpp205 size_t length = U16_AT(ptr); local
210 CHECK(size >= length);
212 CHECK_LE(out->size() + 4 + length, out->capacity());
214 memcpy(out->data() + out->size() + 4, ptr, length);
215 out->setRange(0, out->size() + length + 4);
217 ptr += length;
218 size -= length;
228 size_t length = U16_AT(ptr); local
233 CHECK(size >= length);
235 CHECK_LE(out->size() + 4 + length, ou
1000 crc32(const uint8_t *p_start, size_t length) argument
[all...]
H A DStagefrightMetadataRetriever.cpp99 int fd, int64_t offset, int64_t length) {
102 ALOGV("setDataSource(%d, %" PRId64 ", %" PRId64 ")", fd, offset, length);
105 mSource = new FileSource(fd, offset, length);
98 setDataSource( int fd, int64_t offset, int64_t length) argument
/frameworks/av/media/mtp/
H A DMtpDevice.cpp56 bool writeToFd(void* data, uint32_t /* unused_offset */, uint32_t length, void* clientData) { argument
58 const ssize_t result = write(fd, data, length);
62 return static_cast<uint32_t>(result) == length;
713 const uint32_t length = fullLength - MTP_CONTAINER_HEADER_SIZE; local
714 if (expectedLength && length != *expectedLength) {
715 ALOGE("readObject error length: %d", fullLength);
743 while (offset < length) {
759 if (nextOffset < length) {
761 const size_t remaining = length - nextOffset;
782 *writtenSize = length;
[all...]
/frameworks/base/core/java/android/bluetooth/
H A DBluetoothSocket.java179 * @param min16DigitPin enforce a minimum length of 16 digits for a sec mode 2 connection
239 if(fds == null || fds.length != 1) {
489 /*package*/ int read(byte[] b, int offset, int length) throws IOException { argument
491 if (VDBG) Log.d(TAG, "read in: " + mSocketIS + " len: " + length);
494 int bytesToRead = length;
495 if (VDBG) Log.v(TAG, "l2cap: read(): offset: " + offset + " length:" + length
514 if (VDBG) Log.v(TAG, "default: read(): offset: " + offset + " length:" + length);
515 ret = mSocketIS.read(b, offset, length);
523 write(byte[] b, int offset, int length) argument
[all...]
/frameworks/base/core/java/android/os/
H A DBaseBundle.java127 BaseBundle(Parcel parcelledData, int length) { argument
128 readFromParcelInner(parcelledData, length);
1392 int length = parcelledData.dataSize();
1393 parcel.writeInt(length);
1395 parcel.appendFrom(parcelledData, 0, length);
1404 parcel.writeInt(-1); // dummy, will hold length
1411 // Backpatch length
1413 int length = endPos - startPos;
1414 parcel.writeInt(length);
1427 int length
1431 readFromParcelInner(Parcel parcel, int length) argument
[all...]
/frameworks/base/core/java/com/android/internal/view/
H A DInputConnectionWrapper.java228 public CharSequence getTextAfterCursor(int length, int flags) { argument
232 mIInputContext.getTextAfterCursor(length, flags, callback.mSeq, callback);
246 public CharSequence getTextBeforeCursor(int length, int flags) { argument
250 mIInputContext.getTextBeforeCursor(length, flags, callback.mSeq, callback);

Completed in 3672 milliseconds

<<11121314151617