Home
last modified time | relevance | path

Searched refs:property (Results 1 - 8 of 8) sorted by relevance

/developtools/ace_js2bundle/ace-loader/plugin/codegen/
H A Dindex.js1 (()=>{"use strict";var e={904:(e,t)=>{var n;let o;Object.defineProperty(t,"__esModule",{value:!0}),t.setDomain=t.getDomain=t.Domain=void 0,function(e){e[e.FA=0]="FA",e[e.FORM=1]="FORM",e[e.ETS=2]="ETS"}(n||(n={})),t.Domain=n,t.setDomain=e=>{o=e},t.getDomain=()=>null!=o?o:n.FA},784:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.errorMap=void 0,t.errorMap=new Map([["fileError","Visual file is damaged"],["versionError","Version number of visual file does not match"],["modelError","Visual model in visual file is damaged"],["codegenError","Codegen hml and css failed"]])},117:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ASTNode=void 0,t.ASTNode=class{accept(e){return e.visit(this)}}},862:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Cache=void 0,t.Cache=class{constructor(e,t=0){this.value="",this.indent=t,this.flag=!0,this.INDENT=e}indentOn(){this.flag=!0}indentOff(){this.flag=!1}incIndent(){this.indent++}decIndent(){this.indent--}checkIndent(){return this.indent<0}getIndents(){if(this.flag){let e="";for(let t=0;t<this.indent;t++)e+=this.INDENT;return e}return""}concat(...e){return this.value+=this.getIndents(),this.value=this.value.concat(...e),String(this.value)}toString(){return this.value}}},243:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Style=t.Tag=void 0;const o=n(117);class r extends o.ASTNode{constructor(e,t,n){super(),this.tagName=e,this.attributes=t,this.content=n}}t.Tag=r;class i extends o.ASTNode{constructor(e,t,n,o){super(),this.mediaQuery=void 0,this.kind=e,this.name=t,this.content=n,this.mediaQuery=o}}t.Style=i},573:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ASTNodeGenerator=void 0;const o=n(243),r=n(334);class i{constructor(e){this.cache=e}visit(e){e instanceof o.Tag?this.genTag(e):e instanceof o.Style&&this.genStyle(e)}static getMethodGen(e){return void 0===i.instance?i.instance=new i(e):i.instance.setCache(e),i.instance}setCache(e){this.cache=e}genTag(e){if(this.cache.concat(r.TokenClass.TAG_START,e.tagName),this.cache.indentOff(),e.attributes.forEach(((e,t)=>{let n="";for(const t of e)n+='"'===t?"&quot;":"\n"===t?"&#10;":t;this.cache.concat(r.TokenClass.SPACE,t,r.TokenClass.ASSIGN,r.TokenClass.LQUOTE,n,r.TokenClass.RQUOTE)})),null===e.content)this.cache.concat(r.TokenClass.EMPTY_TAG_END);else{if(this.cache.concat(r.TokenClass.TAG_END),"string"==typeof e.content){let t="";for(const n of e.content)t+="<"===n?"&#60;":n;this.cache.concat(t)}else 0!==e.content.length&&(this.cache.concat(r.TokenClass.NEW_LINE),this.cache.indentOn(),this.cache.incIndent(),e.content.forEach((e=>{e.accept(this),this.cache.indentOff(),this.cache.concat(r.TokenClass.NEW_LINE),this.cache.indentOn()})),this.cache.decIndent(),this.cache.indentOn());this.cache.concat(r.TokenClass.END_TAG_START,e.tagName,r.TokenClass.TAG_END)}}genStyle(e){void 0!==e.mediaQuery&&(this.cache.concat("@media"),this.cache.indentOff(),this.cache.concat(r.TokenClass.SPACE,e.mediaQuery,r.TokenClass.SPACE,r.TokenClass.LBRA,r.TokenClass.NEW_LINE),this.cache.indentOn(),this.cache.incIndent()),"IDStyle"===e.kind&&(this.cache.concat(r.TokenClass.ID_STYLE_START),this.cache.indentOff()),this.cache.concat(e.name,r.TokenClass.SPACE,r.TokenClass.LBRA,r.TokenClass.NEW_LINE),this.cache.indentOn(),this.cache.incIndent(),e.content.forEach(((e,t)=>{this.cache.concat(t,r.TokenClass.COLON,r.TokenClass.SPACE,e,r.TokenClass.SEMICOLON,r.TokenClass.NEW_LINE)})),this.cache.decIndent(),this.cache.concat(r.TokenClass.RBRA,r.TokenClass.NEW_LINE),void 0!==e.mediaQuery&&(this.cache.decIndent(),this.cache.concat(r.TokenClass.RBRA,r.TokenClass.NEW_LINE)),this.cache.concat(r.TokenClass.NEW_LINE)}}t.ASTNodeGenerator=i,i.instance=void 0},844:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CSSBridge=t.HMLBridge=void 0;const o=n(243),r=n(571);t.HMLBridge=class{constructor(){this.errors=0}error(e){console.error("Code generating error: "+e),this.errors+=1}getErrorCount(){return this.errors}visit(e){const t=new Map([["id",e.id]]);let n="";for(let[o,i]of e.property)(0,r.isAttribute)(o,e.type)?("string"!=typeof i&&(i=JSON.stringify(i)),t.set(o,i)):(0,r.isContent)(o)&&(n=i);if(e.children.length>0){n=[];for(const t of e.children)n.push(t.accept(this))}const i=new o.Tag(e.type,t,n);return"wrapper"===t.get("id")?new o.Tag("div",new Map,[i]):i}},t.CSSBridge=class{constructor(){this.errors=0,this.styles=[]}error(e){console.error("Code generating error: "+e),this.errors+=1}getErrorCount(){return this.errors}genIDStyle(e){var t;const n=t=>{const n=new Map;for(const[o,i]of t)(0,r.isStyle)(o,e.type)&&n.set(o,i);return n},i=n(e.property);i.size>0&&this.styles.push(new o.Style("IDStyle",e.id,i)),(null!==(t=e.mediaProperty)&&void 0!==t?t:new Map).forEach(((t,r)=>{const i=n(t);i.size>0&&this.styles.push(new o.Style("IDStyle",e.id,i,r))}));for(const t of e.children)t.accept(this)}visit(e){return this.genIDStyle(e),this.styles}}},55:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.genFACSS=t.genFAHML=void 0;const o=n(573),r=n(862);t.genFAHML=function(e){const t=o.ASTNodeGenerator.getMethodGen(new r.Cache(" "));return e.accept(t),t.cache.toString()},t.genFACSS=function(e){const t=o.ASTNodeGenerator.getMethodGen(new r.Cache(" "));return e.forEach((e=>{e.accept(t)})),t.cache.toString()}},571:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isEvent=t.isData=t.isUnknown=t.isContent=t.isAttribute=t.isStyle=t.styleMap=void 0;const n=["width","height","min-width","min-height","max-width","max-height","padding","padding-start","padding-end","padding-top","padding-right","padding-bottom","padding-left","margin","margin-start","margin-end","margin-top","margin-right","margin-bottom","margin-left","border-width","border-style","border-color","border-radius","border-top-width","border-top-style","border-top-color","border-top-left-radius","border-right-width","border-right-style","border-right-color","border-top-right-radius","border-bottom-width","border-bottom-style","border-bottom-color","border-bottom-right-radius","border-left-width","border-left-style","border-left-color","border-bottom-left-radius","background-color","background","background-image","background-size","background-position","background-repeat","display","opacity","visibility","flex","flex-grow","flex-shrink","flex-basis","position","display","top","right","bottom","left","display-index","flex-weight","aspect-ratio"],o=["font-size","font-family","font-style","font-weight"],r=["text-align","line-height","text-decoration","letter-spacing","max-lines","text-overflow","allow-scale","min-font-size","max-font-size","font-size-step","prefer-font-sizes","color",...o],i=["allow-scale","text-decoration","color",...o],a=["text-color","allow-scale","icon-width","icon-height","radius",...o],s=["texton-color","textoff-color","text-padding","allow-scale",...o],c=["column-height","text-color","allow-scale","letter-spacing","text-decoration","line-height","opacity",...o],l=["text-color","allow-scale","letter-spacing",...o];t.styleMap=new Map([["common",new Set([...n])],["div",new Set(["flex-direction","overflow","flex-wrap","justify-content","align-items","align-content","grid-template-columns","grid-template-rows","grid-row-start","grid-row-end","grid-column-start","grid-column-end","grid-gap","grid-columns-gap","grid-rows-gap"])],["text",new Set([...r])],["image",new Set(["object-fit","match-text-direction","fit-original-size"])],["span",new Set([...i])],["input",new Set(["font-size","font-family","font-weight","color","placeholder-color","allow-scale"])],["button",new Set([...a])],["switch",new Set([...s])],["refresh",new Set(["progress-color"])],["divider",new Set(["stroke-width","line-cap","color"])],["chart",new Set(["stroke-width","radius","start-angle","total-angle","center-x","center-y","colors","weights"])],["picker",new Set([...c])],["picker-view",new Set(["color","font-size","selected-color","selected-font-size","focus-color","focus-font-size","disappear-color","disappear-font-size","font-family"])],["slider",new Set(["color","selected-color","block-color"])],["swiper",new Set(["indicator-color","indicator-selected-color","indicator-size","indicator-top","indicator-right","indicator-bottom","indicator-left"])],["list",new Set(["flex-direction","columns","item-extent","fade-color"])],["list-item",new Set(["column-span"])],["progress",new Set(["color","stroke-width","background-color","secondary-color","scale-width","scale-number","start-angle","total-angle","center-x","center-y","radius"])],["select",new Set(["font-family"])],["menu",new Set([...l])],["option",new Set(["color","font-family","allow-scale","font-size","font-weight","text-decoration"])],["video",new Set(["object-fit"])],["clock",new Set(["font-family"])]]);const d=new Map([["common",new Set(["id","ref","disabled","focusable","data","if","for"])],["image",new Set(["src","alt"])],["button",new Set(["type","value","icon","waiting"])],["refresh",new Set(["offset","refreshing","type","lasttime","friction"])],["input",new Set(["type","checked","name","value","placeholder","maxlength","enterkeytype","headericon"])],["switch",new Set(["checked","showtext","texton","textoff"])],["option",new Set(["value","selected","icon"])],["chart",new Set(["type","percent","datasets","options"])],["picker",new Set(["type","range","selected","start","end","lunar","lunarSwitch","columns","hours","containSecond","value","vibrate"])],["picker-view",new Set(["type","range","selected","start","end","lunar","lunarSwitch","columns","hours","containSecond","indicatorprefix","indicatorsuffix","vibrate"])],["slider",new Set(["min","max","step","showtips","showsteps","mode","value"])],["divider",new Set(["vertical"])],["list",new Set(["scrollpage","cachedcount","scrollbar","scrolleffect","shapemode","indexer","itemscale","itemcenter","updateeffect","scrollvibrate","initialindex","initialoffset"])],["list-item",new Set(["type","primary","section","sticky","stickyradius","clickeffect"])],["swiper",new Set(["index","autoplay","interval","indicator","digital","indicatordisabled","loop","duration","vertical"])],["progress",new Set(["type","percent","secondarypercent","clockwise"])],["menu",new Set(["target","title","type"])],["clock",new Set(["clockconfig","showdigit","hourswest"])],["badge",new Set(["placement","count","visible","maxcount","config","label"])],["video",new Set(["muted","src","autoplay","poster","controls","loop","starttime","direction","speed"])],["tabs",new Set(["index","vertical"])],["tab-bar",new Set(["mode"])],["tab-content",new Set(["scrollable"])]]),p=new Map([["common",new Set(["ontouchstart","ontouchmove","ontouchcancel","ontouchend","onclick","onlongpress","onfocus","onblur","onkey","onswipe"])],["image",new Set(["oncomplete","onerror"])],["input",new Set(["onchange","onenterkeyclick"])],["select",new Set(["onchange"])],["refresh",new Set(["onrefresh","onpulldown"])],["swiper",new Set(["onchange","onrotation"])],["list",new Set(["onindexerchange","onscroll","onscrollbottom","onscrolltop","onscrollend","onscrolltouchup","onrequestitem"])],["list-item",new Set(["onsticky"])],["menu",new Set(["onselected","oncancel"])],["picker",new Set(["oncolumnchange","onchange","oncancel"])],["picker-view",new Set(["oncolumnchange","onchange"])],["video",new Set(["onprepared","onstart","onpause","onfinish","onerror","onseeking","onseeked","ontimeupdate","onfullscreenchange","onstop"])],["tabs",new Set(["onchange"])],["switch",new Set(["onchange"])],["dialog",new Set(["oncancel"])],["slider",new Set(["onchange"])]]);function h(e,t,n){const o=t.get(n);return void 0!==o&&o.has(e)}function u(e,n){return h(e,t.styleMap,"common")||h(e,t.styleMap,n)}function f(e,t){return g(e,t)||m(e,t)}function g(e,t){return h(e,d,"common")||h(e,d,t)}function m(e,t){return h(e,p,"common")||h(e,p,t)}t.isStyle=u,t.isAttribute=f,t.isContent=function(e){return"content"===e},t.isUnknown=function(e,t){return!u(e,t)&&!f(e,t)},t.isData=g,t.isEvent=m},334:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.TokenClass=void 0,(n=t.TokenClass||(t.TokenClass={}))[n.IDENTIFIER=0]="IDENTIFIER",n[n.STRING_LITERAL=1]="STRING_LITERAL",n[n.NUMBER=2]="NUMBER",n[n.CHARACTER=3]="CHARACTER",n[n.EOF=4]="EOF",n[n.INVALID=5]="INVALID",n.EMPTY_DATA="empty",n.ASSIGN="=",n.NEW_LINE="\n",n.CARRIAGE_RETURN="\r",n.INDENT=" ",n.SPACE=" ",n.LQUOTE='"',n.RQUOTE='"',n.TAG_START="<",n.TAG_END=">",n.EMPTY_TAG_END="/>",n.END_TAG_START="</",n.ID_STYLE_START="#",n.CLASS_STYLE_START=".",n.LBRA="{",n.RBRA="}",n.SEMICOLON=";",n.COLON=":"},282:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TagTypeMap=void 0,t.TagTypeMap=new Map([["button","TextContent"],["span","TextContent"],["divider","TextContent"],["picker","TextContent"],["option","TextContent"],["clock","TextContent"],["image","Base"],["input","Base"],["chart","Base"],["slider","Base"],["progress","Base"],["text","Text"],["div","Container"],["list","Container"],["list-item","Container"],["list-item-group","Container"],["refresh","Container"],["dialog","Container"],["stack","Container"],["menu","Container"],["select","Container"],["tabs","Container"],["tab-bar","Container"],["tab-content","Container"]])},207:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.formManager=void 0;const o=n(891),r=n(945);t.formManager={removeData(e){this.getFormModel().data.delete(e)},addData(e){e instanceof Map?e.forEach(((e,t)=>{this.getFormModel().data.set(t,e)})):Object.keys(e).forEach((t=>{this.getFormModel().data.set(t,e[t])}))},updateAllData(e){this.getFormModel().data.clear(),this.addData(e)},addAction(e,t,n,o,i){const a=new Map;void 0!==n&&Object.keys(n).forEach((e=>{a.set(e,n[e])}));const s=new Map;void 0!==o&&Object.keys(o).forEach((e=>{s.set(e,o[e])})),this.getFormModel().actions.set(e,new r.FormAction(t,a,s,i))},updateAllActions(e){this.getFormModel().actions.clear(),e.forEach(((e,t)=>{const n=void 0===e.params?e.params:this.objectToMap(e.params),o=void 0===e.want?e.want:this.objectToMap(e.want),i=new r.FormAction(e.actionType,n,o);this.getFormModel().actions.set(t,i)}))},removeAction(e){this.getFormModel().actions.delete(e)},addActionParams(e,t){var n,o;const i=null!==(n=this.getFormModel().actions.get(e))&&void 0!==n?n:new r.FormAction(e),a=null!==(o=i.params)&&void 0!==o?o:new Map;Object.keys(t).forEach((e=>{a.set(e,t[e])})),i.params=a},removeActionParam(e,t){var n;const o=this.getFormModel().actions.get(e);null===(n=null==o?void 0:o.params)||void 0===n||n.delete(t)},getFormModel:()=>(0,o.getInstance)().formData,codegenToJson:function(){const e=(0,o.getInstance)().formData,t=this.mapToObject(e.data),n={actions:{},data:{}};return n.data=t,e.actions.forEach(((e,t)=>{n.actions[t]={},n.actions[t].action=e.action,e.params instanceof Map&&e.params.size>0&&(n.actions[t].params=this.mapToObject(e.params)),e.want instanceof Map&&e.want.size>0&&(n.actions[t].abilityName=e.abilityName,n.actions[t].want=this.mapToObject(e.want))})),JSON.stringify(n,null,4)},clear(){(0,o.getInstance)().formData.data.clear(),(0,o.getInstance)().formData.actions.clear()},mapToObject:e=>void 0===e?{}:Array.from(e.entries()).reduce(((e,[t,n])=>Object.assign(Object.assign({},e),{[t]:n})),{}),objectToMap(e){const t=new Map;return Object.keys(e).forEach(((n,o)=>{t.set(n,e[n])})),t}}},945:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FormAction=t.FormModel=void 0,t.FormModel=class{constructor(){this.data=new Map,this.actions=new Map}},t.FormAction=class{constructor(e,t,n,o){this.action=e,this.abilityName=o,this.want=n,this.params=t}}},509:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.deserializeForVersion1=t.rootToVisualContent=t.visualToRootContent=t.serializeForVersion1=void 0;const o=n(891),r=n(933),i=n(571),a=n(282),s=n(945),c=n(977),l=new Map;function d(e){l.set("textMap",new Map);const t=p(null!=e?e:(0,o.getInstance)().visualModel);return JSON.stringify({VisualVersion:"1",content:JSON.stringify(t),extraData:JSON.stringify(f(l))})}function p(e){const t=Array.from(e.property).filter((t=>(0,i.isAttribute)(t[0],e.type)));t.push(["id",e.id]);const n=Array.from(e.property).filter((t=>(0,i.isStyle)(t[0],e.type)));let o=a.TagTypeMap.get(e.type);void 0===o&&(o="Base");let r=e.property.has("content")?e.property.get("content"):[];if(e.children.length>0){if("string"==typeof r){const t=l.get("textMap");t instanceof Map&&t.set(e.id,r)}r=e.children.map((e=>p(e)))}return{id:e.id,tagName:e.type,attributes:t,idStyle:n,type:o,content:r}}function h(e,t){let n;if(t instanceof Map){const o=t.get("textMap");o instanceof Map&&(n=o.get(e.id))}const o=new r.VisualModel({id:e.id,type:e.tagName,property:new Map([...e.attributes,...e.idStyle])});return"string"==typeof n&&o.property.set("content",n),o.property.delete("id"),"string"==typeof e.content&&o.property
[all...]
/developtools/hdc/hdc_rust/src/cffi/
H A Dusb_ffs.h186 char property [PropertyDataLength]; member
192 .property = "{f21cc96b-063d-52e1-e3fd-f39cc7a34c40}",
/developtools/hdc/src/daemon/
H A Dusb_ffs.h185 char property [PropertyDataLength]; member
191 .property = "{f21cc96b-063d-52e1-e3fd-f39cc7a34c40}",
/developtools/hapsigner/hapsigntool_cpp_test/unittest/hapSign/
H A Dsign_provider_test.cpp247 std::string property = "./hapSign/signed-profile.p7b"; in HWTEST_F() local
261 (*params)["property"] = property; in HWTEST_F()
270 * @tc.desc: This function tests failure for interface Sign due to parameter property is not exist
291 std::string property = "./hapSign/signed-nohavaprofile.p7b"; in HWTEST_F() local
305 (*params)["property"] = property; in HWTEST_F()
314 * @tc.desc: This function tests failure for interface Sign due to parameter property is not exist
335 std::string property = "./hapSign/signed-profile.p7b"; in HWTEST_F() local
349 (*params)["property"] in HWTEST_F()
379 std::string property = "./hapSign/signed-profile.p7b"; HWTEST_F() local
[all...]
/developtools/hapsigner/hapsigntool_cpp/hap/provider/src/
H A Dsign_provider.cpp410 if (auto property = signParams.find(ParamConstants::PARAM_BASIC_PROPERTY); in LoadOptionalBlocks()
411 property != signParams.end()) { in LoadOptionalBlocks()
412 if ((ret = LoadOptionalBlock(property->second, HapUtils::HAP_PROPERTY_BLOCK_ID)) != RET_OK) in LoadOptionalBlocks()
/developtools/integration_verification/tools/rom_ram_analyzer/lite_small/src/
H A Dtemplate_processor.py143 @property
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/hap/provider/
H A DSignProvider.java139 String property = signParams.get(ParamConstants.PARAM_BASIC_PROPERTY); in loadOptionalBlocks()
140 loadOptionalBlock(property, HapUtils.HAP_PROPERTY_BLOCK_ID); in loadOptionalBlocks()
/developtools/profiler/hiebpf/include/
H A Dvmlinux.h6165 struct property;
6172 struct property *properties;
6173 struct property *deadprops;
7386 struct property { struct
7390 struct property *next;
69696 const char * const property; global() member
71258 const char *property; global() member
[all...]

Completed in 414 milliseconds