auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void test_getTrafficClass ( ) throws java.lang.Exception { int IPTOS_LOWCOST = 2 ; int IPTOS_RELIABILTY = 4 ; int IPTOS_THROUGHPUT = 8 ; int IPTOS_LOWDELAY = 16 ; int [ ] ports = tests.support.Support_PortManager.getNextPortsForUDP ( 2 ) ; new java.net.InetSocketAddress ( java.net.InetAddress.getLocalHost ( ) , ports [ 0 ] ) ; java.net.DatagramSocket theSocket = new java.net.DatagramSocket ( ports [ 1 ] ) ; int trafficClass = theSocket.getTrafficClass ( ) ; }

Target:
public void test_isClosed ( ) throws java.lang.Exception { java.net.DatagramSocket theSocket = new java.net.DatagramSocket ( ) ; assertFalse ( theSocket.isClosed ( ) ) ; theSocket.close ( ) ; assertTrue ( theSocket.isClosed ( ) ) ; java.net.InetSocketAddress theAddress = new java.net.InetSocketAddress ( java.net.InetAddress.getLocalHost ( ) , 0 ) ; theSocket = new java.net.DatagramSocket ( theAddress ) ; assertFalse ( theSocket.isClosed ( ) ) ; theSocket.close ( ) ; assertTrue ( theSocket.isClosed ( ) ) ; }
Source:
public void testCannotSetChunkedStreamingModeAfterConnect ( ) throws java.lang.Exception { server.enqueue ( new com.google.mockwebserver.MockResponse ( ) . setBody ( "A" ) ) ; server.play ( ) ; java.net.HttpURLConnection connection = ( ( java.net.HttpURLConnection ) ( server.getUrl ( "/" ) . openConnection ( ) ) ) ; assertEquals ( "A" , readAscii ( connection.getInputStream ( ) , java.lang.Integer.MAX_VALUE ) ) ; try { connection.setChunkedStreamingMode ( 1 ) ; fail ( ) ; } catch ( java.lang.IllegalStateException expected ) { } }

Target:
public void testCannotSetFixedLengthStreamingModeAfterConnect ( ) throws java.lang.Exception { server.enqueue ( new com.google.mockwebserver.MockResponse ( ) . setBody ( "A" ) ) ; server.play ( ) ; java.net.HttpURLConnection connection = ( ( java.net.HttpURLConnection ) ( server.getUrl ( "/" ) . openConnection ( ) ) ) ; org.junit.Assert.assertEquals ( "A" , readAscii ( connection.getInputStream ( ) , java.lang.Integer.MAX_VALUE ) ) ; try { connection.setFixedLengthStreamingMode ( 1 ) ; org.junit.Assert.fail ( ) ; } catch ( java.lang.IllegalStateException expected ) { } }
Source:
com.google.common.collect.ImmutableList < com.google.common.collect.Multiset.Entry < E > > createAsList ( ) { final com.google.common.collect.ImmutableList < java.util.Map.Entry < E , java.lang.Integer > > entryList = map.entrySet ( ) . asList ( ) ; return new com.google.common.collect.ImmutableAsList < com.google.common.collect.Multiset.Entry < E > > ( ) { @ java.lang.Override public com.google.common.collect.Multiset.Entry < E > get ( int index ) { return com.google.common.collect.RegularImmutableMultiset.entryFromMapEntry ( entryList.get ( index ) ) ; } @ java.lang.Override com.google.common.collect.ImmutableCollection < com.google.common.collect.Multiset.Entry < E > > delegateCollection ( ) { return com.google.common.collect.RegularImmutableMultiset.EntrySet.this ; } } ; }

Target:
com.google.common.collect.Multiset.Entry < E > getEntry ( int index ) { java.util.Map.Entry < E , java.lang.Integer > mapEntry = map.entrySet ( ) . asList ( ) . get ( index ) ; return com.google.common.collect.Multisets.immutableEntry ( mapEntry.getKey ( ) , mapEntry.getValue ( ) ) ; }
Source:
public boolean isVideoCallingEnabled ( java.lang.String callingPackage ) { if ( ! ( com.android.internal.telephony.TelephonyPermissions.checkCallingOrSelfReadPhoneState ( mApp , callingPackage , "isVideoCallingEnabled" ) ) ) { return false ; } com.android.ims.ImsManager imsManager = com.android.ims.ImsManager.getInstance ( mPhone.getContext ( ) , mPhone.getPhoneId ( ) ) ; return ( ( imsManager.isVtEnabledByPlatform ( ) ) && ( imsManager.isEnhanced4gLteModeSettingEnabledByUser ( ) ) ) && ( imsManager.isVtEnabledByUser ( ) ) ; }

Target:
public int getRadioAccessFamily ( int phoneId , java.lang.String callingPackage ) { com.android.internal.telephony.Phone phone = com.android.internal.telephony.PhoneFactory.getPhone ( phoneId ) ; if ( phone == null ) { return android.telephony.RadioAccessFamily.RAF_UNKNOWN ; } int subId = phone.getSubId ( ) ; if ( ! ( com.android.internal.telephony.TelephonyPermissions.checkCallingOrSelfReadPhoneState ( mApp , subId , callingPackage , "getRadioAccessFamily" ) ) ) { return android.telephony.RadioAccessFamily.RAF_UNKNOWN ; } return com.android.internal.telephony.ProxyController.getInstance ( ) . getRadioAccessFamily ( phoneId ) ; }
Source:
public com.android.jack.load.PackageLoader getLoaderForSubPackage ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JPackage loading , @ javax.annotation.Nonnull java.lang.String simpleName ) throws com.android.jack.ir.ast.JPackageLookupException { for ( com.android.sched.vfs.InputVElement sub : packageVDir.list ( ) ) { if ( ( sub.isVDir ( ) ) && ( sub.getName ( ) . equals ( simpleName ) ) ) { return new com.android.jack.jayce.JaycePackageLoader ( inputJackLibrary , ( ( com.android.sched.vfs.InputVDir ) ( sub ) ) , lookup , defaultLoadLevel ) ; } } throw new com.android.jack.ir.ast.JPackageLookupException ( simpleName , loading ) ; }

Target:
public com.android.jack.load.PackageLoader getLoaderForSubPackage ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JPackage loading , @ javax.annotation.Nonnull java.lang.String simpleName ) throws com.android.jack.ir.ast.JPackageLookupException { com.android.sched.vfs.InputVDir input = vdirCache.get ( simpleName ) ; if ( input == null ) { throw new com.android.jack.ir.ast.JPackageLookupException ( simpleName , loading ) ; } return new com.android.jack.jayce.JaycePackageLoader ( inputJackLibrary , input , lookup , defaultLoadLevel ) ; }
Source:
public void onReceive ( android.content.Context context , android.content.Intent intent ) { android.util.Log.i ( com.android.server.am.ActivityManagerService.TAG , "Shutting down activity manager..." ) ; shutdown ( 10000 ) ; android.util.Log.i ( com.android.server.am.ActivityManagerService.TAG , "Shutdown complete, restarting!" ) ; java.lang.Process.killProcess ( java.lang.Process.myPid ( ) ) ; java.lang.System.exit ( 10 ) ; }

