auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private boolean checkForIntentsNotHandled ( java.util.ArrayList < android.content.Intent > intentList , android.content.pm.ActivityInfo expectedForwarderActivityInfo , java.lang.String errorMessage , boolean canResolve ) { boolean success = true ; for ( android.content.Intent intent : intentList ) { if ( ( canForwarderActivityHandleIntent ( intent , expectedForwarderActivityInfo ) ) != canResolve ) { android.util.Log.e ( com.android.cts.verifier.managedprovisioning.IntentFiltersTestHelper.TAG , ( ( intent + " " ) + errorMessage ) ) ; success = false ; } } return success ; }

Target:
private boolean checkIntentForwarding ( java.util.ArrayList < android.content.Intent > intentList , android.content.pm.ActivityInfo expectedForwarderActivityInfo , java.lang.String errorMessage , boolean canResolve ) { boolean success = true ; for ( android.content.Intent intent : intentList ) { if ( ( canForwarderActivityHandleIntent ( intent , expectedForwarderActivityInfo ) ) != canResolve ) { android.util.Log.e ( com.android.cts.verifier.managedprovisioning.IntentFiltersTestHelper.TAG , ( ( intent + " " ) + errorMessage ) ) ; success = false ; } } return success ; }
Source:
public boolean doIconQuery ( long bssid , java.lang.String fileName ) { java.lang.String result = mSupplicantHook.doCustomSupplicantCommand ( ( ( ( "REQ_HS20_ICON " + ( com.android.server.wifi.hotspot2.Utils.macToString ( bssid ) ) ) + " " ) + fileName ) ) ; return ( result != null ) && ( result.startsWith ( "OK" ) ) ; }

Target:
public boolean requestIcon ( long bssid , java.lang.String fileName ) { java.lang.String result = mSupplicantHook.doCustomSupplicantCommand ( ( ( ( "REQ_HS20_ICON " + ( com.android.server.wifi.hotspot2.Utils.macToString ( bssid ) ) ) + " " ) + fileName ) ) ; return ( result != null ) && ( result.startsWith ( "OK" ) ) ; }
Source:
public void onError ( int errorCode , java.lang.String message ) { try { callback.onError ( errorCode , message ) ; } catch ( android.os.RemoteException e ) { onAppCallbackDied ( uid , subscriptionId ) ; } }

Target:
public void onError ( int errorCode , java.lang.String message ) { try { if ( errorCode == ( android.telephony.mbms.MbmsErrors.UNKNOWN ) ) { throw new java.lang.IllegalArgumentException ( "Middleware cannot send an unknown error." ) ; } callback.onError ( errorCode , message ) ; } catch ( android.os.RemoteException e ) { onAppCallbackDied ( uid , subscriptionId ) ; } }
Source:
private java.nio.MappedByteBuffer mapFile ( java.io.File f , long offset ) throws java.io.IOException { java.io.FileInputStream dataFile = new java.io.FileInputStream ( f ) ; try { java.nio.channels.FileChannel fc = dataFile.getChannel ( ) ; java.nio.MappedByteBuffer buffer = fc.map ( java.nio.channels.FileChannel.MapMode.READ_ONLY , offset , ( ( f.length ( ) ) - offset ) ) ; buffer.order ( java.nio.ByteOrder.LITTLE_ENDIAN ) ; return buffer ; } finally { dataFile.close ( ) ; } }

Target:
private static java.nio.ByteBuffer mapFile ( @ com.android.annotations.NonNull java.io.File f , long offset ) throws java.io.IOException { java.io.FileInputStream dataFile = new java.io.FileInputStream ( f ) ; try { java.nio.channels.FileChannel fc = dataFile.getChannel ( ) ; java.nio.MappedByteBuffer buffer = fc.map ( java.nio.channels.FileChannel.MapMode.READ_ONLY , offset , ( ( f.length ( ) ) - offset ) ) ; buffer.order ( java.nio.ByteOrder.LITTLE_ENDIAN ) ; return buffer ; } finally { dataFile.close ( ) ; } }
Source:
public java.lang.String getApiLabel ( ) { com.android.sdklib.AndroidVersion key = ( ( com.android.sdklib.AndroidVersion ) ( getKey ( ) ) ) ; if ( key.equals ( com.android.sdkuilib.internal.repository.sdkman2.PkgCategoryApi.KEY_TOOLS ) ) { return "TOOLS" ; } else if ( key.equals ( com.android.sdkuilib.internal.repository.sdkman2.PkgCategoryApi.KEY_TOOLS_PREVIEW ) ) { return "TOOLS-PREVIEW" ; } else if ( key.equals ( com.android.sdkuilib.internal.repository.sdkman2.PkgCategoryApi.KEY_EXTRA ) ) { return "EXTRAS" ; } else { return key.toString ( ) ; } }

Target:
public java.lang.String getApiLabel ( ) { com.android.sdklib.AndroidVersion key = ( ( com.android.sdklib.AndroidVersion ) ( getKey ( ) ) ) ; if ( key.equals ( com.android.sdkuilib.internal.repository.core.PkgCategoryApi.KEY_TOOLS ) ) { return "TOOLS" ; } else if ( key.equals ( com.android.sdkuilib.internal.repository.core.PkgCategoryApi.KEY_TOOLS_PREVIEW ) ) { return "TOOLS-PREVIEW" ; } else if ( key.equals ( com.android.sdkuilib.internal.repository.core.PkgCategoryApi.KEY_EXTRA ) ) { return "EXTRAS" ; } else { return key.toString ( ) ; } }
Source:
public final long getLong ( ) { int newPosition = ( position ) + ( libcore.io.SizeOf.LONG ) ; if ( newPosition > ( limit ) ) { throw new java.nio.BufferUnderflowException ( ) ; } long result = this . block.peekLong ( ( ( offset ) + ( position ) ) , order ) ; position = newPosition ; return result ; }

Target:
public final long getLong ( ) { checkNotFreed ( ) ; int newPosition = ( position ) + ( libcore.io.SizeOf.LONG ) ; if ( newPosition > ( limit ) ) { throw new java.nio.BufferUnderflowException ( ) ; } long result = this . block.peekLong ( ( ( offset ) + ( position ) ) , order ) ; position = newPosition ; return result ; }
Source:
public void testConvertMarkup5 ( ) throws java.lang.Exception { java.lang.String explanation = "The `<uses-sdk>` element should appear just once; the tools will *not* merge the " + ( ( "contents of all the elements so if you split up the atttributes across multiple " + "elements, only one of them will take effect. To fix this, just merge all the " ) + "attributes from the various elements into a single <uses-sdk> element." ) ; assertEquals ( ( "The <code>&lt;uses-sdk></code> element should appear just once; the tools " + ( ( ( "will <b>not</b> merge the " + "contents of all the elements so if you split up the atttributes across multiple " ) + "elements, only one of them will take effect. To fix this, just merge all the " ) + "attributes from the various elements into a single &lt;uses-sdk> element." ) ) , com.android.tools.lint.detector.api.TextFormatTest.convertMarkup ( explanation , com.android.tools.lint.detector.api.TextFormat.HTML ) ) ; }

