Home
last modified time | relevance | path

Searched refs:needed (Results 1 – 25 of 193) sorted by relevance

12345678

/frameworks/native/services/surfaceflinger/EventLog/
DEventLog.cpp71 const size_t needed = 1 + sizeof(count); in startList() local
72 if (mPos + needed > STORAGE_MAX_SIZE) { in startList()
78 mPos += needed; in startList()
83 const size_t needed = 1; in endList() local
84 if (mPos + needed > STORAGE_MAX_SIZE) { in endList()
89 mPos += needed; in endList()
94 const size_t needed = 1 + sizeof(value); in writeInt32() local
95 if (mPos + needed > STORAGE_MAX_SIZE) { in writeInt32()
101 mPos += needed; in writeInt32()
106 const size_t needed = 1 + sizeof(value); in writeInt64() local
[all …]
/frameworks/base/tests/AccessoryDisplay/common/src/com/android/accessorydisplay/common/
DBufferPool.java38 public ByteBuffer acquire(int needed) { in acquire() argument
43 return grow(mBuffers[mAvailable], needed); in acquire()
48 return ByteBuffer.allocate(chooseCapacity(mInitialBufferSize, needed)); in acquire()
67 public ByteBuffer grow(ByteBuffer buffer, int needed) { in grow() argument
69 if (capacity < needed) { in grow()
71 capacity = chooseCapacity(capacity, needed); in grow()
79 private int chooseCapacity(int capacity, int needed) { in chooseCapacity() argument
80 while (capacity < needed) { in chooseCapacity()
84 if (needed > mMaxBufferSize) { in chooseCapacity()
85 throw new IllegalArgumentException("Requested size " + needed in chooseCapacity()
/frameworks/native/opengl/tools/glgen/stubs/gles11/
Dcommon.cpp248 int needed = 1; in getNeededCount() local
254 needed = 2; in getNeededCount()
262 needed = 4; in getNeededCount()
266 glGetIntegerv(GL_NUM_COMPRESSED_TEXTURE_FORMATS, &needed); in getNeededCount()
270 glGetIntegerv(GL_NUM_SHADER_BINARY_FORMATS, &needed); in getNeededCount()
283 needed = 2; in getNeededCount()
288 needed = 3; in getNeededCount()
299 needed = 4; in getNeededCount()
305 needed = 16; in getNeededCount()
309 glGetIntegerv(GL_NUM_COMPRESSED_TEXTURE_FORMATS, &needed); in getNeededCount()
[all …]
/frameworks/base/core/jni/
Dandroid_opengl_GLES10Ext.cpp274 int needed = 1; in getNeededCount() local
280 needed = 2; in getNeededCount()
288 needed = 4; in getNeededCount()
292 glGetIntegerv(GL_NUM_COMPRESSED_TEXTURE_FORMATS, &needed); in getNeededCount()
296 glGetIntegerv(GL_NUM_SHADER_BINARY_FORMATS, &needed); in getNeededCount()
309 needed = 2; in getNeededCount()
314 needed = 3; in getNeededCount()
325 needed = 4; in getNeededCount()
331 needed = 16; in getNeededCount()
335 glGetIntegerv(GL_NUM_COMPRESSED_TEXTURE_FORMATS, &needed); in getNeededCount()
[all …]
Dandroid_opengl_GLES31Ext.cpp273 int needed = 1; in getNeededCount() local
279 needed = 2; in getNeededCount()
287 needed = 4; in getNeededCount()
291 glGetIntegerv(GL_NUM_COMPRESSED_TEXTURE_FORMATS, &needed); in getNeededCount()
295 glGetIntegerv(GL_NUM_SHADER_BINARY_FORMATS, &needed); in getNeededCount()
308 needed = 2; in getNeededCount()
313 needed = 3; in getNeededCount()
324 needed = 4; in getNeededCount()
330 needed = 16; in getNeededCount()
334 glGetIntegerv(GL_NUM_COMPRESSED_TEXTURE_FORMATS, &needed); in getNeededCount()
[all …]
Dandroid_opengl_GLES11.cpp274 int needed = 1; in getNeededCount() local
280 needed = 2; in getNeededCount()
288 needed = 4; in getNeededCount()
292 glGetIntegerv(GL_NUM_COMPRESSED_TEXTURE_FORMATS, &needed); in getNeededCount()
296 glGetIntegerv(GL_NUM_SHADER_BINARY_FORMATS, &needed); in getNeededCount()
309 needed = 2; in getNeededCount()
314 needed = 3; in getNeededCount()
325 needed = 4; in getNeededCount()
331 needed = 16; in getNeededCount()
335 glGetIntegerv(GL_NUM_COMPRESSED_TEXTURE_FORMATS, &needed); in getNeededCount()
[all …]
Dandroid_opengl_GLES10.cpp274 int needed = 1; in getNeededCount() local
280 needed = 2; in getNeededCount()
288 needed = 4; in getNeededCount()
292 glGetIntegerv(GL_NUM_COMPRESSED_TEXTURE_FORMATS, &needed); in getNeededCount()
296 glGetIntegerv(GL_NUM_SHADER_BINARY_FORMATS, &needed); in getNeededCount()
309 needed = 2; in getNeededCount()
314 needed = 3; in getNeededCount()
325 needed = 4; in getNeededCount()
331 needed = 16; in getNeededCount()
335 glGetIntegerv(GL_NUM_COMPRESSED_TEXTURE_FORMATS, &needed); in getNeededCount()
[all …]
Dandroid_opengl_GLES31.cpp272 int needed = 1; in getNeededCount() local
278 needed = 2; in getNeededCount()
286 needed = 4; in getNeededCount()
290 glGetIntegerv(GL_NUM_COMPRESSED_TEXTURE_FORMATS, &needed); in getNeededCount()
294 glGetIntegerv(GL_NUM_SHADER_BINARY_FORMATS, &needed); in getNeededCount()
307 needed = 2; in getNeededCount()
312 needed = 3; in getNeededCount()
323 needed = 4; in getNeededCount()
329 needed = 16; in getNeededCount()
333 glGetIntegerv(GL_NUM_COMPRESSED_TEXTURE_FORMATS, &needed); in getNeededCount()
[all …]
Dandroid_opengl_GLES11Ext.cpp274 int needed = 1; in getNeededCount() local
280 needed = 2; in getNeededCount()
288 needed = 4; in getNeededCount()
292 glGetIntegerv(GL_NUM_COMPRESSED_TEXTURE_FORMATS, &needed); in getNeededCount()
296 glGetIntegerv(GL_NUM_SHADER_BINARY_FORMATS, &needed); in getNeededCount()
309 needed = 2; in getNeededCount()
314 needed = 3; in getNeededCount()
325 needed = 4; in getNeededCount()
331 needed = 16; in getNeededCount()
335 glGetIntegerv(GL_NUM_COMPRESSED_TEXTURE_FORMATS, &needed); in getNeededCount()
[all …]
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/
DFrameworkActionBar.java171 boolean needed = mActionBar.isOverflowPopupNeeded(); in isOverflowPopupNeeded()
172 if (!needed) { in isOverflowPopupNeeded()
185 needed = !menus.get(0).isActionViewExpanded(); in isOverflowPopupNeeded()
187 needed = count > 0; in isOverflowPopupNeeded()
190 return needed; in isOverflowPopupNeeded()
/frameworks/compile/mclinker/include/mcld/LD/
DDiagCommonKinds.inc86 "Target does not support --as-needed",
87 "Target does not support --as-needed")
90 "Target doest not support --add-needed",
91 "Target does not support --add-needed")
98 "can not enable --as-needed on the target which does not support shared "
100 "can not enable --as-needed on the target which does not support shared "
104 "cannot mix --static with --as-needed",
105 "cannot mix --static with --as-needed")
/frameworks/compile/libbcc/bcinfo/Wrap/
Dbitcode_wrapperer.cpp140 size_t needed = buffer_.size() - buffer_size_; in FillBuffer() local
143 int actually_read = infile_->Read(&buffer_[buffer_size_], needed); in FillBuffer()
149 needed -= actually_read; in FillBuffer()
/frameworks/base/tools/aidl/
Dgenerate_java_rpc.cpp419 bool needed; member in ListenerClass
427 needed(false) in ListenerClass()
449 bool needed; member in EndpointBaseClass
457 needed(false) in EndpointBaseClass()
502 bool needed; member in ResultDispatcherClass
516 needed(false) in ResultDispatcherClass()
718 resultsDispatcherClass->needed = true; in generate_proxy_method()
846 listenerClass->needed = true; in generate_event_method()
991 if (results->needed) { in generate_rpc_interface_class()
994 if (listener->needed) { in generate_rpc_interface_class()
/frameworks/compile/mclinker/tools/mcld/
DOptions.td282 def AsNeeded : Flag<["--"], "as-needed">,
287 def NoAsNeeded : Flag<["--"], "no-as-needed">,
289 HelpText<"Turn off the effect of the --as-needed">;
291 def AddNeeded : Flag<["--"], "add-needed">,
295 def NoAddNeeded : Flag<["--"], "no-add-needed">,
299 def CopyDTNeeded : Flag<["--"], "copy-dt-needed-entries">,
303 def NoCopyDTNeeded : Flag<["--"], "no-copy-dt-needed-entries">,
305 HelpText<"Turn off the effect of the --copy-dt-needed-entries">;
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/tests/res/
D.README1 The res directory is needed for Eclipse to correctly build the project, but it
/frameworks/native/opengl/specs/
DEGL_ANDROID_presentation_time.txt80 an absolute time is needed such as displaying the color buffer on a
82 clock. For situations in which an absolute time is not needed such as
110 presentation time when an absolute time is needed be queried on Android?
/frameworks/base/docs/html/guide/topics/manifest/
Duses-permission-element.jd69 Setting this attribute is useful if the permission your app requires is no longer needed beginning
76 permission is needed only up to API level 18 with a declaration such as this:
Dsupports-gl-texture-element.jd66 The set of format strings may grow over time, as needed, and since the values
67 are strings, applications are free to declare other formats as needed.</p>
/frameworks/base/docs/html/training/scheduling/
Dindex.jd55 Learn how to keep the screen or CPU awake as needed, while minimizing the impact
/frameworks/base/docs/html/google/play/licensing/
Doverview.jd39 application as needed.</p>
132 custom code for defining licensing policy and managing access as needed by your application. The key
141 response and apply other constraints, if needed. The implementation also lets
148 response. Your implementation can manage access in any way needed, including
/frameworks/base/docs/html/preview/features/
Druntime-permissions.jd139 For example, if the permission is just needed for an added feature, the app
158 needed permissions before performing any restricted actions.
340 permissions model. This means that in addition to declaring your needed
368 to indicate that a permission is only needed on the M Developer Preview. If
383 the app, and the app requests permissions as they are needed.
394 needed. When your app requests a permission, the system shows a dialog to the
424 <h4 id="check-for-permission">Check if the app has the needed permission</h4>
606 understanding why the permission is needed.
823 For example, quite often your app can get needed functionality by using an
885 can explain what permissions are needed. For example, the photography app's
/frameworks/base/docs/html/tools/performance/hierarchy-viewer/
Dsetup.jd39 no further configuration is needed.</li>
/frameworks/base/docs/html/training/improving-layouts/
Dindex.jd59 make the included layout visible only when it's needed, sometime after the activity is running.
/frameworks/base/docs/html/about/versions/
Dandroid-2.3-highlights.jd82 later, if needed, from the original set of suggestions.</p>
102 free-selection mode &mdash; the user can adjust the selection area as needed by
107 modes, no use of a trackball is needed.</p>
341 the user as needed. </p>
376 open the camera needed. For example, a video chat application might want to access a
/frameworks/base/docs/html/guide/topics/processes/
Dprocess-lifecycle.jd6 be run, and will remain running until it is no longer needed <em>and</em>
29 process no longer needed (unless other application components are active in

12345678