Target:
public void performReceive ( android.content.Intent intent , int resultCode , java.lang.String data , android.os.Bundle extras , boolean ordered , boolean sticky , int sendingUser ) { synchronized ( this ) { requestPssAllProcsLocked ( android.os.SystemClock.uptimeMillis ( ) , true , false ) ; } }
Source:
public void testRevokePropagatedOnUpgradeOldToNewModel ( ) throws java.lang.Exception { assertNull ( getDevice ( ) . installPackage ( com.android.cts.migration.MigrationHelper.getTestFile ( mCtsBuild , android.appsecurity.cts.PermissionsHostTest.APK_22 ) , false , false ) ) ; try { runDeviceTests ( android.appsecurity.cts.PermissionsHostTest.USES_PERMISSION_PKG , "com.android.cts.usepermission.UsePermissionTest22" , "testRevokePropagatedOnUpgradeOldToNewModel_part1" ) ; fail ( "App must be killed on a permission revoke" ) ; } catch ( java.lang.AssertionError expected ) { } assertNull ( getDevice ( ) . installPackage ( com.android.cts.migration.MigrationHelper.getTestFile ( mCtsBuild , android.appsecurity.cts.PermissionsHostTest.APK_23 ) , true , false ) ) ; runDeviceTests ( android.appsecurity.cts.PermissionsHostTest.USES_PERMISSION_PKG , "com.android.cts.usepermission.UsePermissionTest23" , "testRevokePropagatedOnUpgradeOldToNewModel_part2" ) ; }

Target:
public void testRevokePropagatedOnUpgradeNewToNewModel ( ) throws java.lang.Exception { assertNull ( getDevice ( ) . installPackage ( com.android.cts.migration.MigrationHelper.getTestFile ( mCtsBuild , android.appsecurity.cts.PermissionsHostTest.APK_23 ) , false , false ) ) ; runDeviceTests ( android.appsecurity.cts.PermissionsHostTest.PKG , "com.android.cts.usepermission.UsePermissionTest23" , "testRevokePropagatedOnUpgradeNewToNewModel_part1" ) ; assertNull ( getDevice ( ) . installPackage ( com.android.cts.migration.MigrationHelper.getTestFile ( mCtsBuild , android.appsecurity.cts.PermissionsHostTest.APK_23 ) , true , false ) ) ; runDeviceTests ( android.appsecurity.cts.PermissionsHostTest.PKG , "com.android.cts.usepermission.UsePermissionTest23" , "testRevokePropagatedOnUpgradeNewToNewModel_part2" ) ; }
Source:
private byte [ ] getPubkey ( byte [ ] key ) { java.util.ArrayList < byte [ ] > values = execute ( 'b' , key ) ; return ( values == null ) || ( values.isEmpty ( ) ) ? null : values.get ( 0 ) ; }

Target:
public byte [ ] getPubkey ( java.lang.String key ) { try { return mBinder.get_pubkey ( key ) ; } catch ( android.os.RemoteException e ) { android.util.Log.w ( android.security.KeyStore.TAG , "Cannot connect to keystore" , e ) ; return null ; } }
Source:
public final int getDotType ( int c ) { int props = trie.get ( c ) ; if ( ! ( android.icu.impl.UCaseProps.propsHasException ( props ) ) ) { return props & ( android.icu.impl.UCaseProps.DOT_MASK ) ; } else { return ( ( exceptions [ android.icu.impl.UCaseProps.getExceptionsOffset ( props ) ] ) > > ( android.icu.impl.UCaseProps.EXC_DOT_SHIFT ) ) & ( android.icu.impl.UCaseProps.DOT_MASK ) ; } }

Target:
public final int getDotType ( int c ) { int props = trie.get ( c ) ; if ( ! ( android.icu.impl.UCaseProps.propsHasException ( props ) ) ) { return props & ( android.icu.impl.UCaseProps.DOT_MASK ) ; } else { return ( ( exceptions.charAt ( android.icu.impl.UCaseProps.getExceptionsOffset ( props ) ) ) > > ( android.icu.impl.UCaseProps.EXC_DOT_SHIFT ) ) & ( android.icu.impl.UCaseProps.DOT_MASK ) ; } }
Source:
public com.android.sdklib.internal.avd.AvdManager.AvdInfo [ ] getBrokenAvds ( ) { synchronized ( mAllAvdList ) { if ( ( mBrokenAvdList ) == null ) { java.util.ArrayList < com.android.sdklib.internal.avd.AvdManager.AvdInfo > list = new java.util.ArrayList < com.android.sdklib.internal.avd.AvdManager.AvdInfo > ( ) ; for ( com.android.sdklib.internal.avd.AvdManager.AvdInfo avd : mAllAvdList ) { if ( ( avd.getStatus ( ) ) != ( com.android.sdklib.internal.avd.AvdManager.AvdInfo.AvdStatus.OK ) ) { list.add ( avd ) ; } } mBrokenAvdList = list.toArray ( new com.android.sdklib.internal.avd.AvdManager.AvdInfo [ list.size ( ) ] ) ; } return mBrokenAvdList ; } }

Target:
public com.android.sdklib.internal.avd.AvdInfo [ ] getBrokenAvds ( ) { synchronized ( mAllAvdList ) { if ( ( mBrokenAvdList ) == null ) { java.util.ArrayList < com.android.sdklib.internal.avd.AvdInfo > list = new java.util.ArrayList < com.android.sdklib.internal.avd.AvdInfo > ( ) ; for ( com.android.sdklib.internal.avd.AvdInfo avd : mAllAvdList ) { if ( ( avd.getStatus ( ) ) != ( com.android.sdklib.internal.avd.AvdInfo.AvdStatus.OK ) ) { list.add ( avd ) ; } } mBrokenAvdList = list.toArray ( new com.android.sdklib.internal.avd.AvdInfo [ list.size ( ) ] ) ; } return mBrokenAvdList ; } }
Source:
boolean canBeInternationallyDialled ( com.google.i18n.phonenumbers.Phonenumber.PhoneNumber number ) { com.google.i18n.phonenumbers.nano.Phonemetadata.PhoneMetadata metadata = getMetadataForRegion ( getRegionCodeForNumber ( number ) ) ; if ( metadata == null ) { return true ; } java.lang.String nationalSignificantNumber = getNationalSignificantNumber ( number ) ; return ! ( isNumberMatchingDesc ( nationalSignificantNumber , metadata.noInternationalDialling ) ) ; }

Target:
boolean canBeInternationallyDialled ( com.google.i18n.phonenumbers.Phonenumber.PhoneNumber number ) { com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata metadata = getMetadataForRegion ( getRegionCodeForNumber ( number ) ) ; if ( metadata == null ) { return true ; } java.lang.String nationalSignificantNumber = getNationalSignificantNumber ( number ) ; return ! ( isNumberMatchingDesc ( nationalSignificantNumber , metadata.getNoInternationalDialling ( ) ) ) ; }
Source:
public void test_JarFile_InsertEntry_in_Manifest_Jar ( ) throws java.io.IOException { java.lang.String modifiedJarName = "Inserted_Entry_Manifest.jar" ; tests.support.resource.Support_Resources.copyFile ( resources , null , modifiedJarName ) ; java.util.jar.JarFile jarFile = new java.util.jar.JarFile ( new java.io.File ( resources , modifiedJarName ) , true ) ; java.util.Enumeration < java.util.jar.JarEntry > entries = jarFile.entries ( ) ; int count = 0 ; while ( entries.hasMoreElements ( ) ) { java.util.zip.ZipEntry zipEntry = entries.nextElement ( ) ; jarFile.getInputStream ( zipEntry ) ; count ++ ; } assertEquals ( 5 , count ) ; }

