Lines Matching refs:destfile

211 def applyPolicy(policy, destfile):  argument
213 applyIntPolicy(policy, destfile)
214 applyFloatPolicy(policy, destfile)
216 def applyIntPolicy(policy, destfile): argument
218 print(policy.sensors(intSensors), file=destfile)
220 def applyFloatPolicy(policy, destfile): argument
222 print(policy.sensors(floatSensors), file=destfile)
224 def java(destfile): argument
225 applyPolicy(JavaSensorPolicy(), destfile)
227 def intdef(destfile): argument
228 applyPolicy(IntDefSensorPolicy(), destfile)
230 def python(destfile): argument
231 applyPolicy(PythonSensorPolicy(), destfile)
250 destfile = open(filepath, "w")
251 print("#!/usr/bin/env python3", file=destfile)
252 print("#", file=destfile)
253 print("# Copyright (C) 2017 The Android Open Source Project", file=destfile)
254 print("#", file=destfile)
255 print("# Licensed under the Apache License, Version 2.0 (the \"License\");", file=destfile)
256 print("# you may not use this file except in compliance with the License.", file=destfile)
257 print("# You may obtain a copy of the License at", file=destfile)
258 print("#", file=destfile)
259 print("# http://www.apache.org/licenses/LICENSE-2.0", file=destfile)
260 print("#", file=destfile)
261 print("# Unless required by applicable law or agreed to in writing, software", file=destfile)
262 print("# distributed under the License is distributed on an \"AS IS\" BASIS,", file=destfile)
263 … print("# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.", file=destfile)
264 print("# See the License for the specific language governing permissions and", file=destfile)
265 print("# limitations under the License.", file=destfile)
266 print("#", file=destfile)
267 …le is generated by types.hal by packages/services/Car/tools/update-obd2-sensors.py", file=destfile)
268 print("# DO NOT EDIT MANUALLY", file=destfile)
269 python(destfile)