Home
last modified time | relevance | path

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

123

/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/base/core/java/android/net/
DNetworkCapabilities.java51 public NetworkCapabilities(NetworkCapabilities nc) { in NetworkCapabilities() argument
52 if (nc != null) { in NetworkCapabilities()
53 mNetworkCapabilities = nc.mNetworkCapabilities; in NetworkCapabilities()
54 mTransportTypes = nc.mTransportTypes; in NetworkCapabilities()
55 mLinkUpBandwidthKbps = nc.mLinkUpBandwidthKbps; in NetworkCapabilities()
56 mLinkDownBandwidthKbps = nc.mLinkDownBandwidthKbps; in NetworkCapabilities()
57 mNetworkSpecifier = nc.mNetworkSpecifier; in NetworkCapabilities()
58 mSignalStrength = nc.mSignalStrength; in NetworkCapabilities()
314 private void combineNetCapabilities(NetworkCapabilities nc) { in combineNetCapabilities() argument
315 this.mNetworkCapabilities |= nc.mNetworkCapabilities; in combineNetCapabilities()
[all …]
DNetworkRequest.java108 public NetworkRequest(NetworkCapabilities nc, int legacyType, int rId, Type type) { in NetworkRequest() argument
109 if (nc == null) { in NetworkRequest()
113 networkCapabilities = nc; in NetworkRequest()
148 final NetworkCapabilities nc = new NetworkCapabilities(mNetworkCapabilities); in build() local
149 nc.maybeMarkCapabilitiesRestricted(); in build()
150 return new NetworkRequest(nc, ConnectivityManager.TYPE_NONE, in build()
189 public Builder setCapabilities(NetworkCapabilities nc) { in setCapabilities() argument
191 mNetworkCapabilities.combineCapabilities(nc); in setCapabilities()
320 NetworkCapabilities nc = (NetworkCapabilities)in.readParcelable(null);
324 NetworkRequest result = new NetworkRequest(nc, legacyType, requestId, type);
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/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.java107 NetworkCapabilities nc = new NetworkCapabilities(); in makeNetworkFilter() local
108 nc.addTransportType(NetworkCapabilities.TRANSPORT_CELLULAR); in makeNetworkFilter()
109 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_MMS); in makeNetworkFilter()
110 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_SUPL); in makeNetworkFilter()
111 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_DUN); in makeNetworkFilter()
112 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_FOTA); in makeNetworkFilter()
113 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_IMS); in makeNetworkFilter()
114 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_CBS); in makeNetworkFilter()
115 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_IA); in makeNetworkFilter()
116 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_RCS); in makeNetworkFilter()
[all …]
DApnContext.java568 NetworkCapabilities nc = nr.networkCapabilities; in apnIdForNetworkRequest() local
570 if (nc.getTransportTypes().length > 0 && in apnIdForNetworkRequest()
571 nc.hasTransport(NetworkCapabilities.TRANSPORT_CELLULAR) == false) { in apnIdForNetworkRequest()
580 if (nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET)) { in apnIdForNetworkRequest()
583 if (nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_MMS)) { in apnIdForNetworkRequest()
587 if (nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_SUPL)) { in apnIdForNetworkRequest()
591 if (nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_DUN)) { in apnIdForNetworkRequest()
595 if (nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_FOTA)) { in apnIdForNetworkRequest()
599 if (nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_IMS)) { in apnIdForNetworkRequest()
603 if (nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_CBS)) { in apnIdForNetworkRequest()
[all …]
/frameworks/rs/support/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/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/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/base/tests/net/java/android/net/
DConnectivityManagerTest.java84 final NetworkCapabilities nc = ConnectivityManager.networkCapabilitiesForType(legacyType); in verifyNetworkCapabilities() local
85 assertNotNull(nc); in verifyNetworkCapabilities()
86 assertTrue(nc.hasTransport(transportType)); in verifyNetworkCapabilities()
88 assertTrue(nc.hasCapability(capability)); in verifyNetworkCapabilities()
91 return nc; in verifyNetworkCapabilities()
105 final NetworkCapabilities nc = verifyNetworkCapabilities( in verifyRestrictedMobileNetworkCapabilities() local
112 assertFalse(nc.hasCapability(NET_CAPABILITY_INTERNET)); in verifyRestrictedMobileNetworkCapabilities()
113 assertFalse(nc.hasCapability(NET_CAPABILITY_NOT_RESTRICTED)); in verifyRestrictedMobileNetworkCapabilities()
154 final NetworkCapabilities nc = verifyNetworkCapabilities( in testNetworkCapabilitiesForTypeMobileMms() local
161 assertFalse(nc.hasCapability(NET_CAPABILITY_INTERNET)); in testNetworkCapabilitiesForTypeMobileMms()
[all …]
/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 …]
/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/layoutlib/bridge/src/android/graphics/
DRoundRectangle.java338 int nc = 0; in getPathIterator() local
341 coords[nc++] = (float) (x + ctrls[i] * width + ctrls[i + 1] / 2d); in getPathIterator()
342 coords[nc++] = (float) (y + ctrls[i + 2] * height + ctrls[i + 3] / 2d); in getPathIterator()
345 at.transform(coords, 0, coords, 0, nc / 2); in getPathIterator()
355 int nc = 0; in getPathIterator() local
358 coords[nc++] = x + ctrls[i] * width + ctrls[i + 1] / 2d; in getPathIterator()
359 coords[nc++] = y + ctrls[i + 2] * height + ctrls[i + 3] / 2d; in getPathIterator()
362 at.transform(coords, 0, coords, 0, nc / 2); in getPathIterator()
/frameworks/base/packages/CarrierDefaultApp/src/com/android/carrierdefaultapp/
DProvisionObserver.java56 final NetworkCapabilities nc = connMgr.getNetworkCapabilities(nw); in onStartJob() local
57 if (nc.hasTransport(NetworkCapabilities.TRANSPORT_CELLULAR) in onStartJob()
58 && nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET)) { in onStartJob()
/frameworks/base/services/core/java/com/android/server/connectivity/tethering/
DUpstreamNetworkMonitor.java471 NetworkCapabilities nc; in findFirstAvailableUpstreamByType() local
473 nc = ConnectivityManager.networkCapabilitiesForType(type); in findFirstAvailableUpstreamByType()
481 if (!nc.satisfiedByNetworkCapabilities(value.networkCapabilities)) { in findFirstAvailableUpstreamByType()
506 private static String getSignalStrength(NetworkCapabilities nc) { in getSignalStrength() argument
507 if (nc == null || !nc.hasSignalStrength()) return "unknown"; in getSignalStrength()
508 return Integer.toString(nc.getSignalStrength()); in getSignalStrength()
/frameworks/base/services/core/java/com/android/server/notification/
DRankingHelper.java650 final NotificationChannel nc = r.channels.get(channelId); in getNotificationChannel() local
651 if (nc != null && (includeDeleted || !nc.isDeleted())) { in getNotificationChannel()
652 return nc; in getNotificationChannel()
719 final NotificationChannel nc = r.channels.valueAt(i); in getNotificationChannelGroups() local
720 if (includeDeleted || !nc.isDeleted()) { in getNotificationChannelGroups()
721 if (nc.getGroup() != null) { in getNotificationChannelGroups()
722 if (r.groups.get(nc.getGroup()) != null) { in getNotificationChannelGroups()
723 NotificationChannelGroup ncg = groups.get(nc.getGroup()); in getNotificationChannelGroups()
725 ncg = r.groups.get(nc.getGroup()).clone(); in getNotificationChannelGroups()
726 groups.put(nc.getGroup(), ncg); in getNotificationChannelGroups()
[all …]
/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/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()

123