Target:
public void test_Inserted_Entry_Manifest_with_DigestCode ( ) throws java.io.IOException { java.lang.String modifiedJarName = "Inserted_Entry_Manifest_with_DigestCode.jar" ; java.io.File file = tests.support.resource.Support_Resources.copyFile ( resources , null , modifiedJarName ) ; try ( java.util.jar.JarFile jarFile = new java.util.jar.JarFile ( file , true ) ) { java.util.Enumeration < java.util.jar.JarEntry > entries = jarFile.entries ( ) ; int count = 0 ; while ( entries.hasMoreElements ( ) ) { java.util.zip.ZipEntry zipEntry = entries.nextElement ( ) ; jarFile.getInputStream ( zipEntry ) ; count ++ ; } assertEquals ( 5 , count ) ; } }
Source:
public void setPadding ( int left , int top , int right , int bottom ) { resetResolvedPaddingInternal ( ) ; mUserPaddingStart = android.view.View.UNDEFINED_PADDING ; mUserPaddingEnd = android.view.View.UNDEFINED_PADDING ; mUserPaddingLeftInitial = left ; mUserPaddingRightInitial = right ; mLeftPaddingDefined = true ; mRightPaddingDefined = true ; internalSetPadding ( left , top , right , bottom ) ; }

Target:
public void setPadding ( int left , int top , int right , int bottom ) { resetResolvedPadding ( ) ; mUserPaddingStart = android.view.View.UNDEFINED_PADDING ; mUserPaddingEnd = android.view.View.UNDEFINED_PADDING ; mUserPaddingLeftInitial = left ; mUserPaddingRightInitial = right ; mLeftPaddingDefined = true ; mRightPaddingDefined = true ; internalSetPadding ( left , top , right , bottom ) ; }
Source:
public void addPackageToPreferred ( java.lang.String packageName ) { mContext.enforceCallingOrSelfPermission ( android.Manifest.permission.SET_PREFERRED_APPLICATIONS , null ) ; synchronized ( mPackages ) { android.content.pm.PackageParser.Package p = mPackages.get ( packageName ) ; if ( p == null ) { return ; } com.android.server.PackageManagerService.PackageSetting ps = ( ( com.android.server.PackageManagerService.PackageSetting ) ( p.mExtras ) ) ; if ( ps != null ) { mSettings.mPreferredPackages.remove ( ps ) ; mSettings.mPreferredPackages.add ( 0 , ps ) ; updatePreferredIndicesLP ( ) ; mSettings.writeLP ( ) ; } } }

Target:
public void removePackageFromPreferred ( java.lang.String packageName ) { mContext.enforceCallingOrSelfPermission ( android.Manifest.permission.SET_PREFERRED_APPLICATIONS , null ) ; com.android.server.Log.w ( com.android.server.PackageManagerService.TAG , "removePackageFromPreferred: no longer implemented" ) ; }
Source:
private void updateAndSendIntent ( android.bluetooth.BluetoothDevice device , int newDeviceState , int prevDeviceState ) { if ( newDeviceState == ( android.bluetooth.BluetoothHealth.STATE_DISCONNECTED ) ) { mHealthDevices.remove ( device ) ; } else { mHealthDevices.put ( device , newDeviceState ) ; } }

Target:
private void updateAndSendIntent ( android.bluetooth.BluetoothDevice device , int newDeviceState , int prevDeviceState ) { if ( newDeviceState == ( android.bluetooth.BluetoothHealth.STATE_DISCONNECTED ) ) { mHealthDevices.remove ( device ) ; } else { mHealthDevices.put ( device , newDeviceState ) ; } if ( ( newDeviceState != prevDeviceState ) && ( newDeviceState == ( android.bluetooth.BluetoothHealth.STATE_CONNECTED ) ) ) { com.android.bluetooth.btservice.MetricsLogger.logProfileConnectionEvent ( BluetoothMetricsProto.ProfileId.HEALTH ) ; } }
Source:
public final void backgroundResourcesReleased ( android.os.IBinder token ) { final long origId = android.os.Binder.clearCallingIdentity ( ) ; try { synchronized ( this ) { com.android.server.am.ActivityStack stack = com.android.server.am.ActivityRecord.getStackLocked ( token ) ; if ( stack != null ) { stack.backgroundResourcesReleased ( token ) ; } } } finally { android.os.Binder.restoreCallingIdentity ( origId ) ; } }

Target:
public final void activityDestroyed ( android.os.IBinder token ) { if ( com.android.server.am.ActivityManagerService.DEBUG_SWITCH ) android.util.Slog.v ( com.android.server.am.ActivityManagerService.TAG , ( "ACTIVITY DESTROYED: " + token ) ) ; synchronized ( this ) { com.android.server.am.ActivityStack stack = com.android.server.am.ActivityRecord.getStackLocked ( token ) ; if ( stack != null ) { stack.activityDestroyedLocked ( token , "activityDestroyed" ) ; } } }
Source:
public void findValidValue ( ) { java.util.List < java.lang.String > strings = com.google.common.collect.Lists.newArrayList ( "foo" , "maxSdkVersion:'14'" , "bar" ) ; com.android.build.gradle.integration.common.truth.FakeFailureStrategy failure = new com.android.build.gradle.integration.common.truth.FakeFailureStrategy ( ) ; java.io.File file = new java.io.File ( "foo" ) ; com.android.build.gradle.integration.common.truth.ApkSubject subject = new com.android.build.gradle.integration.common.truth.ApkSubject ( failure , file ) ; subject.checkMaxSdkVersion ( strings , 14 ) ; com.google.common.truth.Truth.assertThat ( failure.message ) . isNull ( ) ; }

Target:
public void findValidValue ( ) { java.util.List < java.lang.String > strings = com.google.common.collect.Lists.newArrayList ( "foo" , "maxSdkVersion:'14'" , "bar" ) ; com.android.build.gradle.integration.common.truth.FakeFailureStrategy failure = new com.android.build.gradle.integration.common.truth.FakeFailureStrategy ( ) ; java.io.File file = new java.io.File ( "foo" ) ; com.android.build.gradle.integration.common.truth.ApkSubject subject = new com.android.build.gradle.integration.common.truth.ApkSubject ( failure , file ) ; failure.reset ( ) ; subject.checkMaxSdkVersion ( strings , 14 ) ; com.google.common.truth.Truth.assertThat ( failure.message ) . isNull ( ) ; }
Source:
public void testHasErrorTextShouldFail_WithNullString ( ) { try { android.support.test.espresso.matcher.ViewMatchers.hasErrorText ( ( ( org.hamcrest.Matcher < java.lang.String > ) ( null ) ) ) ; fail ( "Should of thrown NPE" ) ; } catch ( java.lang.NullPointerException e ) { } }