Target:
public void testConvertMarkup5 ( ) throws java.lang.Exception { java.lang.String explanation = "The `<uses-sdk>` element should appear just once; the tools will *not* merge the " + ( ( "contents of all the elements so if you split up the attributes across multiple " + "elements, only one of them will take effect. To fix this, just merge all the " ) + "attributes from the various elements into a single <uses-sdk> element." ) ; assertEquals ( ( "The <code>&lt;uses-sdk></code> element should appear just once; the tools " + ( ( ( "will <b>not</b> merge the " + "contents of all the elements so if you split up the attributes across multiple " ) + "elements, only one of them will take effect. To fix this, just merge all the " ) + "attributes from the various elements into a single &lt;uses-sdk> element." ) ) , com.android.tools.lint.detector.api.TextFormatTest.convertMarkup ( explanation , com.android.tools.lint.detector.api.TextFormat.HTML ) ) ; }
Source:
public void testManifestEExistingE ( ) { int iFlags = PackageManager.INSTALL_EXTERNAL ; int rFlags = PackageManager.INSTALL_REPLACE_EXISTING ; installFromRawResource ( "install.apk" , R.raw.install , iFlags , false , false , ( - 1 ) , ( - 1 ) ) ; installFromRawResource ( "install.apk" , R.raw.install_loc_sdcard , rFlags , true , false , ( - 1 ) , PackageInfo.INSTALL_LOCATION_PREFER_EXTERNAL ) ; }

Target:
public void testManifestIExistingI ( ) { int iFlags = android.content.pm.PackageManager.INSTALL_INTERNAL ; int rFlags = android.content.pm.PackageManager.INSTALL_REPLACE_EXISTING ; installFromRawResource ( "install.apk" , R.raw.install , iFlags , false , false , ( - 1 ) , ( - 1 ) ) ; installFromRawResource ( "install.apk" , R.raw.install_loc_internal , rFlags , true , false , ( - 1 ) , PackageInfo.INSTALL_LOCATION_INTERNAL_ONLY ) ; }
Source:
void createVariantData ( org.gradle.model.collection.CollectionBuilder < com.android.build.gradle.model.AndroidBinary > binaries , com.android.build.gradle.model.AndroidComponentSpec spec , com.android.build.gradle.internal.TaskManager taskManager ) { com.android.build.gradle.internal.VariantManager variantManager = ( spec = DefaultAndroidComponentSpec ) . variantManager ; binaries.all = $missing$ ; com.android.build.gradle.model.DefaultAndroidBinary binary = it ; com.android.build.gradle.model.DefaultAndroidBinary binary ; com.android.build.gradle.model.DefaultAndroidBinary variantData = variantManager.createVariantData ( binary.buildType , binary.productFlavors ) ; }

Target:
public void execute ( com.android.build.gradle.model.AndroidBinary androidBinary ) { com.android.build.gradle.model.DefaultAndroidBinary binary = ( ( com.android.build.gradle.model.DefaultAndroidBinary ) ( androidBinary ) ) ; binary.setVariantData ( variantManager.createVariantData ( binary.getBuildType ( ) , binary.getProductFlavors ( ) ) ) ; variantManager.getVariantDataList ( ) . add ( binary.getVariantData ( ) ) ; }
Source:
public void testUpdateBatteryLevel_errorTooLargeValue ( ) { com.android.bluetooth.btservice.RemoteDevices remoteDevices = new com.android.bluetooth.btservice.RemoteDevices ( mAdapterService ) ; int batteryLevel = 101 ; org.junit.Assert.assertNull ( remoteDevices.getDeviceProperties ( mDevice1 ) ) ; remoteDevices.updateBatteryLevel ( mDevice1 , batteryLevel ) ; org.mockito.Mockito.verify ( mAdapterService , org.mockito.Mockito.never ( ) ) . sendBroadcast ( org.mockito.Mockito.any ( ) , org.mockito.Mockito.anyString ( ) ) ; org.junit.Assert.assertNull ( remoteDevices.getDeviceProperties ( mDevice1 ) ) ; org.mockito.Mockito.verifyNoMoreInteractions ( mAdapterService ) ; }

Target:
public void testHfIndicatorParser_testWrongIndicatorId ( ) { int batteryLevel = 10 ; org.junit.Assert.assertNull ( mRemoteDevices.getDeviceProperties ( mDevice1 ) ) ; mRemoteDevices.onHfIndicatorValueChanged ( com.android.bluetooth.btservice.RemoteDevicesTest.getHfIndicatorIntent ( mDevice1 , batteryLevel , 3 ) ) ; org.mockito.Mockito.verify ( mAdapterService , org.mockito.Mockito.never ( ) ) . sendBroadcast ( org.mockito.Mockito.any ( ) , org.mockito.Mockito.anyString ( ) ) ; org.junit.Assert.assertNull ( mRemoteDevices.getDeviceProperties ( mDevice1 ) ) ; }
Source:
protected boolean cleanup ( ) { if ( com.android.bluetooth.hid.HidDeviceService.DBG ) { android.util.Log.d ( com.android.bluetooth.hid.HidDeviceService.TAG , "cleanup()" ) ; } if ( mNativeAvailable ) { cleanupNative ( ) ; mNativeAvailable = false ; } return true ; }

Target:
synchronized boolean reportError ( android.bluetooth.BluetoothDevice device , byte error ) { if ( com.android.bluetooth.hid.HidDeviceService.DBG ) { android.util.Log.d ( com.android.bluetooth.hid.HidDeviceService.TAG , ( ( ( "reportError(): device=" + device ) + " error=" ) + error ) ) ; } return ( ( checkDevice ( device ) ) && ( checkCallingUid ( ) ) ) && ( mHidDeviceNativeInterface.reportError ( error ) ) ; }
Source:
private static boolean isIgnoredInIde ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.Issue issue , @ com.android.annotations.NonNull com.android.tools.lint.detector.api.JavaContext context , @ com.android.annotations.NonNull lombok.ast.Node node ) { com.android.tools.lint.detector.api.Issue synonym = com.android.tools.lint.detector.api.Issue.create ( "ResourceType" , issue.getBriefDescription ( TextFormat.RAW ) , issue.getExplanation ( TextFormat.RAW ) , issue.getCategory ( ) , issue.getPriority ( ) , issue.getDefaultSeverity ( ) , issue.getImplementation ( ) ) ; return context.getDriver ( ) . isSuppressed ( context , synonym , node ) ; }

Target:
private static boolean isIgnoredInIde ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.Issue issue , @ com.android.annotations.NonNull com.android.tools.lint.detector.api.JavaContext context , @ com.android.annotations.NonNull com.intellij.psi.PsiElement node ) { com.android.tools.lint.detector.api.Issue synonym = com.android.tools.lint.detector.api.Issue.create ( "ResourceType" , issue.getBriefDescription ( TextFormat.RAW ) , issue.getExplanation ( TextFormat.RAW ) , issue.getCategory ( ) , issue.getPriority ( ) , issue.getDefaultSeverity ( ) , issue.getImplementation ( ) ) ; return context.getDriver ( ) . isSuppressed ( context , synonym , node ) ; }
Source:
public void setTagInternal ( int key , java.lang.Object tag ) { if ( ( key > > > 24 ) != 1 ) { throw new java.lang.IllegalArgumentException ( ( "The key must be a framework-specific " + "resource id." ) ) ; } android.view.View.setTagInternal ( this , key , tag ) ; }

