Home
last modified time | relevance | path

Searched refs:nc (Results 1 – 25 of 41) sorted by relevance

12

/frameworks/base/core/java/android/net/
DNetworkCapabilities.java44 public NetworkCapabilities(NetworkCapabilities nc) { in NetworkCapabilities() argument
45 if (nc != null) { in NetworkCapabilities()
46 mNetworkCapabilities = nc.mNetworkCapabilities; in NetworkCapabilities()
47 mTransportTypes = nc.mTransportTypes; in NetworkCapabilities()
48 mLinkUpBandwidthKbps = nc.mLinkUpBandwidthKbps; in NetworkCapabilities()
49 mLinkDownBandwidthKbps = nc.mLinkDownBandwidthKbps; in NetworkCapabilities()
50 mNetworkSpecifier = nc.mNetworkSpecifier; in NetworkCapabilities()
51 mSignalStrength = nc.mSignalStrength; in NetworkCapabilities()
314 private void combineNetCapabilities(NetworkCapabilities nc) { in combineNetCapabilities() argument
315 this.mNetworkCapabilities |= nc.mNetworkCapabilities; in combineNetCapabilities()
[all …]
DNetworkRequest.java52 public NetworkRequest(NetworkCapabilities nc, int legacyType, int rId) { in NetworkRequest() argument
53 if (nc == null) { in NetworkRequest()
57 networkCapabilities = nc; in NetworkRequest()
90 final NetworkCapabilities nc = new NetworkCapabilities(mNetworkCapabilities); in build() local
91 nc.maybeMarkCapabilitiesRestricted(); in build()
92 return new NetworkRequest(nc, ConnectivityManager.TYPE_NONE, in build()
230 NetworkCapabilities nc = (NetworkCapabilities)in.readParcelable(null);
233 NetworkRequest result = new NetworkRequest(nc, legacyType, requestId);
DNetworkAgent.java209 NetworkCapabilities nc, LinkProperties lp, int score) { in NetworkAgent() argument
210 this(looper, context, logTag, ni, nc, lp, score, null); in NetworkAgent()
214 NetworkCapabilities nc, LinkProperties lp, int score, NetworkMisc misc) { in NetworkAgent() argument
218 if (ni == null || nc == null || lp == null) { in NetworkAgent()
226 new LinkProperties(lp), new NetworkCapabilities(nc), score, misc); in NetworkAgent()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DNeighboringCellInfoTest.java32 NeighboringCellInfo nc; in testConstructor() local
34 nc = new NeighboringCellInfo(rssi, "FFFFFFF", NETWORK_TYPE_EDGE); in testConstructor()
35 assertEquals(NETWORK_TYPE_EDGE, nc.getNetworkType()); in testConstructor()
36 assertEquals(rssi, nc.getRssi()); in testConstructor()
37 assertEquals(0xfff, nc.getLac()); in testConstructor()
38 assertEquals(0xffff, nc.getCid()); in testConstructor()
39 assertEquals(NeighboringCellInfo.UNKNOWN_CID, nc.getPsc()); in testConstructor()
41 nc = new NeighboringCellInfo(rssi, "1FF", NETWORK_TYPE_UMTS); in testConstructor()
42 assertEquals(NETWORK_TYPE_UMTS, nc.getNetworkType()); in testConstructor()
43 assertEquals(rssi, nc.getRssi()); in testConstructor()
[all …]
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/
Disp_az.c48 Word16 nc; in Isp_Az() local
53 nc = (m >> 1); in Isp_Az()
54 if(nc > 8) in Isp_Az()
56 Get_isp_pol_16kHz(&isp[0], f1, nc); in Isp_Az()
57 for (i = 0; i <= nc; i++) in Isp_Az()
62 Get_isp_pol(&isp[0], f1, nc); in Isp_Az()
64 if (nc > 8) in Isp_Az()
66 Get_isp_pol_16kHz(&isp[1], f2, (nc - 1)); in Isp_Az()
67 for (i = 0; i <= nc - 1; i++) in Isp_Az()
72 Get_isp_pol(&isp[1], f2, (nc - 1)); in Isp_Az()
[all …]
/frameworks/av/media/libstagefright/codecs/amrwb/src/
Disp_az.cpp143 int16 nc; in Isp_Az() local
149 nc = m >> 1; in Isp_Az()
152 if (nc > 8) in Isp_Az()
154 Get_isp_pol_16kHz(&isp[0], f1, nc); in Isp_Az()
155 for (i = 0; i <= nc; i++) in Isp_Az()
159 Get_isp_pol_16kHz(&isp[1], f2, nc - 1); in Isp_Az()
160 for (i = 0; i <= nc - 1; i++) in Isp_Az()
167 Get_isp_pol(&isp[0], f1, nc); in Isp_Az()
168 Get_isp_pol(&isp[1], f2, nc - 1); in Isp_Az()
175 for (i = nc - 1; i > 1; i--) in Isp_Az()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DDcRequest.java71 NetworkCapabilities nc = nr.networkCapabilities; in apnIdForNetworkRequest() local
73 if (nc.getTransportTypes().length > 0 && in apnIdForNetworkRequest()
74 nc.hasTransport(NetworkCapabilities.TRANSPORT_CELLULAR) == false) { in apnIdForNetworkRequest()
83 if (nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET)) { in apnIdForNetworkRequest()
87 if (nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_MMS)) { in apnIdForNetworkRequest()
91 if (nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_SUPL)) { in apnIdForNetworkRequest()
95 if (nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_DUN)) { in apnIdForNetworkRequest()
99 if (nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_FOTA)) { in apnIdForNetworkRequest()
103 if (nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_IMS)) { in apnIdForNetworkRequest()
107 if (nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_CBS)) { in apnIdForNetworkRequest()
[all …]
DTelephonyNetworkFactory.java108 NetworkCapabilities nc = new NetworkCapabilities(); in makeNetworkFilter() local
109 nc.addTransportType(NetworkCapabilities.TRANSPORT_CELLULAR); in makeNetworkFilter()
110 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_MMS); in makeNetworkFilter()
111 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_SUPL); in makeNetworkFilter()
112 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_DUN); in makeNetworkFilter()
113 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_FOTA); in makeNetworkFilter()
114 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_IMS); in makeNetworkFilter()
115 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_CBS); in makeNetworkFilter()
116 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_IA); in makeNetworkFilter()
117 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_RCS); in makeNetworkFilter()
[all …]
DApnContext.java537 NetworkCapabilities nc = nr.networkCapabilities; in apnIdForNetworkRequest() local
539 if (nc.getTransportTypes().length > 0 && in apnIdForNetworkRequest()
540 nc.hasTransport(NetworkCapabilities.TRANSPORT_CELLULAR) == false) { in apnIdForNetworkRequest()
549 if (nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET)) { in apnIdForNetworkRequest()
552 if (nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_MMS)) { in apnIdForNetworkRequest()
556 if (nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_SUPL)) { in apnIdForNetworkRequest()
560 if (nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_DUN)) { in apnIdForNetworkRequest()
564 if (nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_FOTA)) { in apnIdForNetworkRequest()
568 if (nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_IMS)) { in apnIdForNetworkRequest()
572 if (nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_CBS)) { in apnIdForNetworkRequest()
[all …]
/frameworks/base/rs/java/android/renderscript/
DMatrix3f.java126 float nc = 1.0f - c; in loadRotate() local
133 mMat[0] = x*x*nc + c; in loadRotate()
134 mMat[3] = xy*nc - zs; in loadRotate()
135 mMat[6] = zx*nc + ys; in loadRotate()
136 mMat[1] = xy*nc + zs; in loadRotate()
137 mMat[4] = y*y*nc + c; in loadRotate()
138 mMat[7] = yz*nc - xs; in loadRotate()
139 mMat[2] = zx*nc - ys; in loadRotate()
140 mMat[5] = yz*nc + xs; in loadRotate()
141 mMat[8] = z*z*nc + c; in loadRotate()
DMatrix4f.java171 float nc = 1.0f - c; in loadRotate() local
178 mMat[ 0] = x*x*nc + c; in loadRotate()
179 mMat[ 4] = xy*nc - zs; in loadRotate()
180 mMat[ 8] = zx*nc + ys; in loadRotate()
181 mMat[ 1] = xy*nc + zs; in loadRotate()
182 mMat[ 5] = y*y*nc + c; in loadRotate()
183 mMat[ 9] = yz*nc - xs; in loadRotate()
184 mMat[ 2] = zx*nc - ys; in loadRotate()
185 mMat[ 6] = yz*nc + xs; in loadRotate()
186 mMat[10] = z*z*nc + c; in loadRotate()
/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/
DMatrix3f.java129 float nc = 1.0f - c; in loadRotate() local
136 mMat[0] = x*x*nc + c; in loadRotate()
137 mMat[3] = xy*nc - zs; in loadRotate()
138 mMat[6] = zx*nc + ys; in loadRotate()
139 mMat[1] = xy*nc + zs; in loadRotate()
140 mMat[4] = y*y*nc + c; in loadRotate()
141 mMat[7] = yz*nc - xs; in loadRotate()
142 mMat[2] = zx*nc - ys; in loadRotate()
143 mMat[5] = yz*nc + xs; in loadRotate()
144 mMat[8] = z*z*nc + c; in loadRotate()
DMatrix4f.java172 float nc = 1.0f - c; in loadRotate() local
179 mMat[ 0] = x*x*nc + c; in loadRotate()
180 mMat[ 4] = xy*nc - zs; in loadRotate()
181 mMat[ 8] = zx*nc + ys; in loadRotate()
182 mMat[ 1] = xy*nc + zs; in loadRotate()
183 mMat[ 5] = y*y*nc + c; in loadRotate()
184 mMat[ 9] = yz*nc - xs; in loadRotate()
185 mMat[ 2] = zx*nc - ys; in loadRotate()
186 mMat[ 6] = yz*nc + xs; in loadRotate()
187 mMat[10] = z*z*nc + c; in loadRotate()
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/
Dvlc_encode_inline.h23 __inline Int zero_run_search(UInt *bitmapzz, Short *dataBlock, RunLevelBlock *RLB, Int nc) in zero_run_search() argument
32 if (nc > 32) in zero_run_search()
35 end = 1 << (32 - nc); in zero_run_search()
69 nc -= 32; in zero_run_search()
70 if (nc > 0) in zero_run_search()
73 end = 1 << (32 - nc); in zero_run_search()
113 __inline Int zero_run_search(UInt *bitmapzz, Short *dataBlock, RunLevelBlock *RLB, Int nc) in zero_run_search() argument
115 OSCL_UNUSED_ARG(nc); in zero_run_search()
227 __inline Int zero_run_search(UInt *bitmapzz, Short *dataBlock, RunLevelBlock *RLB, Int nc) in zero_run_search() argument
229 OSCL_UNUSED_ARG(nc); in zero_run_search()
/frameworks/av/tools/resampler_tools/
Dfir.cpp93 int nc = 32; in main() local
198 nc = 16; in main()
248 printf("const int32_t RESAMPLE_FIR_COEF_BITS = %d;\n", nc); in main()
268 int64_t yi = toint(y, 1ULL<<(nc-1)); in main()
269 if (nc > 16) { in main()
294 int64_t yi = toint(y, 1ULL<<(nc-1)); in main()
295 if (nc > 16) { in main()
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/
Dh264bsd_cavlc.c371 static u32 DecodeCoeffToken(u32 bits, u32 nc);
395 u32 DecodeCoeffToken(u32 bits, u32 nc) in DecodeCoeffToken() argument
406 ASSERT(nc <= 16 || nc == (u32)(-1)); in DecodeCoeffToken()
408 if (nc < 2) in DecodeCoeffToken()
423 else if (nc < 4) in DecodeCoeffToken()
436 else if (nc < 8) in DecodeCoeffToken()
442 else if (nc <= 16) in DecodeCoeffToken()
751 i32 nc, in h264bsdDecodeResidualBlockCavlc() argument
769 ASSERT(nc > -2); in h264bsdDecodeResidualBlockCavlc()
780 tmp = DecodeCoeffToken(bit, (u32)nc); in h264bsdDecodeResidualBlockCavlc()
Dh264bsd_macroblock_layer.c518 OMX_INT nc; in DecodeResidual() local
533 nc = (OMX_INT)DetermineNc(pMb, 0, pResidual->totalCoeff); in DecodeResidual()
540 nc, in DecodeResidual()
548 nc, in DecodeResidual()
567 nc = (OMX_INT)DetermineNc(pMb,blockIndex,pResidual->totalCoeff); in DecodeResidual()
576 nc, in DecodeResidual()
584 nc, in DecodeResidual()
596 nc, in DecodeResidual()
604 nc, in DecodeResidual()
662 nc = (OMX_INT)DetermineNc(pMb, blockIndex, pResidual->totalCoeff); in DecodeResidual()
[all …]
Dh264bsd_cavlc.h54 i32 nc,
/frameworks/rs/
DrsMatrix4x4.cpp220 const float nc = 1.0f - c; in loadRotate() local
227 m[ 0] = x*x*nc + c; in loadRotate()
228 m[ 4] = xy*nc - zs; in loadRotate()
229 m[ 8] = zx*nc + ys; in loadRotate()
230 m[ 1] = xy*nc + zs; in loadRotate()
231 m[ 5] = y*y*nc + c; in loadRotate()
232 m[ 9] = yz*nc - xs; in loadRotate()
233 m[ 2] = zx*nc - ys; in loadRotate()
234 m[ 6] = yz*nc + xs; in loadRotate()
235 m[10] = z*z*nc + c; in loadRotate()
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
DRoundRectangle.java340 int nc = 0; in getPathIterator() local
343 coords[nc++] = (float) (x + ctrls[i] * width + ctrls[i + 1] / 2d); in getPathIterator()
344 coords[nc++] = (float) (y + ctrls[i + 2] * height + ctrls[i + 3] / 2d); in getPathIterator()
347 at.transform(coords, 0, coords, 0, nc / 2); in getPathIterator()
357 int nc = 0; in getPathIterator() local
360 coords[nc++] = x + ctrls[i] * width + ctrls[i + 1] / 2d; in getPathIterator()
361 coords[nc++] = y + ctrls[i + 2] * height + ctrls[i + 3] / 2d; in getPathIterator()
364 at.transform(coords, 0, coords, 0, nc / 2); in getPathIterator()
/frameworks/native/include/ui/
Dmat4.h314 T nc = 1 - c; in rotate() local
321 r[ 0] = x*x*nc + c; r[ 4] = xy*nc - zs; r[ 8] = zx*nc + ys; in rotate()
322 r[ 1] = xy*nc + zs; r[ 5] = y*y*nc + c; r[ 9] = yz*nc - xs; in rotate()
323 r[ 2] = zx*nc - ys; r[ 6] = yz*nc + xs; r[10] = z*z*nc + c; in rotate()
/frameworks/base/packages/Osu/src/com/android/hotspot2/utils/
DHTTPRequest.java122 String nc = String.format("%08d", sequence); in generateAuthAnswer() local
136 byte[] response = hash(a1, nonceText, nc, cNonceString, "auth", a2); in generateAuthAnswer()
145 .append("nc=").append(nc).append(", ") in generateAuthAnswer()
284 String nonce, String cnonce, String nc, String qop, String expect) in test() argument
290 byte[] response = hash(a1, nonce, nc, cnonce, qop, a2); in test()
300 .append("nc=").append(nc).append(", ") in test()
/frameworks/base/opengl/java/android/opengl/
DMatrix.java618 float nc = 1.0f - c; in setRotateM() local
625 rm[rmOffset + 0] = x*x*nc + c; in setRotateM()
626 rm[rmOffset + 4] = xy*nc - zs; in setRotateM()
627 rm[rmOffset + 8] = zx*nc + ys; in setRotateM()
628 rm[rmOffset + 1] = xy*nc + zs; in setRotateM()
629 rm[rmOffset + 5] = y*y*nc + c; in setRotateM()
630 rm[rmOffset + 9] = yz*nc - xs; in setRotateM()
631 rm[rmOffset + 2] = zx*nc - ys; in setRotateM()
632 rm[rmOffset + 6] = yz*nc + xs; in setRotateM()
633 rm[rmOffset + 10] = z*z*nc + c; in setRotateM()
/frameworks/base/libs/hwui/
DMatrix.cpp351 const float nc = 1.0f - c; in loadRotate() local
359 data[kScaleX] = x * x * nc + c; in loadRotate()
360 data[kSkewX] = xy * nc - zs; in loadRotate()
361 data[8] = zx * nc + ys; in loadRotate()
362 data[kSkewY] = xy * nc + zs; in loadRotate()
363 data[kScaleY] = y * y * nc + c; in loadRotate()
364 data[9] = yz * nc - xs; in loadRotate()
365 data[2] = zx * nc - ys; in loadRotate()
366 data[6] = yz * nc + xs; in loadRotate()
367 data[kScaleZ] = z * z * nc + c; in loadRotate()
/frameworks/support/v4/java/android/support/v4/app/
DFragmentActivity.java317 NonConfigurationInstances nc = in onCreate() local
319 if (nc != null) { in onCreate()
320 mFragments.restoreLoaderNonConfig(nc.loaders); in onCreate()
324 mFragments.restoreAllState(p, nc != null ? nc.fragments : null); in onCreate()
660 NonConfigurationInstances nc = (NonConfigurationInstances) in getLastCustomNonConfigurationInstance() local
662 return nc != null ? nc.custom : null; in getLastCustomNonConfigurationInstance()

12