Target:
public void firstMatchesByGivenMatcher ( ) { android.view.View firstViewWithId1 = createViewWithId ( R.id.testId1 ) ; android.view.View secondViewWithId1 = createViewWithId ( R.id.testId1 ) ; org.hamcrest.Matcher < android.view.View > id1FirstOccurrenceMatcher = android.support.test.espresso.matcher.ViewMatchers.thatMatchesFirst ( android.support.test.espresso.matcher.ViewMatchers.withId ( R.id.testId1 ) ) ; org.junit.Assert.assertTrue ( id1FirstOccurrenceMatcher.matches ( firstViewWithId1 ) ) ; org.junit.Assert.assertFalse ( id1FirstOccurrenceMatcher.matches ( secondViewWithId1 ) ) ; org.junit.Assert.assertTrue ( id1FirstOccurrenceMatcher.matches ( firstViewWithId1 ) ) ; }
Source:
void startAdvertisingSet ( android.bluetooth.le.AdvertisingSetParameters parameters , android.bluetooth.le.AdvertiseData advertiseData , android.bluetooth.le.AdvertiseData scanResponse , android.bluetooth.le.PeriodicAdvertisingParameters periodicParameters , android.bluetooth.le.AdvertiseData periodicData , int timeout , android.bluetooth.le.IAdvertisingSetCallback callback ) { enforceAdminPermission ( ) ; mAdvertiseManager.startAdvertisingSet ( parameters , advertiseData , scanResponse , periodicParameters , periodicData , timeout , callback ) ; }

Target:
void startAdvertisingSet ( android.bluetooth.le.AdvertisingSetParameters parameters , android.bluetooth.le.AdvertiseData advertiseData , android.bluetooth.le.AdvertiseData scanResponse , android.bluetooth.le.PeriodicAdvertisingParameters periodicParameters , android.bluetooth.le.AdvertiseData periodicData , int duration , int maxExtAdvEvents , android.bluetooth.le.IAdvertisingSetCallback callback ) { enforceAdminPermission ( ) ; mAdvertiseManager.startAdvertisingSet ( parameters , advertiseData , scanResponse , periodicParameters , periodicData , duration , maxExtAdvEvents , callback ) ; }
Source:
private final boolean isBluetoothPersistedStateOn ( ) { return ( Settings.Global.getInt ( mContentResolver , Settings.Global.BLUETOOTH_ON , com.android.server.BluetoothManagerService.BLUETOOTH_ON_BLUETOOTH ) ) != ( com.android.server.BluetoothManagerService.BLUETOOTH_OFF ) ; }

Target:
private final boolean isBluetoothPersistedStateOn ( ) { int state = Settings.Global.getInt ( mContentResolver , Settings.Global.BLUETOOTH_ON , ( - 1 ) ) ; if ( com.android.server.BluetoothManagerService.DBG ) android.util.Slog.d ( com.android.server.BluetoothManagerService.TAG , ( "Bluetooth persisted state: " + state ) ) ; return state != ( com.android.server.BluetoothManagerService.BLUETOOTH_OFF ) ; }
Source:
public boolean disconnect ( ) { if ( android.bluetooth.BluetoothPbap.DBG ) android.bluetooth.BluetoothPbap.log ( "disconnect()" ) ; if ( ( mService ) != null ) { try { mService.disconnect ( ) ; return true ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothPbap.TAG , e.toString ( ) ) ; } } else { android.util.Log.w ( android.bluetooth.BluetoothPbap.TAG , "Proxy not attached to service" ) ; if ( android.bluetooth.BluetoothPbap.DBG ) android.bluetooth.BluetoothPbap.log ( android.util.Log.getStackTraceString ( new java.lang.Throwable ( ) ) ) ; } return false ; }

Target:
public boolean disconnect ( ) { if ( android.bluetooth.BluetoothPbap.DBG ) android.bluetooth.BluetoothPbap.log ( "disconnect()" ) ; final android.bluetooth.IBluetoothPbap service = mService ; if ( service != null ) { try { service.disconnect ( ) ; return true ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothPbap.TAG , e.toString ( ) ) ; } } else { android.util.Log.w ( android.bluetooth.BluetoothPbap.TAG , "Proxy not attached to service" ) ; if ( android.bluetooth.BluetoothPbap.DBG ) android.bluetooth.BluetoothPbap.log ( android.util.Log.getStackTraceString ( new java.lang.Throwable ( ) ) ) ; } return false ; }
Source:
public static java.io.InputStream getXsdStream ( int version ) { assert ( version >= 1 ) && ( version <= ( com.android.dvlib.DeviceSchema.NS_LATEST_VERSION ) ) ; java.lang.String rootElement = com.android.dvlib.DeviceSchema.NODE_DEVICES ; java.lang.String filename = java.lang.String.format ( "%1$s-%2$d.xsd" , rootElement , version ) ; try { return com.android.dvlib.DeviceSchema.class . getResourceAsStream ( filename ) ; } catch ( java.lang.Exception ignore ) { } return null ; }

Target:
public static java.io.InputStream getXsdStream ( int version ) { assert ( version >= 1 ) && ( version <= ( com.android.dvlib.DeviceSchema.NS_LATEST_VERSION ) ) : "Unexpected schema version " + version ; java.lang.String rootElement = com.android.dvlib.DeviceSchema.NODE_DEVICES ; java.lang.String filename = java.lang.String.format ( "%1$s-%2$d.xsd" , rootElement , version ) ; try { return com.android.dvlib.DeviceSchema.class . getResourceAsStream ( filename ) ; } catch ( java.lang.Exception ignore ) { } return null ; }
Source:
public void onResume ( ) { if ( com.android.dialer.util.PermissionsUtil.hasPermission ( activity , android.Manifest.permission.READ_CONTACTS ) ) { contactInfoCache.start ( ) ; } contactsPreferences.refreshValue ( ContactsPreferences.DISPLAY_ORDER_KEY ) ; isSpamEnabled = com.android.dialer.spam.SpamComponent.get ( activity ) . spam ( ) . isSpamEnabled ( ) ; getDuo ( ) . registerListener ( this ) ; notifyDataSetChanged ( ) ; }

Target:
public void onResume ( ) { if ( com.android.dialer.util.PermissionsUtil.hasPermission ( activity , android.Manifest.permission.READ_CONTACTS ) ) { contactInfoCache.start ( ) ; } contactsPreferences.refreshValue ( ContactsPreferences.DISPLAY_ORDER_KEY ) ; isSpamEnabled = com.android.dialer.spam.SpamComponent.get ( activity ) . spamSettings ( ) . isSpamEnabled ( ) ; getDuo ( ) . registerListener ( this ) ; notifyDataSetChanged ( ) ; }
Source:
public void addFile ( java.io.File file , java.lang.String archivePath ) throws com.android.sdklib.build.ApkBuilder.ApkCreationException , com.android.sdklib.build.ApkBuilder.DuplicateFileException , com.android.sdklib.build.ApkBuilder.SealedApkException { if ( mIsSealed ) { throw new com.android.sdklib.build.ApkBuilder.SealedApkException ( "APK is already sealed" ) ; } try { doAddFile ( file , archivePath ) ; } catch ( com.android.sdklib.build.ApkBuilder.DuplicateFileException e ) { throw e ; } catch ( java.lang.Exception e ) { throw new com.android.sdklib.build.ApkBuilder.ApkCreationException ( e , "Failed to add %s" , file ) ; } }