Target:
private boolean skipInvalidate ( ) { return ( ( ( ( mViewFlags ) & ( android.view.View.VISIBILITY_MASK ) ) != ( android.view.View.VISIBLE ) ) && ( ( mCurrentAnimation ) == null ) ) && ( ( ! ( ( mParent ) instanceof android.view.ViewGroup ) ) || ( ! ( ( ( android.view.ViewGroup ) ( mParent ) ) . isViewTransitioning ( this ) ) ) ) ; }
Source:
public void projectImported ( @ org.jetbrains.annotations.NotNull final com.intellij.openapi.project.Project project ) { com.intellij.openapi.application.ApplicationManager.getApplication ( ) . runWriteAction ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { com.intellij.openapi.module.Module module = com.intellij.openapi.module.ModuleManager.getInstance ( project ) . findModuleByName ( dialog.getModuleName ( ) ) ; createRunConfiguration ( project , module , moduleRoot ) ; addAppEngineGradleFacet ( ) ; } } ) ; }

Target:
public void syncEnded ( @ org.jetbrains.annotations.NotNull final com.intellij.openapi.project.Project project ) { com.intellij.openapi.application.ApplicationManager.getApplication ( ) . runWriteAction ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { com.intellij.openapi.module.Module module = com.intellij.openapi.module.ModuleManager.getInstance ( project ) . findModuleByName ( dialog.getModuleName ( ) ) ; com.android.tools.idea.templates.Parameter appEngineVersionParam = template.getMetadata ( ) . getParameter ( "appEngineVersion" ) ; java.lang.String appEngineVersion = ( appEngineVersionParam == null ) ? "unknown" : appEngineVersionParam.initial ; createRunConfiguration ( project , module , moduleRoot , appEngineVersion ) ; addAppEngineGradleFacet ( ) ; } } ) ; }
Source:
public static void computeRemainder ( android.renderscript.cts.TestRemainder.ArgumentsFloatFloatFloat args ) { args.ulf = 0 ; args.ulfRelaxed = 0 ; double num = ( ( double ) ( args.inX ) ) ; double den = ( ( double ) ( args.inY ) ) ; args.out = ( ( float ) ( num - ( ( java.lang.StrictMath.round ( ( num / den ) ) ) * den ) ) ) ; }

Target:
public static void computeRemainder ( android.renderscript.cts.TestRemainder.ArgumentsFloatFloatFloat args ) { args.ulf = 64 ; args.ulfRelaxed = 128 ; args.out = android.renderscript.cts.CoreMathVerifier.remainderAndQuotient ( args.inX , args.inY ) . remainder ; }
Source:
public libcore.tzdata.shared2.StagedDistroOperation getStagedDistroOperation ( ) throws java.io.IOException , libcore.tzdata.shared2.DistroException { if ( ! ( stagedTzDataDir.exists ( ) ) ) { return null ; } if ( new java.io.File ( stagedTzDataDir , libcore.tzdata.update2.TimeZoneDistroInstaller.UNINSTALL_TOMBSTONE_FILE_NAME ) . exists ( ) ) { return libcore.tzdata.shared2.StagedDistroOperation.uninstall ( ) ; } else { return libcore.tzdata.shared2.StagedDistroOperation.install ( readDistroVersion ( stagedTzDataDir ) ) ; } }

Target:
public com.android.timezone.distro.StagedDistroOperation getStagedDistroOperation ( ) throws com.android.timezone.distro.DistroException , java.io.IOException { if ( ! ( stagedTzDataDir.exists ( ) ) ) { return null ; } if ( new java.io.File ( stagedTzDataDir , libcore.tzdata.update2.TimeZoneDistroInstaller.UNINSTALL_TOMBSTONE_FILE_NAME ) . exists ( ) ) { return com.android.timezone.distro.StagedDistroOperation.uninstall ( ) ; } else { return com.android.timezone.distro.StagedDistroOperation.install ( readDistroVersion ( stagedTzDataDir ) ) ; } }
Source:
public static void setEnabled ( boolean enabled ) { if ( enabled ) org.chromium.base.EarlyTraceEvent.disable ( ) ; if ( ( org.chromium.base.TraceEvent.sEnabled ) != enabled ) { org.chromium.base.TraceEvent.sEnabled = enabled ; if ( org.chromium.base.TraceEvent.sATraceEnabled ) return ; org.chromium.base.ThreadUtils.getUiThreadLooper ( ) . setMessageLogging ( ( enabled ? org.chromium.base.TraceEvent.LooperMonitorHolder.sInstance : null ) ) ; } }

Target:
public static void begin ( java.lang.String name ) { if ( org.chromium.base.TraceEvent.sEnabled ) org.chromium.base.TraceEvent.nativeBegin ( name , null ) ; }
Source:
private android.graphics.drawable.Drawable getPresenceIcon ( int status ) { int resId = - 1 ; switch ( status ) { case android.provider.ContactsContract.StatusUpdates.AVAILABLE : resId = android.R.drawable.presence_online ; break ; case android.provider.ContactsContract.StatusUpdates.IDLE : case android.provider.ContactsContract.StatusUpdates.AWAY : resId = android.R.drawable.presence_away ; break ; case android.provider.ContactsContract.StatusUpdates.DO_NOT_DISTURB : resId = android.R.drawable.presence_busy ; break ; } if ( resId != ( - 1 ) ) { return mContext.getResources ( ) . getDrawable ( resId ) ; } else { return null ; } }

Target:
public boolean dispatchKeyEventPreIme ( android.view.KeyEvent event ) { if ( ( event.getKeyCode ( ) ) == ( android.view.KeyEvent.KEYCODE_BACK ) ) { mQuickContactWindow.onBackPressed ( ) ; return true ; } else { return super . dispatchKeyEventPreIme ( event ) ; } }
Source:
private void showDialogAndMarkRead ( android.database.Cursor cursor ) { com.android.cellbroadcastreceiver.CellBroadcastMessage cbm = com.android.cellbroadcastreceiver.CellBroadcastMessage.createFromCursor ( cursor ) ; boolean isAlertMessage = ( cbm.isPublicAlertMessage ( ) ) || ( com.android.cellbroadcastreceiver.CellBroadcastConfigService.isOperatorDefinedEmergencyId ( cbm.getMessageIdentifier ( ) ) ) ; com.android.cellbroadcastreceiver.CellBroadcastAlertDialog dialog = new com.android.cellbroadcastreceiver.CellBroadcastAlertDialog ( this , cbm.getDialogTitleResource ( ) , cbm.getMessageBody ( ) , isAlertMessage , cbm.getDeliveryTime ( ) ) ; dialog.show ( ) ; }

