Searched refs:models (Results 26 - 50 of 109) sorted by relevance

12345

/external/autotest/scheduler/
H A Dpostjob_task.py14 from autotest_lib.frontend.afe import models, model_attributes namespace
83 return models.HostQueueEntry.Status.ABORTED
87 return models.HostQueueEntry.Status.COMPLETED
88 return models.HostQueueEntry.Status.FAILED
260 allowed_hqe_statuses=(models.HostQueueEntry.Status.GATHERING,),
261 allowed_host_statuses=(models.Host.Status.RUNNING,))
275 models.HostQueueEntry.Status.COMPLETED)
283 self._final_status() == models.HostQueueEntry.Status.ABORTED
293 models.SpecialTask.objects.create(
294 host=models
[all...]
H A Dquery_managers.py18 from autotest_lib.frontend.afe import models namespace
128 @return: list of afe.models.SpecialTasks sorted according to priority.
130 queued_tasks = models.SpecialTask.objects.filter(is_active=False,
135 queued_tasks = models.SpecialTask.objects.add_join(
147 task_priority_order = [models.SpecialTask.Task.REPAIR,
148 models.SpecialTask.Task.CLEANUP,
149 models.SpecialTask.Task.VERIFY,
150 models.SpecialTask.Task.RESET,
151 models.SpecialTask.Task.PROVISION]
168 hqe_hosts = list(models
[all...]
H A Donly_if_needed_unittests.py9 from autotest_lib.frontend.afe import models namespace
19 models.Host.smart_get('host1').labels.add(self.label3)
H A Dmonitor_db.py27 from autotest_lib.frontend.afe import models namespace
87 if (models.DroneSet.drone_sets_enabled() and
88 not models.DroneSet.default_drone_set_name()):
485 return bool(models.SpecialTask.objects.filter(host__id=host.id,
523 statuses = (models.HostQueueEntry.Status.STARTING,
524 models.HostQueueEntry.Status.RUNNING,
525 models.HostQueueEntry.Status.GATHERING,
526 models.HostQueueEntry.Status.PARSING,
527 models.HostQueueEntry.Status.ARCHIVING)
557 special_tasks = models
[all...]
H A Dscheduler_models.py6 These overlap the Django models in basic functionality, but were written before
7 the Django models existed and have not yet been phased out. Some of them
32 from autotest_lib.frontend.afe import models, model_attributes namespace
619 active = (status in models.HostQueueEntry.ACTIVE_STATUSES)
620 complete = (status in models.HostQueueEntry.COMPLETE_STATUSES)
661 if status is not models.HostQueueEntry.Status.ABORTED:
743 status_counts = models.Job.objects.get_status_counts(
766 self.set_status(models.HostQueueEntry.Status.QUEUED)
811 self.set_status(models.HostQueueEntry.Status.PENDING)
812 self.host.set_status(models
[all...]
H A Dscheduler_models_unittest.py13 from autotest_lib.frontend.afe import models, model_attributes namespace
264 hqe.status = models.HostQueueEntry.Status.STARTING
318 task = models.SpecialTask(**kwargs)
321 self.god.stub_with(models.SpecialTask.objects, 'create', _mock_create)
341 django_hqes = list(models.HostQueueEntry.objects.filter(job=job.id))
360 self._check_special_tasks(tasks, [(models.SpecialTask.Task.RESET, 1)])
370 self._check_special_tasks(tasks, [(models.SpecialTask.Task.RESET, 1)])
378 self._check_special_tasks(tasks, [(models.SpecialTask.Task.RESET, 1)])
388 self._check_special_tasks(tasks, [(models.SpecialTask.Task.RESET, 1)])
410 self._check_special_tasks(tasks, [(models
[all...]
/external/autotest/frontend/afe/
H A Drpc_interface_unittest.py18 from autotest_lib.frontend.afe import models namespace
31 _hqe_status = models.HostQueueEntry.Status
57 platform2 = models.Label.objects.create(name='platform2', platform=True)
156 HqeStatus = models.HostQueueEntry.Status
219 host = models.Host.objects.get(hostname='testhost')
237 job = models.Job.objects.get(pk=job_id)
257 self.task1 = models.SpecialTask.objects.create(
258 host=host, task=models.SpecialTask.Task.VERIFY,
260 is_complete=True, requested_by=models.User.current_user())
261 self.task2 = models
[all...]
H A Drpc_utils.py19 from autotest_lib.frontend.afe import models, model_logic namespace
131 % models.HostQueueEntry.Status.QUEUED)
195 extra_args['params'] = [models.Label.smart_get(label).id
203 query = models.Host.valid_objects.all()
205 query = models.Host.objects.all()
208 only_if_needed_labels = models.Label.valid_objects.filter(
214 query = models.Host.objects.add_join(
222 return models.Host.query_objects(filter_data, initial_query=query)
223 except models.Label.DoesNotExist:
224 return models
[all...]
/external/autotest/scheduler/shard/
H A Dshard_client.py22 from autotest_lib.frontend.afe import models namespace
164 self._deserialize_many(hosts_serialized, models.Host, 'host')
165 self._deserialize_many(jobs_serialized, models.Job, 'job')
166 self._deserialize_many(suite_keyvals_serialized, models.JobKeyval,
183 job_models = models.Job.objects.filter(
203 self._shard = models.Shard.smart_get(self.hostname)
204 except models.Shard.DoesNotExist:
215 # models.Job.shard. We need to be careful to wait for both the
218 job_ids = list(models.Job.objects.filter(
222 for job_to_upload in models
[all...]
H A Dsimple_heartbeat_client.py36 from autotest_lib.frontend.afe import models namespace
90 [models.Host.deserialize(h) for h in response['hosts']]
91 [models.Job.deserialize(j) for j in response['jobs']]
H A Dshard_client_unittest.py13 from autotest_lib.frontend.afe import models namespace
193 host = models.Host.objects.get(id=2)
197 suite_keyval = models.JobKeyval.objects.filter(job_id=0)[0]
203 host = models.Host.objects.get(id=2)
206 job = models.Job.objects.all()[0]
248 job2 = models.Job.objects.get(pk=job1_serialized['id'])
282 self.assertEqual(models.Host.objects.count(), 0)
/external/autotest/frontend/client/src/autotest/afe/models/
H A DHost.java1 package autotest.afe.models;
/external/libtextclassifier/
H A DAndroid.mk118 LOCAL_SRC_FILES := ./models/textclassifier.langid.model
123 # Smart Selection models
130 LOCAL_SRC_FILES := ./models/textclassifier.smartselection.ar.model
138 LOCAL_SRC_FILES := ./models/textclassifier.smartselection.de.model
146 LOCAL_SRC_FILES := ./models/textclassifier.smartselection.en.model
154 LOCAL_SRC_FILES := ./models/textclassifier.smartselection.es.model
162 LOCAL_SRC_FILES := ./models/textclassifier.smartselection.fr.model
170 LOCAL_SRC_FILES := ./models/textclassifier.smartselection.it.model
178 LOCAL_SRC_FILES := ./models/textclassifier.smartselection.ja.model
186 LOCAL_SRC_FILES := ./models/textclassifie
[all...]
/external/autotest/frontend/afe/feeds/
H A Dfeed.py3 from autotest_lib.frontend.afe import models namespace
62 item_list = models.HostQueueEntry.objects.filter(
/external/autotest/frontend/health/
H A Dmanual_check_passing_experimental.py14 from autotest_lib.frontend.afe import models as afe_models
16 from autotest_lib.frontend.tko import models as tko_models
/external/autotest/server/
H A Dsite_host_attributes.py57 from autotest_lib.frontend.afe import models namespace
79 models if they can be found.
90 host_obj = models.Host.valid_objects.get(hostname=host)
/external/autotest/site_utils/
H A Dcount_jobs_unittest.py14 from autotest_lib.frontend.afe import models namespace
54 models.Job(created_on=some_day - timedelta(hours=i)).save()
H A Djob_history.py16 from autotest_lib.frontend.afe import models namespace
17 from autotest_lib.frontend.tko import models as tko_models
71 task: An AFE models.SpecialTask object.
80 @param task: An AFE models.SpecialTask object, which has the information
150 tasks = models.SpecialTask.objects.filter(
209 self.host = models.Host.objects.filter(
274 tasks = models.SpecialTask.objects.filter(
339 hqe = models.HostQueueEntry.objects.filter(job_id=hqe.job.id)[0]
350 for job in models.Job.objects.filter(parent_job_id=self.id):
352 job_hqe = models
[all...]
/external/autotest/frontend/tko/
H A Drpc_interface_unittest_fixme.py9 from autotest_lib.frontend.tko import models, rpc_interface namespace
83 Django models. So fix up the generated schema to match the real schema.
94 self.god.stub_with(models.TempManager, '_get_column_names',
96 self.god.stub_with(models.TempManager, '_cursor_rowcount',
141 machine = models.Machine.objects.create(hostname='myhost')
145 kernel1 = models.Kernel.objects.create(kernel_hash=kernel_name,
150 kernel2 = models.Kernel.objects.create(kernel_hash=kernel_name,
154 good_status = models.Status.objects.create(word='GOOD')
155 failed_status = models.Status.objects.create(word='FAILED')
157 job1 = models
[all...]
/external/autotest/tko/parsers/
H A Dversion_0_unittest.py7 from autotest_lib.tko import models namespace
22 self.god.stub_function(models.job, 'read_keyval')
24 self.god.stub_function(models.test, 'parse_host_keyval')
37 (models.test.parse_host_keyval.expect_call('.', hostname)
42 models.job.read_keyval.expect_call('.').and_return(
56 models.job.read_keyval.expect_call('.').and_return(raw_keyval)
100 models.job.read_keyval.expect_call('.').and_return(raw_keyval)
113 models.job.read_keyval.expect_call('.').and_return(raw_keyval)
127 models.job.read_keyval.expect_call('.').and_return(raw_keyval)
/external/autotest/site_utils/sponge_lib/
H A Dsponge_utils_functional_test.py23 from autotest_lib.tko import models namespace
103 self.mox.StubOutWithMock(models.test, 'parse_job_keyval')
104 models.test.parse_job_keyval(test.resultsdir).AndReturn(job_keyvals)
/external/autotest/frontend/db/backends/afe_sqlite/
H A Dcompiler.py1 from django.db.models.sql import compiler
/external/autotest/frontend/migrations/
H A D061_drone_sets_permissions_proper.py23 from django.db import models as db_models
/external/autotest/utils/modelviz/
H A Dgenerate_schema_diagrams.py29 from django.db.models import loading
/external/autotest/tko/
H A Djob_serializer.py3 """A script that provides convertion between models.job and a protocol
17 from autotest_lib.tko import models namespace
53 'kernel':models.kernel, 'machine':str,
140 models.job constructor.
155 newjob = models.job(fields_dict['dir'], fields_dict['user'],
206 creates a tko test using the models.test constructor.
211 @return a new instance of models.test
225 # The constructor for models.test accepts a "perf_values" list that
228 # code adhere properly to the models.test constructor argument list.
235 return models
[all...]

Completed in 1178 milliseconds

12345