Home
last modified time | relevance | path

Searched refs:models (Results 1 – 25 of 161) sorted by relevance

1234567

/external/autotest/frontend/tko/
Drpc_interface.py3 from django.db import models as dbmodels
6 from autotest_lib.frontend.afe import models as afe_models, readonly_connection
7 from autotest_lib.frontend.tko import models, tko_rpc_utils
15 models.TestView.list_objects(filter_data))
19 return models.TestView.query_count(filter_data)
47 query = models.TestView.objects.get_query_set_with_joins(filter_data)
49 query = models.TestView.query_objects(filter_data, initial_query=query,
51 count_alias, count_sql = models.TestView.objects.get_count_sql(query)
55 query = models.TestView.apply_presentation(query, filter_data)
68 query = models.TestView.objects.get_query_set_with_joins(filter_data)
[all …]
Drpc_interface_unittest_fixme.py9 from autotest_lib.frontend.tko import models, rpc_interface
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.Job.objects.create(tag='1-myjobtag1', label='myjob1',
160 job2 = models.Job.objects.create(tag='2-myjobtag2', label='myjob2',
[all …]
/external/autotest/frontend/afe/
Drpc_interface.py42 from django.db.models import Count
55 from autotest_lib.frontend.afe import models
57 from autotest_lib.frontend.tko import models as tko_models
85 label_model = models.Label.smart_get(id)
99 label_model = models.Label.smart_get(id)
104 hosts.append(models.Host.smart_get(h.id))
128 label = models.Label.add_object(name=name, **kwargs)
150 label = models.Label.smart_get(id)
151 host_objs = models.Host.smart_get_bulk(hosts)
153 models.Host.check_no_platform(host_objs)
[all …]
Dfrontend_test_utils.py6 from autotest_lib.frontend.afe import models, model_attributes
14 if models.DroneSet.drone_sets_enabled():
15 models.DroneSet.objects.create(
16 name=models.DroneSet.default_drone_set_name())
18 acl_group = models.AclGroup.objects.create(name='my_acl')
19 acl_group.users.add(models.User.current_user())
21 self.hosts = [models.Host.objects.create(hostname=hostname)
27 models.AclGroup.smart_get('Everyone').hosts = []
29 self.labels = [models.Label.objects.create(name=name) for name in
33 platform = models.Label.objects.create(name='myplatform', platform=True)
[all …]
Dadmin.py11 from autotest_lib.frontend.afe import model_logic, models
43 model = models.AtomicGroup
52 return models.AtomicGroup.valid_objects
54 admin.site.register(models.AtomicGroup, AtomicGroupAdmin)
59 model = models.Label
69 return models.Label.valid_objects
71 admin.site.register(models.Label, LabelAdmin)
78 admin.site.register(models.User, UserAdmin)
95 label_names =(models.Label.objects.filter(id__in=value)
119 label_ids = (models.Label.objects.filter(name__in=label_names)
[all …]
Dmodels_test.py9 from autotest_lib.frontend.afe import models, model_logic
30 everyone_acl = models.AclGroup.objects.get(name='Everyone')
37 models.AclGroup.on_host_membership_change()
57 host = models.Host.create_one_time_host('othost')
59 self.assertEquals(host.status, models.Host.Status.READY)
61 host.status = models.Host.Status.RUNNING
64 host2 = models.Host.add_object(hostname='othost')
66 self.assertEquals(host2.status, models.Host.Status.RUNNING)
70 host = models.Host.create_one_time_host('othost')
75 label = models.Label.add_object(name='board:test')
[all …]
Drpc_interface_unittest.py18 from autotest_lib.frontend.afe import models
31 _hqe_status = models.HostQueueEntry.Status
57 platform2 = models.Label.objects.create(name='platform2', platform=True)
160 HqeStatus = models.HostQueueEntry.Status
223 host = models.Host.objects.get(hostname='testhost')
241 job = models.Job.objects.get(pk=job_id)
261 self.task1 = models.SpecialTask.objects.create(
262 host=host, task=models.SpecialTask.Task.VERIFY,
264 is_complete=True, requested_by=models.User.current_user())
265 self.task2 = models.SpecialTask.objects.create(
[all …]
Drpc_utils.py19 from autotest_lib.frontend.afe import models, model_logic
128 % models.HostQueueEntry.Status.QUEUED)
192 extra_args['params'] = [models.Label.smart_get(label).id
200 query = models.Host.valid_objects.all()
202 query = models.Host.objects.all()
205 only_if_needed_labels = models.Label.valid_objects.filter(
211 query = models.Host.objects.add_join(
219 return models.Host.query_objects(filter_data, initial_query=query)
220 except models.Label.DoesNotExist:
221 return models.Host.objects.none()
[all …]
Dmanagement.py3 from django.db.models import signals
13 from frontend.afe import models
22 admin_group, created = auth.models.Group.objects.get_or_create(
25 PermissionModel = auth.models.Permission
49 signals.post_syncdb.connect(create_admin_group, sender=models)
/external/autotest/scheduler/
Dprejob_task.py61 from autotest_lib.frontend.afe import models
84 models.SpecialTask.objects.filter(
89 previous_provisions = models.SpecialTask.objects.filter(
90 task=models.SpecialTask.Task.PROVISION,
117 previous_repairs = models.SpecialTask.objects.filter(
118 task=models.SpecialTask.Task.REPAIR,
122 self.host.set_status(models.Host.Status.REPAIR_FAILED)
126 queue_entry = models.HostQueueEntry.objects.get(
131 models.SpecialTask.objects.create(
132 host=models.Host.objects.get(id=self.host.id),
[all …]
Drdb_testing_utils.py16 from autotest_lib.frontend.afe import models
76 return models.Label.objects.filter(**kwargs)
82 return models.AclGroup.objects.filter(**kwargs)
88 return models.Host.objects.filter(**kwargs)
93 return models.HostQueueEntry.objects.filter(**kwargs)
98 return models.SpecialTask.objects.filter(**kwargs)
103 return models.Shard.objects.filter(**kwargs)
109 return (models.Label.add_object(name=name, **kwargs)
115 user = models.User.objects.filter(login=name)
116 return models.User.add_object(login=name) if not user else user[0]
[all …]
Dmonitor_db_cleanup.py9 from autotest_lib.frontend.afe import models
81 query = models.Job.objects.filter(hostqueueentry__complete=False).extra(
105 query = models.HostQueueEntry.objects.filter(
185 model_pairs = ((models.Host, 'labels', models.Label, 'host_set'),
186 (models.AclGroup, 'hosts', models.Host, 'aclgroup_set'),
187 (models.AclGroup, 'users', models.User, 'aclgroup_set'),
188 (models.Test, 'dependency_labels', models.Label,
233 hosts = models.Host.objects.filter(
234 status=models.Host.Status.REPAIR_FAILED,
253 models.SpecialTask.schedule_special_task(
[all …]
Dquery_managers.py18 from autotest_lib.frontend.afe import models
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.HostQueueEntry.objects.filter(
171 special_task_hosts = list(models.SpecialTask.objects.filter(
[all …]
Dmonitor_db_cleanup_test.py7 from autotest_lib.frontend.afe import frontend_test_utils, models
30 self.hosts[i].status = models.Host.Status.REPAIR_FAILED
43 tasks = models.SpecialTask.objects.all()
46 self.assertEquals(tasks[0].task, models.SpecialTask.Task.VERIFY)
56 self.hosts[i].status = models.Host.Status.REPAIR_FAILED
69 tasks = models.SpecialTask.objects.all()
74 self.assertEquals(tasks[0].task, models.SpecialTask.Task.VERIFY)
75 self.assertEquals(tasks[1].task, models.SpecialTask.Task.VERIFY)
Dmonitor_db.py27 from autotest_lib.frontend.afe import models
82 if (models.DroneSet.drone_sets_enabled() and
83 not models.DroneSet.default_drone_set_name()):
481 return bool(models.SpecialTask.objects.filter(host__id=host.id,
519 statuses = (models.HostQueueEntry.Status.STARTING,
520 models.HostQueueEntry.Status.RUNNING,
521 models.HostQueueEntry.Status.GATHERING,
522 models.HostQueueEntry.Status.PARSING)
562 special_tasks = models.SpecialTask.objects.filter(
578 if queue_entry.status in (models.HostQueueEntry.Status.STARTING,
[all …]
Dpostjob_task.py14 from autotest_lib.frontend.afe import models, model_attributes
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.Host.objects.get(id=queue_entry.host.id),
[all …]
Dscheduler_models.py31 from autotest_lib.frontend.afe import models, model_attributes
638 active = (status in models.HostQueueEntry.ACTIVE_STATUSES)
639 complete = (status in models.HostQueueEntry.COMPLETE_STATUSES)
679 if status is not models.HostQueueEntry.Status.ABORTED:
761 status_counts = models.Job.objects.get_status_counts(
784 self.set_status(models.HostQueueEntry.Status.QUEUED)
829 self.set_status(models.HostQueueEntry.Status.PENDING)
830 self.host.set_status(models.Host.Status.PENDING)
838 self.status == models.HostQueueEntry.Status.PENDING):
847 Status = models.HostQueueEntry.Status
[all …]
Dagent_task_unittest.py8 from autotest_lib.frontend.afe import models
42 self.god.stub_function(models.DroneSet, 'drone_sets_enabled')
43 models.DroneSet.drone_sets_enabled.expect_call().and_return(False)
59 self.god.stub_function(models.DroneSet, 'drone_sets_enabled')
60 models.DroneSet.drone_sets_enabled.expect_call().and_return(False)
/external/valgrind/tests/
Ds390x_features.c78 model_info models[] = { variable
103 for (p = models; p != models + sizeof models / sizeof models[0]; ++p) { in locate_model()
108 for (p = models; p != models + sizeof models / sizeof models[0]; ++p) { in locate_model()
157 model = models + sizeof models / sizeof models[0]; in get_host()
172 for (n = 0; n < sizeof models / sizeof models[0]; ++n) { in get_host()
173 model_info *mm = models + n; in get_host()
192 if (model == models + sizeof models / sizeof models[0]) return NULL; in get_host()
260 from = models; in go()
266 to = models + sizeof models / sizeof models[0] - 1; in go()
/external/autotest/scheduler/shard/
Dshard_client_integration_tests.py14 from autotest_lib.frontend.afe import models
73 models.HostQueueEntry.objects.filter(id=hqe.id).update(
106 models.Host.objects.all().delete()
107 models.Host.deserialize(serialized_host)
108 models.Host.objects.get(hostname='test_host')
119 models.User.deserialize(serialized_user)
120 models.User.objects.get(id=3, login='test_user')
124 models.User.deserialize(serialized_user)
125 models.User.objects.get(id=3, login='fake_user')
130 models.User.objects.all().delete()
[all …]
Dshard_client.py23 from autotest_lib.frontend.afe import models
166 self._deserialize_many(hosts_serialized, models.Host, 'host')
167 self._deserialize_many(jobs_serialized, models.Job, 'job')
168 self._deserialize_many(suite_keyvals_serialized, models.JobKeyval,
189 job_models = models.Job.objects.filter(
209 models.Host.objects.filter(id__in=incorrect_host_ids).delete()
223 self._shard = models.Shard.smart_get(self.hostname)
224 except models.Shard.DoesNotExist:
238 job_ids = list(models.Job.objects.filter(
242 for job_to_upload in models.Job.objects.filter(pk__in=job_ids).all():
[all …]
Dshard_client_unittest.py13 from autotest_lib.frontend.afe import models
194 host = models.Host.objects.get(id=2)
198 suite_keyval = models.JobKeyval.objects.filter(job_id=0)[0]
204 host = models.Host.objects.get(id=2)
207 job = models.Job.objects.all()[0]
244 host = models.Host.smart_get(host_id)
252 with self.assertRaises(models.Host.DoesNotExist):
253 host = models.Host.smart_get(host_id)
289 job2 = models.Job.objects.get(pk=job1_serialized['id'])
323 self.assertEqual(models.Host.objects.count(), 0)
/external/libtextclassifier/
DAndroid.mk117 LOCAL_SRC_FILES := ./models/textclassifier.langid.model
129 LOCAL_SRC_FILES := ./models/textclassifier.smartselection.ar.model
137 LOCAL_SRC_FILES := ./models/textclassifier.smartselection.de.model
145 LOCAL_SRC_FILES := ./models/textclassifier.smartselection.en.model
153 LOCAL_SRC_FILES := ./models/textclassifier.smartselection.es.model
161 LOCAL_SRC_FILES := ./models/textclassifier.smartselection.fr.model
169 LOCAL_SRC_FILES := ./models/textclassifier.smartselection.it.model
177 LOCAL_SRC_FILES := ./models/textclassifier.smartselection.ja.model
185 LOCAL_SRC_FILES := ./models/textclassifier.smartselection.ko.model
193 LOCAL_SRC_FILES := ./models/textclassifier.smartselection.nl.model
[all …]
/external/autotest/site_utils/
Dstable_version_utils.py12 from autotest_lib.frontend.afe import models
28 for v in models.StableVersion.objects.all()])
54 return models.StableVersion.objects.get(board=board).version
73 stable_version = models.StableVersion.objects.get(board=board)
77 models.StableVersion.objects.create(board=board, version=version)
85 stable_version = models.StableVersion.objects.get(board=board)
/external/llvm/utils/
Dschedcover.py13 models = set() variable
17 global table, models
21 models.add(model)
32 global table, models
35 ordered_models = filter(filter_model, sorted(models))

1234567