Target:
public void addFile ( java.io.File file , java.lang.String archivePath ) throws com.android.sdklib.build.ApkCreationException , com.android.sdklib.build.DuplicateFileException , com.android.sdklib.build.SealedApkException { if ( mIsSealed ) { throw new com.android.sdklib.build.SealedApkException ( "APK is already sealed" ) ; } try { doAddFile ( file , archivePath ) ; } catch ( com.android.sdklib.build.DuplicateFileException e ) { throw e ; } catch ( java.lang.Exception e ) { throw new com.android.sdklib.build.ApkCreationException ( e , "Failed to add %s" , file ) ; } }
Source:
private com.android.ide.eclipse.adt.internal.editors.descriptors.ElementDescriptor getRootDescriptor ( ) { if ( ( mRootDescriptor ) == null ) { com.android.ide.eclipse.adt.internal.sdk.AndroidTargetData data = mEditor.getTargetData ( ) ; if ( data != null ) { com.android.ide.eclipse.adt.internal.editors.descriptors.IDescriptorProvider descriptorProvider = data.getDescriptorProvider ( mDescriptorId ) ; if ( descriptorProvider != null ) { mRootDescriptor = new com.android.ide.eclipse.adt.internal.editors.descriptors.ElementDescriptor ( "" , descriptorProvider.getRootElementDescriptors ( ) ) ; } } } return mRootDescriptor ; }

Target:
private com.android.ide.eclipse.adt.internal.editors.descriptors.ElementDescriptor getRootDescriptor ( ) { if ( ( mRootDescriptor ) == null ) { com.android.ide.eclipse.adt.internal.sdk.AndroidTargetData data = mEditor.getTargetData ( ) ; if ( data != null ) { com.android.ide.eclipse.adt.internal.editors.descriptors.IDescriptorProvider descriptorProvider = data.getDescriptorProvider ( getRootDescriptorId ( ) ) ; if ( descriptorProvider != null ) { mRootDescriptor = new com.android.ide.eclipse.adt.internal.editors.descriptors.ElementDescriptor ( "" , descriptorProvider.getRootElementDescriptors ( ) ) ; } } } return mRootDescriptor ; }
Source:
public void simSlotsStatusChanged ( int indicationType , java.util.ArrayList < com.android.internal.telephony.V1_2.SimSlotStatus > slotsStatus ) { mRil.processIndication ( indicationType ) ; java.util.ArrayList < com.android.internal.telephony.uicc.IccSlotStatus > iccSlotStatus = com.android.internal.telephony.RIL.convertHalSlotsStatus ( slotsStatus ) ; if ( RIL.RILJ_LOGD ) mRil.unsljLogRet ( com.android.internal.telephony.RILConstants.RIL_UNSOL_ICC_SLOT_STATUS , iccSlotStatus ) ; mRil.mIccStatusChangedRegistrants.notifyRegistrants ( new android.os.AsyncResult ( null , iccSlotStatus , null ) ) ; }

Target:
public void cellInfoList_1_2 ( int indicationType , java.util.ArrayList < com.android.internal.telephony.V1_2.CellInfo > records ) { mRil.processIndication ( indicationType ) ; java.util.ArrayList < android.telephony.CellInfo > response = com.android.internal.telephony.RIL.convertHalCellInfoList_1_2 ( records ) ; if ( RIL.RILJ_LOGD ) mRil.unsljLogRet ( com.android.internal.telephony.RILConstants.RIL_UNSOL_CELL_INFO_LIST , response ) ; mRil.mRilCellInfoListRegistrants.notifyRegistrants ( new android.os.AsyncResult ( null , response , null ) ) ; }
Source:
private boolean getProvisionedBool ( com.android.ims.ImsConfig config , int item ) throws com.android.ims.ImsException { return ( config.getProvisionedValue ( item ) ) == ( ImsConfig.FeatureValueConstants.ON ) ; }

Target:
private boolean getProvisionedBool ( com.android.ims.ImsConfig config , int item ) throws com.android.ims.ImsException { int value = config.getProvisionedValue ( item ) ; if ( value == ( ImsConfig.FeatureValueConstants.ERROR ) ) { throw new com.android.ims.ImsException ( ( "getProvisionedBool failed with error for item: " + item ) , ImsReasonInfo.CODE_LOCAL_INTERNAL_ERROR ) ; } return ( config.getProvisionedValue ( item ) ) == ( ImsConfig.FeatureValueConstants.ON ) ; }
Source:
public void testPreloadDensity ( ) throws java.io.IOException , org.xmlpull.v1.XmlPullParserException { final int densityDpi = mResources.getConfiguration ( ) . densityDpi ; HEAD ( 9 ) ; android.graphics.drawable.cts.cbd34 Merge ; }

Target:
public void testPreloadDensity ( ) throws java.io.IOException , org.xmlpull.v1.XmlPullParserException { final int densityDpi = mResources.getConfiguration ( ) . densityDpi ; try { android.graphics.drawable.cts.DrawableTestUtils.setResourcesDensity ( mResources , densityDpi ) ; verifyPreloadDensityInner ( mResources , densityDpi ) ; } finally { android.graphics.drawable.cts.DrawableTestUtils.setResourcesDensity ( mResources , densityDpi ) ; } }
Source:
private void addSignature ( @ javax.annotation.Nonnull com.android.jack.ir.ast.Annotable annotable , @ javax.annotation.Nonnull java.lang.String signature , @ javax.annotation.Nonnull com.android.jack.ir.sourceinfo.SourceInfo info ) { com.android.jack.ir.ast.JAnnotationLiteral annotation = createAnnotation ( annotable , signatureAnnotationType , info ) ; com.android.jack.ir.ast.JArrayLiteral literal = buildSignatureAnnotationValue ( signature , info ) ; com.android.jack.ir.ast.JMethodId methodId = getOrCreateMethodId ( signatureAnnotationType , com.android.jack.backend.dex.annotations.ReflectAnnotationsAdder.Visitor.ELT_VALUE ) ; com.android.jack.ir.ast.JNameValuePair valuePair = new com.android.jack.ir.ast.JNameValuePair ( info , methodId , literal ) ; assert ( annotation.getNameValuePair ( methodId ) ) == null : "Type can not have more than one generic signature" ; request.append ( new com.android.jack.transformations.request.PutNameValuePair ( annotation , valuePair ) ) ; }