Target:
public boolean onOptionsItemSelected ( android.view.MenuItem item ) { switch ( item.getItemId ( ) ) { case com.android.cellbroadcastreceiver.CellBroadcastListActivity.CursorLoaderListFragment.MENU_DELETE_ALL : confirmDeleteThread ( ( - 1 ) , false ) ; break ; case com.android.cellbroadcastreceiver.CellBroadcastListActivity.CursorLoaderListFragment.MENU_PREFERENCES : android.content.Intent intent = new android.content.Intent ( getActivity ( ) , com.android.cellbroadcastreceiver.CellBroadcastSettings.class ) ; startActivity ( intent ) ; break ; default : return true ; } return false ; }
Source:
public void testSign_Success ( ) throws java.lang.Exception { mKeyStore.password ( android.security.KeyStoreTest.TEST_PASSWD ) ; assertTrue ( mKeyStore.generate ( android.security.KeyStoreTest.TEST_KEYNAME , KeyStore.UID_SELF , NativeConstants.EVP_PKEY_RSA , android.security.KeyStoreTest.RSA_KEY_SIZE , KeyStore.FLAG_ENCRYPTED , null ) ) ; assertTrue ( mKeyStore.contains ( android.security.KeyStoreTest.TEST_KEYNAME ) ) ; final byte [ ] signature = mKeyStore.sign ( android.security.KeyStoreTest.TEST_KEYNAME , android.security.KeyStoreTest.TEST_DATA ) ; assertNotNull ( "Signature should not be null" , signature ) ; }

Target:
public void testSign_Success ( ) throws java.lang.Exception { mKeyStore.onUserPasswordChanged ( android.security.KeyStoreTest.TEST_PASSWD ) ; assertTrue ( mKeyStore.generate ( android.security.KeyStoreTest.TEST_KEYNAME , KeyStore.UID_SELF , NativeConstants.EVP_PKEY_RSA , android.security.KeyStoreTest.RSA_KEY_SIZE , KeyStore.FLAG_ENCRYPTED , null ) ) ; assertTrue ( mKeyStore.contains ( android.security.KeyStoreTest.TEST_KEYNAME ) ) ; final byte [ ] signature = mKeyStore.sign ( android.security.KeyStoreTest.TEST_KEYNAME , android.security.KeyStoreTest.TEST_DATA ) ; assertNotNull ( "Signature should not be null" , signature ) ; }
Source:
public java.util.Collection < java.lang.String > getResourceNames ( boolean framework , com.android.ide.eclipse.adt.internal.resources.ResourceType type ) { java.util.Map < java.lang.String , java.util.Map < java.lang.String , com.android.ide.common.rendering.api.ResourceValue > > map = ( framework ) ? mConfiguredFrameworkRes : mConfiguredProjectRes ; java.util.Map < java.lang.String , com.android.ide.common.rendering.api.ResourceValue > animations = map.get ( type.getName ( ) ) ; if ( animations != null ) { return animations.keySet ( ) ; } else { return java.util.Collections.emptyList ( ) ; } }

Target:
public java.util.Collection < java.lang.String > getResourceNames ( boolean framework , com.android.resources.ResourceType type ) { java.util.Map < com.android.resources.ResourceType , java.util.Map < java.lang.String , com.android.ide.common.rendering.api.ResourceValue > > map = ( framework ) ? mConfiguredFrameworkRes : mConfiguredProjectRes ; java.util.Map < java.lang.String , com.android.ide.common.rendering.api.ResourceValue > animations = map.get ( type ) ; if ( animations != null ) { return animations.keySet ( ) ; } else { return java.util.Collections.emptyList ( ) ; } }
Source:
static void field ( @ javax.annotation.Nonnull com.android.jack.shrob.spec.ClassSpecification classSpec , @ javax.annotation.CheckForNull com.android.jack.shrob.spec.AnnotationSpecification annotationType , @ javax.annotation.CheckForNull java.lang.String typeSig , java.lang.String name , @ javax.annotation.Nonnull com.android.jack.shrob.spec.ModifierSpecification modifier ) { assert name != null ; com.android.jack.shrob.spec.NameSpecification typeSignature = null ; if ( typeSig != null ) { typeSignature = com.android.jack.shrob.proguard.GrammarActions.name ( typeSig ) ; } else { assert name.equals ( "*" ) ; } classSpec.add ( new com.android.jack.shrob.spec.FieldSpecification ( com.android.jack.shrob.proguard.GrammarActions.name ( name ) , modifier , typeSignature , annotationType ) ) ; }

Target:
static void field ( @ javax.annotation.Nonnull com.android.jack.shrob.spec.ClassSpecification classSpec , @ javax.annotation.CheckForNull com.android.jack.shrob.spec.AnnotationSpecification annotationType , @ javax.annotation.CheckForNull java.lang.String typeSig , java.lang.String name , @ javax.annotation.Nonnull com.android.jack.shrob.spec.ModifierSpecification modifier ) { assert name != null ; com.android.jack.shrob.spec.NameSpecification typeSignature = null ; if ( typeSig != null ) { typeSignature = com.android.jack.shrob.proguard.GrammarActions.name ( typeSig , com.android.jack.shrob.proguard.GrammarActions.FilterSeparator.CLASS ) ; } else { assert name.equals ( "*" ) ; } classSpec.add ( new com.android.jack.shrob.spec.FieldSpecification ( com.android.jack.shrob.proguard.GrammarActions.name ( name , com.android.jack.shrob.proguard.GrammarActions.FilterSeparator.GENERAL ) , modifier , typeSignature , annotationType ) ) ; }
Source:
public java.lang.String toString ( ) { return ( ( mSeverity.toString ( ) ) + ":" ) + ( mLog ) ; }

Target:
public java.lang.String toString ( ) { return ( ( ( ( ( ( ( ( mSourceLocation.print ( false ) ) + ":" ) + ( mLineNumber ) ) + ":" ) + ( mColumnNumber ) ) + " " ) + ( com.google.common.base.CaseFormat.UPPER_UNDERSCORE.to ( com.google.common.base.CaseFormat.UPPER_CAMEL , mSeverity.toString ( ) ) ) ) + ":\n\t" ) + ( mLog ) ; }
Source:
void copy2DRangeFromUnchecked ( int xoff , int yoff , int w , int h , short [ ] data ) { mRS.validate ( ) ; validate2DRange ( xoff , yoff , w , h ) ; mRS.nAllocationData2D ( getIDSafe ( ) , xoff , yoff , mSelectedLOD , mSelectedFace.mID , w , h , data , ( ( data.length ) * 2 ) ) ; }

Target:
public void copyFrom ( float [ ] d ) { validateIsFloat32 ( ) ; copyFromUnchecked ( d , Element.DataType.FLOAT_32 , d.length ) ; }
Source:
private void showEraseBackupDialog ( ) { mBackup.setChecked ( true ) ; mDialogType = com.android.settings.PrivacySettings.DIALOG_ERASE_BACKUP ; java.lang.CharSequence msg = getResources ( ) . getText ( R.string.backup_erase_dialog_message ) ; mConfirmDialog = new android.app.AlertDialog.Builder ( getActivity ( ) ) . setMessage ( msg ) . setTitle ( R.string.backup_erase_dialog_title ) . setIcon ( android.R.drawable.ic_dialog_alert ) . setPositiveButton ( android.R.string.ok , this ) . setNegativeButton ( android.R.string.cancel , this ) . show ( ) ; }

