Home
last modified time | relevance | path

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

1234

/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.cpp214 int needed = 1; in getNeededCount() local
219 needed = 2; in getNeededCount()
223 glGetIntegerv(GL_NUM_PROGRAM_BINARY_FORMATS, &needed); in getNeededCount()
233 needed = 2; in getNeededCount()
241 needed = 4; in getNeededCount()
245 glGetIntegerv(GL_NUM_COMPRESSED_TEXTURE_FORMATS, &needed); in getNeededCount()
249 glGetIntegerv(GL_NUM_SHADER_BINARY_FORMATS, &needed); in getNeededCount()
262 needed = 2; in getNeededCount()
267 needed = 3; in getNeededCount()
278 needed = 4; in getNeededCount()
[all …]
/frameworks/base/core/jni/
Dandroid_opengl_GLES10Ext.cpp239 int needed = 1; in getNeededCount() local
244 needed = 2; in getNeededCount()
248 glGetIntegerv(GL_NUM_PROGRAM_BINARY_FORMATS, &needed); in getNeededCount()
258 needed = 2; in getNeededCount()
266 needed = 4; in getNeededCount()
270 glGetIntegerv(GL_NUM_COMPRESSED_TEXTURE_FORMATS, &needed); in getNeededCount()
274 glGetIntegerv(GL_NUM_SHADER_BINARY_FORMATS, &needed); in getNeededCount()
287 needed = 2; in getNeededCount()
292 needed = 3; in getNeededCount()
303 needed = 4; in getNeededCount()
[all …]
Dandroid_opengl_GLES31Ext.cpp238 int needed = 1; in getNeededCount() local
243 needed = 2; in getNeededCount()
247 glGetIntegerv(GL_NUM_PROGRAM_BINARY_FORMATS, &needed); in getNeededCount()
257 needed = 2; in getNeededCount()
265 needed = 4; in getNeededCount()
269 glGetIntegerv(GL_NUM_COMPRESSED_TEXTURE_FORMATS, &needed); in getNeededCount()
273 glGetIntegerv(GL_NUM_SHADER_BINARY_FORMATS, &needed); in getNeededCount()
286 needed = 2; in getNeededCount()
291 needed = 3; in getNeededCount()
302 needed = 4; in getNeededCount()
[all …]
Dandroid_opengl_GLES32.cpp237 int needed = 1; in getNeededCount() local
242 needed = 2; in getNeededCount()
246 glGetIntegerv(GL_NUM_PROGRAM_BINARY_FORMATS, &needed); in getNeededCount()
256 needed = 2; in getNeededCount()
264 needed = 4; in getNeededCount()
268 glGetIntegerv(GL_NUM_COMPRESSED_TEXTURE_FORMATS, &needed); in getNeededCount()
272 glGetIntegerv(GL_NUM_SHADER_BINARY_FORMATS, &needed); in getNeededCount()
285 needed = 2; in getNeededCount()
290 needed = 3; in getNeededCount()
301 needed = 4; in getNeededCount()
[all …]
/frameworks/base/services/core/java/com/android/server/uri/
DUriGrantsManagerService.java536 String targetPkg, Intent intent, int mode, NeededUriGrants needed, int targetUserId) { in checkGrantUriPermissionFromIntent() argument
562 if (needed != null) { in checkGrantUriPermissionFromIntent()
563 targetUid = needed.targetUid; in checkGrantUriPermissionFromIntent()
580 if (needed == null) { in checkGrantUriPermissionFromIntent()
581 needed = new NeededUriGrants(targetPkg, targetUid, mode); in checkGrantUriPermissionFromIntent()
583 needed.add(grantUri); in checkGrantUriPermissionFromIntent()
594 if (needed == null) { in checkGrantUriPermissionFromIntent()
595 needed = new NeededUriGrants(targetPkg, targetUid, mode); in checkGrantUriPermissionFromIntent()
597 needed.add(grantUri); in checkGrantUriPermissionFromIntent()
603 callingUid, targetPkg, clipIntent, mode, needed, targetUserId); in checkGrantUriPermissionFromIntent()
[all …]
DUriGrantsManagerInternal.java45 String targetPkg, Intent intent, int mode, NeededUriGrants needed, int targetUserId); in checkGrantUriPermissionFromIntent() argument
55 NeededUriGrants needed, UriPermissionOwner owner); in grantUriPermissionUncheckedFromIntent() argument
/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/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/
DFrameworkActionBar.java169 boolean needed = mActionBar.isOverflowPopupNeeded(); in isOverflowPopupNeeded()
170 if (!needed) { in isOverflowPopupNeeded()
184 needed = !menus.get(0).isActionViewExpanded(); in isOverflowPopupNeeded()
186 needed = count > 0; in isOverflowPopupNeeded()
189 return needed; in isOverflowPopupNeeded()
/frameworks/base/libs/hwui/
DRenderNode.cpp479 int needed = snprintf(buffer.data(), buffer.size(), in format() local
481 if (needed < 0) { in format()
486 if (needed < buffer.size()) { in format()
487 buffer.resize(needed + 1); in format()
491 buffer.resize(needed + 100); in format()
/frameworks/compile/libbcc/bcinfo/Wrap/
Dbitcode_wrapperer.cpp141 size_t needed = buffer_.size() - buffer_size_; in FillBuffer() local
144 int actually_read = infile_->Read(&buffer_[buffer_size_], needed); in FillBuffer()
150 needed -= actually_read; in FillBuffer()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/objectivec/
DGPBDictionary.m504 // Maps can't really have Groups as the value type, but this case is needed
522 // be raised as needed for new Xcodes.
524 // This is only needed on a "shallow" analyze; on a "deep" analyze, the
599 //% // Cast is needed so the compiler knows what class we are invoking initWith##VNAME##s:forKeys:…
609 //% // Cast is needed so the compiler knows what class we are invoking initWith##VNAME##s:forKeys:…
617 //% // Cast is needed so the compiler knows what class we are invoking initWithDictionary:
699 //% // Cast is needed so the compiler knows what class we are invoking initWithValues:forKeys:coun…
711 //% // Cast is needed so the compiler knows what class we are invoking initWithValues:forKeys:coun…
720 //% // Cast is needed so the compiler knows what class we are invoking initWithValues:forKeys:coun…
977 //% // Cast is needed so the compiler knows what class we are invoking initWith##VNAME##s:forKeys:…
[all …]
/frameworks/compile/mclinker/tools/mcld/
DOptions.td278 def AsNeeded : Flag<["--"], "as-needed">,
283 def NoAsNeeded : Flag<["--"], "no-as-needed">,
285 HelpText<"Turn off the effect of the --as-needed">;
287 def AddNeeded : Flag<["--"], "add-needed">,
291 def NoAddNeeded : Flag<["--"], "no-add-needed">,
295 def CopyDTNeeded : Flag<["--"], "copy-dt-needed-entries">,
299 def NoCopyDTNeeded : Flag<["--"], "no-copy-dt-needed-entries">,
301 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/services/backup/java/com/android/server/backup/utils/
DTarBackupReader.java544 final int needed = 512 - (int) partial; in skipTarPadding() local
546 Slog.i(TAG, "Skipping tar padding: " + needed + " bytes"); in skipTarPadding()
548 byte[] buffer = new byte[needed]; in skipTarPadding()
549 if (readExactly(mInputStream, buffer, 0, needed) == needed) { in skipTarPadding()
550 mBytesReadListener.onBytesRead(needed); in skipTarPadding()
/frameworks/opt/setupwizard/tools/docs/
DREADME1 This directory contains files needed to generate the documentations for setup wizard library.
/frameworks/av/media/audioserver/
Daudioserver.rc4 # media gid needed for /dev/fm (radio) and for /data/misc/media (tee)
/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/
Dimage_and_kernel.rsh20 // Auxiliary information that is needed to extract a kernel matrix from a buffer
/frameworks/hardware/interfaces/cameraservice/vts/functional/
DAndroid.bp37 // (http://b/123320603). This is needed for libmediandk's llndk only api.
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/objectivec/google/protobuf/
DEmpty.pbobjc.m5 // imports needed when using CocoaPods.
DSourceContext.pbobjc.m5 // imports needed when using CocoaPods.
DFieldMask.pbobjc.m5 // imports needed when using CocoaPods.
/frameworks/native/services/surfaceflinger/layerproto/
Dlayerstrace.proto30 (this is needed because enums have to be 32 bits and there's no nice way to put 64bit

1234