Target:
private void addSignature ( @ javax.annotation.Nonnull com.android.jack.ir.ast.Annotable annotable , @ javax.annotation.Nonnull java.lang.String signature , @ javax.annotation.Nonnull com.android.jack.ir.sourceinfo.SourceInfo info ) { com.android.jack.ir.ast.JAnnotation annotation = createAnnotation ( annotable , signatureAnnotationType , info ) ; com.android.jack.ir.ast.JArrayLiteral literal = buildSignatureAnnotationValue ( signature , info ) ; com.android.jack.ir.ast.JMethodId methodId = getOrCreateMethodId ( signatureAnnotationType , com.android.jack.backend.dex.annotations.ReflectAnnotationsAdder.Visitor.ELT_VALUE ) ; com.android.jack.ir.ast.JNameValuePair valuePair = new com.android.jack.ir.ast.JNameValuePair ( info , methodId , literal ) ; assert ( annotation.getNameValuePair ( methodId ) ) == null : "Type can not have more than one generic signature" ; request.append ( new com.android.jack.transformations.request.PutNameValuePair ( annotation , valuePair ) ) ; }
Source:
public android.bluetooth.BluetoothAvrcpPlayerSettings getPlayerSettings ( android.bluetooth.BluetoothDevice device ) { if ( android.bluetooth.BluetoothAvrcpController.DBG ) android.util.Log.d ( android.bluetooth.BluetoothAvrcpController.TAG , "getPlayerSettings" ) ; android.bluetooth.BluetoothAvrcpPlayerSettings settings = null ; if ( ( ( mService ) != null ) && ( isEnabled ( ) ) ) { try { settings = mService.getPlayerSettings ( device ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothAvrcpController.TAG , ( "Error talking to BT service in getMetadata() " + e ) ) ; return null ; } } return settings ; }

Target:
public android.bluetooth.BluetoothAvrcpPlayerSettings getPlayerSettings ( android.bluetooth.BluetoothDevice device ) { if ( android.bluetooth.BluetoothAvrcpController.DBG ) android.util.Log.d ( android.bluetooth.BluetoothAvrcpController.TAG , "getPlayerSettings" ) ; android.bluetooth.BluetoothAvrcpPlayerSettings settings = null ; final android.bluetooth.IBluetoothAvrcpController service = mService ; if ( ( service != null ) && ( isEnabled ( ) ) ) { try { settings = service.getPlayerSettings ( device ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothAvrcpController.TAG , ( "Error talking to BT service in getMetadata() " + e ) ) ; return null ; } } return settings ; }
Source:
public void run ( ) { mFilterText = "" ; com.android.hierarchyviewerlib.device.ViewNode viewNode = com.android.hierarchyviewerlib.device.DeviceBridge.loadWindowData ( window ) ; if ( viewNode != null ) { com.android.hierarchyviewerlib.device.DeviceBridge.loadProfileData ( window , viewNode ) ; viewNode.setViewCount ( ) ; com.android.hierarchyviewerlib.models.TreeViewModel.getModel ( ) . setData ( window , viewNode ) ; } }

Target:
public void run ( ) { mFilterText = "" ; com.android.hierarchyviewerlib.device.IHvDevice hvDevice = window.getHvDevice ( ) ; com.android.hierarchyviewerlib.models.ViewNode viewNode = hvDevice.loadWindowData ( window ) ; if ( viewNode != null ) { hvDevice.loadProfileData ( window , viewNode ) ; viewNode.setViewCount ( ) ; com.android.hierarchyviewerlib.models.TreeViewModel.getModel ( ) . setData ( window , viewNode ) ; } }
Source:
public void write ( java.io.File incrementalFolder ) { incrementalFolder.mkdirs ( ) ; mInputs.write ( new java.io.File ( incrementalFolder , com.android.builder.internal.incremental.ChangeManager.FN_INPUTS_DATA ) ) ; mOutputs.write ( new java.io.File ( incrementalFolder , com.android.builder.internal.incremental.ChangeManager.FN_OUTPUTS_DATA ) ) ; }

Target:
public void write ( java.io.File incrementalFolder ) throws java.io.IOException { if ( ( ! ( incrementalFolder.isDirectory ( ) ) ) && ( ! ( incrementalFolder.mkdirs ( ) ) ) ) { throw new java.io.IOException ( ( "Failed to create directory " + incrementalFolder ) ) ; } mInputs.write ( new java.io.File ( incrementalFolder , com.android.builder.internal.incremental.ChangeManager.FN_INPUTS_DATA ) ) ; mOutputs.write ( new java.io.File ( incrementalFolder , com.android.builder.internal.incremental.ChangeManager.FN_OUTPUTS_DATA ) ) ; }
Source:
public boolean setScanMode ( @ android.bluetooth.BluetoothAdapter.ScanMode int mode , int duration ) { if ( ( getState ( ) ) != ( android.bluetooth.BluetoothAdapter.STATE_ON ) ) return false ; try { synchronized ( mManagerCallback ) { if ( ( mService ) != null ) return mService.setScanMode ( mode , duration ) ; } } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothAdapter.TAG , "" , e ) ; } return false ; }

Target:
public boolean setScanMode ( @ android.bluetooth.BluetoothAdapter.ScanMode int mode , int duration ) { if ( ( getState ( ) ) != ( android.bluetooth.BluetoothAdapter.STATE_ON ) ) return false ; try { mServiceLock.readLock ( ) . lock ( ) ; if ( ( mService ) != null ) return mService.setScanMode ( mode , duration ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothAdapter.TAG , "" , e ) ; } finally { mServiceLock.readLock ( ) . unlock ( ) ; } return false ; }
Source:
private int getScaledMaxXScroll ( ) { int width ; if ( ( mHeightCanMeasure ) == false ) { width = ( getViewWidth ( ) ) / 4 ; } else { android.graphics.Rect visRect = new android.graphics.Rect ( ) ; calcOurVisibleRect ( visRect ) ; width = ( visRect.width ( ) ) / 2 ; } return viewToContent ( width ) ; }

Target:
private int getScaledMaxXScroll ( ) { int width ; if ( ( mHeightCanMeasure ) == false ) { width = ( getViewWidth ( ) ) / 4 ; } else { android.graphics.Rect visRect = new android.graphics.Rect ( ) ; calcOurVisibleRect ( visRect ) ; width = ( visRect.width ( ) ) / 2 ; } return viewToContentX ( width ) ; }
Source:
public void testPownF32_3 ( ) { android.renderscript.Allocation nAlloc = android.renderscript.Allocation.createSized ( mRS , android.renderscript.Element.I32_3 ( mRS ) , android.renderscript.cts.INPUTSIZE ) ; n = new int [ ( INPUTSIZE ) * 4 ] ; android.renderscript.cts.RSUtils.genRandomInts ( 10560497 , 32 , ( - 16 ) , n ) ; nAlloc.copyFrom ( n ) ; script_f32.set_n3 ( nAlloc ) ; doF32_3 ( 11191281 , 16 ) ; }