Target:
private void showEraseBackupDialog ( ) { mBackup.setChecked ( true ) ; mDialogType = com.android.settings.PrivacySettings.DIALOG_ERASE_BACKUP ; java.lang.CharSequence msg = getResources ( ) . getText ( R.string.backup_erase_dialog_message ) ; mConfirmDialog = new android.app.AlertDialog.Builder ( getActivity ( ) ) . setMessage ( msg ) . setTitle ( R.string.backup_erase_dialog_title ) . setIconAttribute ( android.R.attr.alertDialogIcon ) . setPositiveButton ( android.R.string.ok , this ) . setNegativeButton ( android.R.string.cancel , this ) . show ( ) ; }
Source:
public void dumpShowsLastFailureTraceAndPendingConnectionTrace ( ) throws java.lang.Exception { mLastMileLogger.reportConnectionEvent ( BaseWifiDiagnostics.CONNECTION_EVENT_STARTED ) ; android.os.FileUtils.stringToFile ( mTraceDataFile.getPath ( ) , "rdev_connect try #1" ) ; mLastMileLogger.reportConnectionEvent ( BaseWifiDiagnostics.CONNECTION_EVENT_FAILED ) ; mLastMileLogger.reportConnectionEvent ( BaseWifiDiagnostics.CONNECTION_EVENT_STARTED ) ; android.os.FileUtils.stringToFile ( mTraceDataFile.getPath ( ) , "rdev_connect try #2" ) ; java.lang.String dumpString = getDumpString ( ) ; org.junit.Assert.assertTrue ( dumpString.contains ( "rdev_connect try #1" ) ) ; org.junit.Assert.assertTrue ( dumpString.contains ( "rdev_connect try #2" ) ) ; }

Target:
public void dumpShowsPendingConnectionTrace ( ) throws java.lang.Exception { mLastMileLogger.reportConnectionEvent ( com.android.server.wifi.LastMileLoggerTest.FAKE_CONNECTION_ID , BaseWifiDiagnostics.CONNECTION_EVENT_STARTED ) ; android.os.FileUtils.stringToFile ( mTraceDataFile.getPath ( ) , "rdev_connect" ) ; org.junit.Assert.assertTrue ( getDumpString ( ) . contains ( "rdev_connect" ) ) ; }
Source:
public void setUiTTYMode ( int slotId , int featureType , int uiTtyMode , android.os.Message onComplete ) throws android.os.RemoteException { synchronized ( mFeatures ) { android.telephony.ims.feature.MMTelFeature feature = resolveMMTelFeature ( slotId , featureType ) ; if ( feature != null ) { feature.setUiTTYMode ( uiTtyMode , onComplete ) ; } } }

Target:
public void setUiTTYMode ( int slotId , int featureType , int uiTtyMode , android.os.Message onComplete ) throws android.os.RemoteException { enforceCallingOrSelfPermission ( android.Manifest.permission.MODIFY_PHONE_STATE , "setUiTTYMode" ) ; synchronized ( mFeatures ) { android.telephony.ims.feature.MMTelFeature feature = resolveMMTelFeature ( slotId , featureType ) ; if ( feature != null ) { feature.setUiTTYMode ( uiTtyMode , onComplete ) ; } } }
Source:
public vogar.ResultValue getResultValue ( vogar.Expectation expectation ) { if ( matters ( ) ) { return expectation.matches ( this ) ? ResultValue.OK : ResultValue.WARNING ; } return ResultValue.IGNORE ; }

Target:
public vogar.ResultValue getResultValue ( vogar.Expectation expectation ) { if ( matters ( ) ) { if ( expectation.matches ( this ) ) { return ResultValue.OK ; } else if ( expectation.getIsFromExpectationFile ( ) ) { return ResultValue.WARNING ; } return ResultValue.FAIL ; } return ResultValue.IGNORE ; }
Source:
public static com.android.sdklib.repository.descriptors.IPkgDesc newSample ( @ com.android.annotations.NonNull final com.android.sdklib.AndroidVersion version , @ com.android.annotations.NonNull final com.android.sdklib.repository.MajorRevision revision , @ com.android.annotations.NonNull final com.android.sdklib.repository.FullRevision minToolsRev ) { return new com.android.sdklib.repository.descriptors.PkgDesc ( ) { @ java.lang.Override public com.android.sdklib.repository.descriptors.PkgType getType ( ) { return PkgType.PKG_SAMPLES ; } @ java.lang.Override public com.android.sdklib.repository.MajorRevision getMajorRevision ( ) { return revision ; } @ java.lang.Override public com.android.sdklib.AndroidVersion getAndroidVersion ( ) { return version ; } @ java.lang.Override public com.android.sdklib.repository.FullRevision getMinToolsRev ( ) { return minToolsRev ; } @ java.lang.Override public boolean isUpdateFor ( @ com.android.annotations.NonNull com.android.sdklib.repository.descriptors.IPkgDesc existingDesc ) { return isGenericUpdateFor ( existingDesc ) ; } } ; }

Target:
public static com.android.sdklib.repository.descriptors.PkgDesc.Builder newSample ( @ com.android.annotations.NonNull com.android.sdklib.AndroidVersion version , @ com.android.annotations.NonNull com.android.sdklib.repository.MajorRevision revision , @ com.android.annotations.NonNull com.android.sdklib.repository.FullRevision minToolsRev ) { com.android.sdklib.repository.descriptors.PkgDesc.Builder p = new com.android.sdklib.repository.descriptors.PkgDesc.Builder ( PkgType.PKG_SAMPLES ) ; p.mAndroidVersion = version ; p.mMajorRevision = revision ; p.mMinToolsRev = minToolsRev ; return p ; }
Source:
private void setOpenAccessPoint ( ) { java.util.List < android.net.wifi.ScanResult > scanResults = new java.util.ArrayList < > ( ) ; android.net.wifi.ScanResult scanResult = new android.net.wifi.ScanResult ( ) ; scanResult.capabilities = "[ESS]" ; scanResults.add ( scanResult ) ; org.mockito.Mockito.when ( mWifiStateMachine.syncGetScanResultsList ( ) ) . thenReturn ( scanResults ) ; }

Target:
private void setOpenAccessPoint ( ) { java.util.List < android.net.wifi.ScanResult > scanResults = new java.util.ArrayList < > ( ) ; android.net.wifi.ScanResult scanResult = new android.net.wifi.ScanResult ( ) ; scanResult.capabilities = "[ESS]" ; scanResults.add ( scanResult ) ; org.mockito.Mockito.when ( mWifiScanner.getSingleScanResults ( ) ) . thenReturn ( scanResults ) ; }
Source:
protected void startupOnInitialize ( ) { super . startupOnInitialize ( ) ; org.eclipse.core.resources.IProject project = getProject ( ) ; mManifestPackage = loadProjectStringProperty ( com.android.ide.eclipse.adt.internal.build.builders.PreCompilerBuilder.PROPERTY_PACKAGE ) ; mGenFolder = project.getFolder ( SdkConstants.FD_GEN_SOURCES ) ; mMustCompileResources = loadProjectBooleanProperty ( com.android.ide.eclipse.adt.internal.build.builders.PreCompilerBuilder.PROPERTY_COMPILE_RESOURCES , true ) ; org.eclipse.jdt.core.IJavaProject javaProject = org.eclipse.jdt.core.JavaCore.create ( project ) ; com.android.ide.eclipse.adt.internal.build.JavaGenerator aidlGenerator = new com.android.ide.eclipse.adt.internal.build.AidlGenerator ( javaProject , mGenFolder ) ; mGeneratorList.add ( aidlGenerator ) ; mDerivedProgressMonitor = new com.android.ide.eclipse.adt.internal.build.builders.PreCompilerBuilder.DerivedProgressMonitor ( mGenFolder ) ; }

