Home
last modified time | relevance | path

Searched refs:requested (Results 1 – 25 of 46) sorted by relevance

12

/frameworks/base/core/jni/android/graphics/
DCreateJavaOutputStreamAdaptor.cpp67 jint requested = 0; in doRead() local
69 requested = fCapacity; in doRead()
73 requested = static_cast<jint>(size); in doRead()
77 gInputStream_readMethodID, fJavaByteArray, 0, requested); in doRead()
197 jint requested = 0; in write() local
199 requested = fCapacity; in write()
203 requested = static_cast<jint>(size); in write()
206 env->SetByteArrayRegion(storage, 0, requested, in write()
216 storage, 0, requested); in write()
224 buffer = (void*)((char*)buffer + requested); in write()
[all …]
/frameworks/base/libs/androidfw/tests/
DConfigLocale_test.cpp300 ResTable_config supported, requested; in TEST() local
303 fillIn("fr", "CA", NULL, NULL, &requested); in TEST()
305 EXPECT_TRUE(supported.match(requested)); in TEST()
308 fillIn("fr", "CA", NULL, NULL, &requested); in TEST()
310 EXPECT_FALSE(supported.match(requested)); in TEST()
313 fillIn("fil", "PH", NULL, NULL, &requested); in TEST()
315 EXPECT_TRUE(supported.match(requested)); in TEST()
318 fillIn("qaa", "CA", NULL, NULL, &requested); in TEST()
320 EXPECT_FALSE(supported.match(requested)); in TEST()
323 fillIn("qaa", "CA", NULL, NULL, &requested); in TEST()
[all …]
/frameworks/base/tests/net/java/com/android/server/connectivity/tethering/
DUpstreamNetworkMonitorTest.java152 assertEquals(0, mCM.requested.size()); in testRequestsMobileNetwork()
156 assertEquals(0, mCM.requested.size()); in testRequestsMobileNetwork()
160 assertEquals(0, mCM.requested.size()); in testRequestsMobileNetwork()
175 assertEquals(0, mCM.requested.size()); in testDuplicateMobileRequestsIgnored()
183 assertEquals(0, mCM.requested.size()); in testDuplicateMobileRequestsIgnored()
213 assertEquals(0, mCM.requested.size()); in testRequestsDunNetwork()
217 assertEquals(0, mCM.requested.size()); in testRequestsDunNetwork()
221 assertEquals(0, mCM.requested.size()); in testRequestsDunNetwork()
292 assertEquals(1, mCM.requested.size()); in testSelectPreferredUpstreamType()
293 NetworkRequest netReq = (NetworkRequest) mCM.requested.values().toArray()[0]; in testSelectPreferredUpstreamType()
[all …]
/frameworks/native/services/surfaceflinger/
DLayerRejecter.cpp59 if (mFront.active != mFront.requested) { in reject()
60 if (isFixedSize || (bufWidth == mFront.requested.w && bufHeight == mFront.requested.h)) { in reject()
64 mFront.active = mFront.requested; in reject()
100 mFront.requested.w, mFront.requested.h); in reject()
DLayer.cpp147 mCurrentState.requested = mCurrentState.active; in Layer()
1653 const bool sizeChanged = (c.requested.w != s.requested.w) ||
1654 (c.requested.h != s.requested.h);
1673 c.requested.w, c.requested.h,
1681 s.requested.w, s.requested.h);
1686 c.requested.w, c.requested.h);
1689 const bool resizePending = (c.requested.w != c.active.w) ||
1690 (c.requested.h != c.active.h);
1731 c.active = c.requested;
1735 editCurrentState.active = editCurrentState.requested;
[all …]
/frameworks/av/media/libaudioclient/
DAudioTrackShared.cpp111 status_t ClientProxy::obtainBuffer(Buffer* buffer, const struct timespec *requested, in obtainBuffer() argument
128 if (requested == NULL) { in obtainBuffer()
130 } else if (requested->tv_sec == 0 && requested->tv_nsec == 0) { in obtainBuffer()
132 } else if (requested->tv_sec == INT_MAX) { in obtainBuffer()
136 if (requested->tv_sec > 0 || requested->tv_nsec >= MEASURE_NS) { in obtainBuffer()
247 ts = requested; in obtainBuffer()
253 if (!measure || requested->tv_sec < total.tv_sec || in obtainBuffer()
254 (requested->tv_sec == total.tv_sec && requested->tv_nsec <= total.tv_nsec)) { in obtainBuffer()
258 remaining.tv_sec = requested->tv_sec - total.tv_sec; in obtainBuffer()
259 if ((remaining.tv_nsec = requested->tv_nsec - total.tv_nsec) < 0) { in obtainBuffer()
[all …]
DAudioRecord.cpp811 const struct timespec *requested; in obtainBuffer() local
814 requested = &ClientProxy::kForever; in obtainBuffer()
816 requested = &ClientProxy::kNonBlocking; in obtainBuffer()
821 requested = &timeout; in obtainBuffer()
824 requested = NULL; in obtainBuffer()
826 return obtainBuffer(audioBuffer, requested, NULL /*elapsed*/, nonContig); in obtainBuffer()
829 status_t AudioRecord::obtainBuffer(Buffer* audioBuffer, const struct timespec *requested, in obtainBuffer() argument
875 requested = &ClientProxy::kNonBlocking; in obtainBuffer()
882 status = proxy->obtainBuffer(&buffer, requested, elapsed); in obtainBuffer()
1108 const struct timespec *requested = &ClientProxy::kForever; in processAudioBuffer() local
[all …]
DAudioTrack.cpp1695 const struct timespec *requested; in obtainBuffer() local
1698 requested = &ClientProxy::kForever; in obtainBuffer()
1700 requested = &ClientProxy::kNonBlocking; in obtainBuffer()
1705 requested = &timeout; in obtainBuffer()
1708 requested = NULL; in obtainBuffer()
1710 return obtainBuffer(audioBuffer, requested, NULL /*elapsed*/, nonContig); in obtainBuffer()
1713 status_t AudioTrack::obtainBuffer(Buffer* audioBuffer, const struct timespec *requested, in obtainBuffer() argument
1769 requested = &ClientProxy::kNonBlocking; in obtainBuffer()
1776 status = proxy->obtainBuffer(&buffer, requested, elapsed); in obtainBuffer()
2143 const struct timespec *requested = &ClientProxy::kForever; in processAudioBuffer() local
[all …]
/frameworks/base/core/java/android/net/
DNetworkFactory.java158 public boolean requested; // do we have a request outstanding, limited by score field in NetworkFactory.NetworkRequestInfo
163 this.requested = false; in NetworkRequestInfo()
168 return "{" + request + ", score=" + score + ", requested=" + requested + "}"; in toString()
193 if (n.requested) releaseNetworkFor(n.request); in handleRemoveRequest()
232 if (n.requested == false && n.score < mScore && in evalRequest()
237 n.requested = true; in evalRequest()
238 } else if (n.requested == true && in evalRequest()
243 n.requested = false; in evalRequest()
/frameworks/base/packages/FusedLocation/src/com/android/location/fused/
DFusionEngine.java120 public boolean requested; field in FusionEngine.ProviderStats
125 return (requested ? " REQUESTED" : " ---"); in toString()
134 if (!stats.requested) { in enableProvider()
136 stats.requested = true; in enableProvider()
150 if (stats.requested) { in disableProvider()
151 stats.requested = false; in disableProvider()
/frameworks/base/native/android/
Dconfiguration.cpp238 int32_t AConfiguration_match(AConfiguration* base, AConfiguration* requested) { in AConfiguration_match() argument
239 return base->match(*requested); in AConfiguration_match()
243 AConfiguration* requested) { in AConfiguration_isBetterThan() argument
244 return base->isBetterThan(*test, requested); in AConfiguration_isBetterThan()
/frameworks/ex/framesequence/jni/
DStream.cpp126 size_t requested = min(size, mByteArrayLength); in doRead() local
129 gInputStreamClassInfo.read, mByteArray, 0, requested); in doRead()
/frameworks/base/services/core/java/com/android/server/am/
DIntentBindRecord.java41 boolean requested; field in IntentBindRecord
61 pw.print(prefix); pw.print("requested="); pw.print(requested); in dumpInService()
/frameworks/base/proto/src/
Dmetrics_constants.proto1800 // ACTION: app requested access to a scoped directory, user granted it.
1806 // ACTION: app requested access to a scoped directory, user denied it.
1812 // ACTION: app requested access to a scoped directory, user granted it.
1813 // PACKAGE: app that requested access
1818 // ACTION: app requested access to a scoped directory, user denied it.
1819 // PACKAGE: app that requested access.
1824 // ACTION: app requested access to a directory user has already been granted
1831 // ACTION: app requested access to a directory user has already been granted
1833 // PACKAGE: app that requested access.
2802 // ACTION: An app requested an unknown permission
[all …]
/frameworks/base/libs/androidfw/
DResourceTypes.cpp2238 const ResTable_config* requested) const { in isLocaleBetterThan()
2239 if (requested->locale == 0) { in isLocaleBetterThan()
2273 if (areIdentical(requested->language, kEnglish)) { in isLocaleBetterThan()
2274 if (areIdentical(requested->country, kUnitedStates)) { in isLocaleBetterThan()
2283 } else if (localeDataIsCloseToUsEnglish(requested->country)) { in isLocaleBetterThan()
2306 requested->language, requested->localeScript, requested->country); in isLocaleBetterThan()
2313 localeVariant, requested->localeVariant, sizeof(localeVariant)) == 0; in isLocaleBetterThan()
2315 o.localeVariant, requested->localeVariant, sizeof(localeVariant)) == 0; in isLocaleBetterThan()
2323 if (areIdentical(language, requested->language) in isLocaleBetterThan()
2324 && !areIdentical(o.language, requested->language)) { in isLocaleBetterThan()
[all …]
/frameworks/native/include/android/
Dconfiguration.h734 int32_t AConfiguration_match(AConfiguration* base, AConfiguration* requested);
747 AConfiguration* requested);
/frameworks/base/core/java/android/appwidget/
DAppWidgetHostView.java664 FrameLayout.LayoutParams requested = (FrameLayout.LayoutParams)view.getLayoutParams(); in prepareView() local
665 if (requested == null) { in prepareView()
666 requested = new FrameLayout.LayoutParams(LayoutParams.MATCH_PARENT, in prepareView()
670 requested.gravity = Gravity.CENTER; in prepareView()
671 view.setLayoutParams(requested); in prepareView()
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/
DDozeSensors.java223 void setRequested(boolean requested) { in setRequested() argument
224 if (mRequested == requested) { in setRequested()
233 mRequested = requested; in setRequested()
/frameworks/support/buildSrc/src/main/groovy/android/support/doclava/
DDoclavaTask.groovy190 // If requested, generate the API files.
201 // If requested, generate the keep list.
206 // If requested, generate stubs.
/frameworks/base/packages/SystemUI/src/com/android/systemui/pip/phone/
DPipMenuActivityController.java489 private void setStartActivityRequested(boolean requested) { in setStartActivityRequested() argument
491 mStartActivityRequested = requested; in setStartActivityRequested()
492 mStartActivityRequestedTime = requested ? SystemClock.uptimeMillis() : 0; in setStartActivityRequested()
/frameworks/native/vulkan/doc/implementors_guide/
Dimplementors_guide.adoc60 …creating a swapchain, the platform will ask the driver to translate the requested format and image…
72 … for that format and usage. These will be combined with the usage flags requested by the swapchain…
85 …..)+. The WSI implementation will allocate the number of native buffers requested for the swapchai…
97 // Gralloc format and usage requested when the buffer was allocated.
111 .format = a VkFormat matching the format requested for the gralloc buffer
112 .extent = the 2D dimensions requested for the gralloc buffer
/frameworks/av/media/libnbaio/
DREADME.txt7 transferred frames is less than the requested number of frames.
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
DRecyclerViewFocusRecoveryTest.java741 RecyclerView.ViewHolder requested = mRecyclerView.findViewHolderForItemId(toFocusId.get()); in testDoNotOverrideAdapterRequestedFocus() local
743 assertFocus(requested, true); in testDoNotOverrideAdapterRequestedFocus()
784 RecyclerView.ViewHolder requested = mRecyclerView.findViewHolderForItemId(toFocusId.get()); in testDoNotOverrideLayoutManagerRequestedFocus() local
786 assertFocus(requested, true); in testDoNotOverrideLayoutManagerRequestedFocus()
/frameworks/av/media/libstagefright/
DFLACExtractor.cpp274 size_t requested = *bytes; in readCallback() local
275 ssize_t actual = mDataSource->readAt(mCurrentPos, buffer, requested); in readCallback()
284 assert(actual <= requested); in readCallback()
/frameworks/av/include/private/media/
DAudioTrackShared.h278 status_t obtainBuffer(Buffer* buffer, const struct timespec *requested = NULL,
399 status_t waitStreamEndDone(const struct timespec *requested);

12