Target:
public void testPownF32_3 ( ) { android.renderscript.Allocation nAlloc = android.renderscript.Allocation.createSized ( mRS , android.renderscript.Element.I32_3 ( mRS ) , android.renderscript.cts.INPUTSIZE ) ; n = new int [ ( INPUTSIZE ) * 4 ] ; android.renderscript.cts.RSUtils.genRandomInts ( 10560497 , ( - 16 ) , 15 , n ) ; nAlloc.copyFrom ( n ) ; script_f32.set_n3 ( nAlloc ) ; doF32_3 ( 11191281 , 16 ) ; }
Source:
public void onMessageReceivedNotification ( int pubSubId , int requestorInstanceId , byte [ ] peerMac , byte [ ] message ) { android.os.Message msg = mSm.obtainMessage ( com.android.server.wifi.nan.WifiNanStateManager.MESSAGE_TYPE_NOTIFICATION ) ; msg.arg1 = com.android.server.wifi.nan.WifiNanStateManager.NOTIFICATION_TYPE_MESSAGE_RECEIVED ; msg.arg2 = pubSubId ; msg.obj = requestorInstanceId ; msg.getData ( ) . putByteArray ( com.android.server.wifi.nan.WifiNanStateManager.MESSAGE_BUNDLE_KEY_MAC_ADDRESS , peerMac ) ; msg.getData ( ) . putByteArray ( com.android.server.wifi.nan.WifiNanStateManager.MESSAGE_BUNDLE_KEY_MESSAGE_DATA , message ) ; mSm.sendMessage ( msg ) ; }

Target:
public void onMessageReceivedNotification ( int pubSubId , int requestorInstanceId , byte [ ] peerMac , byte [ ] message ) { android.os.Message msg = mSm.obtainMessage ( com.android.server.wifi.aware.WifiAwareStateManager.MESSAGE_TYPE_NOTIFICATION ) ; msg.arg1 = com.android.server.wifi.aware.WifiAwareStateManager.NOTIFICATION_TYPE_MESSAGE_RECEIVED ; msg.arg2 = pubSubId ; msg.obj = requestorInstanceId ; msg.getData ( ) . putByteArray ( com.android.server.wifi.aware.WifiAwareStateManager.MESSAGE_BUNDLE_KEY_MAC_ADDRESS , peerMac ) ; msg.getData ( ) . putByteArray ( com.android.server.wifi.aware.WifiAwareStateManager.MESSAGE_BUNDLE_KEY_MESSAGE_DATA , message ) ; mSm.sendMessage ( msg ) ; }
Source:
public boolean enableNetwork ( int netId ) { if ( com.android.server.wifi.WifiNative.DBG ) logDbg ( ( "enableNetwork nid=" + ( java.lang.Integer.toString ( netId ) ) ) ) ; return doBooleanCommand ( ( "ENABLE_NETWORK " + netId ) ) ; }

Target:
public void setSupplicantLogLevel ( boolean turnOnVerbose ) { if ( com.android.server.wifi.WifiNative.HIDL_SUP_ENABLE ) { int logLevel = ( turnOnVerbose ) ? SupplicantStaIfaceHal.LOG_LEVEL_DEBUG : SupplicantStaIfaceHal.LOG_LEVEL_INFO ; mSupplicantStaIfaceHal.setLogLevel ( logLevel ) ; } else { doStringCommand ( ( "LOG_LEVEL " + ( turnOnVerbose ? "DEBUG" : "INFO" ) ) ) ; } }
Source:
public void TestCharMonkey ( ) { int loopCount = 500 ; int seed = 1 ; if ( ( params.inclusion ) >= 9 ) { loopCount = 10000 ; } android.icu.dev.test.rbbi.RBBITestMonkey.RBBICharMonkey m = new android.icu.dev.test.rbbi.RBBITestMonkey.RBBICharMonkey ( ) ; android.icu.text.BreakIterator bi = android.icu.text.BreakIterator.getCharacterInstance ( java.util.Locale.US ) ; RunMonkey ( bi , m , "char" , seed , loopCount ) ; }

Target:
public void TestLineMonkey ( ) { int loopCount = 500 ; int seed = 1 ; if ( ( android.icu.dev.test.TestFmwk.getExhaustiveness ( ) ) >= 9 ) { loopCount = 10000 ; } logln ( "Line Break Monkey Test" ) ; android.icu.dev.test.rbbi.RBBITestMonkey.RBBILineMonkey m = new android.icu.dev.test.rbbi.RBBITestMonkey.RBBILineMonkey ( ) ; android.icu.text.BreakIterator bi = android.icu.text.BreakIterator.getLineInstance ( java.util.Locale.US ) ; RunMonkey ( bi , m , "line" , seed , loopCount ) ; }
Source:
private void assertSerialNumber ( ) { assertNotNull ( "Non-telephony devices must have a Build.SERIAL number." , Build.SERIAL ) ; assertTrue ( "Hardware id must be no longer than 20 characters." , ( ( Build.SERIAL.length ( ) ) <= 20 ) ) ; assertTrue ( "Hardware id must be alphanumeric." , java.util.regex.Pattern.matches ( "[0-9A-Za-z]+" , Build.SERIAL ) ) ; }

Target:
private void assertSerialNumber ( ) { org.junit.Assert.assertNotNull ( "Non-telephony devices must have a Build.SERIAL number." , Build.SERIAL ) ; org.junit.Assert.assertTrue ( "Hardware id must be no longer than 20 characters." , ( ( Build.SERIAL.length ( ) ) <= 20 ) ) ; org.junit.Assert.assertTrue ( "Hardware id must be alphanumeric." , java.util.regex.Pattern.matches ( "[0-9A-Za-z]+" , Build.SERIAL ) ) ; }
Source:
public void removeRights ( java.lang.String path ) { if ( ( null == path ) || ( path.equals ( "" ) ) ) { throw new java.lang.IllegalArgumentException ( "Given path should be non null" ) ; } else if ( ( getState ( ) ) == ( android.drm.DrmManagerClient.STATE_UNINITIALIZED ) ) { throw new java.lang.IllegalStateException ( "Not Initialized yet" ) ; } _removeRights ( mUniqueId , path ) ; }

Target:
public int checkRightsStatus ( android.net.Uri uri ) { if ( ( null == uri ) || ( ( android.net.Uri.EMPTY ) == uri ) ) { throw new java.lang.IllegalArgumentException ( "Given uri is not valid" ) ; } return checkRightsStatus ( convertUriToPath ( uri ) ) ; }
Source:
public void run ( ) { setHorizontalScrollbarOverlay ( overlay ) ; }

Target:
public java.lang.Object getSystemService ( java.lang.String name ) { if ( name.equals ( Context.LAYOUT_INFLATER_SERVICE ) ) { android.view.LayoutInflater i = ( ( android.view.LayoutInflater ) ( getBaseContext ( ) . getSystemService ( name ) ) ) ; return i.cloneInContext ( this ) ; } else { return getBaseContext ( ) . getSystemService ( name ) ; } }
Source:
public static com.android.incallui.incall.protocol.PrimaryInfo createEmptyPrimaryInfo ( ) { return new com.android.incallui.incall.protocol.PrimaryInfo ( null , null , false , null , null , null , ContactPhotoType.DEFAULT_PLACEHOLDER , false , false , false , false , false , false , false , null , null , true , ( - 1 ) ) ; }

Target:
public static com.android.incallui.incall.protocol.PrimaryInfo.Builder builder ( ) { return new com.android.incallui.incall.protocol.AutoValue_PrimaryInfo.Builder ( ) ; }
Source:
public void onCreate ( android.os.Bundle icicle ) { super . onCreate ( icicle ) ; if ( ( checkSelfPermission ( permission.READ_EXTERNAL_STORAGE ) ) != ( android.content.pm.PackageManager.PERMISSION_GRANTED ) ) { requestPermissions ( new java.lang.String [ ] { android.Manifest.permission.READ_EXTERNAL_STORAGE } , com.android.music.MusicBrowserActivity.MY_PERMISSIONS_REQUEST_READ_EXTERNAL_STORAGE ) ; return ; } initApp ( ) ; }