Target:
protected void startupOnInitialize ( ) { super . startupOnInitialize ( ) ; org.eclipse.core.resources.IProject project = getProject ( ) ; mManifestPackage = loadProjectStringProperty ( com.android.ide.eclipse.adt.internal.build.builders.PreCompilerBuilder.PROPERTY_PACKAGE ) ; mGenFolder = project.getFolder ( SdkConstants.FD_GEN_SOURCES ) ; mMustCompileResources = loadProjectBooleanProperty ( com.android.ide.eclipse.adt.internal.build.builders.PreCompilerBuilder.PROPERTY_COMPILE_RESOURCES , true ) ; org.eclipse.jdt.core.IJavaProject javaProject = org.eclipse.jdt.core.JavaCore.create ( project ) ; com.android.ide.eclipse.adt.internal.build.JavaGenerator aidlGenerator = new com.android.ide.eclipse.adt.internal.build.AidlGenerator ( javaProject , mGenFolder ) ; mGeneratorList.add ( aidlGenerator ) ; com.android.ide.eclipse.adt.internal.build.JavaGenerator renderScriptGenerator = new com.android.ide.eclipse.adt.internal.build.RenderScriptGenerator ( javaProject , mGenFolder ) ; mGeneratorList.add ( renderScriptGenerator ) ; mDerivedProgressMonitor = new com.android.ide.eclipse.adt.internal.build.builders.PreCompilerBuilder.DerivedProgressMonitor ( mGenFolder ) ; }
Source:
private java.lang.String getFormattedKernelVersion ( ) { java.lang.String procVersionStr ; try { procVersionStr = readLine ( com.android.settings.DeviceInfoSettings.FILENAME_PROC_VERSION ) ; final java.lang.String PROC_VERSION_REGEX = "\\w+\\s+" + ( ( ( ( ( ( "\\w+\\s+" + "([^\\s]+)\\s+" ) + "\\(([^\\s@]+(?:@[^\\s.]+)?)[^)]*\\)\\s+" ) + "\\((?:[^(]*\\([^)]*\\))?[^)]*\\)\\s+" ) + "([^\\s]+)\\s+" ) + "(?:PREEMPT\\s+)?" ) + "(.+)" ) ; java.util.regex.Pattern p = java.util.regex.Pattern.compile ( PROC_VERSION_REGEX ) ; java.util.regex.Matcher m = p.matcher ( procVersionStr ) ; if ( ! ( m.matches ( ) ) ) { android.util.Log.e ( com.android.settings.DeviceInfoSettings.LOG_TAG , ( "Regex did not match on /proc/version: " + procVersionStr ) ) ; return "Unavailable" ; } else if ( ( m.groupCount ( ) ) < 4 ) { android.util.Log.e ( com.android.settings.DeviceInfoSettings.LOG_TAG , ( ( "Regex match on /proc/version only returned " + ( m.groupCount ( ) ) ) + " groups" ) ) ; return "Unavailable" ; } else { return new java.lang.StringBuilder ( m.group ( 1 ) ) . append ( "\n" ) . append ( m.group ( 2 ) ) . append ( " " ) . append ( m.group ( 3 ) ) . append ( "\n" ) . append ( m.group ( 4 ) ) . toString ( ) ; } } catch ( java.io.IOException e ) { android.util.Log.e ( com.android.settings.DeviceInfoSettings.LOG_TAG , "IO Exception when getting kernel version for Device Info screen" , e ) ; return "Unavailable" ; } }

Target:
public static java.lang.String getFormattedKernelVersion ( ) { try { return com.android.settings.DeviceInfoSettings.formatKernelVersion ( com.android.settings.DeviceInfoSettings.readLine ( com.android.settings.DeviceInfoSettings.FILENAME_PROC_VERSION ) ) ; } catch ( java.io.IOException e ) { android.util.Log.e ( com.android.settings.DeviceInfoSettings.LOG_TAG , "IO Exception when getting kernel version for Device Info screen" , e ) ; return "Unavailable" ; } }
Source:
public void iccTransmitApduLogicalChannel ( int channel , int cla , int instruction , int p1 , int p2 , int p3 , java.lang.String data , android.os.Message response ) { if ( channel <= 0 ) { throw new java.lang.RuntimeException ( ( "Invalid channel in iccTransmitApduLogicalChannel: " + channel ) ) ; } iccTransmitApduHelper ( channel , cla , instruction , p1 , p2 , p3 , data , response ) ; }

Target:
private void riljLogv ( java.lang.String msg ) { android.telephony.Rlog.v ( com.android.internal.telephony.RIL.RILJ_LOG_TAG , ( msg + ( ( mInstanceId ) != null ? ( " [SUB" + ( mInstanceId ) ) + "]" : "" ) ) ) ; }
Source:
public java.nio.file.FileStore getFileStore ( java.nio.file.Path obj ) throws java.io.IOException { sun.nio.fs.UnixPath file = sun.nio.fs.UnixPath.toUnixPath ( obj ) ; java.lang.SecurityManager sm = java.lang.System.getSecurityManager ( ) ; if ( sm != null ) { sm.checkPermission ( new java.lang.RuntimePermission ( "getFileStoreAttributes" ) ) ; file.checkRead ( ) ; } return getFileStore ( file ) ; }

Target:
public java.nio.file.FileStore getFileStore ( java.nio.file.Path obj ) throws java.io.IOException { throw new java.lang.SecurityException ( "getFileStore" ) ; }
Source:
public void run ( ) { try { displayErrorFromUiThread ( ( "Unable to create HPROF file for application \'%1$s\'.\n\n%2$s" + "Check logcat for more information." ) , client.getClientData ( ) . getClientDescription ( ) , ( message != null ? message + "\n\n" : "" ) ) ; } finally { doSelectionChanged ( mDeviceList.getSelectedClient ( ) ) ; } }

Target:
public void run ( ) { try { displayErrorFromUiThread ( Messages.DeviceView_Unable_Create_HPROF_For_Application , client.getClientData ( ) . getClientDescription ( ) , ( message != null ? message + "\n\n" : "" ) ) ; } finally { doSelectionChanged ( mDeviceList.getSelectedClient ( ) ) ; } }
Source:
protected void onResume ( ) { super . onResume ( ) ; mSensorManager.registerListener ( mGraphView , ( ( ( android.hardware.SensorManager.SENSOR_ACCELEROMETER ) | ( android.hardware.SensorManager.SENSOR_MAGNETIC_FIELD ) ) | ( android.hardware.SensorManager.SENSOR_ORIENTATION ) ) , SensorManager.SENSOR_DELAY_FASTEST ) ; }

