Home
last modified time | relevance | path

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

123

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DNeighboringCellInfoTest.java33 NeighboringCellInfo nc; in testConstructor() local
35 nc = new NeighboringCellInfo(rssi, "FFFFFFF", NETWORK_TYPE_EDGE); in testConstructor()
36 assertEquals(NETWORK_TYPE_EDGE, nc.getNetworkType()); in testConstructor()
37 assertEquals(rssi, nc.getRssi()); in testConstructor()
38 assertEquals(0xfff, nc.getLac()); in testConstructor()
39 assertEquals(0xffff, nc.getCid()); in testConstructor()
40 assertEquals(NeighboringCellInfo.UNKNOWN_CID, nc.getPsc()); in testConstructor()
42 nc = new NeighboringCellInfo(rssi, "1FF", NETWORK_TYPE_UMTS); in testConstructor()
43 assertEquals(NETWORK_TYPE_UMTS, nc.getNetworkType()); in testConstructor()
44 assertEquals(rssi, nc.getRssi()); in testConstructor()
[all …]
/frameworks/av/media/module/codecs/amrwb/enc/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/module/codecs/amrwb/dec/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/base/rs/java/android/renderscript/
DMatrix3f.java130 float nc = 1.0f - c; in loadRotate() local
137 mMat[0] = x*x*nc + c; in loadRotate()
138 mMat[3] = xy*nc - zs; in loadRotate()
139 mMat[6] = zx*nc + ys; in loadRotate()
140 mMat[1] = xy*nc + zs; in loadRotate()
141 mMat[4] = y*y*nc + c; in loadRotate()
142 mMat[7] = yz*nc - xs; in loadRotate()
143 mMat[2] = zx*nc - ys; in loadRotate()
144 mMat[5] = yz*nc + xs; in loadRotate()
145 mMat[8] = z*z*nc + c; in loadRotate()
DMatrix4f.java175 float nc = 1.0f - c; in loadRotate() local
182 mMat[ 0] = x*x*nc + c; in loadRotate()
183 mMat[ 4] = xy*nc - zs; in loadRotate()
184 mMat[ 8] = zx*nc + ys; in loadRotate()
185 mMat[ 1] = xy*nc + zs; in loadRotate()
186 mMat[ 5] = y*y*nc + c; in loadRotate()
187 mMat[ 9] = yz*nc - xs; in loadRotate()
188 mMat[ 2] = zx*nc - ys; in loadRotate()
189 mMat[ 6] = yz*nc + xs; in loadRotate()
190 mMat[10] = z*z*nc + c; in loadRotate()
/frameworks/rs/support/java/src/androidx/renderscript/
DMatrix3f.java133 float nc = 1.0f - c; in loadRotate() local
140 mMat[0] = x*x*nc + c; in loadRotate()
141 mMat[3] = xy*nc - zs; in loadRotate()
142 mMat[6] = zx*nc + ys; in loadRotate()
143 mMat[1] = xy*nc + zs; in loadRotate()
144 mMat[4] = y*y*nc + c; in loadRotate()
145 mMat[7] = yz*nc - xs; in loadRotate()
146 mMat[2] = zx*nc - ys; in loadRotate()
147 mMat[5] = yz*nc + xs; in loadRotate()
148 mMat[8] = z*z*nc + c; in loadRotate()
DMatrix4f.java176 float nc = 1.0f - c; in loadRotate() local
183 mMat[ 0] = x*x*nc + c; in loadRotate()
184 mMat[ 4] = xy*nc - zs; in loadRotate()
185 mMat[ 8] = zx*nc + ys; in loadRotate()
186 mMat[ 1] = xy*nc + zs; in loadRotate()
187 mMat[ 5] = y*y*nc + c; in loadRotate()
188 mMat[ 9] = yz*nc - xs; in loadRotate()
189 mMat[ 2] = zx*nc - ys; in loadRotate()
190 mMat[ 6] = yz*nc + xs; in loadRotate()
191 mMat[10] = z*z*nc + c; in loadRotate()
/frameworks/av/media/module/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/services/core/java/com/android/server/connectivity/
DDefaultNetworkMetrics.java127 boolean validated, LinkProperties lp, NetworkCapabilities nc, in logDefaultNetworkEvent() argument
132 newDefaultNetwork(timeMs, defaultNetwork, score, validated, lp, nc); in logDefaultNetworkEvent()
136 LinkProperties lp, NetworkCapabilities nc) { in logCurrentDefaultNetwork() argument
146 fillLinkInfo(ev, network, lp, nc); in logCurrentDefaultNetwork()
161 LinkProperties lp, NetworkCapabilities nc) { in newDefaultNetwork() argument
166 fillLinkInfo(ev, network, lp, nc); in newDefaultNetwork()
179 NetworkCapabilities nc) { in fillLinkInfo() argument
181 ev.transports |= BitUtils.packBits(nc.getTransportTypes()); in fillLinkInfo()
DMultipathPolicyTracker.java205 public MultipathTracker(Network network, NetworkCapabilities nc) { in MultipathTracker() argument
207 this.mNetworkCapabilities = new NetworkCapabilities(nc); in MultipathTracker()
208 NetworkSpecifier specifier = nc.getNetworkSpecifier(); in MultipathTracker()
214 network, nc)); in MultipathTracker()
254 public void setNetworkCapabilities(NetworkCapabilities nc) { in setNetworkCapabilities() argument
255 mNetworkCapabilities = new NetworkCapabilities(nc); in setNetworkCapabilities()
282 private NetworkIdentity getTemplateMatchingNetworkIdentity(NetworkCapabilities nc) { in getTemplateMatchingNetworkIdentity() argument
285 .setRoaming(!nc.hasCapability(NET_CAPABILITY_NOT_ROAMING)) in getTemplateMatchingNetworkIdentity()
286 .setMetered(!nc.hasCapability(NET_CAPABILITY_NOT_METERED)) in getTemplateMatchingNetworkIdentity()
478 public void onCapabilitiesChanged(Network network, NetworkCapabilities nc) { in registerTrackMobileCallback()
[all …]
DNetdEventListenerService.java179 final NetworkCapabilities nc = mCallback.getNetworkCapabilities(netId); in getMetricsForNetwork() local
180 final long transports = (nc != null) ? BitUtils.packBits(nc.getTransportTypes()) : 0; in getMetricsForNetwork()
182 (metrics != null && nc != null && metrics.transports != transports); in getMetricsForNetwork()
283 final NetworkCapabilities nc = mCm.getNetworkCapabilities(network); in hasWifiTransport() local
284 return nc.hasTransport(NetworkCapabilities.TRANSPORT_WIFI); in hasWifiTransport()
472 public void onCapabilitiesChanged(Network network, NetworkCapabilities nc) { in onCapabilitiesChanged() argument
474 mCapabilities.put(network.getNetId(), nc); in onCapabilitiesChanged() local
DVpn.java543 @NonNull NetworkCapabilities nc, in newNetworkAgent() argument
550 context, looper, logTag, nc, lp, score, config, provider, callback); in newNetworkAgent()
841 @Nullable final NetworkCapabilities nc, @Nullable final LinkProperties lp) { in buildVpnManagerEventIntent() argument
850 intent.putExtra(VpnManager.EXTRA_UNDERLYING_NETWORK_CAPABILITIES, nc); in buildVpnManagerEventIntent()
865 @Nullable final NetworkCapabilities nc, @Nullable final LinkProperties lp) { in sendEventToVpnManagerApp() argument
870 packageName, sessionKey, profileState, underlyingNetwork, nc, lp); in sendEventToVpnManagerApp()
2615 NetworkCapabilities nc) { in getRedactedNetworkCapabilities() argument
2616 if (nc == null) return null; in getRedactedNetworkCapabilities()
2618 nc, mOwnerUID, mPackage); in getRedactedNetworkCapabilities()
2661 void onDefaultNetworkCapabilitiesChanged(@NonNull NetworkCapabilities nc); in onDefaultNetworkCapabilitiesChanged() argument
[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/base/services/core/java/com/android/server/notification/
DPreferencesHelper.java466 private boolean isDeletionOk(NotificationChannel nc) { in isDeletionOk() argument
467 if (!nc.isDeleted()) { in isDeletionOk()
472 if (nc.getDeletedTimeMs() <= boundary) { in isDeletionOk()
1327 final NotificationChannel nc = r.channels.get(channelId); in getConversationNotificationChannel() local
1328 if (nc != null && (includeDeleted || !nc.isDeleted())) { in getConversationNotificationChannel()
1329 return nc; in getConversationNotificationChannel()
1338 for (NotificationChannel nc : p.channels.values()) { in findConversationChannel()
1339 if (conversationId.equals(nc.getConversationId()) in findConversationChannel()
1340 && parentId.equals(nc.getParentChannelId()) in findConversationChannel()
1341 && (includeDeleted || !nc.isDeleted())) { in findConversationChannel()
[all …]
/frameworks/base/tests/vcn/java/android/net/vcn/
DVcnManagerTest.java127 NetworkCapabilities nc = new NetworkCapabilities(); in testGetUnderlyingNetworkPolicy() local
129 when(mMockVcnManagementService.getUnderlyingNetworkPolicy(eq(nc), eq(lp))) in testGetUnderlyingNetworkPolicy()
130 .thenReturn(new VcnUnderlyingNetworkPolicy(false /* isTearDownRequested */, nc)); in testGetUnderlyingNetworkPolicy()
132 VcnUnderlyingNetworkPolicy policy = mVcnManager.getUnderlyingNetworkPolicy(nc, lp); in testGetUnderlyingNetworkPolicy()
135 assertEquals(nc, policy.getMergedNetworkCapabilities()); in testGetUnderlyingNetworkPolicy()
136 verify(mMockVcnManagementService).getUnderlyingNetworkPolicy(eq(nc), eq(lp)); in testGetUnderlyingNetworkPolicy()
/frameworks/base/core/java/com/android/internal/graphics/cam/
DFrame.java120 private Frame(float n, float aw, float nbb, float ncb, float c, float nc, float[] rgbD, in Frame() argument
127 mNc = nc; in Frame()
156 float nc = f; in make() local
200 return new Frame(n, aw, nbb, ncb, c, nc, rgbD, fl, (float) Math.pow(fl, 0.25), z); in make()
/frameworks/base/packages/CarrierDefaultApp/src/com/android/carrierdefaultapp/
DProvisionObserver.java55 final NetworkCapabilities nc = connMgr.getNetworkCapabilities(nw); in onStartJob() local
56 if (nc.hasTransport(NetworkCapabilities.TRANSPORT_CELLULAR) in onStartJob()
57 && nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET)) { in onStartJob()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
DChannelEditorListView.kt210 val nc = channel ?: return in updateViews() constant
212 channelName.text = nc.name ?: "" in updateViews()
214 nc.group?.let { groupId -> in updateViews()
218 if (nc.group == null || TextUtils.isEmpty(channelDescription.text)) { in updateViews()
224 switch.isChecked = nc.importance != IMPORTANCE_NONE in updateViews()
/frameworks/libs/systemui/weathereffects/graphics/assets/shaders/
Dsimplex3d.agsl121 vec4 nc;
122 nc.x = dot(hash(s), c0);
123 nc.y = dot(hash(s + offset1), c1);
124 nc.z = dot(hash(s + offset2), c2);
125 nc.w = dot(hash(s + offset3), c3);
127 nc *= w * w * w * w;
131 return dot(vec4(32.), nc);
/frameworks/base/libs/hwui/
DMatrix.cpp356 const float nc = 1.0f - c; in loadRotate() local
364 data[kScaleX] = x * x * nc + c; in loadRotate()
365 data[kSkewX] = xy * nc - zs; in loadRotate()
366 data[8] = zx * nc + ys; in loadRotate()
367 data[kSkewY] = xy * nc + zs; in loadRotate()
368 data[kScaleY] = y * y * nc + c; in loadRotate()
369 data[9] = yz * nc - xs; in loadRotate()
370 data[2] = zx * nc - ys; in loadRotate()
371 data[6] = yz * nc + xs; in loadRotate()
372 data[kScaleZ] = z * z * nc + c; in loadRotate()
/frameworks/native/libs/math/include/math/
DTMatHelpers.h510 T nc = 1 - c; in rotate() local
517 r[0][0] = x*x*nc + c; r[1][0] = xy*nc - zs; r[2][0] = zx*nc + ys; in rotate()
518 r[0][1] = xy*nc + zs; r[1][1] = y*y*nc + c; r[2][1] = yz*nc - xs; in rotate()
519 r[0][2] = zx*nc - ys; r[1][2] = yz*nc + xs; r[2][2] = z*z*nc + c; in rotate()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/
DDefaultNetworkMonitor.java52 @NonNull NetworkCapabilities nc) { in onCapabilitiesChanged() argument
54 mNetworkCapabilities = nc; in onCapabilitiesChanged()
/frameworks/base/opengl/java/android/opengl/
DMatrix.java787 float nc = 1.0f - c; in setRotateM() local
794 rm[rmOffset + 0] = x*x*nc + c; in setRotateM()
795 rm[rmOffset + 4] = xy*nc - zs; in setRotateM()
796 rm[rmOffset + 8] = zx*nc + ys; in setRotateM()
797 rm[rmOffset + 1] = xy*nc + zs; in setRotateM()
798 rm[rmOffset + 5] = y*y*nc + c; in setRotateM()
799 rm[rmOffset + 9] = yz*nc - xs; in setRotateM()
800 rm[rmOffset + 2] = zx*nc - ys; in setRotateM()
801 rm[rmOffset + 6] = yz*nc + xs; in setRotateM()
802 rm[rmOffset + 10] = z*z*nc + c; in setRotateM()
/frameworks/base/core/java/android/net/metrics/
DIpConnectivityLog.java206 boolean validated, @Nullable LinkProperties lp, @Nullable NetworkCapabilities nc, in logDefaultNetworkEvent() argument
213 mService.logDefaultNetworkEvent(defaultNetwork, score, validated, lp, nc, in logDefaultNetworkEvent()
/frameworks/base/core/java/android/net/
DIIpConnectivityMetrics.aidl37 in LinkProperties lp, in NetworkCapabilities nc, in Network previousDefaultNetwork, in logDefaultNetworkEvent() argument

123