Home
last modified time | relevance | path

Searched refs:allocation (Results 1 – 21 of 21) sorted by relevance

/cts/tests/camera/src/android/hardware/camera2/cts/rs/
DAllocationCache.java118 public synchronized void returnToCache(Allocation allocation) { in returnToCache() argument
119 checkNotNull("allocation", allocation); in returnToCache()
122 int usage = allocation.getUsage(); in returnToCache()
123 AllocationKey key = new AllocationKey(allocation.getType(), usage); in returnToCache()
126 if (value != null && value.contains(allocation)) { in returnToCache()
131 allocation.setOnBufferAvailableListener(null); in returnToCache()
134 allocation.setSurface(null); in returnToCache()
142 value.add(allocation); in returnToCache()
166 public synchronized void returnToCacheIfNotNull(Allocation allocation) { in returnToCacheIfNotNull() argument
167 if (allocation != null) { in returnToCacheIfNotNull()
[all …]
DScript.java225 void setInput(Allocation allocation) { in setInput() argument
227 checkNotNull("allocation", allocation); in setInput()
228 checkEquals("allocation info", AllocationInfo.newInstance(allocation), in setInput()
232 if (mInputAllocation != allocation) { in setInput()
236 mInputAllocation = allocation; in setInput()
249 void setOutput(Allocation allocation) { in setOutput() argument
251 checkNotNull("allocation", allocation); in setOutput()
252 checkEquals("allocation info", AllocationInfo.newInstance(allocation), in setOutput()
256 mOutputAllocation = allocation; in setOutput()
DBlockingInputAllocation.java60 public static BlockingInputAllocation wrap(Allocation allocation) { in wrap() argument
61 checkNotNull("allocation", allocation); in wrap()
62 checkBitFlags("usage", allocation.getUsage(), "USAGE_IO_INPUT", Allocation.USAGE_IO_INPUT); in wrap()
64 return new BlockingInputAllocation(allocation); in wrap()
179 private BlockingInputAllocation(Allocation allocation) { in BlockingInputAllocation() argument
180 mAllocation = allocation; in BlockingInputAllocation()
DAllocationInfo.java62 public static AllocationInfo newInstance(Allocation allocation) { in newInstance() argument
63 checkNotNull("allocation", allocation); in newInstance()
65 return new AllocationInfo(allocation.getElement(), in newInstance()
66 new Size(allocation.getType().getX(), allocation.getType().getY()), in newInstance()
67 allocation.getUsage()); in newInstance()
/cts/tests/tests/rscpp/librscpptest/
Dclear_object.rscript4 rs_allocation allocation;
8 rsClearObject( &allocation );
9 *out = ( NULL == allocation.p ? 1 : 0 );
Dinstance.rscript7 // Set our allocation based on the global input value.
Drs_jni_object.cpp107 sp<Allocation> allocation = Allocation::createTyped(mRS, mIn->getType()); in Java_android_cts_rscpp_RSObjectTest_testClearObjectAllocation() local
108 ms_clear->set_allocation(allocation); in Java_android_cts_rscpp_RSObjectTest_testClearObjectAllocation()
/cts/tests/tests/renderscript/src/android/renderscript/cts/
Dclear_object.rscript4 rs_allocation allocation;
8 rsClearObject( &allocation );
9 *out = ( NULL == allocation.p ? 1 : 0 );
DSetObjectTest.java33 Allocation allocation; field in SetObjectTest
46 allocation = Allocation.createTyped(mRS, type); in setUp()
62 allocation.destroy(); in tearDown()
118 mItem.allocation = allocation; in testSetObjectAllocation()
DIsObjectTest.java34 Allocation allocation; field in IsObjectTest
47 allocation = Allocation.createTyped(mRS, type); in setUp()
61 allocation.destroy(); in tearDown()
118 mItem.allocation = allocation; in testIsObjectAllocation()
Dset_object.rscript5 rs_allocation allocation;
11 rsSetObject(&dst,in->allocation);
12 *out = ( dst.p == in->allocation.p ? 1 : 0 );
Dis_object.rscript5 rs_allocation allocation;
10 *out = rsIsObject(in->allocation)==false ? 0 : 1;
DClearObjectTest.java104 Allocation allocation = Allocation.createTyped(mRS, mIn.getType()); in testclearObjectAllocation() local
105 ms_clear.set_allocation(allocation); in testclearObjectAllocation()
118 allocation.destroy(); in testclearObjectAllocation()
Dinstance.rscript7 // Set our allocation based on the global input value.
DAtomicTest.rscript54 // the folowing functions copy the global to an allocation
Dsingle_source_alloc.rscript26 // allocation and validate each cell. The value in a cell must be gStart +
70 // Store to an allocation based on the vector size and dimensionality being
Dsmall_structs.rscript28 // - modify_* kernels change the allocation of small structs
/cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/
Dlayered_filter_d1new_helper.rsh4 // Need to access global allocation here
6 // This allocation has three float values of red, green, blue
14 // This allocation contains four floats: red, green, blue, alpha
16 // This allocation contains four floats: red, green, blue, alpha
18 // This allocation contains the kernel stack info: only one float per cell
40 //Compute layer matte using global allocation
123 // Use global allocation for filter from back most layer to focus layer
178 // Filter target layer use global allocation using integral image
211 // Use global allocation to filter layer from the
Dlayered_filter_fast_d1new.rscript71 // This is an allocation to store kernel info: 1. offset, 2. radius_x, 3. radius_y
181 // Another version of MarkLayerMask kernel that directly passes input allocation to kernels
266 // Pass input allocation directly to kernel ComputeLayerMatteBehindFocalDepth
311 // Pass input allocation directly into kernel ComputeLayerMatteInFrontOfFocalDepth
434 // Directly pass allocation to kernel FilterLayerBehindFocalDepth
525 // Pass input allocation directly to kernel FilterLayerInFrontOfFocalDepth
631 // Passes allocation for g_sharp_meta from java code
703 // Pass allocation directly to kernel FinalizeFuzzyImageUsingSharpImage
/cts/tests/tests/view/surfacevalidator/src/android/view/cts/surfacevalidator/
DSurfacePixelValidator.java123 allocation -> mWorkerHandler.post(mConsumeRunnable)); in SurfacePixelValidator()
/cts/hostsidetests/sustainedperf/dhrystone/
DRationale256 variables, register allocation etc. occuring in other compilation
262 (e.g., final register allocation is performed after linkage). This