Target:
protected void onResume ( ) { super . onResume ( ) ; mSensorManager.registerListener ( mGraphView , mSensorManager.getDefaultSensor ( Sensor.TYPE_ACCELEROMETER ) , SensorManager.SENSOR_DELAY_FASTEST ) ; mSensorManager.registerListener ( mGraphView , mSensorManager.getDefaultSensor ( Sensor.TYPE_MAGNETIC_FIELD ) , SensorManager.SENSOR_DELAY_FASTEST ) ; mSensorManager.registerListener ( mGraphView , mSensorManager.getDefaultSensor ( Sensor.TYPE_ORIENTATION ) , SensorManager.SENSOR_DELAY_FASTEST ) ; }
Source:
public boolean sendReport ( int id , byte [ ] data ) { if ( com.android.bluetooth.hid.HidDevService.DBG ) android.util.Log.v ( com.android.bluetooth.hid.HidDevService.BluetoothHidDeviceBinder.TAG , ( "sendReport(): id=" + id ) ) ; com.android.bluetooth.hid.HidDevService service = getService ( ) ; if ( service == null ) { return false ; } return service.sendReport ( id , data ) ; }

Target:
public boolean sendReport ( android.bluetooth.BluetoothDevice device , int id , byte [ ] data ) { if ( com.android.bluetooth.hid.HidDevService.DBG ) android.util.Log.v ( com.android.bluetooth.hid.HidDevService.BluetoothHidDeviceBinder.TAG , ( ( ( "sendReport(): device=" + device ) + " id=" ) + id ) ) ; com.android.bluetooth.hid.HidDevService service = getService ( ) ; if ( service == null ) { return false ; } return service.sendReport ( device , id , data ) ; }
Source:
public void throwing ( java.lang.String sourceClass , java.lang.String sourceMethod , java.lang.Throwable thrown ) { if ( ( ( java.util.logging.Level.FINER.intValue ( ) ) < ( levelValue ) ) || ( ( levelValue ) == ( java.util.logging.Logger.offValue ) ) ) { return ; } java.util.logging.LogRecord lr = new java.util.logging.LogRecord ( java.util.logging.Level.FINER , "THROW" ) ; lr.setSourceClassName ( sourceClass ) ; lr.setSourceMethodName ( sourceMethod ) ; lr.setThrown ( thrown ) ; doLog ( lr ) ; }

Target:
public void logrb ( java.util.logging.Level level , java.lang.String sourceClass , java.lang.String sourceMethod , java.util.ResourceBundle bundle , java.lang.String msg , java.lang.Object ... params ) { if ( ! ( isLoggable ( level ) ) ) { return ; } java.util.logging.LogRecord lr = new java.util.logging.LogRecord ( level , msg ) ; lr.setSourceClassName ( sourceClass ) ; lr.setSourceMethodName ( sourceMethod ) ; if ( ( params != null ) && ( ( params.length ) != 0 ) ) { lr.setParameters ( params ) ; } doLog ( lr , bundle ) ; }
Source:
public com.android.ims.internal.IImsMMTelFeature getEmergencyMMTelFeature ( int slotId ) { synchronized ( mLock ) { com.android.internal.telephony.ims.ImsServiceController.ImsFeatureContainer f = getImsFeatureContainer ( slotId , ImsFeature.EMERGENCY_MMTEL ) ; if ( f == null ) { android.util.Log.w ( com.android.internal.telephony.ims.ImsServiceController.LOG_TAG , ( "Requested null Emergency MMTelFeature on slot " + slotId ) ) ; return null ; } return f.resolve ( com.android.ims.internal.IImsMMTelFeature.class ) ; } }

Target:
public android.telephony.ims.aidl.IImsMmTelFeature getMmTelFeature ( int slotId ) { synchronized ( mLock ) { com.android.internal.telephony.ims.ImsServiceController.ImsFeatureContainer f = getImsFeatureContainer ( slotId , ImsFeature.FEATURE_MMTEL ) ; if ( f == null ) { android.util.Log.w ( com.android.internal.telephony.ims.ImsServiceController.LOG_TAG , ( "Requested null MMTelFeature on slot " + slotId ) ) ; return null ; } return f.resolve ( android.telephony.ims.aidl.IImsMmTelFeature.class ) ; } }
Source:
public void testNonPullableExternalCall ( ) { if ( ! ( mShouldTestTelecom ) ) { return ; } mConnection.setConnectionCapabilities ( 0 ) ; assertCallCapabilities ( mCall , 0 ) ; final android.telecom.cts.InvokeCounter counter = mConnection.getInvokeCounter ( MockConnection.ON_PULL_EXTERNAL_CALL ) ; mCall.pullExternalCall ( ) ; counter.waitForCount ( 0 , android.telecom.cts.TestUtils.WAIT_FOR_STATE_CHANGE_TIMEOUT_MS ) ; }

Target:
public void testNonPullableExternalCall ( ) { if ( ! ( mShouldTestTelecom ) ) { return ; } mConnection.setConnectionCapabilities ( 0 ) ; assertCallCapabilities ( mCall , 0 ) ; final android.telecom.cts.TestUtils.InvokeCounter counter = mConnection.getInvokeCounter ( MockConnection.ON_PULL_EXTERNAL_CALL ) ; mCall.pullExternalCall ( ) ; counter.waitForCount ( 0 , android.telecom.cts.TestUtils.WAIT_FOR_STATE_CHANGE_TIMEOUT_MS ) ; }
Source:
public java.nio.IntBuffer put ( int [ ] src , int srcOffset , int intCount ) { java.util.Arrays.checkOffsetAndCount ( src.length , srcOffset , intCount ) ; if ( intCount > ( remaining ( ) ) ) { throw new java.nio.BufferOverflowException ( ) ; } for ( int i = srcOffset ; i < ( srcOffset + intCount ) ; ++ i ) { put ( src [ i ] ) ; } return this ; }

Target:
public java.nio.IntBuffer put ( int [ ] src , int srcOffset , int intCount ) { if ( isReadOnly ( ) ) { throw new java.nio.ReadOnlyBufferException ( ) ; } java.util.Arrays.checkOffsetAndCount ( src.length , srcOffset , intCount ) ; if ( intCount > ( remaining ( ) ) ) { throw new java.nio.BufferOverflowException ( ) ; } for ( int i = srcOffset ; i < ( srcOffset + intCount ) ; ++ i ) { put ( src [ i ] ) ; } return this ; }
Source:
private static boolean isCLDRFieldName ( int index ) { if ( ( index < 0 ) && ( index >= ( com.ibm.icu.text.DateTimePatternGenerator.TYPE_LIMIT ) ) ) { return false ; } if ( ( com.ibm.icu.text.DateTimePatternGenerator.CLDR_FIELD_NAME [ index ] . charAt ( 0 ) ) == '*' ) { return false ; } else { return true ; } }

Target:
public java.lang.String toString ( ) { return appendTo ( new java.lang.StringBuilder ( ) ) . toString ( ) ; }
Source:
public void onPackageUpdateFinished ( java.lang.String packageName , int uid ) { android.os.Message.obtain ( mLocationHandler , com.android.server.LocationManagerService.MESSAGE_PACKAGE_UPDATED , packageName ) . sendToTarget ( ) ; }

