Home
last modified time | relevance | path

Searched refs:self (Results 1 – 25 of 88) sorted by relevance

1234

/aosp14/frameworks/base/tools/orientationplot/
H A Dorientationplot.py48 index = self.buffer.find('\n', self.pos)
50 result = self.buffer[self.pos:index]
54 self.buffer = self.buffer[self.pos:]
82 self.raw_acceleration_x = self._make_timeseries()
119 self.tilt_angle = self._make_timeseries()
170 self.sample_latency = self._make_timeseries()
320 self._append(self.tilt_angle, timeindex, self.parse_tilt_angle)
321 self._append(self.orientation_angle, timeindex, self.parse_orientation_angle)
322 self._append(self.current_rotation, timeindex, self.parse_current_rotation)
335 self._append(self.sample_latency, timeindex, self.parse_sample_latency)
[all …]
/aosp14/frameworks/base/tools/velocityplot/
H A Dvelocityplot.py52 index = self.buffer.find('\n', self.pos)
54 result = self.buffer[self.pos:index]
58 self.buffer = self.buffer[self.pos:]
86 self.velocity_x = self._make_timeseries()
87 self.velocity_y = self._make_timeseries()
202 self._append(self.velocity_x, timeindex, self.parse_velocity_x)
203 self._append(self.velocity_y, timeindex, self.parse_velocity_y)
210 self._append(self.old_velocity_x, timeindex, self.parse_old_velocity_x)
211 self._append(self.old_velocity_y, timeindex, self.parse_old_velocity_y)
218 self._scroll(self.velocity_x, bottom)
[all …]
/aosp14/frameworks/base/media/mca/
H A Dstructgen.py118 return " %s %s;" % (self.ctype, self.name)
124 " }" % (self.javatype, ToJavaName(self.name, 0), ToJavaName(self.name, 0))
143 % (self.jtype, ToJNIPackage(self.package, self.jclassname), ToJavaName(self.name, 0))
150 "}\n" % (self.jtype, ToJNIPackage(self.package, self.jclassname), ToJavaName(self.name, 0),\
151 self.structname, self.structname, self.name, self.defval)
156 % (ToJNIPackage(self.package, self.jclassname), ToJavaName(self.name, 0), self.jtype)
167 "}\n" % (ToJNIPackage(self.package, self.jclassname), ToJavaName(self.name, 0),\
168 self.jtype, self.structname, self.structname, self.name)
210 self.structname = self.name
212 self.jclassname = self.name
[all …]
/aosp14/frameworks/base/tools/apilint/
H A Ddeprecated_at_birth.py77 self.ident = ident(self.raw)
79 def __hash__(self): argument
107 self.args = []
113 self.ident = ident(self.raw)
124 self.pkg = pkg
147 self.extends_path = self.extends.split(".")
152 self.fullname = self.pkg.name + "." + self.fullname
153 self.fullname_path = self.fullname.split(".")
155 self.name = self.fullname[self.fullname.rindex(".")+1:]
158 return hash((self.raw, tuple(self.ctors), tuple(self.fields), tuple(self.methods)))
[all …]
/aosp14/frameworks/base/tools/aapt2/tools/consumers/
H A Dpositional_arguments.py13 def matches(self, file_path): argument
41 self.start = start
42 self.number = number
50 self.arguments = []
51 self._parser = parser
52 self._depth = 0
55 self._next_number = 1
58 self._depth += 1
71 if self._within_string and self._depth == 2:
73 self.arguments += self._current_arguments
[all …]
H A Dduplicates.py9 def matches(self, file_path): argument
82 self.name = name
84 self.depth = depth
86 self.end = end
95 self._depth = 0
99 self._depth += 1
120 if self._current_resource and self._depth == self._current_resource.depth:
123 self._current_resource.end = (self._parser.CurrentLineNumber - 1,
128 self.resource_definitions[key_name] += [self._current_resource]
130 self.resource_definitions[key_name] = [self._current_resource]
[all …]
/aosp14/frameworks/base/tools/lint/fix/
H A Dsoong_lint_fix.py52 def __init__(self): argument
54 self._args = None
64 self._setup()
66 self._lint()
69 self._fix()
74 def _setup(self): argument
75 self._args = self._parser.parse_args()
82 self._kwargs = {
113 def _lint(self): argument
127 def _fix(self): argument
[all …]
/aosp14/frameworks/base/apct-tests/perftests/core/src/android/libcore/varhandles/
H A Dgenerate_java.py50 self.code = code
51 self.static = static
52 self.vartype = vartype
53 self.flavour = flavour
54 self.klass = klass
55 self.method = method
57 self.memloc = memloc
59 def fullname(self): argument
69 def gencode(self): argument
71 method_suffix = "" if self.vartype == "String" else self.vartype.title()
[all …]
/aosp14/frameworks/base/tools/aapt2/tools/
H A Dextract_unicode_properties.py17 self.first_char = first_char
18 self.last_char = last_char
19 self.prop_type = prop_type
21 def key(self): argument
22 return self.first_char
24 def merge(self, other): argument
25 if self.last_char + 1 == other.first_char and self.prop_type == other.prop_type:
26 self.last_char = other.last_char
30 def __repr__(self): argument
33 if enum_int & self.prop_type:
[all …]
/aosp14/system/core/init/
H A Dperfboot.py93 self._device = device
97 self._waited = False
99 def wait(self): argument
102 self._wait_cpu_cool_down(self._product, self._temp_paths)
104 if self._waited:
107 self._waited = True
120 self._product)
146 self._timer.start()
148 def is_timedout(self): argument
151 def cancel(self): argument
[all …]
/aosp14/system/core/trusty/test/driver/
H A Dtrusty_driver_test.py36 def testIrqDriverBinding(self): argument
40 def testLogDriverBinding(self): argument
45 def testVirtioDriverBinding(self): argument
52 def testTrustyDriverBinding(self): argument
56 def testTrustyDriverVersion(self): argument
58 self.assertTrue(ver.startswith("Project:"))
60 def testUntaintedLinux(self): argument
62 self.assertEqual(tainted, "0")
75 def testStdCall(self): argument
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DLightBarTransitionsController.java53 Callback(LightBarTransitionsController self) { in Callback() argument
54 mSelf = new WeakReference<>(self); in Callback()
59 LightBarTransitionsController self = mSelf.get(); in appTransitionPending() local
60 if (self != null) { in appTransitionPending()
61 self.appTransitionPending(displayId, forced); in appTransitionPending()
67 LightBarTransitionsController self = mSelf.get(); in appTransitionCancelled() local
68 if (self != null) { in appTransitionCancelled()
69 self.appTransitionCancelled(displayId); in appTransitionCancelled()
77 if (self != null) { in appTransitionStarting()
85 if (self != null) { in onDozeAmountChanged()
[all …]
/aosp14/frameworks/base/services/core/jni/
H A Dcom_android_server_storage_AppFuseBridge.cpp41 Callback(JNIEnv* env, jobject self) : mEnv(env), mSelf(self) {} in Callback() argument
90 jlong com_android_server_storage_AppFuseBridge_new(JNIEnv* env, jobject self) { in com_android_server_storage_AppFuseBridge_new() argument
94 void com_android_server_storage_AppFuseBridge_delete(JNIEnv* env, jobject self, jlong java_loop) { in com_android_server_storage_AppFuseBridge_delete() argument
101 JNIEnv* env, jobject self, jlong java_loop) { in com_android_server_storage_AppFuseBridge_start_loop() argument
104 Callback callback(env, self); in com_android_server_storage_AppFuseBridge_start_loop()
109 JNIEnv* env, jobject self, jlong java_loop, jint mountId, jint javaDevFd) { in com_android_server_storage_AppFuseBridge_add_bridge() argument
126 void com_android_server_storage_AppFuseBridge_lock(JNIEnv* env, jobject self) { in com_android_server_storage_AppFuseBridge_lock() argument
130 void com_android_server_storage_AppFuseBridge_unlock(JNIEnv* env, jobject self) { in com_android_server_storage_AppFuseBridge_unlock() argument
/aosp14/frameworks/base/core/jni/
H A Dcom_android_internal_os_FuseAppLoop.cpp52 Callback(JNIEnv* env, jobject self) : in Callback() argument
53 mEnv(env), mSelf(self) {} in Callback()
117 jlong com_android_internal_os_FuseAppLoop_new(JNIEnv* env, jobject self, jint jfd) { in com_android_internal_os_FuseAppLoop_new() argument
121 void com_android_internal_os_FuseAppLoop_delete(JNIEnv* env, jobject self, jlong ptr) { in com_android_internal_os_FuseAppLoop_delete() argument
125 void com_android_internal_os_FuseAppLoop_start(JNIEnv* env, jobject self, jlong ptr) { in com_android_internal_os_FuseAppLoop_start() argument
126 Callback callback(env, self); in com_android_internal_os_FuseAppLoop_start()
131 JNIEnv* env, jobject self, jlong ptr, jlong unique, jint result) { in com_android_internal_os_FuseAppLoop_replySimple() argument
138 JNIEnv* env, jobject self, jlong ptr, jlong unique, jlong fh) { in com_android_internal_os_FuseAppLoop_replyOpen() argument
145 JNIEnv* env, jobject self, jlong ptr, jlong unique, jlong inode, jlong size) { in com_android_internal_os_FuseAppLoop_replyLookup() argument
152 JNIEnv* env, jobject self, jlong ptr, jlong unique, jlong inode, jlong size) { in com_android_internal_os_FuseAppLoop_replyGetAttr() argument
[all …]
H A Dandroid_view_Surface.cpp286 Surface* self(reinterpret_cast<Surface *>(nativeObject)); in nativeGetFromSurfaceControl() local
290 if (self != nullptr && in nativeGetFromSurfaceControl()
306 Surface* self(reinterpret_cast<Surface*>(nativeObject)); in nativeGetFromBlastBufferQueue() local
310 if (self != nullptr && in nativeGetFromBlastBufferQueue()
338 sp<Surface> self(reinterpret_cast<Surface *>(nativeObject)); in nativeReadFromParcel() local
342 if (self != nullptr in nativeReadFromParcel()
346 return jlong(self.get()); in nativeReadFromParcel()
358 if (self != NULL) { in nativeReadFromParcel()
360 self->decStrong(&sRefBaseOwner); in nativeReadFromParcel()
373 sp<Surface> self(reinterpret_cast<Surface *>(nativeObject)); in nativeWriteToParcel() local
[all …]
/aosp14/frameworks/base/core/java/com/android/internal/widget/
H A DLockScreenWidgetCallback.java27 public void requestShow(View self); in requestShow() argument
30 public void requestHide(View self); in requestHide() argument
33 public boolean isVisible(View self); in isVisible() argument
37 public void userActivity(View self); in userActivity() argument
/aosp14/frameworks/base/media/java/android/media/tv/tuner/filter/
H A DSectionSettings.java112 return self(); in setCrcEnabled()
132 return self(); in setRepeat()
142 return self(); in setRaw()
159 return self(); in setBitWidthOfLengthField()
162 /* package */ abstract T self(); in self() method in SectionSettings.Builder
/aosp14/system/core/libappfuse/
H A DFuseBuffer.cc40 bool CheckHeaderLength(const FuseMessage<T>* self, const char* name, size_t max_size) { in CheckHeaderLength() argument
41 const auto& header = static_cast<const T*>(self)->header; in CheckHeaderLength()
51 ResultOrAgain ReadInternal(FuseMessage<T>* self, int fd, int sockflag) { in ReadInternal() argument
52 char* const buf = reinterpret_cast<char*>(self); in ReadInternal()
68 const auto& header = static_cast<const T*>(self)->header; in ReadInternal()
74 if (!CheckHeaderLength<T>(self, "Read", sizeof(T))) { in ReadInternal()
87 ResultOrAgain WriteInternal(const FuseMessage<T>* self, int fd, int sockflag, const void* data, in WriteInternal() argument
89 if (!CheckHeaderLength<T>(self, "Write", max_size)) { in WriteInternal()
93 const char* const buf = reinterpret_cast<const char*>(self); in WriteInternal()
94 const auto& header = static_cast<const T*>(self)->header; in WriteInternal()
/aosp14/system/core/fastboot/fuzzy_fastboot/
H A Dextensions.h60 friend ::std::ostream& operator<<(::std::ostream& os, const GetVar& self) {
61 return os << "<regex='" << self.regex_str << "' line_num=" << self.line_num << ">";
110 friend ::std::ostream& operator<<(::std::ostream& os, const CommandTest& self) {
111 return os << "test: " << self.name << " (line: " << self.line_num << ")";
/aosp14/frameworks/base/core/java/android/hardware/input/
H A DVirtualInputDeviceConfig.java112 return self(); in setVendorId()
120 return self(); in setProductId()
127 return self(); in setAssociatedDisplayId()
134 return self(); in setInputDeviceName()
140 T self() { in self() method in VirtualInputDeviceConfig.Builder
/aosp14/system/core/libutils/
H A DThreads.cpp711 sp<Thread> strong(self->mHoldSelf); in _threadLoop()
713 self->mHoldSelf.clear(); in _threadLoop()
717 self->mTid = gettid(); in _threadLoop()
726 self->mStatus = self->readyToRun(); in _threadLoop()
727 result = (self->mStatus == OK); in _threadLoop()
740 result = self->threadLoop(); in _threadLoop()
743 result = self->threadLoop(); in _threadLoop()
748 Mutex::Autolock _l(self->mLock); in _threadLoop()
750 self->mExitPending = true; in _threadLoop()
751 self->mRunning = false; in _threadLoop()
[all …]
/aosp14/frameworks/base/api/
H A Dmerge_annotation_zips_test.py106 def test_merge_zips(self): argument
116self.assertEqual(zip_a['android/os/annotations.xml'], Path(out_dir, 'android/os/annotations.xml').…
117self.assertEqual(zip_c['android/app/annotations.xml'], Path(out_dir, 'android/app/annotations.xml'…
120self.assertEqual(merged_provider, Path(out_dir, 'android/provider/annotations.xml').read_text())
/aosp14/frameworks/base/tools/lock_agent/java/com/android/lock_checker/
H A DOnThreadLockChecker.java140 private void handlePre(Thread self, Object lock) { in handlePre() argument
185 annotatedStack = VMStack.getAnnotatedThreadStackTrace(self); in handlePre()
187 postViolation(self, alreadyHeld, lock, annotatedStack, oppositeData); in handlePre()
193 annotatedStack = VMStack.getAnnotatedThreadStackTrace(self); in handlePre()
196 orderData = new OrderData((int) self.getId(), self.getName(), annotatedStack); in handlePre()
203 postViolation(self, alreadyHeld, lock, annotatedStack, oppositeData); in handlePre()
208 private void handlePost(Thread self, Object lock) { in handlePost() argument
233 Violation(Thread self, Object alreadyHeld, Object lock, in Violation() argument
235 this.mSelfTid = (int) self.getId(); in Violation()
236 this.mSelfName = self.getName(); in Violation()
[all …]
/aosp14/frameworks/base/tools/aapt2/
H A DValueTransformer_inline.h33 auto self = static_cast<const Derived*>(this); in TransformValueImpl() local
34 auto transformed = transformer.TransformValue(self); in TransformValueImpl()
40 auto self = static_cast<const Derived*>(this); in TransformItemImpl() local
41 auto transformed = transformer.TransformItem(self); in TransformItemImpl()
/aosp14/frameworks/base/cmds/bootanimation/
H A Dbootanimation_main.cpp44 sp<ProcessState> proc(ProcessState::self()); in main()
45 ProcessState::self()->startThreadPool(); in main()
56 IPCThreadState::self()->joinThreadPool(); in main()

1234