Home
last modified time | relevance | path

Searched refs:ps (Results 1 – 25 of 49) sorted by relevance

12

/frameworks/base/tests/CoreTests/android/core/
DTestWebServer.java642 PrintStream ps = new PrintStream(s.getOutputStream()); in handleClient() local
667 ps.print(HTTP_VERSION_STRING + " " + HTTP_BAD_METHOD + in handleClient()
669 ps.write(buf, 0, 5); in handleClient()
670 ps.write(EOL); in handleClient()
671 ps.flush(); in handleClient()
688 printStatus(ps); in handleClient()
689 printHeaders(ps); in handleClient()
692 psWriteEOL(ps); in handleClient()
699 send404(ps); in handleClient()
701 sendFile(ps); in handleClient()
[all …]
/frameworks/base/core/java/com/android/internal/widget/
DPointerLocationView.java152 PointerState ps = new PointerState(); in PointerLocationView() local
153 mPointers.add(ps); in PointerLocationView()
211 final PointerState ps = mPointers.get(mActivePointerId); in onDraw() local
219 final int N = ps.mTraceCount; in onDraw()
220 if ((mCurDown && ps.mCurDown) || N == 0) { in onDraw()
223 .append("X: ").append(ps.mCoords.x, 1) in onDraw()
227 .append("Y: ").append(ps.mCoords.y, 1) in onDraw()
230 float dx = ps.mTraceX[N - 1] - ps.mTraceX[0]; in onDraw()
231 float dy = ps.mTraceY[N - 1] - ps.mTraceY[0]; in onDraw()
248 .append("Xv: ").append(ps.mXVelocity, 3) in onDraw()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DPackageManagerSettingsTests.java146 PackageSetting ps = settings.peekPackageLPr(PACKAGE_NAME_1); in testSettingsReadOld() local
147 assertEquals(COMPONENT_ENABLED_STATE_DEFAULT, ps.getEnabled(0)); in testSettingsReadOld()
148 assertEquals(true, ps.getNotLaunched(0)); in testSettingsReadOld()
150 ps = settings.peekPackageLPr(PACKAGE_NAME_2); in testSettingsReadOld()
151 assertEquals(false, ps.getStopped(0)); in testSettingsReadOld()
152 assertEquals(COMPONENT_ENABLED_STATE_DISABLED_USER, ps.getEnabled(0)); in testSettingsReadOld()
153 assertEquals(COMPONENT_ENABLED_STATE_DEFAULT, ps.getEnabled(1)); in testSettingsReadOld()
166 PackageSetting ps = settings.peekPackageLPr(PACKAGE_NAME_2); in testNewPackageRestrictionsFile() local
167 assertEquals(COMPONENT_ENABLED_STATE_DISABLED_USER, ps.getEnabled(0)); in testNewPackageRestrictionsFile()
168 assertEquals(COMPONENT_ENABLED_STATE_DEFAULT, ps.getEnabled(1)); in testNewPackageRestrictionsFile()
[all …]
/frameworks/compile/libbcc/lib/Renderscript/runtime/
Drs_program.c9 rsgProgramStoreGetDepthFunc(rs_program_store ps) { in rsgProgramStoreGetDepthFunc() argument
10 ProgramStore_t *prog = (ProgramStore_t *)ps.p; in rsgProgramStoreGetDepthFunc()
18 rsgProgramStoreIsDepthMaskEnabled(rs_program_store ps) { in rsgProgramStoreIsDepthMaskEnabled() argument
19 ProgramStore_t *prog = (ProgramStore_t *)ps.p; in rsgProgramStoreIsDepthMaskEnabled()
27 rsgProgramStoreIsColorMaskRedEnabled(rs_program_store ps) { in rsgProgramStoreIsColorMaskRedEnabled() argument
28 ProgramStore_t *prog = (ProgramStore_t *)ps.p; in rsgProgramStoreIsColorMaskRedEnabled()
36 rsgProgramStoreIsColorMaskGreenEnabled(rs_program_store ps) { in rsgProgramStoreIsColorMaskGreenEnabled() argument
37 ProgramStore_t *prog = (ProgramStore_t *)ps.p; in rsgProgramStoreIsColorMaskGreenEnabled()
45 rsgProgramStoreIsColorMaskBlueEnabled(rs_program_store ps) { in rsgProgramStoreIsColorMaskBlueEnabled() argument
46 ProgramStore_t *prog = (ProgramStore_t *)ps.p; in rsgProgramStoreIsColorMaskBlueEnabled()
[all …]
/frameworks/rs/driver/
DrsdProgramStore.cpp40 bool rsdProgramStoreInit(const Context *rsc, const ProgramStore *ps) { in rsdProgramStoreInit() argument
46 ps->mHal.drv = drv; in rsdProgramStoreInit()
49 switch (ps->mHal.state.depthFunc) { in rsdProgramStoreInit()
80 if ((ps->mHal.state.blendSrc == RS_BLEND_SRC_ONE) && in rsdProgramStoreInit()
81 (ps->mHal.state.blendDst == RS_BLEND_DST_ZERO)) { in rsdProgramStoreInit()
85 switch (ps->mHal.state.blendSrc) { in rsdProgramStoreInit()
118 switch (ps->mHal.state.blendDst) { in rsdProgramStoreInit()
152 ps->mHal.drv = NULL; in rsdProgramStoreInit()
156 void rsdProgramStoreSetActive(const Context *rsc, const ProgramStore *ps) { in rsdProgramStoreSetActive() argument
157 DrvProgramStore *drv = (DrvProgramStore *)ps->mHal.drv; in rsdProgramStoreSetActive()
[all …]
DrsdProgramStore.h24 const android::renderscript::ProgramStore *ps);
26 const android::renderscript::ProgramStore *ps);
28 const android::renderscript::ProgramStore *ps);
/frameworks/support/renderscript/v8/rs_support/scriptc/
Drs_program.rsh31 * @param ps program store to query
34 rsgProgramStoreGetDepthFunc(rs_program_store ps);
39 * @param ps program store to query
42 rsgProgramStoreIsDepthMaskEnabled(rs_program_store ps);
46 * @param ps program store to query
49 rsgProgramStoreIsColorMaskRedEnabled(rs_program_store ps);
54 * @param ps program store to query
57 rsgProgramStoreIsColorMaskGreenEnabled(rs_program_store ps);
62 * @param ps program store to query
65 rsgProgramStoreIsColorMaskBlueEnabled(rs_program_store ps);
[all …]
/frameworks/rs/scriptc/
Drs_program.rsh31 * @param ps program store to query
34 rsgProgramStoreGetDepthFunc(rs_program_store ps);
39 * @param ps program store to query
42 rsgProgramStoreIsDepthMaskEnabled(rs_program_store ps);
46 * @param ps program store to query
49 rsgProgramStoreIsColorMaskRedEnabled(rs_program_store ps);
54 * @param ps program store to query
57 rsgProgramStoreIsColorMaskGreenEnabled(rs_program_store ps);
62 * @param ps program store to query
65 rsgProgramStoreIsColorMaskBlueEnabled(rs_program_store ps);
[all …]
/frameworks/base/tests/RenderScriptTests/tests/src/com/android/rs/test/
DUT_program_store.java105 void checkObject(ProgramStore ps, in checkObject() argument
115 _RS_ASSERT("ps.isDepthMaskEnabled() == depthMask", ps.isDepthMaskEnabled() == depthMask); in checkObject()
116 _RS_ASSERT("ps.getDepthFunc() == df", ps.getDepthFunc() == df); in checkObject()
117 _RS_ASSERT("ps.getBlendSrcFunc() == bsf", ps.getBlendSrcFunc() == bsf); in checkObject()
118 _RS_ASSERT("ps.getBlendDstFunc() == bdf", ps.getBlendDstFunc() == bdf); in checkObject()
119 _RS_ASSERT("ps.isColorMaskRedEnabled() == R", ps.isColorMaskRedEnabled() == R); in checkObject()
120 _RS_ASSERT("ps.isColorMaskGreenEnabled() == G", ps.isColorMaskGreenEnabled() == G); in checkObject()
121 _RS_ASSERT("ps.isColorMaskBlueEnabled () == B", ps.isColorMaskBlueEnabled () == B); in checkObject()
122 _RS_ASSERT("ps.isColorMaskAlphaEnabled() == A", ps.isColorMaskAlphaEnabled() == A); in checkObject()
123 _RS_ASSERT("ps.isDitherEnabled() == dither", ps.isDitherEnabled() == dither); in checkObject()
[all …]
/frameworks/base/tests/DumpRenderTree/src/com/android/dumprendertree/
DLoadTestsAutoTest.java156 private void printRow(PrintStream ps, String format, Object...objs) { in printRow() argument
157 ps.println(String.format(format, objs)); in printRow()
166 PrintStream ps = new PrintStream(out); in dumpMemoryInfo() local
168 ps.print("\n\n\n"); in dumpMemoryInfo()
169 ps.println("** MEMINFO in pid " + Process.myPid() in dumpMemoryInfo()
193 printRow(ps, formatString, "", "native", "dalvik", "other", "total"); in dumpMemoryInfo()
194 printRow(ps, formatString, "size:", nativeMax, dalvikMax, "N/A", nativeMax + dalvikMax); in dumpMemoryInfo()
195 printRow(ps, formatString, "allocated:", nativeAllocated, dalvikAllocated, "N/A", in dumpMemoryInfo()
197 printRow(ps, formatString, "free:", nativeFree, dalvikFree, "N/A", in dumpMemoryInfo()
200 printRow(ps, formatString, "(Pss):", memInfo.nativePss, memInfo.dalvikPss, in dumpMemoryInfo()
[all …]
/frameworks/base/services/java/com/android/server/pm/
DSettings.java870 PackageSetting ps = null; in readPackageRestrictionsLPr() local
882 ps = mPackages.get(name); in readPackageRestrictionsLPr()
883 if (ps == null) { in readPackageRestrictionsLPr()
921 ps.setUserState(userId, enabled, installed, stopped, notLaunched, in readPackageRestrictionsLPr()
1177 PackageSetting ps = mPackages.get(name); in readStoppedLPw() local
1178 if (ps != null) { in readStoppedLPw()
1179 ps.setStopped(true, 0); in readStoppedLPw()
1181 ps.setNotLaunched(true, 0); in readStoppedLPw()
1545 final PackageSetting ps = mPackages.get(key); in getListOfIncompleteInstallPackagesLPr() local
1546 if (ps.getInstallStatus() == PackageSettingBase.PKG_INSTALL_INCOMPLETE) { in getListOfIncompleteInstallPackagesLPr()
[all …]
DPackageManagerService.java664 PackageSetting ps = mSettings.mPackages.get(ent.getKey()); in doHandleMessage() local
665 uids[i] = (ps != null) ? ps.appId : -1; in doHandleMessage()
1178 PackageSetting ps = psit.next(); in PackageManagerService() local
1184 if ((ps.pkgFlags & ApplicationInfo.FLAG_SYSTEM) == 0) { in PackageManagerService()
1191 final PackageParser.Package scannedPkg = mPackages.get(ps.name); in PackageManagerService()
1200 if (mSettings.isDisabledSystemPackageLPr(ps.name)) { in PackageManagerService()
1201 Slog.i(TAG, "Expecting better updatd system app for " + ps.name in PackageManagerService()
1203 removePackageLI(ps, true); in PackageManagerService()
1209 if (!mSettings.isDisabledSystemPackageLPr(ps.name)) { in PackageManagerService()
1211 String msg = "System package " + ps.name in PackageManagerService()
[all …]
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/scenegraph/
DRenderState.java48 ProgramStore ps, in RenderState() argument
52 mStore = ps; in RenderState()
73 public void setProgramStore(ProgramStore ps) { in setProgramStore() argument
74 mStore = ps; in setProgramStore()
90 item.ps = mStore; in updateRSData()
Drender.rs72 if (rsIsObject(renderState->ps)) {
73 rsgBindProgramStore(renderState->ps);
98 if (rsIsObject(renderState->ps)) {
/frameworks/av/media/libstagefright/codecs/amrnb/enc/src/
Ds10_8pf.cpp584 Word16 ps; in search_10and8i40() local
651 ps = 0; in search_10and8i40()
684 ps = ps2; in search_10and8i40()
713 *(p_temp1++) = ps + dn[i5]; in search_10and8i40()
720 ps = 0; in search_10and8i40()
759 ps = ps2; in search_10and8i40()
789 *(p_temp1++) = ps + dn[i7]; in search_10and8i40()
797 ps = 0; in search_10and8i40()
845 ps = ps2; in search_10and8i40()
883 *(p_temp1++) = ps + dn[i9]; in search_10and8i40()
[all …]
Dc4_17pf.cpp400 Word16 ps = 0; /* initialization only needed to keep gcc silent */ in search_4i40() local
465 ps = 0; in search_4i40()
505 ps = ps1; in search_4i40()
516 ps0 = ps; in search_4i40()
523 ps = 0; in search_4i40()
563 ps = ps1; in search_4i40()
574 ps0 = ps; in search_4i40()
579 ps = 0; in search_4i40()
618 ps = ps1; in search_4i40()
Dc3_14pf.cpp386 Word16 ps = 0; /* initialization only needed to keep gcc silent */ in search_3i40() local
453 ps = 0; in search_3i40()
495 ps = ps1; in search_3i40()
506 ps0 = ps; in search_3i40()
513 ps = 0; in search_3i40()
553 ps = ps1; in search_3i40()
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/
Dc4t64fx.c106 Word16 * ps, /* (i/o) correlation of all fixed pulses */
137 Word16 psk, ps, alpk, alp, val, k_cn, k_dn, exp; in ACELP_4t64_fx() local
284 ps = dn2[i]; in ACELP_4t64_fx()
285 if (ps >= 0) in ACELP_4t64_fx()
294 dn2[i] = -ps; in ACELP_4t64_fx()
305 ps = -1; in ACELP_4t64_fx()
308 if(dn2[j] > ps) in ACELP_4t64_fx()
310 ps = dn2[j]; in ACELP_4t64_fx()
557 ps = 0; in ACELP_4t64_fx()
570 ps = dn[ix] + dn[iy]; in ACELP_4t64_fx()
[all …]
Dc2t64fx.c57 Word16 ps, psk, ps1, ps2, alpk, alp1, alp2, sq; in ACELP_2t64_fx() local
117 ps = dn2[i]; in ACELP_2t64_fx()
118 if (ps >= 0) in ACELP_2t64_fx()
/frameworks/compile/slang/tests/P_unknown_function/
Dunknown_function.rs5 rs_program_store ps;
6 rsgProgramStoreGetDepthFunc(ps);
/frameworks/native/libs/utils/
DString16.cpp323 const size_t ps = prefix.size(); in startsWith() local
324 if (ps > size()) return false; in startsWith()
325 return strzcmp16(mString, ps, prefix.string(), ps) == 0; in startsWith()
330 const size_t ps = strlen16(prefix); in startsWith() local
331 if (ps > size()) return false; in startsWith()
332 return strncmp16(mString, prefix, ps) == 0; in startsWith()
/frameworks/rs/
Drs_hal.h214 bool (*init)(const Context *rsc, const ProgramStore *ps);
215 void (*setActive)(const Context *rsc, const ProgramStore *ps);
216 void (*destroy)(const Context *rsc, const ProgramStore *ps);
220 bool (*init)(const Context *rsc, const ProgramRaster *ps);
221 void (*setActive)(const Context *rsc, const ProgramRaster *ps);
222 void (*destroy)(const Context *rsc, const ProgramRaster *ps);
DrsProgramStore.cpp153 ObjectBaseRef<ProgramStore> ps = ProgramStore::getProgramStore(rsc, in rsi_ProgramStoreCreate() local
158 ps->incUserRef(); in rsi_ProgramStoreCreate()
159 return ps.get(); in rsi_ProgramStoreCreate()
/frameworks/support/renderscript/v8/rs_support/
Drs_hal.h213 bool (*init)(const Context *rsc, const ProgramStore *ps);
214 void (*setActive)(const Context *rsc, const ProgramStore *ps);
215 void (*destroy)(const Context *rsc, const ProgramStore *ps);
219 bool (*init)(const Context *rsc, const ProgramRaster *ps);
220 void (*setActive)(const Context *rsc, const ProgramRaster *ps);
221 void (*destroy)(const Context *rsc, const ProgramRaster *ps);
/frameworks/base/core/java/android/os/
DBatteryStats.java1402 Uid.Proc ps = ent.getValue(); in dumpCheckinLocked() local
1404 long userTime = ps.getUserTime(which); in dumpCheckinLocked()
1405 long systemTime = ps.getSystemTime(which); in dumpCheckinLocked()
1406 int starts = ps.getStarts(which); in dumpCheckinLocked()
1423 Uid.Pkg ps = ent.getValue(); in dumpCheckinLocked() local
1424 int wakeups = ps.getWakeups(which); in dumpCheckinLocked()
1425 Map<String, ? extends Uid.Pkg.Serv> serviceStats = ps.getServiceStats(); in dumpCheckinLocked()
1926 Uid.Proc ps = ent.getValue(); in dumpLocked() local
1932 userTime = ps.getUserTime(which); in dumpLocked()
1933 systemTime = ps.getSystemTime(which); in dumpLocked()
[all …]

12