Target:
private com.android.server.LocationManagerService.Receiver getReceiver ( android.app.PendingIntent intent , int pid , int uid , java.lang.String packageName ) { com.android.server.LocationManagerService.Receiver receiver = mReceivers.get ( intent ) ; if ( receiver == null ) { receiver = new com.android.server.LocationManagerService.Receiver ( null , intent , pid , uid , packageName ) ; mReceivers.put ( intent , receiver ) ; } return receiver ; }
Source:
private void retryFingerprint ( ) { if ( ! ( mInFingerprintLockout ) ) { mFingerprintCancel = new android.os.CancellationSignal ( ) ; mFingerprintManager.authenticate ( null , mFingerprintCancel , 0 , mAuthCallback , null , mUserId ) ; } }

Target:
private void retryFingerprint ( ) { if ( mRemovalSidecar.inProgress ( ) ) { return ; } if ( ! ( mInFingerprintLockout ) ) { mFingerprintCancel = new android.os.CancellationSignal ( ) ; mFingerprintManager.authenticate ( null , mFingerprintCancel , 0 , mAuthCallback , null , mUserId ) ; } }
Source:
private static boolean isMainApkCompatibleWithDevice ( com.android.build.OutputFile mainOutputFile , java.util.Set < java.lang.String > variantAbiFilters , java.util.List < java.lang.String > deviceAbis ) { if ( ( ( com.android.ide.common.build.SplitOutputMatcher.getFilter ( mainOutputFile , OutputFile.ABI ) ) == null ) && ( variantAbiFilters != null ) ) { for ( java.lang.String abi : deviceAbis ) { if ( variantAbiFilters.contains ( abi ) ) { return true ; } } return false ; } return true ; }

Target:
private static boolean isMainApkCompatibleWithDevice ( com.android.build.OutputFile mainOutputFile , java.util.Collection < java.lang.String > variantAbiFilters , java.util.Collection < java.lang.String > deviceAbis ) { if ( ( ( com.android.ide.common.build.SplitOutputMatcher.getFilter ( mainOutputFile , OutputFile.ABI ) ) == null ) && ( variantAbiFilters != null ) ) { for ( java.lang.String abi : deviceAbis ) { if ( variantAbiFilters.contains ( abi ) ) { return true ; } } return false ; } return true ; }
Source:
public void setPublishState ( int publishState ) { synchronized ( mSyncObj ) { logger.print ( ( ( ( "mPublishingState=" + ( mPublishingState ) ) + " publishState=" ) + publishState ) ) ; if ( ( mPublishingState ) != publishState ) { android.os.SystemProperties.set ( "rcs.publish.status" , java.lang.String.valueOf ( publishState ) ) ; android.content.Intent publishIntent = new android.content.Intent ( com.android.ims.RcsPresence.ACTION_PUBLISH_STATE_CHANGED ) ; publishIntent.putExtra ( RcsPresence.EXTRA_PUBLISH_STATE , publishState ) ; mContext.sendStickyBroadcast ( publishIntent ) ; } mPublishingState = publishState ; } }

Target:
public void setPublishState ( int publishState ) { synchronized ( mSyncObj ) { logger.print ( ( ( ( "mPublishingState=" + ( mPublishingState ) ) + " publishState=" ) + publishState ) ) ; if ( ( mPublishingState ) != publishState ) { android.os.SystemProperties.set ( "rcs.publish.status" , java.lang.String.valueOf ( publishState ) ) ; android.content.Intent publishIntent = new android.content.Intent ( com.android.ims.RcsPresence.ACTION_PUBLISH_STATE_CHANGED ) ; publishIntent.putExtra ( RcsPresence.EXTRA_PUBLISH_STATE , publishState ) ; mContext.sendStickyBroadcast ( publishIntent ) ; launchPersistService ( publishIntent ) ; } mPublishingState = publishState ; } }
Source:
private static boolean canManageConference ( com.android.incallui.Call call ) { return ( call != null ) && ( call.can ( PhoneCapabilities.MANAGE_CONFERENCE ) ) ; }

Target:
private android.graphics.drawable.Drawable getConferencePhoto ( com.android.incallui.Call call ) { boolean isGenericConference = call.can ( PhoneCapabilities.GENERIC_CONFERENCE ) ; com.android.incallui.Log.v ( this , ( "getConferencePhoto: " + isGenericConference ) ) ; final int resId = ( isGenericConference ) ? R.drawable.img_phone : R.drawable.img_conference ; android.graphics.drawable.Drawable photo = mContext.getResources ( ) . getDrawable ( resId ) ; photo.setAutoMirrored ( true ) ; return photo ; }
Source:
public void setCallWaiting ( boolean enable , int serviceClass , android.os.Message onComplete ) { if ( com.android.internal.telephony.imsphone.ImsPhone.DBG ) android.telephony.Rlog.d ( com.android.internal.telephony.imsphone.ImsPhone.LOG_TAG , ( "setCallWaiting enable=" + enable ) ) ; android.os.Message resp ; resp = obtainMessage ( com.android.internal.telephony.imsphone.ImsPhone.EVENT_SET_CALL_WAITING_DONE , onComplete ) ; try { com.android.ims.ImsUtInterface ut = mCT.getUtInterface ( ) ; ut.updateCallWaiting ( enable , serviceClass , resp ) ; } catch ( com.android.ims.ImsException e ) { sendErrorResponse ( onComplete , e ) ; } }

Target:
public void setCallWaiting ( boolean enable , int serviceClass , android.os.Message onComplete ) { if ( com.android.internal.telephony.imsphone.ImsPhone.DBG ) logd ( ( "setCallWaiting enable=" + enable ) ) ; android.os.Message resp ; resp = obtainMessage ( com.android.internal.telephony.imsphone.ImsPhone.EVENT_SET_CALL_WAITING_DONE , onComplete ) ; try { com.android.ims.ImsUtInterface ut = mCT.getUtInterface ( ) ; ut.updateCallWaiting ( enable , serviceClass , resp ) ; } catch ( com.android.ims.ImsException e ) { sendErrorResponse ( onComplete , e ) ; } }
Source:
public java.util.List < java.nio.file.Path > convert ( java.lang.String input ) throws com.google.devtools.common.options.OptionsParsingException { java.util.List < java.nio.file.Path > list = new java.util.ArrayList < > ( ) ; for ( java.lang.String piece : input.split ( java.io.File.pathSeparator ) ) { if ( ! ( piece.isEmpty ( ) ) ) { list.add ( baseConverter.convert ( piece ) ) ; } } return java.util.Collections.unmodifiableList ( list ) ; }

Target:
public java.util.List < java.nio.file.Path > convert ( java.lang.String input ) throws com.google.devtools.common.options.OptionsParsingException { java.util.List < java.nio.file.Path > list = new java.util.ArrayList < > ( ) ; for ( java.lang.String piece : input.split ( ":" ) ) { if ( ! ( piece.isEmpty ( ) ) ) { list.add ( baseConverter.convert ( piece ) ) ; } } return java.util.Collections.unmodifiableList ( list ) ; }