Home
last modified time | relevance | path

Searched refs:obj (Results 1 – 25 of 55) sorted by relevance

123

/development/tools/winscope/src/parsers/
Draw_data_utils.ts21 static isEmptyObj(obj: PropertyTreeNode): boolean {
22 if (RawDataUtils.isColor(obj)) {
23 return RawDataUtils.isEmptyColor(obj);
26 if (RawDataUtils.isRect(obj)) {
27 return Rect.from(obj).isEmpty();
33 static isColor(obj: PropertyTreeNode): boolean {
35 (obj.getChildByName('r') !== undefined &&
36 obj.getChildByName('g') !== undefined &&
37 obj.getChildByName('b') !== undefined) ||
38 obj.getChildByName('a') !== undefined
[all …]
/development/tools/winscope/src/common/
Dobject_utils.ts30 static getProperty(obj: object, path: string): any {
33 if (obj === undefined) {
38 if ((obj as any)[key.key] === undefined) {
42 Array.isArray((obj as any)[key.key]),
45 obj = (obj as any)[key.key][assertDefined(key.index)];
47 obj = (obj as any)[key.key];
50 return obj;
53 static setProperty(obj: object, path: string, value: any) {
58 ObjectUtils.initializePropertyArrayIfNeeded(obj, key);
59 obj = (obj as any)[key.key][assertDefined(key.index)];
[all …]
Dobject_utils_test.ts21 const obj = { constant
28 expect(ObjectUtils.getProperty(obj, 'child0')).toEqual({key0: 'value0'});
29 expect(ObjectUtils.getProperty(obj, 'child0.key0')).toEqual('value0');
30 expect(ObjectUtils.getProperty(obj, 'child1')).toEqual([
34 expect(ObjectUtils.getProperty(obj, 'child1[0]')).toEqual({key1: 'value1'});
35 expect(ObjectUtils.getProperty(obj, 'child1[0].key1')).toEqual('value1');
36 expect(ObjectUtils.getProperty(obj, 'child1[1]')).toEqual(10);
40 const obj = {}; constant
42 ObjectUtils.setProperty(obj, 'child0.key0', 'value0');
43 expect(obj).toEqual({
[all …]
/development/tools/winscope/src/parsers/surface_flinger/
Dparser_surface_flinger_utils.ts84 let obj = layer;
86 Object.getOwnPropertyNames(obj).forEach((it) => {
89 obj = Object.getPrototypeOf(obj);
90 } while (obj);
107 let obj = entry;
109 Object.getOwnPropertyNames(obj).forEach((it) => {
112 obj = Object.getPrototypeOf(obj);
113 } while (obj);
/development/samples/devbytes/animation/ListViewExpandingCells/src/com/example/android/expandingcells/
DExpandingCells.java60 ExpandableListItem obj = values[i % values.length]; in onCreate() local
61 mData.add(new ExpandableListItem(obj.getTitle(), obj.getImgResource(), in onCreate()
62 obj.getCollapsedHeight(), obj.getText())); in onCreate()
/development/apps/OBJViewer/com/android/objviewer/
DOBJViewer.java177 Object3D obj = OBJViewer.getObject(); in onDraw() local
181 mCenterX = (obj.getBoundsMinX() + obj.getBoundsMaxX())/2.0f; in onDraw()
182 mCenterY = (obj.getBoundsMinY() + obj.getBoundsMaxY())/2.0f; in onDraw()
183 mCenterZ = (obj.getBoundsMinZ() + obj.getBoundsMaxZ())/2.0f; in onDraw()
184 float spanX = obj.getBoundsMaxX() - obj.getBoundsMinX(); in onDraw()
185 float spanY = obj.getBoundsMaxY() - obj.getBoundsMinY(); in onDraw()
186 float spanZ = obj.getBoundsMaxZ() - obj.getBoundsMinZ(); in onDraw()
/development/host/windows/
D.gitignore7 usb/api/obj*
10 usb/adb_winapi_test/obj*
13 usb/winusb/obj*
/development/samples/SampleSyncAdapter/samplesyncadapter_server/
Dweb_services.py296 def safe_attr(self, obj, attr_name): argument
297 if attr_name in obj:
298 return obj[attr_name]
365 obj = datastore.Contact.get_contact_info(username)
368 if hasattr(obj, obj_name):
369 v = getattr(obj, obj_name)
374 contact['i'] = str(obj.key().id())
375 contact['a'] = host_url + "/avatar?id=" + str(obj.key().id())
383 obj = datastore.Contact.get_contact_info(username)
386 contact['i'] = str(obj.key().id())
/development/tools/winscope/src/trace/tree_node/
Dproperty_tree_node_factory.ts170 let obj = objProto;
173 const properties = Object.getOwnPropertyNames(obj).filter((it) => {
193 obj = this.visitPrototype ? Object.getPrototypeOf(obj) : undefined;
194 } while (obj);
/development/vndk/tools/header-checker/src/repr/symbol/
Dso_file_parser.cpp61 ELFSoFileParser(const llvm::object::ELFObjectFile<T> *obj);
86 ELFSoFileParser<T>::ELFSoFileParser(const llvm::object::ELFObjectFile<T> *obj) { in ELFSoFileParser() argument
87 assert(obj != nullptr); in ELFSoFileParser()
91 for (auto symbol_it : obj->getDynamicSymbolIterators()) { in ELFSoFileParser()
92 auto elf_sym_or_error = obj->getSymbol(symbol_it.getRawDataRefImpl()); in ELFSoFileParser()
/development/samples/UiAutomator/src/com/android/test/uiautomator/demos/
DSetTwoMinuteAlarm.java136 UiObject obj = new UiObject(new UiSelector().description(text)); in clickByDescription() local
137 obj.clickAndWaitForNewWindow(); in clickByDescription()
146 UiObject obj = new UiObject(new UiSelector().text(text)); in clickByText() local
147 obj.clickAndWaitForNewWindow(); in clickByText()
DLogBuildNumber.java116 UiObject obj = appsSettingsList.getChildByText(SettingsHelper.LIST_VIEW_ITEM, name); in selectSettingsFor() local
117 obj.click(); in selectSettingsFor()
/development/tools/winscope/src/parsers/window_manager/
Dparser_window_manager_utils.ts109 let obj = entry;
111 Object.getOwnPropertyNames(obj).forEach((it) => {
116 obj = Object.getPrototypeOf(obj);
117 } while (obj);
242 let obj = container;
244 Object.getOwnPropertyNames(obj).forEach((it) => {
247 obj = Object.getPrototypeOf(obj);
248 } while (obj);
/development/tools/winscope/src/parsers/view_capture/legacy/
Dparser_view_capture_window.ts223 let obj = node;
225 Object.getOwnPropertyNames(obj).forEach((it) => {
230 obj = Object.getPrototypeOf(obj);
231 } while (obj);
/development/samples/devbytes/animation/ListViewCellInsertion/src/com/example/android/insertingcells/
DCustomArrayAdapter.java91 ListItemObject obj = mData.get(position); in getView() local
99 .MATCH_PARENT, obj.getHeight())); in getView()
105 obj.getImgResource(), null); in getView()
107 textView.setText(obj.getTitle()); in getView()
DInsertingCells.java83 ListItemObject obj = mValues[mItemNum % mValues.length]; in addRow() local
84 final ListItemObject newObj = new ListItemObject(obj.getTitle(), obj.getImgResource(), in addRow()
/development/host/windows/usb/api/
Dadb_api.cpp108 AdbInterfaceObject* obj = NULL; in AdbCreateInterfaceByName() local
115 obj = new AdbLegacyInterfaceObject(interface_name); in AdbCreateInterfaceByName()
121 obj = InstantiateWinUsbInterface(interface_name); in AdbCreateInterfaceByName()
122 if (NULL == obj) { in AdbCreateInterfaceByName()
131 ret = obj->CreateHandle(); in AdbCreateInterfaceByName()
136 if (NULL != obj) in AdbCreateInterfaceByName()
137 obj->Release(); in AdbCreateInterfaceByName()
/development/samples/ApiDemos/src/com/example/android/apis/graphics/spritetext/
DProjector.java41 public void project(float[] obj, int objOffset, float[] win, int winOffset) { in project() argument
47 Matrix.multiplyMV(mV, 0, mMVP, 0, obj, objOffset); in project()
/development/samples/USB/AdbTest/src/com/android/adb/
DAdbTestActivity.java83 m.obj = s; in log()
110 m.obj = device; in deviceOnline()
201 appendLog((String)msg.obj);
204 handleDeviceOnline((AdbDevice)msg.obj);
/development/build/
Dsdk.atree43 ${OUT_DIR}/target/common/obj/PACKAGING/android_jar_intermediates/android.jar platforms/$…
44 ${OUT_DIR}/target/common/obj/PACKAGING/android_jar_intermediates/android-stubs-src.jar platforms/$…
47 ${OUT_DIR}/target/common/obj/JAVA_LIBRARIES/core-current-stubs-for-system-modules_intermediates/cla…
51 ${OUT_DIR}/target/common/obj/JAVA_LIBRARIES/org.apache.http.legacy.stubs_intermediates/classes.jar …
53 ${OUT_DIR}/target/common/obj/JAVA_LIBRARIES/android_uiautomator_intermediates/classes.jar platf…
55 ${OUT_DIR}/target/common/obj/JAVA_LIBRARIES/android.car-stubs_intermediates/classes.jar pla…
57 ${OUT_DIR}/target/common/obj/JAVA_LIBRARIES/android.test.mock.stubs_intermediates/classes.jar pla…
58 ${OUT_DIR}/target/common/obj/JAVA_LIBRARIES/android.test.base.stubs_intermediates/classes.jar pla…
59 ${OUT_DIR}/target/common/obj/JAVA_LIBRARIES/android.test.runner.stubs_intermediates/classes.jar pla…
62 ${OUT_DIR}/target/common/obj/PACKAGING/framework.aidl platfo…
[all …]
/development/
DCleanSpec.mk47 $(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/APPS/CorpApp_intermediates)
/development/samples/LceDemo/src/com/example/android/lce/
DLceDemoActivity.java56 text.append((String)msg.obj); in onCreate()
68 message.obj = "New downlink capacity received: " + in onCreate()
/development/tools/idegen/src/com/android/idegen/
DModule.java371 public boolean equals(Object obj) { in equals() argument
372 if (this == obj) { in equals()
375 if (obj == null || getClass() != obj.getClass()) { in equals()
378 Module other = (Module) obj; in equals()
/development/tools/winscope/src/trace/
Dtrace_tree_node.ts44 obj?: any; property
/development/host/windows/usb/adb_winapi_test/
DSOURCES18 TARGETPATH = obj
37 ..\api\obj$(BUILD_ALT_DIR)\i386\AdbWinApi.lib

123