Home
last modified time | relevance | path

Searched refs:state (Results 1 – 20 of 20) sorted by relevance

/test/vts/drivers/hal/libdatatype/
Dhal_light.cpp38 light_state_t* state = (light_state_t*)malloc(sizeof(light_state_t)); in GenerateLightState() local
40 state->color = RandomUint32(); in GenerateLightState()
41 state->flashMode = RandomInt32(); in GenerateLightState()
42 state->flashOnMS = RandomInt32(); in GenerateLightState()
43 state->flashOffMS = RandomInt32(); in GenerateLightState()
46 state->brightnessMode = BRIGHTNESS_MODE_USER; in GenerateLightState()
48 state->brightnessMode = BRIGHTNESS_MODE_SENSOR; in GenerateLightState()
51 state->brightnessMode = RandomInt32(); in GenerateLightState()
54 return state; in GenerateLightState()
61 light_state_t* state = (light_state_t*)malloc(sizeof(light_state_t)); in GenerateLightStateUsingMessage() local
[all …]
/test/vts/hals/light/bullhead/
Dlights.c101 static int rgb_to_brightness(struct light_state_t const* state) in rgb_to_brightness() argument
103 int color = state->color & 0x00ffffff; in rgb_to_brightness()
118 struct light_state_t const* state) in set_light_backlight() argument
121 int brightness = rgb_to_brightness(state); in set_light_backlight()
133 static int set_light_locked(struct light_state_t const* state, int type __unused) in set_light_locked() argument
139 switch (state->flashMode) { in set_light_locked()
142 onMS = state->flashOnMS; in set_light_locked()
143 offMS = state->flashOffMS; in set_light_locked()
152 colorRGB = state->color; in set_light_locked()
156 state->flashMode, colorRGB, onMS, offMS); in set_light_locked()
[all …]
DNOTICE143 5. Submission of Contributions. Unless You explicitly state otherwise,
/test/vti/dashboard/src/main/webapp/css/
Ddatepicker.css33 .ui-datepicker td span.ui-state-default, .ui-datepicker td a.ui-state-default {
41 .ui-datepicker td span.ui-state-hover, .ui-datepicker td a.ui-state-hover {
45 .ui-datepicker td span.ui-state-active, .ui-datepicker td a.ui-state-active {
57 .ui-datepicker-next.ui-state-hover.ui-datepicker-next-hover {
62 .ui-datepicker-prev.ui-state-hover.ui-datepicker-prev-hover {
67 .ui-datepicker-next.ui-corner-all.ui-state-hover, .ui-datepicker-prev.ui-corner-all.ui-state-hover {
/test/vts-testcase/kernel/encryption/
Dadiantum.cpp90 static void ChaChaInitState(uint32_t state[16], in ChaChaInitState()
97 state[i] = get_unaligned_le32(&consts[i * sizeof(__le32)]); in ChaChaInitState()
99 state[4 + i] = get_unaligned_le32(&key[i * sizeof(__le32)]); in ChaChaInitState()
101 state[12 + i] = get_unaligned_le32(&iv[i * sizeof(__le32)]); in ChaChaInitState()
135 uint32_t state[16]; in XChaCha() local
141 ChaChaInitState(state, key, nonce); in XChaCha()
142 ChaChaPermute(state, nrounds); in XChaCha()
144 put_unaligned_le32(state[(i < 4 ? 0 : 8) + i], in XChaCha()
149 ChaChaInitState(state, real_key, real_iv); in XChaCha()
157 memcpy(x, state, 64); in XChaCha()
[all …]
/test/vti/test_serving/configs/infra/prod/androidtestcenter/scripts/
Dhome_bot_config.py229 state = os_utilities.get_state()
231 state[u'device'] = _DEVICE.properties
233 extra_state = _BOT_DEVICE_MAP[_DEVICE.bot_id].state
235 state[u'device'].update(extra_state)
237 state[u'quarantined'] = 'device is not reachable'
238 return state
/test/vti/test_serving/configs/infra/test/androidtestcenter-test/scripts/
Dhome_bot_config.py229 state = os_utilities.get_state()
231 state[u'device'] = _DEVICE.properties
233 extra_state = _BOT_DEVICE_MAP[_DEVICE.bot_id].state
235 state[u'device'].update(extra_state)
237 state[u'quarantined'] = 'device is not reachable'
238 return state
/test/vts-testcase/kernel/api/sysfs/
DKernelApiSysfsTest.py118 state = '/sys/class/android_usb/android0/state'
119 self.IsReadOnly(state)
120 contents = target_file_utils.ReadFileContent(state, self.shell).strip()
123 '%s does not contain an expected string' % state)
276 for state in content.split():
277 if state not in allowed_states:
278 asserts.fail("Invalid system power state: %s" % state)
/test/vts-testcase/kernel/api/sysfs/src/com/android/tests/sysfs/
DKernelApiSysfsTest.java45 String state = "/sys/class/android_usb/android0/state"; in testAndroidUSB() local
46 assertTrue(TargetFileUtils.isReadOnly(state, getDevice())); in testAndroidUSB()
47 String content = getDevice().pullFileContents(state).trim(); in testAndroidUSB()
255 for (String state : content.split(" ")) { in testSysPowerState()
256 assertTrue(String.format("Invalid system power state: '%s'", state), in testSysPowerState()
257 allowedStates.contains(state)); in testSysPowerState()
/test/framework/harnesses/host_controller/
Dtfc_host_controller_test.py43 state="Available")
47 state="Allocated")
51 state="Available",
Dconsole.py403 def ChangeDeviceState(self, serial, state): argument
414 if state == common._DEVICE_STATUS_DICT["use"]:
420 self.device_status[serial] = state
424 and current_status != state):
Dconsole_test.py53 state="Available",
/test/vti/test_serving/gae/frontend/src/app/menu/schedule/
Dschedule.component.ts18 import { animate, state, style, transition, trigger } from "@angular/animations";
36 state('void', style({height: '0px', minHeight: '0', visibility: 'hidden'})),
37 state('*', style({height: '*', visibility: 'visible'})),
/test/vts/testcases/host/kernel_proc_file_api_test/
Dvts_kernel_proc_file_api_test.py184 def CheckStatsInState(state): argument
191 state = 1 if state else 0
196 wchar_index = 6 if state else 2
198 self.dut.shell.Execute("echo %d %s > %s" % (root_uid, state, filepath))
/test/vts-testcase/kernel/api/proc/
DVtsKernelProcFileApiTest.py237 def CheckStatsInState(state): argument
244 state = 1 if state else 0
249 wchar_index = 6 if state else 2
251 self.dut.adb.shell("echo %d %s > %s" % (root_uid, state, filepath))
/test/vti/test_serving/gae/frontend/src/app/menu/job/
Djob.component.ts18 import { animate, state, style, transition, trigger } from '@angular/animations';
40 state('void', style({height: '0px', minHeight: '0', visibility: 'hidden'})),
41 state('*', style({height: '*', visibility: 'visible'})),
/test/framework/harnesses/host_controller/tradefed/
Dremote_operation.py109 state=dev_obj["state"],
/test/framework/harnesses/host_controller/tfc/
Dtfc_client_test.py40 run_target="sailfish", state="Available")]
/test/mlts/benchmark/
DLICENSE130 5. Submission of Contributions. Unless You explicitly state otherwise,
/test/mlts/models/
DLICENSE130 5. Submission of Contributions. Unless You explicitly state otherwise,