Target:
public void onCreate ( android.os.Bundle icicle ) { super . onCreate ( icicle ) ; com.android.music.utils.LogHelper.d ( com.android.music.MusicBrowserActivity.TAG , "onCreate()" ) ; if ( ( checkSelfPermission ( permission.READ_EXTERNAL_STORAGE ) ) != ( android.content.pm.PackageManager.PERMISSION_GRANTED ) ) { requestPermissions ( new java.lang.String [ ] { android.Manifest.permission.READ_EXTERNAL_STORAGE } , com.android.music.MusicBrowserActivity.MY_PERMISSIONS_REQUEST_READ_EXTERNAL_STORAGE ) ; return ; } initApp ( ) ; }
Source:
protected boolean isValidSourceFile ( @ com.android.annotations.NonNull java.io.File sourceFolder , @ com.android.annotations.NonNull java.io.File file ) { if ( ! ( super . isValidSourceFile ( sourceFolder , file ) ) ) { return false ; } java.io.File resFolder = file.getParentFile ( ) ; return ( ( resFolder.getParentFile ( ) . equals ( sourceFolder ) ) && ( com.android.ide.common.packaging.PackagingUtils.checkFolderForPackaging ( resFolder.getName ( ) ) ) ) && ( ( com.android.resources.ResourceFolderType.getFolderType ( resFolder.getName ( ) ) ) != null ) ; }

Target:
protected boolean isValidSourceFile ( @ com.android.annotations.NonNull java.io.File sourceFolder , @ com.android.annotations.NonNull java.io.File file ) { if ( ! ( super . isValidSourceFile ( sourceFolder , file ) ) ) { return false ; } java.io.File resFolder = file.getParentFile ( ) ; return ( ( resFolder.getParentFile ( ) . equals ( sourceFolder ) ) && ( ! ( isIgnored ( resFolder ) ) ) ) && ( ( com.android.resources.ResourceFolderType.getFolderType ( resFolder.getName ( ) ) ) != null ) ; }
Source:
public android.telephony.IccOpenLogicalChannelResponse iccOpenLogicalChannel ( int subId , java.lang.String AID , int p2 ) { try { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony != null ) return telephony.iccOpenLogicalChannel ( subId , AID , p2 ) ; } catch ( android.os.RemoteException ex ) { } catch ( java.lang.NullPointerException ex ) { } return null ; }

Target:
public android.telephony.ims.aidl.IImsMmTelFeature getImsMmTelFeatureAndListen ( int slotIndex , com.android.ims.internal.IImsServiceFeatureCallback callback ) { try { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony != null ) { return telephony.getMmTelFeatureAndListen ( slotIndex , callback ) ; } } catch ( android.os.RemoteException e ) { android.telephony.Rlog.e ( android.telephony.TelephonyManager.TAG , ( "getImsMmTelFeatureAndListen, RemoteException: " + ( e.getMessage ( ) ) ) ) ; } return null ; }
Source:
public com.android.ims.internal.IImsCallSession createCallSession ( int slotId , int featureType , int sessionId , com.android.ims.ImsCallProfile profile , com.android.ims.internal.IImsCallSessionListener listener ) throws android.os.RemoteException { synchronized ( mFeatures ) { android.telephony.ims.feature.MMTelFeature feature = resolveMMTelFeature ( slotId , featureType ) ; if ( feature != null ) { return feature.createCallSession ( sessionId , profile , listener ) ; } } return null ; }

Target:
public com.android.ims.internal.IImsCallSession createCallSession ( int slotId , int featureType , int sessionId , com.android.ims.ImsCallProfile profile , com.android.ims.internal.IImsCallSessionListener listener ) throws android.os.RemoteException { enforceCallingOrSelfPermission ( android.Manifest.permission.MODIFY_PHONE_STATE , "createCallSession" ) ; synchronized ( mFeatures ) { android.telephony.ims.feature.MMTelFeature feature = resolveMMTelFeature ( slotId , featureType ) ; if ( feature != null ) { return feature.createCallSession ( sessionId , profile , listener ) ; } } return null ; }
Source:
public java.lang.String getNamespace ( com.android.ide.common.api.INode layout ) { java.lang.String namespace = com.android.SdkConstants.ANDROID_URI ; if ( ! ( layout.getFqcn ( ) . equals ( com.android.SdkConstants.FQCN_GRID_LAYOUT ) ) ) { namespace = mRulesEngine.getAppNameSpace ( ) ; } return namespace ; }

Target:
public java.lang.String getNamespace ( com.android.ide.common.api.INode layout ) { java.lang.String namespace = com.android.SdkConstants.ANDROID_URI ; java.lang.String fqcn = layout.getFqcn ( ) ; if ( ( ! ( fqcn.equals ( com.android.SdkConstants.GRID_LAYOUT ) ) ) && ( ! ( fqcn.equals ( com.android.SdkConstants.FQCN_GRID_LAYOUT ) ) ) ) { namespace = mRulesEngine.getAppNameSpace ( ) ; } return namespace ; }
Source:
public void updateSubscriptionNickname ( int subscriptionId , java.lang.String nickname , android.app.PendingIntent callbackIntent ) { if ( ! ( isEnabled ( ) ) ) { android.telephony.euicc.EuiccManager.sendUnavailableError ( callbackIntent ) ; return ; } try { android.telephony.euicc.EuiccManager.getIEuiccController ( ) . updateSubscriptionNickname ( subscriptionId , nickname , callbackIntent ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } }

Target:
public void switchToSubscription ( int subscriptionId , android.app.PendingIntent callbackIntent ) { if ( ! ( isEnabled ( ) ) ) { android.telephony.euicc.EuiccManager.sendUnavailableError ( callbackIntent ) ; return ; } try { getIEuiccController ( ) . switchToSubscription ( subscriptionId , mContext.getOpPackageName ( ) , callbackIntent ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } }
Source:
void joinPool ( java.util.concurrent.ExecutorService exec ) { try { exec.shutdown ( ) ; assertTrue ( "ExecutorService did not terminate in a timely manner" , exec.awaitTermination ( ( 2 * ( jsr166.JSR166TestCase.LONG_DELAY_MS ) ) , java.util.concurrent.TimeUnit.MILLISECONDS ) ) ; } catch ( java.lang.SecurityException ok ) { } catch ( java.lang.InterruptedException ie ) { fail ( "Unexpected InterruptedException" ) ; } }

Target:
void joinPool ( java.util.concurrent.ExecutorService exec ) { try { exec.shutdown ( ) ; if ( ! ( exec.awaitTermination ( ( 2 * ( jsr166.JSR166TestCase.LONG_DELAY_MS ) ) , java.util.concurrent.TimeUnit.MILLISECONDS ) ) ) fail ( ( ( "ExecutorService " + exec ) + " did not terminate in a timely manner" ) ) ; } catch ( java.lang.SecurityException ok ) { } catch ( java.lang.InterruptedException fail ) { fail ( "Unexpected InterruptedException" ) ; } }