Home
last modified time | relevance | path

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

123456

/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/base/services/tests/servicestests/src/com/android/server/uri/
DUriGrantsManagerServiceTest.java129 final NeededUriGrants needed = mService.checkGrantUriPermissionFromIntent( in testNeeded_normal_sameUser() local
131 assertEquals(PKG_SOCIAL, needed.targetPkg); in testNeeded_normal_sameUser()
132 assertEquals(UID_PRIMARY_SOCIAL, needed.targetUid); in testNeeded_normal_sameUser()
133 assertEquals(FLAG_READ, needed.flags); in testNeeded_normal_sameUser()
134 assertEquals(asSet(expectedGrant), needed.uris); in testNeeded_normal_sameUser()
147 final NeededUriGrants needed = mService.checkGrantUriPermissionFromIntent( in testNeeded_normal_differentUser() local
149 assertEquals(PKG_SOCIAL, needed.targetPkg); in testNeeded_normal_differentUser()
150 assertEquals(UID_SECONDARY_SOCIAL, needed.targetUid); in testNeeded_normal_differentUser()
151 assertEquals(FLAG_READ, needed.flags); in testNeeded_normal_differentUser()
152 assertEquals(asSet(expectedGrant), needed.uris); in testNeeded_normal_differentUser()
[all …]
/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.cpp240 int needed = 1; in getNeededCount() local
245 needed = 2; in getNeededCount()
249 glGetIntegerv(GL_NUM_PROGRAM_BINARY_FORMATS, &needed); in getNeededCount()
259 needed = 2; in getNeededCount()
267 needed = 4; in getNeededCount()
271 glGetIntegerv(GL_NUM_COMPRESSED_TEXTURE_FORMATS, &needed); in getNeededCount()
275 glGetIntegerv(GL_NUM_SHADER_BINARY_FORMATS, &needed); in getNeededCount()
288 needed = 2; in getNeededCount()
293 needed = 3; in getNeededCount()
304 needed = 4; in getNeededCount()
[all …]
Dandroid_opengl_GLES31Ext.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 …]
/frameworks/av/media/module/foundation/
DMetaDataBase.cpp554 uint32_t needed = 0; in updateFromParcel() local
557 needed = sizeof(int32_t); in updateFromParcel()
560 needed = sizeof(int64_t); in updateFromParcel()
563 needed = sizeof(float); in updateFromParcel()
567 needed = sizeof(void*); in updateFromParcel()
570 needed = sizeof(Rect); in updateFromParcel()
574 needed = 0; in updateFromParcel()
578 if (src == nullptr || (needed != 0 && size != needed)) { in updateFromParcel()
588 ccKey, ccType, needed, size); in updateFromParcel()
DAndroid.bp45 // this is only needed for the vendor variant that removes libbinder, but vendor
181 // this is only needed for the vendor variant that removes libbinder, but vendor
/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/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/base/core/java/android/window/flags/
Daccessibility.aconfig7 …g controls whether the intersection check for non-magnifiable windows is needed when onWindowTrans…
34 …r the delaying of notification for recents window to-front transition is needed. In accessibilityC…
/frameworks/base/services/core/java/com/android/server/uri/
DUriGrantsManagerService.java615 String targetPkg, Intent intent, int mode, NeededUriGrants needed, int targetUserId, in checkGrantUriPermissionFromIntentUnlocked() argument
649 if (needed != null) { in checkGrantUriPermissionFromIntentUnlocked()
650 targetUid = needed.targetUid; in checkGrantUriPermissionFromIntentUnlocked()
669 if (needed == null) { in checkGrantUriPermissionFromIntentUnlocked()
670 needed = new NeededUriGrants(targetPkg, targetUid, mode); in checkGrantUriPermissionFromIntentUnlocked()
672 needed.uris.add(grantUri); in checkGrantUriPermissionFromIntentUnlocked()
687 if (needed == null) { in checkGrantUriPermissionFromIntentUnlocked()
688 needed = new NeededUriGrants(targetPkg, targetUid, mode); in checkGrantUriPermissionFromIntentUnlocked()
690 needed.uris.add(grantUri); in checkGrantUriPermissionFromIntentUnlocked()
696 callingUid, targetPkg, clipIntent, mode, needed, targetUserId, in checkGrantUriPermissionFromIntentUnlocked()
[all …]
DUriGrantsManagerInternal.java81 NeededUriGrants needed, UriPermissionOwner owner); in grantUriPermissionUncheckedFromIntent() argument
/frameworks/native/libs/arect/
DAndroid.bp45 // TODO(b/153609531): remove when no longer needed.
62 // TODO(b/153609531): remove when no longer needed.
/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/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/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/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/av/media/module/codecs/flac/dec/
DAndroid.bp54 "libaudioutils", // needed for 'float_from_i32'
/frameworks/base/libs/hwui/
DRenderNode.cpp604 int needed = snprintf(buffer.data(), buffer.size(), in format() local
606 if (needed < 0) { in format()
611 if (needed < buffer.size()) { in format()
612 buffer.resize(needed + 1); in format()
616 buffer.resize(needed + 100); in format()
/frameworks/opt/setupwizard/tools/docs/
DREADME1 This directory contains files needed to generate the documentations for setup wizard library.
/frameworks/base/cmds/app_process/
DAndroid.bp37 // but it will export a symbol that appears to override a symbol in a needed DSO.
39 // functions or type_info variables. Hence, a version script is needed even for
/frameworks/base/services/backup/java/com/android/server/backup/utils/
DTarBackupReader.java570 final int needed = 512 - (int) partial; in skipTarPadding() local
572 Slog.i(TAG, "Skipping tar padding: " + needed + " bytes"); in skipTarPadding()
574 byte[] buffer = new byte[needed]; in skipTarPadding()
575 if (readExactly(mInputStream, buffer, 0, needed) == needed) { in skipTarPadding()
576 mBytesReadListener.onBytesRead(needed); in skipTarPadding()
/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/base/core/proto/android/view/inputmethod/
Dinputmethodeditortrace.proto41 (this is needed because enums have to be 32 bits and there's no nice way to put 64bit
91 (this is needed because enums have to be 32 bits and there's no nice way to put 64bit
128 (this is needed because enums have to be 32 bits and there's no nice way to put 64bit

123456