/frameworks/base/core/java/android/app/ |
D | SystemServiceRegistry.java | 233 public AccessibilityManager createService(ContextImpl ctx) { in registerService() argument 234 return AccessibilityManager.getInstance(ctx); in registerService() 240 public CaptioningManager createService(ContextImpl ctx) { in registerService() argument 241 return new CaptioningManager(ctx); in registerService() 247 public AccountManager createService(ContextImpl ctx) throws ServiceNotFoundException { in registerService() 250 return new AccountManager(ctx, service); in registerService() 256 public ActivityManager createService(ContextImpl ctx) { in registerService() 257 return new ActivityManager(ctx.getOuterContext(), ctx.mMainThread.getHandler()); in registerService() 263 public ActivityTaskManager createService(ContextImpl ctx) { in registerService() 265 ctx.getOuterContext(), ctx.mMainThread.getHandler()); in registerService() [all …]
|
/frameworks/base/services/core/jni/BroadcastRadio/ |
D | Tuner.cpp | 118 auto ctx = new TunerContext(); in nativeInit() local 119 ctx->mHalRev = static_cast<HalRevision>(halRev); in nativeInit() 120 ctx->mWithAudio = withAudio; in nativeInit() 121 ctx->mBand = static_cast<Band>(band); in nativeInit() 123 static_assert(sizeof(jlong) >= sizeof(ctx), "jlong is smaller than a pointer"); in nativeInit() 124 return reinterpret_cast<jlong>(ctx); in nativeInit() 131 auto ctx = reinterpret_cast<TunerContext*>(nativeContext); in nativeFinalize() local 132 delete ctx; in nativeFinalize() 160 auto& ctx = getNativeContext(env, jTuner); in assignHalInterfaces() local 162 if (ctx.mIsClosed) { in assignHalInterfaces() [all …]
|
D | BroadcastRadioService.cpp | 116 auto ctx = reinterpret_cast<ServiceContext*>(nativeContext); in nativeFinalize() local 117 delete ctx; in nativeFinalize() 123 auto& ctx = getNativeContext(nativeContext); in nativeLoadModules() local 139 ctx.mModules.clear(); in nativeLoadModules() 172 auto idx = ctx.mModules.size(); in nativeLoadModules() 173 ctx.mModules.push_back({module10, halRev, {}}); in nativeLoadModules() 174 auto& nModule = ctx.mModules[idx]; in nativeLoadModules() 208 auto& ctx = getNativeContext(nativeContext); in nativeOpenTuner() local 215 if (moduleId < 0 || static_cast<size_t>(moduleId) >= ctx.mModules.size()) { in nativeOpenTuner() 221 auto module = ctx.mModules[moduleId]; in nativeOpenTuner()
|
/frameworks/base/media/jni/ |
D | android_media_ImageReader.cpp | 235 JNIImageReaderContext *ctx; in ImageReader_getContext() local 236 ctx = reinterpret_cast<JNIImageReaderContext *> in ImageReader_getContext() 238 return ctx; in ImageReader_getContext() 244 JNIImageReaderContext* const ctx = ImageReader_getContext(env, thiz); in ImageReader_getProducer() local 245 if (ctx == NULL) { in ImageReader_getProducer() 250 return ctx->getProducer(); in ImageReader_getProducer() 254 jobject thiz, sp<JNIImageReaderContext> ctx) in ImageReader_setNativeContext() argument 258 if (ctx != 0) { in ImageReader_setNativeContext() 259 ctx->incStrong((void*)ImageReader_setNativeContext); in ImageReader_setNativeContext() 265 reinterpret_cast<jlong>(ctx.get())); in ImageReader_setNativeContext() [all …]
|
D | android_media_ImageWriter.cpp | 360 sp<JNIImageWriterContext> ctx(new JNIImageWriterContext(env, weakThiz, clazz)); in ImageWriter_init() local 363 ctx->setProducer(producer); in ImageWriter_init() 369 res = producer->connect(/*api*/NATIVE_WINDOW_API_CAMERA, /*listener*/ctx); in ImageWriter_init() 377 jlong nativeCtx = reinterpret_cast<jlong>(ctx.get()); in ImageWriter_init() 387 ctx->setBufferWidth(width); in ImageWriter_init() 394 ctx->setBufferHeight(height); in ImageWriter_init() 427 ctx->setBufferFormat(surfaceFormat); in ImageWriter_init() 460 if (ctx != 0) { in ImageWriter_init() 461 ctx->incStrong((void*)ImageWriter_init); in ImageWriter_init() 468 JNIImageWriterContext* const ctx = reinterpret_cast<JNIImageWriterContext *>(nativeCtx); in ImageWriter_dequeueImage() local [all …]
|
/frameworks/base/core/jni/ |
D | eventlog_helper.h | 77 android_log_event_list ctx(tag); in writeEventInteger() 78 ctx << (int32_t)value; in writeEventInteger() 79 return ctx.write(LogID); in writeEventInteger() 83 android_log_event_list ctx(tag); in writeEventLong() 84 ctx << (int64_t)value; in writeEventLong() 85 return ctx.write(LogID); in writeEventLong() 89 android_log_event_list ctx(tag); in writeEventFloat() 90 ctx << (float)value; in writeEventFloat() 91 return ctx.write(LogID); in writeEventFloat() 95 android_log_event_list ctx(tag); in writeEventString() [all …]
|
/frameworks/base/services/core/java/com/android/server/biometrics/face/ |
D | FaceUtils.java | 54 public List<Face> getBiometricsForUser(Context ctx, int userId) { in getBiometricsForUser() argument 55 return getStateForUser(ctx, userId).getBiometrics(); in getBiometricsForUser() 59 public void addBiometricForUser(Context ctx, int userId, in addBiometricForUser() argument 61 getStateForUser(ctx, userId).addBiometric(identifier); in addBiometricForUser() 65 public void removeBiometricForUser(Context ctx, int userId, int faceId) { in removeBiometricForUser() argument 66 getStateForUser(ctx, userId).removeBiometric(faceId); in removeBiometricForUser() 70 public void renameBiometricForUser(Context ctx, int userId, int faceId, CharSequence name) { in renameBiometricForUser() argument 75 getStateForUser(ctx, userId).renameBiometric(faceId, name); in renameBiometricForUser() 83 private FaceUserState getStateForUser(Context ctx, int userId) { in getStateForUser() argument 87 state = new FaceUserState(ctx, userId); in getStateForUser()
|
/frameworks/native/libs/adbd_auth/include/ |
D | adbd_auth.h | 69 void adbd_auth_delete(AdbdAuthContext* ctx) __INTRODUCED_IN(30); 79 void adbd_auth_run(AdbdAuthContext* ctx) __INTRODUCED_IN(30); 90 void adbd_auth_get_public_keys(AdbdAuthContext* ctx, 102 uint64_t adbd_auth_notify_auth(AdbdAuthContext* ctx, 112 void adbd_auth_notify_disconnect(AdbdAuthContext* ctx, 125 void adbd_auth_prompt_user(AdbdAuthContext* ctx, 138 uint64_t adbd_auth_tls_device_connected(AdbdAuthContext* ctx, 150 void adbd_auth_tls_device_disconnected(AdbdAuthContext* ctx,
|
/frameworks/rs/tests/java_api/RsTest_11/src/com/android/rs/test/ |
D | UnitTest.java | 37 protected UnitTest(RSTestCore rstc, String n, int initResult, Context ctx) { in UnitTest() argument 42 mCtx = ctx; in UnitTest() 47 protected UnitTest(RSTestCore rstc, String n, Context ctx) { in UnitTest() argument 48 this(rstc, n, 0, ctx); in UnitTest() 51 protected UnitTest(RSTestCore rstc, Context ctx) { in UnitTest() argument 52 this (rstc, "<Unknown>", ctx); in UnitTest() 55 protected UnitTest(Context ctx) { in UnitTest() argument 56 this (null, ctx); in UnitTest()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/accessibility/ |
D | AccessibilityButtonHelper.java | 31 public static boolean isRequestedByMagnification(Context ctx) { in isRequestedByMagnification() argument 32 return Settings.Secure.getInt(ctx.getContentResolver(), in isRequestedByMagnification() 36 public static boolean isRequestedByAccessibilityService(Context ctx) { in isRequestedByAccessibilityService() argument 37 final AccessibilityManager accessibilityManager = ctx.getSystemService( in isRequestedByAccessibilityService() 54 public static boolean isRequested(Context ctx) { in isRequested() argument 55 return isRequestedByMagnification(ctx) || isRequestedByAccessibilityService(ctx); in isRequested()
|
/frameworks/rs/tests/java_api/RsTest_16/src/com/android/rs/test/ |
D | UnitTest.java | 37 protected UnitTest(RSTestCore rstc, String n, int initResult, Context ctx) { in UnitTest() argument 42 mCtx = ctx; in UnitTest() 47 protected UnitTest(RSTestCore rstc, String n, Context ctx) { in UnitTest() argument 48 this(rstc, n, 0, ctx); in UnitTest() 51 protected UnitTest(RSTestCore rstc, Context ctx) { in UnitTest() argument 52 this (rstc, "<Unknown>", ctx); in UnitTest() 55 protected UnitTest(Context ctx) { in UnitTest() argument 56 this (null, ctx); in UnitTest()
|
/frameworks/rs/tests/java_api/RsTest_14/src/com/android/rs/test/ |
D | UnitTest.java | 37 protected UnitTest(RSTestCore rstc, String n, int initResult, Context ctx) { in UnitTest() argument 42 mCtx = ctx; in UnitTest() 47 protected UnitTest(RSTestCore rstc, String n, Context ctx) { in UnitTest() argument 48 this(rstc, n, 0, ctx); in UnitTest() 51 protected UnitTest(RSTestCore rstc, Context ctx) { in UnitTest() argument 52 this (rstc, "<Unknown>", ctx); in UnitTest() 55 protected UnitTest(Context ctx) { in UnitTest() argument 56 this (null, ctx); in UnitTest()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/animation/ |
D | DisappearAnimationUtils.java | 28 public DisappearAnimationUtils(Context ctx) { in DisappearAnimationUtils() argument 29 this(ctx, DEFAULT_APPEAR_DURATION, in DisappearAnimationUtils() 31 AnimationUtils.loadInterpolator(ctx, android.R.interpolator.fast_out_linear_in)); in DisappearAnimationUtils() 34 public DisappearAnimationUtils(Context ctx, long duration, float translationScaleFactor, in DisappearAnimationUtils() argument 36 this(ctx, duration, translationScaleFactor, delayScaleFactor, interpolator, in DisappearAnimationUtils() 40 public DisappearAnimationUtils(Context ctx, long duration, float translationScaleFactor, in DisappearAnimationUtils() argument 42 super(ctx, duration, translationScaleFactor, delayScaleFactor, interpolator); in DisappearAnimationUtils()
|
/frameworks/rs/tests/java_api/RSTest_CompatLibLegacy/src/com/android/rs/test/ |
D | UnitTest.java | 37 protected UnitTest(RSTestCore rstc, String n, int initResult, Context ctx) { in UnitTest() argument 42 mCtx = ctx; in UnitTest() 47 protected UnitTest(RSTestCore rstc, String n, Context ctx) { in UnitTest() argument 48 this(rstc, n, 0, ctx); in UnitTest() 51 protected UnitTest(RSTestCore rstc, Context ctx) { in UnitTest() argument 52 this (rstc, "<Unknown>", ctx); in UnitTest() 55 protected UnitTest(Context ctx) { in UnitTest() argument 56 this (null, ctx); in UnitTest()
|
/frameworks/base/core/tests/coretests/src/android/provider/ |
D | FontsContractE2ETest.java | 117 Context ctx = inst.getTargetContext(); in typefaceCacheTest() local 123 FontsContract.requestFonts(ctx, request, new Handler(), null, callback); in typefaceCacheTest() 134 FontsContract.requestFonts(ctx, request, new Handler(), null, callback2); in typefaceCacheTest() 145 FontsContract.requestFonts(ctx, request, new Handler(), null, callback3); in typefaceCacheTest() 156 Context ctx = inst.getTargetContext(); in typefaceNotCacheTest() local 161 ctx, null /* cancellation signal */, request); in typefaceNotCacheTest() 164 ctx, null /* cancellation signal */, result.getFonts()); in typefaceNotCacheTest() 167 ctx, null /* cancellation signal */, request); in typefaceNotCacheTest() 170 ctx, null /* cancellation signal */, result2.getFonts()); in typefaceNotCacheTest() 179 Context ctx = inst.getTargetContext(); in typefaceNullFdTest() local [all …]
|
/frameworks/base/packages/Tethering/src/com/android/networkstack/tethering/ |
D | TetheringDependencies.java | 76 public UpstreamNetworkMonitor getUpstreamNetworkMonitor(Context ctx, StateMachine target, in getUpstreamNetworkMonitor() argument 78 return new UpstreamNetworkMonitor(ctx, target, log, what); in getUpstreamNetworkMonitor() 109 public EntitlementManager getEntitlementManager(Context ctx, Handler h, SharedLog log, in getEntitlementManager() argument 111 return new EntitlementManager(ctx, h, log, callback); in getEntitlementManager() 117 public TetheringConfiguration generateTetheringConfiguration(Context ctx, SharedLog log, in generateTetheringConfiguration() argument 119 return new TetheringConfiguration(ctx, log, subId); in generateTetheringConfiguration() 133 public TetheringNotificationUpdater getNotificationUpdater(@NonNull final Context ctx, in getNotificationUpdater() argument 135 return new TetheringNotificationUpdater(ctx, looper); in getNotificationUpdater()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/wrapper/ |
D | NotificationViewWrapper.java | 54 public static NotificationViewWrapper wrap(Context ctx, View v, ExpandableNotificationRow row) { in wrap() argument 57 return new NotificationBigPictureTemplateViewWrapper(ctx, v, row); in wrap() 59 return new NotificationBigTextTemplateViewWrapper(ctx, v, row); in wrap() 61 return new NotificationMediaTemplateViewWrapper(ctx, v, row); in wrap() 63 return new NotificationMessagingTemplateViewWrapper(ctx, v, row); in wrap() 68 return new NotificationDecoratedCustomViewWrapper(ctx, v, row); in wrap() 70 return new NotificationTemplateViewWrapper(ctx, v, row); in wrap() 72 return new NotificationHeaderViewWrapper(ctx, v, row); in wrap() 74 return new NotificationCustomViewWrapper(ctx, v, row); in wrap() 78 protected NotificationViewWrapper(Context ctx, View view, ExpandableNotificationRow row) { in NotificationViewWrapper() argument
|
/frameworks/native/cmds/servicemanager/ |
D | ServiceManager.cpp | 132 auto ctx = mAccess->getCallingContext(); in tryGetService() local 140 uid_t appid = multiuser_get_app_id(ctx.uid); in tryGetService() 150 if (!mAccess->canFind(ctx, name)) { in tryGetService() 183 auto ctx = mAccess->getCallingContext(); in addService() local 186 if (multiuser_get_app_id(ctx.uid) >= AID_APP) { in addService() 190 if (!mAccess->canAdd(ctx, name)) { in addService() 220 .debugPid = ctx.debugPid, in addService() 263 auto ctx = mAccess->getCallingContext(); in registerForNotifications() local 265 if (!mAccess->canFind(ctx, name)) { in registerForNotifications() 297 auto ctx = mAccess->getCallingContext(); in unregisterForNotifications() local [all …]
|
D | Access.cpp | 113 bool Access::canFind(const CallingContext& ctx,const std::string& name) { in canFind() argument 114 return actionAllowedFromLookup(ctx, name, "find"); in canFind() 117 bool Access::canAdd(const CallingContext& ctx, const std::string& name) { in canAdd() argument 118 return actionAllowedFromLookup(ctx, name, "add"); in canAdd() 121 bool Access::canList(const CallingContext& ctx) { in canList() argument 122 return actionAllowed(ctx, mThisProcessContext, "list", "service_manager"); in canList()
|
/frameworks/av/camera/ndk/impl/ |
D | ACaptureRequest.h | 53 camera_status_t setContext(void* ctx) { in setContext() 54 context = ctx; in setContext() 58 camera_status_t getContext(void** ctx) const { in getContext() 59 *ctx = context; in getContext()
|
/frameworks/base/tools/aapt2/optimize/ |
D | MultiApkGenerator_test.cpp | 110 std::unique_ptr<IAaptContext> ctx = test::ContextBuilder().SetMinSdkVersion(19).Build(); in TEST_F() local 115 MultiApkGeneratorWrapper generator{&apk, ctx.get()}; in TEST_F() 117 generator.FilterTable(ctx.get(), artifact, *apk.GetResourceTable(), &chain); in TEST_F() 137 std::unique_ptr<IAaptContext> ctx = test::ContextBuilder().SetMinSdkVersion(1).Build(); in TEST_F() local 142 MultiApkGeneratorWrapper generator{&apk, ctx.get()};; in TEST_F() 144 generator.FilterTable(ctx.get(), artifact, *apk.GetResourceTable(), &chain); in TEST_F() 162 std::unique_ptr<IAaptContext> ctx = test::ContextBuilder().SetMinSdkVersion(1).Build(); in TEST_F() local 167 MultiApkGeneratorWrapper generator{&apk, ctx.get()}; in TEST_F() 169 generator.FilterTable(ctx.get(), artifact, *apk.GetResourceTable(), &chain); in TEST_F()
|
/frameworks/rs/cpu_ref/ |
D | rsCpuIntrinsicLUT.cpp | 33 RsdCpuScriptIntrinsicLUT(RsdCpuReferenceImpl *ctx, const Script *s, const Element *e); 76 RsdCpuScriptIntrinsicLUT::RsdCpuScriptIntrinsicLUT(RsdCpuReferenceImpl *ctx, in RsdCpuScriptIntrinsicLUT() argument 78 : RsdCpuScriptIntrinsic(ctx, s, e, RS_SCRIPT_INTRINSIC_ID_LUT) { in RsdCpuScriptIntrinsicLUT() 94 RsdCpuScriptImpl * rsdIntrinsic_LUT(RsdCpuReferenceImpl *ctx, in rsdIntrinsic_LUT() argument 97 return new RsdCpuScriptIntrinsicLUT(ctx, s, e); in rsdIntrinsic_LUT()
|
/frameworks/native/opengl/libs/EGL/ |
D | egl_tls.cpp | 32 : error(EGL_SUCCESS), ctx(nullptr), logCallWithNoContext(true) { in egl_tls_t() 157 void egl_tls_t::setContext(EGLContext ctx) { in setContext() argument 159 getTLS()->ctx = ctx; in setContext() 168 return tls->ctx; in getContext()
|
/frameworks/base/services/backup/java/com/android/server/backup/ |
D | KeyValueBackupJob.java | 66 public static void schedule(int userId, Context ctx, BackupManagerConstants constants) { in schedule() argument 67 schedule(userId, ctx, 0, constants); in schedule() 70 public static void schedule(int userId, Context ctx, long delay, in schedule() argument 106 JobScheduler js = (JobScheduler) ctx.getSystemService(Context.JOB_SCHEDULER_SERVICE); in schedule() 114 public static void cancel(int userId, Context ctx) { in cancel() argument 116 JobScheduler js = (JobScheduler) ctx.getSystemService( in cancel()
|
/frameworks/native/libs/adbd_auth/ |
D | adbd_auth.cpp | 524 void adbd_auth_delete(AdbdAuthContext* ctx) { in adbd_auth_delete() argument 525 delete ctx; in adbd_auth_delete() 528 void adbd_auth_run(AdbdAuthContext* ctx) { in adbd_auth_run() argument 529 return ctx->Run(); in adbd_auth_run() 532 void adbd_auth_get_public_keys(AdbdAuthContext* ctx, in adbd_auth_get_public_keys() argument 535 ctx->IteratePublicKeys(callback, opaque); in adbd_auth_get_public_keys() 538 uint64_t adbd_auth_notify_auth(AdbdAuthContext* ctx, const char* public_key, size_t len) { in adbd_auth_notify_auth() argument 539 return ctx->NotifyAuthenticated(std::string_view(public_key, len)); in adbd_auth_notify_auth() 542 void adbd_auth_notify_disconnect(AdbdAuthContext* ctx, uint64_t id) { in adbd_auth_notify_disconnect() argument 543 return ctx->NotifyDisconnected(id); in adbd_auth_notify_disconnect() [all …]
|