Home
last modified time | relevance | path

Searched refs:states (Results 1 – 25 of 212) sorted by relevance

123456789

/frameworks/native/services/surfaceflinger/tests/unittests/
DLayerHierarchyTest.h123 transactions.back().states.push_back({}); in reparentLayerTransaction()
124 transactions.back().states.front().parentId = newParentId; in reparentLayerTransaction()
125 transactions.back().states.front().state.what = layer_state_t::eReparent; in reparentLayerTransaction()
126 transactions.back().states.front().relativeParentId = UNASSIGNED_LAYER_ID; in reparentLayerTransaction()
127 transactions.back().states.front().layerId = id; in reparentLayerTransaction()
138 transactions.back().states.push_back({}); in relativeLayerTransaction()
139 transactions.back().states.front().relativeParentId = relativeParentId; in relativeLayerTransaction()
140 transactions.back().states.front().state.what = layer_state_t::eRelativeLayerChanged; in relativeLayerTransaction()
141 transactions.back().states.front().layerId = id; in relativeLayerTransaction()
152 transactions.back().states.push_back({}); in removeRelativeZ()
[all …]
DTransactionProtoParserTest.cpp47 t1.states.reserve(layerCount); in TEST()
55 t1.states.emplace_back(s); in TEST()
96 ASSERT_EQ(t1.states.size(), t2.states.size()); in TEST()
97 ASSERT_EQ(t1.states[0].state.x, t2.states[0].state.x); in TEST()
98 ASSERT_EQ(t1.states[0].state.matrix.dsdx, t2.states[0].state.matrix.dsdx); in TEST()
99 ASSERT_EQ(t1.states[1].layerId, t2.states[1].layerId); in TEST()
100 ASSERT_EQ(t1.states[1].parentId, t2.states[1].parentId); in TEST()
/frameworks/av/services/camera/libcameraservice/device3/
DCamera3OutputUtils.cpp29 #define SET_ERR(fmt, ...) states.setErrIntf.setErrorState( \
65 CaptureOutputStates& states, in fixupMonochromeTags() argument
69 if (!states.needFixupMonoChrome) { in fixupMonochromeTags()
212 void insertResultLocked(CaptureOutputStates& states, CaptureResult *result, uint32_t frameNumber) { in insertResultLocked() argument
217 set_camera_metadata_vendor_id(meta, states.vendorTagId); in insertResultLocked()
236 set_camera_metadata_vendor_id(pmeta, states.vendorTagId); in insertResultLocked()
243 states.resultQueue.insert(states.resultQueue.end(), CaptureResult(*result)); in insertResultLocked()
250 states.resultSignal.notify_one(); in insertResultLocked()
254 void sendPartialCaptureResult(CaptureOutputStates& states, in sendPartialCaptureResult() argument
258 std::lock_guard<std::mutex> l(states.outputLock); in sendPartialCaptureResult()
[all …]
DCamera3OutputUtilsTemplated.h153 StatesType& states, in processOneCaptureResultLockedT() argument
156 std::unique_ptr<FmqType>& fmq = states.fmq; in processOneCaptureResultLockedT()
157 BufferRecordsInterface& bufferRecords = states.bufferRecordsIntf; in processOneCaptureResultLockedT()
204 sp<Camera3StreamInterface> stream = states.outputStreams.get(bSrc.streamId); in processOneCaptureResultLockedT()
214 if (states.useHalBufManager || in processOneCaptureResultLockedT()
216 contains(states.halBufManagedStreamIds, bSrc.streamId))) { in processOneCaptureResultLockedT()
265 if (states.inputStream->getId() != result.inputBuffer.streamId) { in processOneCaptureResultLockedT()
270 inputBuffer.stream = states.inputStream->asHalStream(); in processOneCaptureResultLockedT()
297 processCaptureResult(states, &r); in processOneCaptureResultLockedT()
301 void returnStreamBuffersT(ReturnBufferStates& states, in returnStreamBuffersT() argument
[all …]
/frameworks/base/services/core/java/com/android/server/power/stats/
DMultiStateStats.java76 public static int findTrackedStateByName(MultiStateStats.States[] states, String name) { in findTrackedStateByName() argument
77 for (int i = 0; i < states.length; i++) { in findTrackedStateByName()
78 if (states[i].getName().equals(name)) { in findTrackedStateByName()
89 public static void forEachTrackedStateCombination(States[] states, in forEachTrackedStateCombination() argument
91 forEachTrackedStateCombination(consumer, states, new int[states.length], 0); in forEachTrackedStateCombination()
104 States[] states, int[] statesValues, int stateIndex) { in forEachTrackedStateCombination() argument
106 if (!states[stateIndex].mTracked) { in forEachTrackedStateCombination()
107 forEachTrackedStateCombination(consumer, states, statesValues, stateIndex + 1); in forEachTrackedStateCombination()
110 for (int i = 0; i < states[stateIndex].mLabels.length; i++) { in forEachTrackedStateCombination()
112 forEachTrackedStateCombination(consumer, states, statesValues, stateIndex + 1); in forEachTrackedStateCombination()
[all …]
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/
DCpuPowerStatsProcessorTest.java98 states(POWER_STATE_BATTERY, SCREEN_STATE_ON), in powerProfileModel()
105 states(POWER_STATE_OTHER, SCREEN_STATE_ON), in powerProfileModel()
112 states(POWER_STATE_OTHER, SCREEN_STATE_OTHER), in powerProfileModel()
119 states(POWER_STATE_BATTERY, SCREEN_STATE_ON, PROCESS_STATE_FOREGROUND), in powerProfileModel()
122 states(POWER_STATE_BATTERY, SCREEN_STATE_ON, PROCESS_STATE_FOREGROUND), in powerProfileModel()
125 states(POWER_STATE_BATTERY, SCREEN_STATE_ON, PROCESS_STATE_BACKGROUND), in powerProfileModel()
128 states(POWER_STATE_OTHER, SCREEN_STATE_ON, PROCESS_STATE_CACHED), in powerProfileModel()
140 states(POWER_STATE_BATTERY, SCREEN_STATE_ON), in energyConsumerModel()
148 states(POWER_STATE_OTHER, SCREEN_STATE_ON), in energyConsumerModel()
156 states(POWER_STATE_OTHER, SCREEN_STATE_OTHER), in energyConsumerModel()
[all …]
DBinaryStatePowerStatsProcessorTest.java71 return (item.states & TEST_STATE_FLAG) != 0 ? STATE_ON : STATE_OFF; in getBinaryState()
103 stats.getDeviceStats(deviceStats, states(POWER_STATE_OTHER, SCREEN_STATE_ON)); in powerProfileModel()
107 stats.getDeviceStats(deviceStats, states(POWER_STATE_OTHER, SCREEN_STATE_OTHER)); in powerProfileModel()
117 states(POWER_STATE_OTHER, SCREEN_STATE_ON, PROCESS_STATE_FOREGROUND)); in powerProfileModel()
122 states(POWER_STATE_OTHER, SCREEN_STATE_OTHER, PROCESS_STATE_BACKGROUND)); in powerProfileModel()
127 states(POWER_STATE_OTHER, SCREEN_STATE_OTHER, PROCESS_STATE_FOREGROUND_SERVICE)); in powerProfileModel()
136 states(POWER_STATE_OTHER, SCREEN_STATE_OTHER, PROCESS_STATE_CACHED)); in powerProfileModel()
141 states(POWER_STATE_OTHER, SCREEN_STATE_ON, PROCESS_STATE_CACHED)); in powerProfileModel()
192 stats.getDeviceStats(deviceStats, states(POWER_STATE_OTHER, SCREEN_STATE_ON)); in energyConsumerModel()
196 stats.getDeviceStats(deviceStats, states(POWER_STATE_OTHER, SCREEN_STATE_OTHER)); in energyConsumerModel()
[all …]
DMultiStateStatsTest.java118 MultiStateStats.States[] states = new MultiStateStats.States[10]; in tooManyStates() local
119 for (int i = 0; i < states.length; i++) { in tooManyStates()
120 states[i] = new MultiStateStats.States("foo", true, labels); in tooManyStates()
123 () -> new MultiStateStats.Factory(DIMENSION_COUNT, states)); in tooManyStates()
216 public FactorySubject haveDifferentSerialStates(State... states) { in haveDifferentSerialStates() argument
217 int[] serialStates = getSerialStates(states); in haveDifferentSerialStates()
220 .hasLength(states.length); in haveDifferentSerialStates()
224 public FactorySubject haveSameSerialStates(State... states) { in haveSameSerialStates() argument
225 int[] serialStates = getSerialStates(states); in haveSameSerialStates()
232 private int[] getSerialStates(State[] states) { in getSerialStates() argument
[all …]
DBluetoothPowerStatsProcessorTest.java219 aggregatedStats.getDeviceStats(deviceStats, states(POWER_STATE_OTHER, SCREEN_STATE_ON)); in powerProfileModel_mostlyDataTransfer()
223 aggregatedStats.getDeviceStats(deviceStats, states(POWER_STATE_OTHER, SCREEN_STATE_OTHER)); in powerProfileModel_mostlyDataTransfer()
234 states(POWER_STATE_OTHER, SCREEN_STATE_ON, PROCESS_STATE_FOREGROUND)); in powerProfileModel_mostlyDataTransfer()
239 states(POWER_STATE_OTHER, SCREEN_STATE_OTHER, PROCESS_STATE_BACKGROUND)); in powerProfileModel_mostlyDataTransfer()
244 states(POWER_STATE_OTHER, SCREEN_STATE_OTHER, PROCESS_STATE_FOREGROUND_SERVICE)); in powerProfileModel_mostlyDataTransfer()
254 states(POWER_STATE_OTHER, SCREEN_STATE_ON, PROCESS_STATE_CACHED)); in powerProfileModel_mostlyDataTransfer()
259 states(POWER_STATE_OTHER, SCREEN_STATE_OTHER, PROCESS_STATE_CACHED)); in powerProfileModel_mostlyDataTransfer()
318 aggregatedStats.getDeviceStats(deviceStats, states(POWER_STATE_OTHER, SCREEN_STATE_ON)); in powerProfileModel_mostlyScan()
322 aggregatedStats.getDeviceStats(deviceStats, states(POWER_STATE_OTHER, SCREEN_STATE_OTHER)); in powerProfileModel_mostlyScan()
333 states(POWER_STATE_OTHER, SCREEN_STATE_ON, PROCESS_STATE_FOREGROUND)); in powerProfileModel_mostlyScan()
[all …]
DWifiPowerStatsProcessorTest.java255 aggregatedStats.getDeviceStats(deviceStats, states(POWER_STATE_OTHER, SCREEN_STATE_ON)); in powerProfileModel_powerController()
259 aggregatedStats.getDeviceStats(deviceStats, states(POWER_STATE_OTHER, SCREEN_STATE_OTHER)); in powerProfileModel_powerController()
271 states(POWER_STATE_OTHER, SCREEN_STATE_ON, PROCESS_STATE_FOREGROUND)); in powerProfileModel_powerController()
276 states(POWER_STATE_OTHER, SCREEN_STATE_OTHER, PROCESS_STATE_BACKGROUND)); in powerProfileModel_powerController()
281 states(POWER_STATE_OTHER, SCREEN_STATE_OTHER, PROCESS_STATE_FOREGROUND_SERVICE)); in powerProfileModel_powerController()
292 states(POWER_STATE_OTHER, SCREEN_STATE_ON, PROCESS_STATE_CACHED)); in powerProfileModel_powerController()
297 states(POWER_STATE_OTHER, SCREEN_STATE_OTHER, PROCESS_STATE_CACHED)); in powerProfileModel_powerController()
368 aggregatedStats.getDeviceStats(deviceStats, states(POWER_STATE_OTHER, SCREEN_STATE_ON)); in consumedEnergyModel_powerController()
372 aggregatedStats.getDeviceStats(deviceStats, states(POWER_STATE_OTHER, SCREEN_STATE_OTHER)); in consumedEnergyModel_powerController()
384 states(POWER_STATE_OTHER, SCREEN_STATE_ON, PROCESS_STATE_FOREGROUND)); in consumedEnergyModel_powerController()
[all …]
/frameworks/native/libs/battery/
DMultiStateCounter.h54 State* states; variable
132 states = new State[stateCount]; in MultiStateCounter()
134 states[i].timeInStateSinceUpdate = 0; in MultiStateCounter()
135 states[i].counter = emptyValue; in MultiStateCounter()
141 delete[] states; in ~MultiStateCounter()
180 states[currentState].timeInStateSinceUpdate += timestamp - lastStateChangeTimestamp; in setState()
193 states[i].timeInStateSinceUpdate = 0; in setState()
210 states[i].timeInStateSinceUpdate = source.states[i].timeInStateSinceUpdate; in copyStatesFrom()
211 states[i].counter = emptyValue; in copyStatesFrom()
219 states[state].counter = value; in setValue()
[all …]
/frameworks/ex/camera2/public/src/com/android/ex/camera2/utils/
DStateWaiter.java120 public int waitForAnyOfStates(Collection<Integer> states, final long timeoutMs) { in waitForAnyOfStates() argument
121 checkStateCollectionInRange(states); in waitForAnyOfStates()
132 appendStateNames(s, states); in waitForAnyOfStates()
143 if (states.contains(nextState)) { in waitForAnyOfStates()
158 if (!states.contains(nextState)) { in waitForAnyOfStates()
162 appendStateNames(s, states); in waitForAnyOfStates()
180 public void appendStateNames(StringBuilder s, Collection<Integer> states) { in appendStateNames() argument
181 checkStateCollectionInRange(states); in appendStateNames()
184 for (Integer state : states) { in appendStateNames()
212 private Collection<Integer> checkStateCollectionInRange(Collection<Integer> states) { in checkStateCollectionInRange() argument
[all …]
/frameworks/av/services/camera/libcameraservice/device3/aidl/
DAidlCamera3OutputUtils.cpp29 #define SET_ERR(fmt, ...) states.setErrIntf.setErrorState( \
57 AidlCaptureOutputStates& states, in processOneCaptureResultLocked() argument
65 aidl::android::hardware::camera::device::BufferStatus, int8_t>(states, result, in processOneCaptureResultLocked()
69 void notify(CaptureOutputStates& states, in notify() argument
85 states.outputStreams.get(msg.get<Tag::error>().errorStreamId); in notify()
119 notify(states, &m); in notify()
131 void requestStreamBuffers(RequestBufferStates& states, in requestStreamBuffers() argument
145 std::lock_guard<std::mutex> lock(states.reqBufferLock); in requestStreamBuffers()
158 if (bufReqs.size() > states.outputStreams.size()) { in requestStreamBuffers()
160 __FUNCTION__, bufReqs.size(), states.outputStreams.size()); in requestStreamBuffers()
[all …]
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/
DCameraStateHolder.java121 public boolean waitForStates(final int states) { in waitForStates() argument
122 Log.v(TAG, "waitForStates - states = " + Integer.toBinaryString(states)); in waitForStates()
126 return (states | getState()) == states; in waitForStates()
139 public boolean waitToAvoidStates(final int states) {
140 Log.v(TAG, "waitToAvoidStates - states = " + Integer.toBinaryString(states));
144 return (states & getState()) == 0;
/frameworks/native/libs/binder/include_processinfo/processinfo/
DProcessInfoService.h38 status_t getProcessStatesImpl(size_t length, /*in*/ int32_t* pids, /*out*/ int32_t* states);
40 /*out*/ int32_t* states, /*out*/ int32_t *scores);
56 /*out*/ int32_t* states) { in getProcessStatesFromPids() argument
58 /*out*/ states); in getProcessStatesFromPids()
72 /*out*/ int32_t* states, /*out*/ int32_t *scores) { in getProcessStatesScoresFromPids() argument
74 length, /*in*/ pids, /*out*/ states, /*out*/ scores); in getProcessStatesScoresFromPids()
/frameworks/native/libs/binder/
DIProcessInfoService.cpp32 /*out*/ int32_t* states) in getProcessStatesFromPids() argument
46 if (replyLen > 0 && (err = reply.read(states, length * sizeof(*states))) != NO_ERROR) { in getProcessStatesFromPids()
53 /*in*/ int32_t* pids, /*out*/ int32_t* states, /*out*/ int32_t* scores) in getProcessStatesAndOomScoresFromPids() argument
72 states, length * sizeof(*states))) != NO_ERROR) { in getProcessStatesAndOomScoresFromPids()
/frameworks/base/libs/androidfw/
DBackupHelpers.cpp986 FileState states[4]; in backup_helper_test_four() local
990 states[0].modTime_sec = 0xfedcba98; in backup_helper_test_four()
991 states[0].modTime_nsec = 0xdeadbeef; in backup_helper_test_four()
992 states[0].mode = 0777; // decimal 511, hex 0x000001ff in backup_helper_test_four()
993 states[0].size = 0xababbcbc; in backup_helper_test_four()
994 states[0].crc32 = 0x12345678; in backup_helper_test_four()
995 states[0].nameLen = -12; in backup_helper_test_four()
996 r.s = states[0]; in backup_helper_test_four()
1000 states[1].modTime_sec = 0x93400031; in backup_helper_test_four()
1001 states[1].modTime_nsec = 0xdeadbeef; in backup_helper_test_four()
[all …]
/frameworks/native/services/surfaceflinger/
DTransactionState.h63 states(std::move(composerStates)), in TransactionState()
82 for (const auto& state : states) { in traverseStatesWithBuffers()
91 for (auto state = states.begin(); state != states.end();) { in traverseStatesWithBuffersWhileTrue()
96 state = states.erase(state); in traverseStatesWithBuffersWhileTrue()
110 for (const auto& state : states) { in isFrameActive()
135 std::vector<ResolvedComposerState> states; member
/frameworks/av/services/camera/libcameraservice/device3/hidl/
DHidlCamera3OutputUtils.h54 HidlCaptureOutputStates& states,
61 void notify(CaptureOutputStates& states,
63 void requestStreamBuffers(RequestBufferStates& states,
67 void returnStreamBuffers(ReturnBufferStates& states,
DHidlCamera3OfflineSession.cpp98 HidlCaptureOutputStates states { in processCaptureResult_3_4() local
117 processOneCaptureResultLocked(states, result.v3_2, result.physicalCameraMetadata); in processCaptureResult_3_4()
140 HidlCaptureOutputStates states { in processCaptureResult() local
159 processOneCaptureResultLocked(states, result, noPhysMetadata); in processCaptureResult()
177 HidlCaptureOutputStates states { in notify() local
194 camera3::notify(states, msg); in notify()
210 RequestBufferStates states { in requestStreamBuffers() local
214 camera3::requestStreamBuffers(states, bufReqs, _hidl_cb); in requestStreamBuffers()
228 ReturnBufferStates states { in returnStreamBuffers() local
232 camera3::returnStreamBuffers(states, buffers); in returnStreamBuffers()
/frameworks/ex/camera2/public/src/com/android/ex/camera2/blocking/
DBlockingStateCallback.java172 public int waitForAnyOfStates(Collection<Integer> states, final long timeout) { in waitForAnyOfStates() argument
181 appendStates(s, states); in waitForAnyOfStates()
194 if (states.contains(nextState)) break; in waitForAnyOfStates()
207 if (!states.contains(nextState)) { in waitForAnyOfStates()
211 appendStates(s, states); in waitForAnyOfStates()
229 public static void appendStates(StringBuilder s, Collection<Integer> states) { in appendStates() argument
231 for (Integer state : states) { in appendStates()
DBlockingOfflineSessionCallback.java189 public int waitForAnyOfStates(Collection<Integer> states, final long timeout) { in waitForAnyOfStates() argument
198 appendStates(s, states); in waitForAnyOfStates()
211 if (states.contains(nextState)) break; in waitForAnyOfStates()
224 if (!states.contains(nextState)) { in waitForAnyOfStates()
228 appendStates(s, states); in waitForAnyOfStates()
246 public static void appendStates(StringBuilder s, Collection<Integer> states) { in appendStates() argument
248 for (Integer state : states) { in appendStates()
/frameworks/av/media/utils/
DProcessInfo.cpp62 std::vector<int32_t> states(count, PROCESS_STATE_NONEXISTENT); in checkProcessExistent() local
65 states.data()); in checkProcessExistent()
73 for (size_t index = 0; index < states.size(); index++) { in checkProcessExistent()
75 if (states[index] == PROCESS_STATE_NONEXISTENT) { in checkProcessExistent()
80 states[index] = it->second.procState; in checkProcessExistent()
83 existent->push_back(states[index] != PROCESS_STATE_NONEXISTENT); in checkProcessExistent()
/frameworks/base/core/java/android/util/
DStateSet.java253 public static int[] trimStateSet(int[] states, int newSize) { in trimStateSet() argument
254 if (states.length == newSize) { in trimStateSet()
255 return states; in trimStateSet()
259 System.arraycopy(states, 0, trimmedStates, 0, newSize); in trimStateSet()
263 public static String dump(int[] states) { in dump() argument
266 int count = states.length; in dump()
269 switch (states[i]) { in dump()
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/volume/data/repository/
DAudioSharingRepositoryTest.kt84 val states = mutableListOf<Boolean?>() in audioSharingStateChange_emitValues() constant
85 underTest.inAudioSharing.onEach { states.add(it) }.launchIn(backgroundScope) in audioSharingStateChange_emitValues()
92 Truth.assertThat(states).containsExactly(true, false, true) in audioSharingStateChange_emitValues()
100 val states = mutableListOf<Boolean?>() in audioSharingFlagOff_returnFalse() constant
101 underTest.inAudioSharing.onEach { states.add(it) }.launchIn(backgroundScope) in audioSharingFlagOff_returnFalse()
104 Truth.assertThat(states).containsExactly(false) in audioSharingFlagOff_returnFalse()

123456789